]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
discard time part of m_date, otherwise comparisons with other dates fail
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497 #define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498 #define SWIGTYPE_p_wxColour swig_types[32]
2499 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500 #define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501 #define SWIGTYPE_p_wxComboBox swig_types[35]
2502 #define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503 #define SWIGTYPE_p_wxContextHelp swig_types[37]
2504 #define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505 #define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506 #define SWIGTYPE_p_wxControl swig_types[40]
2507 #define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508 #define SWIGTYPE_p_wxCursor swig_types[42]
2509 #define SWIGTYPE_p_wxDC swig_types[43]
2510 #define SWIGTYPE_p_wxDateEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDateTime swig_types[46]
2513 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516 #define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517 #define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518 #define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519 #define SWIGTYPE_p_wxEvent swig_types[53]
2520 #define SWIGTYPE_p_wxEvtHandler swig_types[54]
2521 #define SWIGTYPE_p_wxFSFile swig_types[55]
2522 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56]
2523 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[57]
2524 #define SWIGTYPE_p_wxFileSystem swig_types[58]
2525 #define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526 #define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527 #define SWIGTYPE_p_wxFont swig_types[61]
2528 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[62]
2529 #define SWIGTYPE_p_wxFontPickerEvent swig_types[63]
2530 #define SWIGTYPE_p_wxGBSizerItem swig_types[64]
2531 #define SWIGTYPE_p_wxGIFHandler swig_types[65]
2532 #define SWIGTYPE_p_wxGauge swig_types[66]
2533 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[67]
2534 #define SWIGTYPE_p_wxGenericDragImage swig_types[68]
2535 #define SWIGTYPE_p_wxGridBagSizer swig_types[69]
2536 #define SWIGTYPE_p_wxGridSizer swig_types[70]
2537 #define SWIGTYPE_p_wxHelpEvent swig_types[71]
2538 #define SWIGTYPE_p_wxHelpProvider swig_types[72]
2539 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73]
2540 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconizeEvent swig_types[77]
2544 #define SWIGTYPE_p_wxIdleEvent swig_types[78]
2545 #define SWIGTYPE_p_wxImage swig_types[79]
2546 #define SWIGTYPE_p_wxImageHandler swig_types[80]
2547 #define SWIGTYPE_p_wxImageList swig_types[81]
2548 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82]
2549 #define SWIGTYPE_p_wxInitDialogEvent swig_types[83]
2550 #define SWIGTYPE_p_wxItemContainer swig_types[84]
2551 #define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552 #define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxLayoutConstraints swig_types[87]
2554 #define SWIGTYPE_p_wxListBox swig_types[88]
2555 #define SWIGTYPE_p_wxListEvent swig_types[89]
2556 #define SWIGTYPE_p_wxListItem swig_types[90]
2557 #define SWIGTYPE_p_wxListItemAttr swig_types[91]
2558 #define SWIGTYPE_p_wxListView swig_types[92]
2559 #define SWIGTYPE_p_wxListbook swig_types[93]
2560 #define SWIGTYPE_p_wxListbookEvent swig_types[94]
2561 #define SWIGTYPE_p_wxMaximizeEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMemoryDC swig_types[96]
2563 #define SWIGTYPE_p_wxMenu swig_types[97]
2564 #define SWIGTYPE_p_wxMenuBar swig_types[98]
2565 #define SWIGTYPE_p_wxMenuEvent swig_types[99]
2566 #define SWIGTYPE_p_wxMenuItem swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105]
2572 #define SWIGTYPE_p_wxNcPaintEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNotebook swig_types[107]
2574 #define SWIGTYPE_p_wxNotebookEvent swig_types[108]
2575 #define SWIGTYPE_p_wxNotifyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxObject swig_types[110]
2577 #define SWIGTYPE_p_wxPCXHandler swig_types[111]
2578 #define SWIGTYPE_p_wxPNGHandler swig_types[112]
2579 #define SWIGTYPE_p_wxPNMHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPaintEvent swig_types[114]
2581 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115]
2582 #define SWIGTYPE_p_wxPaperSize swig_types[116]
2583 #define SWIGTYPE_p_wxPickerBase swig_types[117]
2584 #define SWIGTYPE_p_wxPoint swig_types[118]
2585 #define SWIGTYPE_p_wxPyApp swig_types[119]
2586 #define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyControl swig_types[121]
2588 #define SWIGTYPE_p_wxPyEvent swig_types[122]
2589 #define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590 #define SWIGTYPE_p_wxPyListCtrl swig_types[124]
2591 #define SWIGTYPE_p_wxPySizer swig_types[125]
2592 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[126]
2593 #define SWIGTYPE_p_wxPyTreeItemData swig_types[127]
2594 #define SWIGTYPE_p_wxPyValidator swig_types[128]
2595 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596 #define SWIGTYPE_p_wxRadioBox swig_types[130]
2597 #define SWIGTYPE_p_wxRadioButton swig_types[131]
2598 #define SWIGTYPE_p_wxRect swig_types[132]
2599 #define SWIGTYPE_p_wxScrollBar swig_types[133]
2600 #define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601 #define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSearchCtrl swig_types[136]
2603 #define SWIGTYPE_p_wxSetCursorEvent swig_types[137]
2604 #define SWIGTYPE_p_wxShowEvent swig_types[138]
2605 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[139]
2606 #define SWIGTYPE_p_wxSize swig_types[140]
2607 #define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608 #define SWIGTYPE_p_wxSizer swig_types[142]
2609 #define SWIGTYPE_p_wxSizerItem swig_types[143]
2610 #define SWIGTYPE_p_wxSlider swig_types[144]
2611 #define SWIGTYPE_p_wxSpinButton swig_types[145]
2612 #define SWIGTYPE_p_wxSpinCtrl swig_types[146]
2613 #define SWIGTYPE_p_wxSpinEvent swig_types[147]
2614 #define SWIGTYPE_p_wxStaticBitmap swig_types[148]
2615 #define SWIGTYPE_p_wxStaticBox swig_types[149]
2616 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[150]
2617 #define SWIGTYPE_p_wxStaticLine swig_types[151]
2618 #define SWIGTYPE_p_wxStaticText swig_types[152]
2619 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[153]
2620 #define SWIGTYPE_p_wxString swig_types[154]
2621 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[155]
2622 #define SWIGTYPE_p_wxTGAHandler swig_types[156]
2623 #define SWIGTYPE_p_wxTIFFHandler swig_types[157]
2624 #define SWIGTYPE_p_wxTextAttr swig_types[158]
2625 #define SWIGTYPE_p_wxTextCtrl swig_types[159]
2626 #define SWIGTYPE_p_wxTextUrlEvent swig_types[160]
2627 #define SWIGTYPE_p_wxToggleButton swig_types[161]
2628 #define SWIGTYPE_p_wxToolBar swig_types[162]
2629 #define SWIGTYPE_p_wxToolBarBase swig_types[163]
2630 #define SWIGTYPE_p_wxToolBarToolBase swig_types[164]
2631 #define SWIGTYPE_p_wxToolbook swig_types[165]
2632 #define SWIGTYPE_p_wxToolbookEvent swig_types[166]
2633 #define SWIGTYPE_p_wxTreeEvent swig_types[167]
2634 #define SWIGTYPE_p_wxTreeItemId swig_types[168]
2635 #define SWIGTYPE_p_wxTreebook swig_types[169]
2636 #define SWIGTYPE_p_wxTreebookEvent swig_types[170]
2637 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[171]
2638 #define SWIGTYPE_p_wxValidator swig_types[172]
2639 #define SWIGTYPE_p_wxVisualAttributes swig_types[173]
2640 #define SWIGTYPE_p_wxWindow swig_types[174]
2641 #define SWIGTYPE_p_wxWindowBase swig_types[175]
2642 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[176]
2643 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[177]
2644 #define SWIGTYPE_p_wxXPMHandler swig_types[178]
2645 static swig_type_info *swig_types[180];
2646 static swig_module_info swig_module = {swig_types, 179, 0, 0, 0, 0};
2647 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2648 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2649
2650 /* -------- TYPES TABLE (END) -------- */
2651
2652 #if (PY_VERSION_HEX <= 0x02000000)
2653 # if !defined(SWIG_PYTHON_CLASSIC)
2654 # error "This python version requires to use swig with the '-classic' option"
2655 # endif
2656 #endif
2657 #if (PY_VERSION_HEX <= 0x02020000)
2658 # error "This python version requires to use swig with the '-nomodern' option"
2659 #endif
2660 #if (PY_VERSION_HEX <= 0x02020000)
2661 # error "This python version requires to use swig with the '-nomodernargs' option"
2662 #endif
2663 #ifndef METH_O
2664 # error "This python version requires to use swig with the '-nofastunpack' option"
2665 #endif
2666
2667 /*-----------------------------------------------
2668 @(target):= _controls_.so
2669 ------------------------------------------------*/
2670 #define SWIG_init init_controls_
2671
2672 #define SWIG_name "_controls_"
2673
2674 #define SWIGVERSION 0x010329
2675
2676
2677 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2678 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2679
2680
2681 #include <stdexcept>
2682
2683
2684 namespace swig {
2685 class PyObject_ptr {
2686 protected:
2687 PyObject *_obj;
2688
2689 public:
2690 PyObject_ptr() :_obj(0)
2691 {
2692 }
2693
2694 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2695 {
2696 Py_XINCREF(_obj);
2697 }
2698
2699 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2700 {
2701 if (initial_ref) Py_XINCREF(_obj);
2702 }
2703
2704 PyObject_ptr & operator=(const PyObject_ptr& item)
2705 {
2706 Py_XINCREF(item._obj);
2707 Py_XDECREF(_obj);
2708 _obj = item._obj;
2709 return *this;
2710 }
2711
2712 ~PyObject_ptr()
2713 {
2714 Py_XDECREF(_obj);
2715 }
2716
2717 operator PyObject *() const
2718 {
2719 return _obj;
2720 }
2721
2722 PyObject *operator->() const
2723 {
2724 return _obj;
2725 }
2726 };
2727 }
2728
2729
2730 namespace swig {
2731 struct PyObject_var : PyObject_ptr {
2732 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2733
2734 PyObject_var & operator = (PyObject* obj)
2735 {
2736 Py_XDECREF(_obj);
2737 _obj = obj;
2738 return *this;
2739 }
2740 };
2741 }
2742
2743
2744 #include "wx/wxPython/wxPython.h"
2745 #include "wx/wxPython/pyclasses.h"
2746
2747 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2748 static const wxString wxPyEmptyString(wxEmptyString);
2749 static const wxString wxPyControlNameStr(wxControlNameStr);
2750
2751 const wxArrayString wxPyEmptyStringArray;
2752
2753 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2754
2755 #define SWIG_From_long PyInt_FromLong
2756
2757
2758 SWIGINTERNINLINE PyObject *
2759 SWIG_From_int (int value)
2760 {
2761 return SWIG_From_long (value);
2762 }
2763
2764
2765 #include <limits.h>
2766 #ifndef LLONG_MIN
2767 # define LLONG_MIN LONG_LONG_MIN
2768 #endif
2769 #ifndef LLONG_MAX
2770 # define LLONG_MAX LONG_LONG_MAX
2771 #endif
2772 #ifndef ULLONG_MAX
2773 # define ULLONG_MAX ULONG_LONG_MAX
2774 #endif
2775
2776
2777 SWIGINTERN int
2778 SWIG_AsVal_long (PyObject* obj, long* val)
2779 {
2780 if (PyNumber_Check(obj)) {
2781 if (val) *val = PyInt_AsLong(obj);
2782 return SWIG_OK;
2783 }
2784 return SWIG_TypeError;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_int (PyObject * obj, int *val)
2790 {
2791 long v;
2792 int res = SWIG_AsVal_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v < INT_MIN || v > INT_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< int >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2804
2805 SWIGINTERN int
2806 SWIG_AsVal_bool (PyObject *obj, bool *val)
2807 {
2808 if (obj == Py_True) {
2809 if (val) *val = true;
2810 return SWIG_OK;
2811 } else if (obj == Py_False) {
2812 if (val) *val = false;
2813 return SWIG_OK;
2814 } else {
2815 long v = 0;
2816 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2817 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2818 return res;
2819 }
2820 }
2821
2822 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2823 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2824 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2825 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2826 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2827 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2828 static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr);
2829
2830 #include <wx/checklst.h>
2831
2832 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2833 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2834 if (clientData)
2835 {
2836 wxPyClientData* data = new wxPyClientData(clientData);
2837 self->Insert(item, pos, data);
2838 }
2839 else
2840 self->Insert(item, pos);
2841 }
2842
2843 SWIGINTERN int
2844 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2845 {
2846 long v = 0;
2847 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2848 return SWIG_TypeError;
2849 }
2850 else if (val)
2851 *val = (unsigned long)v;
2852 return SWIG_OK;
2853 }
2854
2855
2856 SWIGINTERN int
2857 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2858 {
2859 unsigned long v;
2860 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2861 if (SWIG_IsOK(res)) {
2862 if ((v > UINT_MAX)) {
2863 return SWIG_OverflowError;
2864 } else {
2865 if (val) *val = static_cast< unsigned int >(v);
2866 }
2867 }
2868 return res;
2869 }
2870
2871 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2873 wxArrayInt lst;
2874 self->GetSelections(lst);
2875 PyObject *tup = PyTuple_New(lst.GetCount());
2876 for (size_t i=0; i<lst.GetCount(); i++)
2877 {
2878 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2879 }
2880 wxPyEndBlockThreads(blocked);
2881 return tup;
2882 }
2883 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2884 #ifdef __WXMSW__
2885 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2886 self->GetItem(item)->SetTextColour(c);
2887 #endif
2888 }
2889 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2890 #ifdef __WXMSW__
2891 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2892 self->GetItem(item)->SetBackgroundColour(c);
2893 #endif
2894 }
2895 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2896 #ifdef __WXMSW__
2897 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2898 self->GetItem(item)->SetFont(f);
2899 #endif
2900 }
2901 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2902 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2903 self->AppendText(text);
2904 }
2905 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2906 return self->GetValue().Mid(from, to - from);
2907 }
2908 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2909 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2910 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2911 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2912 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2913
2914 SWIGINTERNINLINE PyObject*
2915 SWIG_From_unsigned_SS_long (unsigned long value)
2916 {
2917 return (value > LONG_MAX) ?
2918 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2919 }
2920
2921
2922 SWIGINTERNINLINE PyObject *
2923 SWIG_From_size_t (size_t value)
2924 {
2925 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2926 }
2927
2928
2929 SWIGINTERNINLINE PyObject *
2930 SWIG_From_unsigned_SS_int (unsigned int value)
2931 {
2932 return SWIG_From_unsigned_SS_long (value);
2933 }
2934
2935
2936 #include <wx/slider.h>
2937
2938
2939 static const wxString wxPySliderNameStr(wxSliderNameStr);
2940 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2941
2942 #if !wxUSE_TOGGLEBTN
2943 // implement dummy items for platforms that don't have this class
2944
2945 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2946
2947 class wxToggleButton : public wxControl
2948 {
2949 public:
2950 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2951 const wxPoint&, const wxSize&, long,
2952 const wxValidator&, const wxString&)
2953 { wxPyRaiseNotImplemented(); }
2954
2955 wxToggleButton()
2956 { wxPyRaiseNotImplemented(); }
2957 };
2958 #endif
2959
2960 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2961
2962 SWIGINTERNINLINE int
2963 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2964 {
2965 unsigned long v;
2966 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2967 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2968 return res;
2969 }
2970
2971 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2972 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2973 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2974 if (udata) {
2975 Py_INCREF(udata->m_obj);
2976 return udata->m_obj;
2977 } else {
2978 Py_INCREF(Py_None);
2979 return Py_None;
2980 }
2981 }
2982 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2983 self->SetClientData(new wxPyUserData(clientData));
2984 }
2985 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2986 wxPyUserData* udata = NULL;
2987 if (clientData && clientData != Py_None)
2988 udata = new wxPyUserData(clientData);
2989 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2990 shortHelp, longHelp, udata);
2991 }
2992 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2993 wxPyUserData* udata = NULL;
2994 if (clientData && clientData != Py_None)
2995 udata = new wxPyUserData(clientData);
2996 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2997 shortHelp, longHelp, udata);
2998 }
2999 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
3000 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3001 if (udata) {
3002 Py_INCREF(udata->m_obj);
3003 return udata->m_obj;
3004 } else {
3005 Py_INCREF(Py_None);
3006 return Py_None;
3007 }
3008 }
3009 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3010 self->SetToolClientData(id, new wxPyUserData(clientData));
3011 }
3012
3013 #include <wx/listctrl.h>
3014
3015 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3016 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3017 // Python aware sorting function for wxPyListCtrl
3018 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3019 int retval = 0;
3020 PyObject* func = (PyObject*)funcPtr;
3021 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3022
3023 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3024 PyObject* result = PyEval_CallObject(func, args);
3025 Py_DECREF(args);
3026 if (result) {
3027 retval = PyInt_AsLong(result);
3028 Py_DECREF(result);
3029 }
3030
3031 wxPyEndBlockThreads(blocked);
3032 return retval;
3033 }
3034
3035 // C++ Version of a Python aware class
3036 class wxPyListCtrl : public wxListCtrl {
3037 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3038 public:
3039 wxPyListCtrl() : wxListCtrl() {}
3040 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3041 const wxPoint& pos,
3042 const wxSize& size,
3043 long style,
3044 const wxValidator& validator,
3045 const wxString& name) :
3046 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3047
3048 bool Create(wxWindow* parent, wxWindowID id,
3049 const wxPoint& pos,
3050 const wxSize& size,
3051 long style,
3052 const wxValidator& validator,
3053 const wxString& name) {
3054 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3055 }
3056
3057 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3058 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3059
3060 // use the virtual version to avoid a confusing assert in the base class
3061 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3062 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3063
3064 PYPRIVATE;
3065 };
3066
3067 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3068
3069 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3070 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3071 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3072 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3073
3074
3075 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3076 wxListItem item;
3077 item.SetMask( wxLIST_MASK_STATE |
3078 wxLIST_MASK_TEXT |
3079 wxLIST_MASK_IMAGE |
3080 wxLIST_MASK_DATA |
3081 wxLIST_SET_ITEM |
3082 wxLIST_MASK_WIDTH |
3083 wxLIST_MASK_FORMAT
3084 );
3085 if (self->GetColumn(col, item))
3086 return new wxListItem(item);
3087 else
3088 return NULL;
3089 }
3090 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3091 wxListItem* info = new wxListItem;
3092 info->m_itemId = itemId;
3093 info->m_col = col;
3094 info->m_mask = 0xFFFF;
3095 self->GetItem(*info);
3096 return info;
3097 }
3098 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3099 wxPoint pos;
3100 self->GetItemPosition(item, pos);
3101 return pos;
3102 }
3103 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3104 wxRect rect;
3105 self->GetItemRect(item, rect, code);
3106 return rect;
3107 }
3108 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3109 if (!PyCallable_Check(func))
3110 return false;
3111 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3112 }
3113 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3114
3115 return self;
3116
3117
3118
3119 }
3120
3121 #include <wx/treectrl.h>
3122 #include "wx/wxPython/pytree.h"
3123
3124 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3125 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3126 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3127 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3128
3129 static wxTreeItemId wxNullTreeItemId;
3130
3131 // C++ version of Python aware wxTreeCtrl
3132 class wxPyTreeCtrl : public wxTreeCtrl {
3133 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3134 public:
3135 wxPyTreeCtrl() : wxTreeCtrl() {}
3136 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3137 const wxPoint& pos,
3138 const wxSize& size,
3139 long style,
3140 const wxValidator& validator,
3141 const wxString& name) :
3142 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3143
3144 bool Create(wxWindow *parent, wxWindowID id,
3145 const wxPoint& pos,
3146 const wxSize& size,
3147 long style,
3148 const wxValidator& validator,
3149 const wxString& name) {
3150 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3151 }
3152
3153
3154 int OnCompareItems(const wxTreeItemId& item1,
3155 const wxTreeItemId& item2) {
3156 int rval = 0;
3157 bool found;
3158 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3159 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3160 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3161 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3162 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3163 Py_DECREF(o1);
3164 Py_DECREF(o2);
3165 }
3166 wxPyEndBlockThreads(blocked);
3167 if (! found)
3168 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3169 return rval;
3170 }
3171 PYPRIVATE;
3172 };
3173
3174 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3175
3176
3177 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3178 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3179 if (data == NULL) {
3180 data = new wxPyTreeItemData();
3181 data->SetId(item); // set the id
3182 self->SetItemData(item, data);
3183 }
3184 return data;
3185 }
3186 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3187 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3188 if (data == NULL) {
3189 data = new wxPyTreeItemData();
3190 data->SetId(item); // set the id
3191 self->SetItemData(item, data);
3192 }
3193 return data->GetData();
3194 }
3195 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3196 data->SetId(item); // set the id
3197 self->SetItemData(item, data);
3198 }
3199 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3200 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3201 if (data == NULL) {
3202 data = new wxPyTreeItemData(obj);
3203 data->SetId(item); // set the id
3204 self->SetItemData(item, data);
3205 } else
3206 data->SetData(obj);
3207 }
3208 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3209 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3210 PyObject* rval = PyList_New(0);
3211 wxArrayTreeItemIds array;
3212 size_t num, x;
3213 num = self->GetSelections(array);
3214 for (x=0; x < num; x++) {
3215 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3216 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3217 PyList_Append(rval, item);
3218 Py_DECREF(item);
3219 }
3220 wxPyEndBlockThreads(blocked);
3221 return rval;
3222 }
3223 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3224 void* cookie = 0;
3225 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3226 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3227 PyObject* tup = PyTuple_New(2);
3228 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3229 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3230 wxPyEndBlockThreads(blocked);
3231 return tup;
3232 }
3233 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3234 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3235 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3236 PyObject* tup = PyTuple_New(2);
3237 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3238 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3239 wxPyEndBlockThreads(blocked);
3240 return tup;
3241 }
3242 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3243 wxRect rect;
3244 if (self->GetBoundingRect(item, rect, textOnly)) {
3245 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3246 wxRect* r = new wxRect(rect);
3247 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3248 wxPyEndBlockThreads(blocked);
3249 return val;
3250 }
3251 else
3252 RETURN_NONE();
3253 }
3254 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3255
3256 SWIGINTERNINLINE PyObject*
3257 SWIG_From_bool (bool value)
3258 {
3259 return PyBool_FromLong(value ? 1 : 0);
3260 }
3261
3262 // C++ version of Python aware wxControl
3263 class wxPyControl : public wxControl
3264 {
3265 DECLARE_DYNAMIC_CLASS(wxPyControl)
3266 public:
3267 wxPyControl() : wxControl() {}
3268 wxPyControl(wxWindow* parent, const wxWindowID id,
3269 const wxPoint& pos = wxDefaultPosition,
3270 const wxSize& size = wxDefaultSize,
3271 long style = 0,
3272 const wxValidator& validator=wxDefaultValidator,
3273 const wxString& name = wxPyControlNameStr)
3274 : wxControl(parent, id, pos, size, style, validator, name) {}
3275
3276
3277 bool DoEraseBackground(wxDC* dc) {
3278 #ifdef __WXMSW__
3279 return wxWindow::DoEraseBackground(dc->GetHDC());
3280 #else
3281 dc->SetBackground(wxBrush(GetBackgroundColour()));
3282 dc->Clear();
3283 return true;
3284 #endif
3285 }
3286
3287 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3288 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3289 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3290 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3291
3292 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3293 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3295
3296 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3297 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3298
3299 DEC_PYCALLBACK__(InitDialog);
3300 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3301 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3302 DEC_PYCALLBACK_BOOL_(Validate);
3303
3304 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3305 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3306 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3307
3308 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3309 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3310
3311 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3312 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3313
3314 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3315
3316 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3317
3318 PYPRIVATE;
3319 };
3320
3321 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3322
3323 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3324 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3325 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3326 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3327
3328 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3329 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3330 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3331
3332 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3333 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3334
3335 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3336 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3337 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3338 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3339
3340 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3341 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3342 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3343
3344 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3345 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3346
3347 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3348 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3349
3350 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3351
3352 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3353
3354
3355
3356 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3357
3358 #include <wx/generic/dragimgg.h>
3359
3360 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3361 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3362 wxDateTime rv;
3363 self->GetRange(&rv, NULL);
3364 return rv;
3365 }
3366 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3367 wxDateTime rv;
3368 self->GetRange(NULL, &rv);
3369 return rv;
3370 }
3371 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3372 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3373 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3374 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3375 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3376 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3377 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3378 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3379 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3380 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
3381
3382 #if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL
3383 // define a dummy class for builds that don't have wxSearchCtrl
3384
3385 enum {
3386 wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
3387 wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN
3388 };
3389
3390 class wxSearchCtrl : public wxTextCtrl
3391 {
3392 public:
3393 wxSearchCtrl() { wxPyRaiseNotImplemented(); }
3394 wxSearchCtrl(wxWindow*, wxWindowID,
3395 const wxString&,
3396 const wxPoint&,
3397 const wxSize&,
3398 long style,
3399 const wxValidator&,
3400 const wxString& name)
3401 { wxPyRaiseNotImplemented(); }
3402
3403 bool Create( wxWindow*, wxWindowID,
3404 const wxString&,
3405 const wxPoint&,
3406 const wxSize&,
3407 long style,
3408 const wxValidator&,
3409 const wxString& name) {}
3410
3411 virtual void SetMenu( wxMenu* ) {}
3412 virtual wxMenu* GetMenu() { return NULL; }
3413
3414 // get/set search options
3415 // ----------------------
3416 virtual void ShowSearchButton( bool ) {}
3417 virtual bool IsSearchButtonVisible() const { return false; }
3418
3419 virtual void ShowCancelButton( bool ) {}
3420 virtual bool IsCancelButtonVisible() const { return false; }
3421 };
3422 #endif
3423
3424 SWIGINTERN void wxSearchCtrl_SetSearchBitmap(wxSearchCtrl *self,wxBitmap const &){}
3425 SWIGINTERN void wxSearchCtrl_SetSearchMenuBitmap(wxSearchCtrl *self,wxBitmap const &){}
3426 SWIGINTERN void wxSearchCtrl_SetCancelBitmap(wxSearchCtrl *self,wxBitmap const &){}
3427 #ifdef __cplusplus
3428 extern "C" {
3429 #endif
3430 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3431 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3432 return 1;
3433 }
3434
3435
3436 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3437 PyObject *pyobj = 0;
3438
3439 {
3440 #if wxUSE_UNICODE
3441 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3442 #else
3443 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3444 #endif
3445 }
3446 return pyobj;
3447 }
3448
3449
3450 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3451 PyObject *resultobj = 0;
3452 wxWindow *arg1 = (wxWindow *) 0 ;
3453 int arg2 = (int) -1 ;
3454 wxString const &arg3_defvalue = wxPyEmptyString ;
3455 wxString *arg3 = (wxString *) &arg3_defvalue ;
3456 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3457 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3458 wxSize const &arg5_defvalue = wxDefaultSize ;
3459 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3460 long arg6 = (long) 0 ;
3461 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3462 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3463 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3464 wxString *arg8 = (wxString *) &arg8_defvalue ;
3465 wxButton *result = 0 ;
3466 void *argp1 = 0 ;
3467 int res1 = 0 ;
3468 int val2 ;
3469 int ecode2 = 0 ;
3470 bool temp3 = false ;
3471 wxPoint temp4 ;
3472 wxSize temp5 ;
3473 long val6 ;
3474 int ecode6 = 0 ;
3475 void *argp7 = 0 ;
3476 int res7 = 0 ;
3477 bool temp8 = false ;
3478 PyObject * obj0 = 0 ;
3479 PyObject * obj1 = 0 ;
3480 PyObject * obj2 = 0 ;
3481 PyObject * obj3 = 0 ;
3482 PyObject * obj4 = 0 ;
3483 PyObject * obj5 = 0 ;
3484 PyObject * obj6 = 0 ;
3485 PyObject * obj7 = 0 ;
3486 char * kwnames[] = {
3487 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3488 };
3489
3490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3492 if (!SWIG_IsOK(res1)) {
3493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3494 }
3495 arg1 = reinterpret_cast< wxWindow * >(argp1);
3496 if (obj1) {
3497 ecode2 = SWIG_AsVal_int(obj1, &val2);
3498 if (!SWIG_IsOK(ecode2)) {
3499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3500 }
3501 arg2 = static_cast< int >(val2);
3502 }
3503 if (obj2) {
3504 {
3505 arg3 = wxString_in_helper(obj2);
3506 if (arg3 == NULL) SWIG_fail;
3507 temp3 = true;
3508 }
3509 }
3510 if (obj3) {
3511 {
3512 arg4 = &temp4;
3513 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3514 }
3515 }
3516 if (obj4) {
3517 {
3518 arg5 = &temp5;
3519 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3520 }
3521 }
3522 if (obj5) {
3523 ecode6 = SWIG_AsVal_long(obj5, &val6);
3524 if (!SWIG_IsOK(ecode6)) {
3525 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3526 }
3527 arg6 = static_cast< long >(val6);
3528 }
3529 if (obj6) {
3530 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3531 if (!SWIG_IsOK(res7)) {
3532 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3533 }
3534 if (!argp7) {
3535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3536 }
3537 arg7 = reinterpret_cast< wxValidator * >(argp7);
3538 }
3539 if (obj7) {
3540 {
3541 arg8 = wxString_in_helper(obj7);
3542 if (arg8 == NULL) SWIG_fail;
3543 temp8 = true;
3544 }
3545 }
3546 {
3547 if (!wxPyCheckForApp()) SWIG_fail;
3548 PyThreadState* __tstate = wxPyBeginAllowThreads();
3549 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3550 wxPyEndAllowThreads(__tstate);
3551 if (PyErr_Occurred()) SWIG_fail;
3552 }
3553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3554 {
3555 if (temp3)
3556 delete arg3;
3557 }
3558 {
3559 if (temp8)
3560 delete arg8;
3561 }
3562 return resultobj;
3563 fail:
3564 {
3565 if (temp3)
3566 delete arg3;
3567 }
3568 {
3569 if (temp8)
3570 delete arg8;
3571 }
3572 return NULL;
3573 }
3574
3575
3576 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3577 PyObject *resultobj = 0;
3578 wxButton *result = 0 ;
3579
3580 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3581 {
3582 if (!wxPyCheckForApp()) SWIG_fail;
3583 PyThreadState* __tstate = wxPyBeginAllowThreads();
3584 result = (wxButton *)new wxButton();
3585 wxPyEndAllowThreads(__tstate);
3586 if (PyErr_Occurred()) SWIG_fail;
3587 }
3588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3589 return resultobj;
3590 fail:
3591 return NULL;
3592 }
3593
3594
3595 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3596 PyObject *resultobj = 0;
3597 wxButton *arg1 = (wxButton *) 0 ;
3598 wxWindow *arg2 = (wxWindow *) 0 ;
3599 int arg3 = (int) -1 ;
3600 wxString const &arg4_defvalue = wxPyEmptyString ;
3601 wxString *arg4 = (wxString *) &arg4_defvalue ;
3602 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3603 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3604 wxSize const &arg6_defvalue = wxDefaultSize ;
3605 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3606 long arg7 = (long) 0 ;
3607 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3608 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3609 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3610 wxString *arg9 = (wxString *) &arg9_defvalue ;
3611 bool result;
3612 void *argp1 = 0 ;
3613 int res1 = 0 ;
3614 void *argp2 = 0 ;
3615 int res2 = 0 ;
3616 int val3 ;
3617 int ecode3 = 0 ;
3618 bool temp4 = false ;
3619 wxPoint temp5 ;
3620 wxSize temp6 ;
3621 long val7 ;
3622 int ecode7 = 0 ;
3623 void *argp8 = 0 ;
3624 int res8 = 0 ;
3625 bool temp9 = false ;
3626 PyObject * obj0 = 0 ;
3627 PyObject * obj1 = 0 ;
3628 PyObject * obj2 = 0 ;
3629 PyObject * obj3 = 0 ;
3630 PyObject * obj4 = 0 ;
3631 PyObject * obj5 = 0 ;
3632 PyObject * obj6 = 0 ;
3633 PyObject * obj7 = 0 ;
3634 PyObject * obj8 = 0 ;
3635 char * kwnames[] = {
3636 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3637 };
3638
3639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3641 if (!SWIG_IsOK(res1)) {
3642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3643 }
3644 arg1 = reinterpret_cast< wxButton * >(argp1);
3645 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3646 if (!SWIG_IsOK(res2)) {
3647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3648 }
3649 arg2 = reinterpret_cast< wxWindow * >(argp2);
3650 if (obj2) {
3651 ecode3 = SWIG_AsVal_int(obj2, &val3);
3652 if (!SWIG_IsOK(ecode3)) {
3653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3654 }
3655 arg3 = static_cast< int >(val3);
3656 }
3657 if (obj3) {
3658 {
3659 arg4 = wxString_in_helper(obj3);
3660 if (arg4 == NULL) SWIG_fail;
3661 temp4 = true;
3662 }
3663 }
3664 if (obj4) {
3665 {
3666 arg5 = &temp5;
3667 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3668 }
3669 }
3670 if (obj5) {
3671 {
3672 arg6 = &temp6;
3673 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3674 }
3675 }
3676 if (obj6) {
3677 ecode7 = SWIG_AsVal_long(obj6, &val7);
3678 if (!SWIG_IsOK(ecode7)) {
3679 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3680 }
3681 arg7 = static_cast< long >(val7);
3682 }
3683 if (obj7) {
3684 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3685 if (!SWIG_IsOK(res8)) {
3686 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3687 }
3688 if (!argp8) {
3689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3690 }
3691 arg8 = reinterpret_cast< wxValidator * >(argp8);
3692 }
3693 if (obj8) {
3694 {
3695 arg9 = wxString_in_helper(obj8);
3696 if (arg9 == NULL) SWIG_fail;
3697 temp9 = true;
3698 }
3699 }
3700 {
3701 PyThreadState* __tstate = wxPyBeginAllowThreads();
3702 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3703 wxPyEndAllowThreads(__tstate);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 }
3706 {
3707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3708 }
3709 {
3710 if (temp4)
3711 delete arg4;
3712 }
3713 {
3714 if (temp9)
3715 delete arg9;
3716 }
3717 return resultobj;
3718 fail:
3719 {
3720 if (temp4)
3721 delete arg4;
3722 }
3723 {
3724 if (temp9)
3725 delete arg9;
3726 }
3727 return NULL;
3728 }
3729
3730
3731 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3732 PyObject *resultobj = 0;
3733 wxButton *arg1 = (wxButton *) 0 ;
3734 void *argp1 = 0 ;
3735 int res1 = 0 ;
3736 PyObject *swig_obj[1] ;
3737
3738 if (!args) SWIG_fail;
3739 swig_obj[0] = args;
3740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3741 if (!SWIG_IsOK(res1)) {
3742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3743 }
3744 arg1 = reinterpret_cast< wxButton * >(argp1);
3745 {
3746 PyThreadState* __tstate = wxPyBeginAllowThreads();
3747 (arg1)->SetDefault();
3748 wxPyEndAllowThreads(__tstate);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 }
3751 resultobj = SWIG_Py_Void();
3752 return resultobj;
3753 fail:
3754 return NULL;
3755 }
3756
3757
3758 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3759 PyObject *resultobj = 0;
3760 wxSize result;
3761
3762 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3763 {
3764 PyThreadState* __tstate = wxPyBeginAllowThreads();
3765 result = wxButton::GetDefaultSize();
3766 wxPyEndAllowThreads(__tstate);
3767 if (PyErr_Occurred()) SWIG_fail;
3768 }
3769 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3770 return resultobj;
3771 fail:
3772 return NULL;
3773 }
3774
3775
3776 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3777 PyObject *resultobj = 0;
3778 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3779 SwigValueWrapper<wxVisualAttributes > result;
3780 int val1 ;
3781 int ecode1 = 0 ;
3782 PyObject * obj0 = 0 ;
3783 char * kwnames[] = {
3784 (char *) "variant", NULL
3785 };
3786
3787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3788 if (obj0) {
3789 ecode1 = SWIG_AsVal_int(obj0, &val1);
3790 if (!SWIG_IsOK(ecode1)) {
3791 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3792 }
3793 arg1 = static_cast< wxWindowVariant >(val1);
3794 }
3795 {
3796 if (!wxPyCheckForApp()) SWIG_fail;
3797 PyThreadState* __tstate = wxPyBeginAllowThreads();
3798 result = wxButton::GetClassDefaultAttributes(arg1);
3799 wxPyEndAllowThreads(__tstate);
3800 if (PyErr_Occurred()) SWIG_fail;
3801 }
3802 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3803 return resultobj;
3804 fail:
3805 return NULL;
3806 }
3807
3808
3809 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3810 PyObject *obj;
3811 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3812 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3813 return SWIG_Py_Void();
3814 }
3815
3816 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3817 return SWIG_Python_InitShadowInstance(args);
3818 }
3819
3820 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3821 PyObject *resultobj = 0;
3822 wxWindow *arg1 = (wxWindow *) 0 ;
3823 int arg2 = (int) -1 ;
3824 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3825 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3826 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3827 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3828 wxSize const &arg5_defvalue = wxDefaultSize ;
3829 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3830 long arg6 = (long) wxBU_AUTODRAW ;
3831 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3832 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3833 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3834 wxString *arg8 = (wxString *) &arg8_defvalue ;
3835 wxBitmapButton *result = 0 ;
3836 void *argp1 = 0 ;
3837 int res1 = 0 ;
3838 int val2 ;
3839 int ecode2 = 0 ;
3840 void *argp3 = 0 ;
3841 int res3 = 0 ;
3842 wxPoint temp4 ;
3843 wxSize temp5 ;
3844 long val6 ;
3845 int ecode6 = 0 ;
3846 void *argp7 = 0 ;
3847 int res7 = 0 ;
3848 bool temp8 = false ;
3849 PyObject * obj0 = 0 ;
3850 PyObject * obj1 = 0 ;
3851 PyObject * obj2 = 0 ;
3852 PyObject * obj3 = 0 ;
3853 PyObject * obj4 = 0 ;
3854 PyObject * obj5 = 0 ;
3855 PyObject * obj6 = 0 ;
3856 PyObject * obj7 = 0 ;
3857 char * kwnames[] = {
3858 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3859 };
3860
3861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3863 if (!SWIG_IsOK(res1)) {
3864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3865 }
3866 arg1 = reinterpret_cast< wxWindow * >(argp1);
3867 if (obj1) {
3868 ecode2 = SWIG_AsVal_int(obj1, &val2);
3869 if (!SWIG_IsOK(ecode2)) {
3870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3871 }
3872 arg2 = static_cast< int >(val2);
3873 }
3874 if (obj2) {
3875 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3876 if (!SWIG_IsOK(res3)) {
3877 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3878 }
3879 if (!argp3) {
3880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3881 }
3882 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3883 }
3884 if (obj3) {
3885 {
3886 arg4 = &temp4;
3887 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3888 }
3889 }
3890 if (obj4) {
3891 {
3892 arg5 = &temp5;
3893 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3894 }
3895 }
3896 if (obj5) {
3897 ecode6 = SWIG_AsVal_long(obj5, &val6);
3898 if (!SWIG_IsOK(ecode6)) {
3899 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3900 }
3901 arg6 = static_cast< long >(val6);
3902 }
3903 if (obj6) {
3904 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3905 if (!SWIG_IsOK(res7)) {
3906 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3907 }
3908 if (!argp7) {
3909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3910 }
3911 arg7 = reinterpret_cast< wxValidator * >(argp7);
3912 }
3913 if (obj7) {
3914 {
3915 arg8 = wxString_in_helper(obj7);
3916 if (arg8 == NULL) SWIG_fail;
3917 temp8 = true;
3918 }
3919 }
3920 {
3921 if (!wxPyCheckForApp()) SWIG_fail;
3922 PyThreadState* __tstate = wxPyBeginAllowThreads();
3923 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3924 wxPyEndAllowThreads(__tstate);
3925 if (PyErr_Occurred()) SWIG_fail;
3926 }
3927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3928 {
3929 if (temp8)
3930 delete arg8;
3931 }
3932 return resultobj;
3933 fail:
3934 {
3935 if (temp8)
3936 delete arg8;
3937 }
3938 return NULL;
3939 }
3940
3941
3942 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3943 PyObject *resultobj = 0;
3944 wxBitmapButton *result = 0 ;
3945
3946 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3947 {
3948 if (!wxPyCheckForApp()) SWIG_fail;
3949 PyThreadState* __tstate = wxPyBeginAllowThreads();
3950 result = (wxBitmapButton *)new wxBitmapButton();
3951 wxPyEndAllowThreads(__tstate);
3952 if (PyErr_Occurred()) SWIG_fail;
3953 }
3954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3955 return resultobj;
3956 fail:
3957 return NULL;
3958 }
3959
3960
3961 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3962 PyObject *resultobj = 0;
3963 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3964 wxWindow *arg2 = (wxWindow *) 0 ;
3965 int arg3 = (int) -1 ;
3966 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3967 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3968 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3969 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3970 wxSize const &arg6_defvalue = wxDefaultSize ;
3971 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3972 long arg7 = (long) wxBU_AUTODRAW ;
3973 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3974 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3975 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3976 wxString *arg9 = (wxString *) &arg9_defvalue ;
3977 bool result;
3978 void *argp1 = 0 ;
3979 int res1 = 0 ;
3980 void *argp2 = 0 ;
3981 int res2 = 0 ;
3982 int val3 ;
3983 int ecode3 = 0 ;
3984 void *argp4 = 0 ;
3985 int res4 = 0 ;
3986 wxPoint temp5 ;
3987 wxSize temp6 ;
3988 long val7 ;
3989 int ecode7 = 0 ;
3990 void *argp8 = 0 ;
3991 int res8 = 0 ;
3992 bool temp9 = false ;
3993 PyObject * obj0 = 0 ;
3994 PyObject * obj1 = 0 ;
3995 PyObject * obj2 = 0 ;
3996 PyObject * obj3 = 0 ;
3997 PyObject * obj4 = 0 ;
3998 PyObject * obj5 = 0 ;
3999 PyObject * obj6 = 0 ;
4000 PyObject * obj7 = 0 ;
4001 PyObject * obj8 = 0 ;
4002 char * kwnames[] = {
4003 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4004 };
4005
4006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4008 if (!SWIG_IsOK(res1)) {
4009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4010 }
4011 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4012 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4013 if (!SWIG_IsOK(res2)) {
4014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4015 }
4016 arg2 = reinterpret_cast< wxWindow * >(argp2);
4017 if (obj2) {
4018 ecode3 = SWIG_AsVal_int(obj2, &val3);
4019 if (!SWIG_IsOK(ecode3)) {
4020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
4021 }
4022 arg3 = static_cast< int >(val3);
4023 }
4024 if (obj3) {
4025 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
4026 if (!SWIG_IsOK(res4)) {
4027 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4028 }
4029 if (!argp4) {
4030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4031 }
4032 arg4 = reinterpret_cast< wxBitmap * >(argp4);
4033 }
4034 if (obj4) {
4035 {
4036 arg5 = &temp5;
4037 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4038 }
4039 }
4040 if (obj5) {
4041 {
4042 arg6 = &temp6;
4043 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4044 }
4045 }
4046 if (obj6) {
4047 ecode7 = SWIG_AsVal_long(obj6, &val7);
4048 if (!SWIG_IsOK(ecode7)) {
4049 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4050 }
4051 arg7 = static_cast< long >(val7);
4052 }
4053 if (obj7) {
4054 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4055 if (!SWIG_IsOK(res8)) {
4056 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4057 }
4058 if (!argp8) {
4059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4060 }
4061 arg8 = reinterpret_cast< wxValidator * >(argp8);
4062 }
4063 if (obj8) {
4064 {
4065 arg9 = wxString_in_helper(obj8);
4066 if (arg9 == NULL) SWIG_fail;
4067 temp9 = true;
4068 }
4069 }
4070 {
4071 PyThreadState* __tstate = wxPyBeginAllowThreads();
4072 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4073 wxPyEndAllowThreads(__tstate);
4074 if (PyErr_Occurred()) SWIG_fail;
4075 }
4076 {
4077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4078 }
4079 {
4080 if (temp9)
4081 delete arg9;
4082 }
4083 return resultobj;
4084 fail:
4085 {
4086 if (temp9)
4087 delete arg9;
4088 }
4089 return NULL;
4090 }
4091
4092
4093 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4094 PyObject *resultobj = 0;
4095 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4096 wxBitmap result;
4097 void *argp1 = 0 ;
4098 int res1 = 0 ;
4099 PyObject *swig_obj[1] ;
4100
4101 if (!args) SWIG_fail;
4102 swig_obj[0] = args;
4103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4104 if (!SWIG_IsOK(res1)) {
4105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4106 }
4107 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4108 {
4109 PyThreadState* __tstate = wxPyBeginAllowThreads();
4110 result = (arg1)->GetBitmapLabel();
4111 wxPyEndAllowThreads(__tstate);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4115 return resultobj;
4116 fail:
4117 return NULL;
4118 }
4119
4120
4121 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4122 PyObject *resultobj = 0;
4123 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4124 wxBitmap result;
4125 void *argp1 = 0 ;
4126 int res1 = 0 ;
4127 PyObject *swig_obj[1] ;
4128
4129 if (!args) SWIG_fail;
4130 swig_obj[0] = args;
4131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4132 if (!SWIG_IsOK(res1)) {
4133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4134 }
4135 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4136 {
4137 PyThreadState* __tstate = wxPyBeginAllowThreads();
4138 result = (arg1)->GetBitmapDisabled();
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4143 return resultobj;
4144 fail:
4145 return NULL;
4146 }
4147
4148
4149 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4150 PyObject *resultobj = 0;
4151 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4152 wxBitmap result;
4153 void *argp1 = 0 ;
4154 int res1 = 0 ;
4155 PyObject *swig_obj[1] ;
4156
4157 if (!args) SWIG_fail;
4158 swig_obj[0] = args;
4159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4160 if (!SWIG_IsOK(res1)) {
4161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4162 }
4163 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4164 {
4165 PyThreadState* __tstate = wxPyBeginAllowThreads();
4166 result = (arg1)->GetBitmapFocus();
4167 wxPyEndAllowThreads(__tstate);
4168 if (PyErr_Occurred()) SWIG_fail;
4169 }
4170 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4171 return resultobj;
4172 fail:
4173 return NULL;
4174 }
4175
4176
4177 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4178 PyObject *resultobj = 0;
4179 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4180 wxBitmap result;
4181 void *argp1 = 0 ;
4182 int res1 = 0 ;
4183 PyObject *swig_obj[1] ;
4184
4185 if (!args) SWIG_fail;
4186 swig_obj[0] = args;
4187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4188 if (!SWIG_IsOK(res1)) {
4189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4190 }
4191 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4192 {
4193 PyThreadState* __tstate = wxPyBeginAllowThreads();
4194 result = (arg1)->GetBitmapSelected();
4195 wxPyEndAllowThreads(__tstate);
4196 if (PyErr_Occurred()) SWIG_fail;
4197 }
4198 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4199 return resultobj;
4200 fail:
4201 return NULL;
4202 }
4203
4204
4205 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4206 PyObject *resultobj = 0;
4207 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4208 wxBitmap result;
4209 void *argp1 = 0 ;
4210 int res1 = 0 ;
4211 PyObject *swig_obj[1] ;
4212
4213 if (!args) SWIG_fail;
4214 swig_obj[0] = args;
4215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4216 if (!SWIG_IsOK(res1)) {
4217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4218 }
4219 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4220 {
4221 PyThreadState* __tstate = wxPyBeginAllowThreads();
4222 result = (arg1)->GetBitmapHover();
4223 wxPyEndAllowThreads(__tstate);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4227 return resultobj;
4228 fail:
4229 return NULL;
4230 }
4231
4232
4233 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4234 PyObject *resultobj = 0;
4235 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4236 wxBitmap *arg2 = 0 ;
4237 void *argp1 = 0 ;
4238 int res1 = 0 ;
4239 void *argp2 = 0 ;
4240 int res2 = 0 ;
4241 PyObject * obj0 = 0 ;
4242 PyObject * obj1 = 0 ;
4243 char * kwnames[] = {
4244 (char *) "self",(char *) "bitmap", NULL
4245 };
4246
4247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4249 if (!SWIG_IsOK(res1)) {
4250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4251 }
4252 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4253 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4254 if (!SWIG_IsOK(res2)) {
4255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4256 }
4257 if (!argp2) {
4258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4259 }
4260 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4261 {
4262 PyThreadState* __tstate = wxPyBeginAllowThreads();
4263 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4264 wxPyEndAllowThreads(__tstate);
4265 if (PyErr_Occurred()) SWIG_fail;
4266 }
4267 resultobj = SWIG_Py_Void();
4268 return resultobj;
4269 fail:
4270 return NULL;
4271 }
4272
4273
4274 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4275 PyObject *resultobj = 0;
4276 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4277 wxBitmap *arg2 = 0 ;
4278 void *argp1 = 0 ;
4279 int res1 = 0 ;
4280 void *argp2 = 0 ;
4281 int res2 = 0 ;
4282 PyObject * obj0 = 0 ;
4283 PyObject * obj1 = 0 ;
4284 char * kwnames[] = {
4285 (char *) "self",(char *) "bitmap", NULL
4286 };
4287
4288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4290 if (!SWIG_IsOK(res1)) {
4291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4292 }
4293 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4295 if (!SWIG_IsOK(res2)) {
4296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4297 }
4298 if (!argp2) {
4299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4300 }
4301 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4302 {
4303 PyThreadState* __tstate = wxPyBeginAllowThreads();
4304 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4305 wxPyEndAllowThreads(__tstate);
4306 if (PyErr_Occurred()) SWIG_fail;
4307 }
4308 resultobj = SWIG_Py_Void();
4309 return resultobj;
4310 fail:
4311 return NULL;
4312 }
4313
4314
4315 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4316 PyObject *resultobj = 0;
4317 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4318 wxBitmap *arg2 = 0 ;
4319 void *argp1 = 0 ;
4320 int res1 = 0 ;
4321 void *argp2 = 0 ;
4322 int res2 = 0 ;
4323 PyObject * obj0 = 0 ;
4324 PyObject * obj1 = 0 ;
4325 char * kwnames[] = {
4326 (char *) "self",(char *) "bitmap", NULL
4327 };
4328
4329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4331 if (!SWIG_IsOK(res1)) {
4332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4333 }
4334 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4335 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4336 if (!SWIG_IsOK(res2)) {
4337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4338 }
4339 if (!argp2) {
4340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4341 }
4342 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4343 {
4344 PyThreadState* __tstate = wxPyBeginAllowThreads();
4345 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 resultobj = SWIG_Py_Void();
4350 return resultobj;
4351 fail:
4352 return NULL;
4353 }
4354
4355
4356 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4357 PyObject *resultobj = 0;
4358 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4359 wxBitmap *arg2 = 0 ;
4360 void *argp1 = 0 ;
4361 int res1 = 0 ;
4362 void *argp2 = 0 ;
4363 int res2 = 0 ;
4364 PyObject * obj0 = 0 ;
4365 PyObject * obj1 = 0 ;
4366 char * kwnames[] = {
4367 (char *) "self",(char *) "bitmap", NULL
4368 };
4369
4370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4372 if (!SWIG_IsOK(res1)) {
4373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4374 }
4375 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4376 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4377 if (!SWIG_IsOK(res2)) {
4378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4379 }
4380 if (!argp2) {
4381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4382 }
4383 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4384 {
4385 PyThreadState* __tstate = wxPyBeginAllowThreads();
4386 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4387 wxPyEndAllowThreads(__tstate);
4388 if (PyErr_Occurred()) SWIG_fail;
4389 }
4390 resultobj = SWIG_Py_Void();
4391 return resultobj;
4392 fail:
4393 return NULL;
4394 }
4395
4396
4397 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4398 PyObject *resultobj = 0;
4399 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4400 wxBitmap *arg2 = 0 ;
4401 void *argp1 = 0 ;
4402 int res1 = 0 ;
4403 void *argp2 = 0 ;
4404 int res2 = 0 ;
4405 PyObject * obj0 = 0 ;
4406 PyObject * obj1 = 0 ;
4407 char * kwnames[] = {
4408 (char *) "self",(char *) "hover", NULL
4409 };
4410
4411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4413 if (!SWIG_IsOK(res1)) {
4414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4415 }
4416 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4417 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4418 if (!SWIG_IsOK(res2)) {
4419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4420 }
4421 if (!argp2) {
4422 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4423 }
4424 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
4427 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4428 wxPyEndAllowThreads(__tstate);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 resultobj = SWIG_Py_Void();
4432 return resultobj;
4433 fail:
4434 return NULL;
4435 }
4436
4437
4438 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4439 PyObject *resultobj = 0;
4440 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4441 int arg2 ;
4442 int arg3 ;
4443 void *argp1 = 0 ;
4444 int res1 = 0 ;
4445 int val2 ;
4446 int ecode2 = 0 ;
4447 int val3 ;
4448 int ecode3 = 0 ;
4449 PyObject * obj0 = 0 ;
4450 PyObject * obj1 = 0 ;
4451 PyObject * obj2 = 0 ;
4452 char * kwnames[] = {
4453 (char *) "self",(char *) "x",(char *) "y", NULL
4454 };
4455
4456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4458 if (!SWIG_IsOK(res1)) {
4459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4460 }
4461 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4462 ecode2 = SWIG_AsVal_int(obj1, &val2);
4463 if (!SWIG_IsOK(ecode2)) {
4464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4465 }
4466 arg2 = static_cast< int >(val2);
4467 ecode3 = SWIG_AsVal_int(obj2, &val3);
4468 if (!SWIG_IsOK(ecode3)) {
4469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4470 }
4471 arg3 = static_cast< int >(val3);
4472 {
4473 PyThreadState* __tstate = wxPyBeginAllowThreads();
4474 (arg1)->SetMargins(arg2,arg3);
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 resultobj = SWIG_Py_Void();
4479 return resultobj;
4480 fail:
4481 return NULL;
4482 }
4483
4484
4485 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4486 PyObject *resultobj = 0;
4487 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4488 int result;
4489 void *argp1 = 0 ;
4490 int res1 = 0 ;
4491 PyObject *swig_obj[1] ;
4492
4493 if (!args) SWIG_fail;
4494 swig_obj[0] = args;
4495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4496 if (!SWIG_IsOK(res1)) {
4497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4498 }
4499 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4500 {
4501 PyThreadState* __tstate = wxPyBeginAllowThreads();
4502 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 resultobj = SWIG_From_int(static_cast< int >(result));
4507 return resultobj;
4508 fail:
4509 return NULL;
4510 }
4511
4512
4513 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4514 PyObject *resultobj = 0;
4515 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4516 int result;
4517 void *argp1 = 0 ;
4518 int res1 = 0 ;
4519 PyObject *swig_obj[1] ;
4520
4521 if (!args) SWIG_fail;
4522 swig_obj[0] = args;
4523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4524 if (!SWIG_IsOK(res1)) {
4525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4526 }
4527 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4528 {
4529 PyThreadState* __tstate = wxPyBeginAllowThreads();
4530 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4531 wxPyEndAllowThreads(__tstate);
4532 if (PyErr_Occurred()) SWIG_fail;
4533 }
4534 resultobj = SWIG_From_int(static_cast< int >(result));
4535 return resultobj;
4536 fail:
4537 return NULL;
4538 }
4539
4540
4541 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4542 PyObject *obj;
4543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4544 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4545 return SWIG_Py_Void();
4546 }
4547
4548 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4549 return SWIG_Python_InitShadowInstance(args);
4550 }
4551
4552 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4553 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4554 return 1;
4555 }
4556
4557
4558 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4559 PyObject *pyobj = 0;
4560
4561 {
4562 #if wxUSE_UNICODE
4563 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4564 #else
4565 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4566 #endif
4567 }
4568 return pyobj;
4569 }
4570
4571
4572 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4573 PyObject *resultobj = 0;
4574 wxWindow *arg1 = (wxWindow *) 0 ;
4575 int arg2 = (int) -1 ;
4576 wxString const &arg3_defvalue = wxPyEmptyString ;
4577 wxString *arg3 = (wxString *) &arg3_defvalue ;
4578 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4579 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4580 wxSize const &arg5_defvalue = wxDefaultSize ;
4581 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4582 long arg6 = (long) 0 ;
4583 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4584 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4585 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4586 wxString *arg8 = (wxString *) &arg8_defvalue ;
4587 wxCheckBox *result = 0 ;
4588 void *argp1 = 0 ;
4589 int res1 = 0 ;
4590 int val2 ;
4591 int ecode2 = 0 ;
4592 bool temp3 = false ;
4593 wxPoint temp4 ;
4594 wxSize temp5 ;
4595 long val6 ;
4596 int ecode6 = 0 ;
4597 void *argp7 = 0 ;
4598 int res7 = 0 ;
4599 bool temp8 = false ;
4600 PyObject * obj0 = 0 ;
4601 PyObject * obj1 = 0 ;
4602 PyObject * obj2 = 0 ;
4603 PyObject * obj3 = 0 ;
4604 PyObject * obj4 = 0 ;
4605 PyObject * obj5 = 0 ;
4606 PyObject * obj6 = 0 ;
4607 PyObject * obj7 = 0 ;
4608 char * kwnames[] = {
4609 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4610 };
4611
4612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4614 if (!SWIG_IsOK(res1)) {
4615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4616 }
4617 arg1 = reinterpret_cast< wxWindow * >(argp1);
4618 if (obj1) {
4619 ecode2 = SWIG_AsVal_int(obj1, &val2);
4620 if (!SWIG_IsOK(ecode2)) {
4621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4622 }
4623 arg2 = static_cast< int >(val2);
4624 }
4625 if (obj2) {
4626 {
4627 arg3 = wxString_in_helper(obj2);
4628 if (arg3 == NULL) SWIG_fail;
4629 temp3 = true;
4630 }
4631 }
4632 if (obj3) {
4633 {
4634 arg4 = &temp4;
4635 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4636 }
4637 }
4638 if (obj4) {
4639 {
4640 arg5 = &temp5;
4641 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4642 }
4643 }
4644 if (obj5) {
4645 ecode6 = SWIG_AsVal_long(obj5, &val6);
4646 if (!SWIG_IsOK(ecode6)) {
4647 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4648 }
4649 arg6 = static_cast< long >(val6);
4650 }
4651 if (obj6) {
4652 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4653 if (!SWIG_IsOK(res7)) {
4654 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4655 }
4656 if (!argp7) {
4657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4658 }
4659 arg7 = reinterpret_cast< wxValidator * >(argp7);
4660 }
4661 if (obj7) {
4662 {
4663 arg8 = wxString_in_helper(obj7);
4664 if (arg8 == NULL) SWIG_fail;
4665 temp8 = true;
4666 }
4667 }
4668 {
4669 if (!wxPyCheckForApp()) SWIG_fail;
4670 PyThreadState* __tstate = wxPyBeginAllowThreads();
4671 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4672 wxPyEndAllowThreads(__tstate);
4673 if (PyErr_Occurred()) SWIG_fail;
4674 }
4675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4676 {
4677 if (temp3)
4678 delete arg3;
4679 }
4680 {
4681 if (temp8)
4682 delete arg8;
4683 }
4684 return resultobj;
4685 fail:
4686 {
4687 if (temp3)
4688 delete arg3;
4689 }
4690 {
4691 if (temp8)
4692 delete arg8;
4693 }
4694 return NULL;
4695 }
4696
4697
4698 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4699 PyObject *resultobj = 0;
4700 wxCheckBox *result = 0 ;
4701
4702 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4703 {
4704 if (!wxPyCheckForApp()) SWIG_fail;
4705 PyThreadState* __tstate = wxPyBeginAllowThreads();
4706 result = (wxCheckBox *)new wxCheckBox();
4707 wxPyEndAllowThreads(__tstate);
4708 if (PyErr_Occurred()) SWIG_fail;
4709 }
4710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4711 return resultobj;
4712 fail:
4713 return NULL;
4714 }
4715
4716
4717 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4718 PyObject *resultobj = 0;
4719 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4720 wxWindow *arg2 = (wxWindow *) 0 ;
4721 int arg3 = (int) -1 ;
4722 wxString const &arg4_defvalue = wxPyEmptyString ;
4723 wxString *arg4 = (wxString *) &arg4_defvalue ;
4724 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4725 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4726 wxSize const &arg6_defvalue = wxDefaultSize ;
4727 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4728 long arg7 = (long) 0 ;
4729 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4730 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4731 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4732 wxString *arg9 = (wxString *) &arg9_defvalue ;
4733 bool result;
4734 void *argp1 = 0 ;
4735 int res1 = 0 ;
4736 void *argp2 = 0 ;
4737 int res2 = 0 ;
4738 int val3 ;
4739 int ecode3 = 0 ;
4740 bool temp4 = false ;
4741 wxPoint temp5 ;
4742 wxSize temp6 ;
4743 long val7 ;
4744 int ecode7 = 0 ;
4745 void *argp8 = 0 ;
4746 int res8 = 0 ;
4747 bool temp9 = false ;
4748 PyObject * obj0 = 0 ;
4749 PyObject * obj1 = 0 ;
4750 PyObject * obj2 = 0 ;
4751 PyObject * obj3 = 0 ;
4752 PyObject * obj4 = 0 ;
4753 PyObject * obj5 = 0 ;
4754 PyObject * obj6 = 0 ;
4755 PyObject * obj7 = 0 ;
4756 PyObject * obj8 = 0 ;
4757 char * kwnames[] = {
4758 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4759 };
4760
4761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4763 if (!SWIG_IsOK(res1)) {
4764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4765 }
4766 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4768 if (!SWIG_IsOK(res2)) {
4769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4770 }
4771 arg2 = reinterpret_cast< wxWindow * >(argp2);
4772 if (obj2) {
4773 ecode3 = SWIG_AsVal_int(obj2, &val3);
4774 if (!SWIG_IsOK(ecode3)) {
4775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4776 }
4777 arg3 = static_cast< int >(val3);
4778 }
4779 if (obj3) {
4780 {
4781 arg4 = wxString_in_helper(obj3);
4782 if (arg4 == NULL) SWIG_fail;
4783 temp4 = true;
4784 }
4785 }
4786 if (obj4) {
4787 {
4788 arg5 = &temp5;
4789 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4790 }
4791 }
4792 if (obj5) {
4793 {
4794 arg6 = &temp6;
4795 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4796 }
4797 }
4798 if (obj6) {
4799 ecode7 = SWIG_AsVal_long(obj6, &val7);
4800 if (!SWIG_IsOK(ecode7)) {
4801 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4802 }
4803 arg7 = static_cast< long >(val7);
4804 }
4805 if (obj7) {
4806 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4807 if (!SWIG_IsOK(res8)) {
4808 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4809 }
4810 if (!argp8) {
4811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4812 }
4813 arg8 = reinterpret_cast< wxValidator * >(argp8);
4814 }
4815 if (obj8) {
4816 {
4817 arg9 = wxString_in_helper(obj8);
4818 if (arg9 == NULL) SWIG_fail;
4819 temp9 = true;
4820 }
4821 }
4822 {
4823 PyThreadState* __tstate = wxPyBeginAllowThreads();
4824 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4825 wxPyEndAllowThreads(__tstate);
4826 if (PyErr_Occurred()) SWIG_fail;
4827 }
4828 {
4829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4830 }
4831 {
4832 if (temp4)
4833 delete arg4;
4834 }
4835 {
4836 if (temp9)
4837 delete arg9;
4838 }
4839 return resultobj;
4840 fail:
4841 {
4842 if (temp4)
4843 delete arg4;
4844 }
4845 {
4846 if (temp9)
4847 delete arg9;
4848 }
4849 return NULL;
4850 }
4851
4852
4853 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4854 PyObject *resultobj = 0;
4855 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4856 bool result;
4857 void *argp1 = 0 ;
4858 int res1 = 0 ;
4859 PyObject *swig_obj[1] ;
4860
4861 if (!args) SWIG_fail;
4862 swig_obj[0] = args;
4863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4864 if (!SWIG_IsOK(res1)) {
4865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4866 }
4867 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4868 {
4869 PyThreadState* __tstate = wxPyBeginAllowThreads();
4870 result = (bool)(arg1)->GetValue();
4871 wxPyEndAllowThreads(__tstate);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 }
4874 {
4875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4876 }
4877 return resultobj;
4878 fail:
4879 return NULL;
4880 }
4881
4882
4883 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4884 PyObject *resultobj = 0;
4885 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4886 bool result;
4887 void *argp1 = 0 ;
4888 int res1 = 0 ;
4889 PyObject *swig_obj[1] ;
4890
4891 if (!args) SWIG_fail;
4892 swig_obj[0] = args;
4893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4894 if (!SWIG_IsOK(res1)) {
4895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4896 }
4897 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4898 {
4899 PyThreadState* __tstate = wxPyBeginAllowThreads();
4900 result = (bool)(arg1)->IsChecked();
4901 wxPyEndAllowThreads(__tstate);
4902 if (PyErr_Occurred()) SWIG_fail;
4903 }
4904 {
4905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4906 }
4907 return resultobj;
4908 fail:
4909 return NULL;
4910 }
4911
4912
4913 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4914 PyObject *resultobj = 0;
4915 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4916 bool arg2 ;
4917 void *argp1 = 0 ;
4918 int res1 = 0 ;
4919 bool val2 ;
4920 int ecode2 = 0 ;
4921 PyObject * obj0 = 0 ;
4922 PyObject * obj1 = 0 ;
4923 char * kwnames[] = {
4924 (char *) "self",(char *) "state", NULL
4925 };
4926
4927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4929 if (!SWIG_IsOK(res1)) {
4930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4931 }
4932 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4933 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4934 if (!SWIG_IsOK(ecode2)) {
4935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4936 }
4937 arg2 = static_cast< bool >(val2);
4938 {
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 (arg1)->SetValue(arg2);
4941 wxPyEndAllowThreads(__tstate);
4942 if (PyErr_Occurred()) SWIG_fail;
4943 }
4944 resultobj = SWIG_Py_Void();
4945 return resultobj;
4946 fail:
4947 return NULL;
4948 }
4949
4950
4951 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4952 PyObject *resultobj = 0;
4953 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4954 wxCheckBoxState result;
4955 void *argp1 = 0 ;
4956 int res1 = 0 ;
4957 PyObject *swig_obj[1] ;
4958
4959 if (!args) SWIG_fail;
4960 swig_obj[0] = args;
4961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4962 if (!SWIG_IsOK(res1)) {
4963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4964 }
4965 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4966 {
4967 PyThreadState* __tstate = wxPyBeginAllowThreads();
4968 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4969 wxPyEndAllowThreads(__tstate);
4970 if (PyErr_Occurred()) SWIG_fail;
4971 }
4972 resultobj = SWIG_From_int(static_cast< int >(result));
4973 return resultobj;
4974 fail:
4975 return NULL;
4976 }
4977
4978
4979 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4980 PyObject *resultobj = 0;
4981 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4982 wxCheckBoxState arg2 ;
4983 void *argp1 = 0 ;
4984 int res1 = 0 ;
4985 int val2 ;
4986 int ecode2 = 0 ;
4987 PyObject * obj0 = 0 ;
4988 PyObject * obj1 = 0 ;
4989 char * kwnames[] = {
4990 (char *) "self",(char *) "state", NULL
4991 };
4992
4993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4995 if (!SWIG_IsOK(res1)) {
4996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4997 }
4998 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4999 ecode2 = SWIG_AsVal_int(obj1, &val2);
5000 if (!SWIG_IsOK(ecode2)) {
5001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
5002 }
5003 arg2 = static_cast< wxCheckBoxState >(val2);
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 (arg1)->Set3StateValue(arg2);
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 resultobj = SWIG_Py_Void();
5011 return resultobj;
5012 fail:
5013 return NULL;
5014 }
5015
5016
5017 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5018 PyObject *resultobj = 0;
5019 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5020 bool result;
5021 void *argp1 = 0 ;
5022 int res1 = 0 ;
5023 PyObject *swig_obj[1] ;
5024
5025 if (!args) SWIG_fail;
5026 swig_obj[0] = args;
5027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5028 if (!SWIG_IsOK(res1)) {
5029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5030 }
5031 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
5034 result = (bool)((wxCheckBox const *)arg1)->Is3State();
5035 wxPyEndAllowThreads(__tstate);
5036 if (PyErr_Occurred()) SWIG_fail;
5037 }
5038 {
5039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5040 }
5041 return resultobj;
5042 fail:
5043 return NULL;
5044 }
5045
5046
5047 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5048 PyObject *resultobj = 0;
5049 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5050 bool result;
5051 void *argp1 = 0 ;
5052 int res1 = 0 ;
5053 PyObject *swig_obj[1] ;
5054
5055 if (!args) SWIG_fail;
5056 swig_obj[0] = args;
5057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5058 if (!SWIG_IsOK(res1)) {
5059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5060 }
5061 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5062 {
5063 PyThreadState* __tstate = wxPyBeginAllowThreads();
5064 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5065 wxPyEndAllowThreads(__tstate);
5066 if (PyErr_Occurred()) SWIG_fail;
5067 }
5068 {
5069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5070 }
5071 return resultobj;
5072 fail:
5073 return NULL;
5074 }
5075
5076
5077 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5078 PyObject *resultobj = 0;
5079 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5080 SwigValueWrapper<wxVisualAttributes > result;
5081 int val1 ;
5082 int ecode1 = 0 ;
5083 PyObject * obj0 = 0 ;
5084 char * kwnames[] = {
5085 (char *) "variant", NULL
5086 };
5087
5088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5089 if (obj0) {
5090 ecode1 = SWIG_AsVal_int(obj0, &val1);
5091 if (!SWIG_IsOK(ecode1)) {
5092 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5093 }
5094 arg1 = static_cast< wxWindowVariant >(val1);
5095 }
5096 {
5097 if (!wxPyCheckForApp()) SWIG_fail;
5098 PyThreadState* __tstate = wxPyBeginAllowThreads();
5099 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5100 wxPyEndAllowThreads(__tstate);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 }
5103 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5104 return resultobj;
5105 fail:
5106 return NULL;
5107 }
5108
5109
5110 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5111 PyObject *obj;
5112 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5113 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5114 return SWIG_Py_Void();
5115 }
5116
5117 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5118 return SWIG_Python_InitShadowInstance(args);
5119 }
5120
5121 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5122 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5123 return 1;
5124 }
5125
5126
5127 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5128 PyObject *pyobj = 0;
5129
5130 {
5131 #if wxUSE_UNICODE
5132 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5133 #else
5134 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5135 #endif
5136 }
5137 return pyobj;
5138 }
5139
5140
5141 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5142 PyObject *resultobj = 0;
5143 wxWindow *arg1 = (wxWindow *) 0 ;
5144 int arg2 = (int) -1 ;
5145 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5146 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5147 wxSize const &arg4_defvalue = wxDefaultSize ;
5148 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5149 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5150 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5151 long arg6 = (long) 0 ;
5152 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5153 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5154 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5155 wxString *arg8 = (wxString *) &arg8_defvalue ;
5156 wxChoice *result = 0 ;
5157 void *argp1 = 0 ;
5158 int res1 = 0 ;
5159 int val2 ;
5160 int ecode2 = 0 ;
5161 wxPoint temp3 ;
5162 wxSize temp4 ;
5163 bool temp5 = false ;
5164 long val6 ;
5165 int ecode6 = 0 ;
5166 void *argp7 = 0 ;
5167 int res7 = 0 ;
5168 bool temp8 = false ;
5169 PyObject * obj0 = 0 ;
5170 PyObject * obj1 = 0 ;
5171 PyObject * obj2 = 0 ;
5172 PyObject * obj3 = 0 ;
5173 PyObject * obj4 = 0 ;
5174 PyObject * obj5 = 0 ;
5175 PyObject * obj6 = 0 ;
5176 PyObject * obj7 = 0 ;
5177 char * kwnames[] = {
5178 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5179 };
5180
5181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5183 if (!SWIG_IsOK(res1)) {
5184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5185 }
5186 arg1 = reinterpret_cast< wxWindow * >(argp1);
5187 if (obj1) {
5188 ecode2 = SWIG_AsVal_int(obj1, &val2);
5189 if (!SWIG_IsOK(ecode2)) {
5190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5191 }
5192 arg2 = static_cast< int >(val2);
5193 }
5194 if (obj2) {
5195 {
5196 arg3 = &temp3;
5197 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5198 }
5199 }
5200 if (obj3) {
5201 {
5202 arg4 = &temp4;
5203 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5204 }
5205 }
5206 if (obj4) {
5207 {
5208 if (! PySequence_Check(obj4)) {
5209 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5210 SWIG_fail;
5211 }
5212 arg5 = new wxArrayString;
5213 temp5 = true;
5214 int i, len=PySequence_Length(obj4);
5215 for (i=0; i<len; i++) {
5216 PyObject* item = PySequence_GetItem(obj4, i);
5217 wxString* s = wxString_in_helper(item);
5218 if (PyErr_Occurred()) SWIG_fail;
5219 arg5->Add(*s);
5220 delete s;
5221 Py_DECREF(item);
5222 }
5223 }
5224 }
5225 if (obj5) {
5226 ecode6 = SWIG_AsVal_long(obj5, &val6);
5227 if (!SWIG_IsOK(ecode6)) {
5228 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5229 }
5230 arg6 = static_cast< long >(val6);
5231 }
5232 if (obj6) {
5233 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5234 if (!SWIG_IsOK(res7)) {
5235 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5236 }
5237 if (!argp7) {
5238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5239 }
5240 arg7 = reinterpret_cast< wxValidator * >(argp7);
5241 }
5242 if (obj7) {
5243 {
5244 arg8 = wxString_in_helper(obj7);
5245 if (arg8 == NULL) SWIG_fail;
5246 temp8 = true;
5247 }
5248 }
5249 {
5250 if (!wxPyCheckForApp()) SWIG_fail;
5251 PyThreadState* __tstate = wxPyBeginAllowThreads();
5252 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) SWIG_fail;
5255 }
5256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5257 {
5258 if (temp5) delete arg5;
5259 }
5260 {
5261 if (temp8)
5262 delete arg8;
5263 }
5264 return resultobj;
5265 fail:
5266 {
5267 if (temp5) delete arg5;
5268 }
5269 {
5270 if (temp8)
5271 delete arg8;
5272 }
5273 return NULL;
5274 }
5275
5276
5277 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5278 PyObject *resultobj = 0;
5279 wxChoice *result = 0 ;
5280
5281 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5282 {
5283 if (!wxPyCheckForApp()) SWIG_fail;
5284 PyThreadState* __tstate = wxPyBeginAllowThreads();
5285 result = (wxChoice *)new wxChoice();
5286 wxPyEndAllowThreads(__tstate);
5287 if (PyErr_Occurred()) SWIG_fail;
5288 }
5289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5290 return resultobj;
5291 fail:
5292 return NULL;
5293 }
5294
5295
5296 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5297 PyObject *resultobj = 0;
5298 wxChoice *arg1 = (wxChoice *) 0 ;
5299 wxWindow *arg2 = (wxWindow *) 0 ;
5300 int arg3 = (int) -1 ;
5301 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5302 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5303 wxSize const &arg5_defvalue = wxDefaultSize ;
5304 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5305 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5306 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5307 long arg7 = (long) 0 ;
5308 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5309 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5310 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5311 wxString *arg9 = (wxString *) &arg9_defvalue ;
5312 bool result;
5313 void *argp1 = 0 ;
5314 int res1 = 0 ;
5315 void *argp2 = 0 ;
5316 int res2 = 0 ;
5317 int val3 ;
5318 int ecode3 = 0 ;
5319 wxPoint temp4 ;
5320 wxSize temp5 ;
5321 bool temp6 = false ;
5322 long val7 ;
5323 int ecode7 = 0 ;
5324 void *argp8 = 0 ;
5325 int res8 = 0 ;
5326 bool temp9 = false ;
5327 PyObject * obj0 = 0 ;
5328 PyObject * obj1 = 0 ;
5329 PyObject * obj2 = 0 ;
5330 PyObject * obj3 = 0 ;
5331 PyObject * obj4 = 0 ;
5332 PyObject * obj5 = 0 ;
5333 PyObject * obj6 = 0 ;
5334 PyObject * obj7 = 0 ;
5335 PyObject * obj8 = 0 ;
5336 char * kwnames[] = {
5337 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5338 };
5339
5340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5342 if (!SWIG_IsOK(res1)) {
5343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5344 }
5345 arg1 = reinterpret_cast< wxChoice * >(argp1);
5346 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5347 if (!SWIG_IsOK(res2)) {
5348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5349 }
5350 arg2 = reinterpret_cast< wxWindow * >(argp2);
5351 if (obj2) {
5352 ecode3 = SWIG_AsVal_int(obj2, &val3);
5353 if (!SWIG_IsOK(ecode3)) {
5354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5355 }
5356 arg3 = static_cast< int >(val3);
5357 }
5358 if (obj3) {
5359 {
5360 arg4 = &temp4;
5361 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5362 }
5363 }
5364 if (obj4) {
5365 {
5366 arg5 = &temp5;
5367 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5368 }
5369 }
5370 if (obj5) {
5371 {
5372 if (! PySequence_Check(obj5)) {
5373 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5374 SWIG_fail;
5375 }
5376 arg6 = new wxArrayString;
5377 temp6 = true;
5378 int i, len=PySequence_Length(obj5);
5379 for (i=0; i<len; i++) {
5380 PyObject* item = PySequence_GetItem(obj5, i);
5381 wxString* s = wxString_in_helper(item);
5382 if (PyErr_Occurred()) SWIG_fail;
5383 arg6->Add(*s);
5384 delete s;
5385 Py_DECREF(item);
5386 }
5387 }
5388 }
5389 if (obj6) {
5390 ecode7 = SWIG_AsVal_long(obj6, &val7);
5391 if (!SWIG_IsOK(ecode7)) {
5392 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5393 }
5394 arg7 = static_cast< long >(val7);
5395 }
5396 if (obj7) {
5397 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5398 if (!SWIG_IsOK(res8)) {
5399 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5400 }
5401 if (!argp8) {
5402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5403 }
5404 arg8 = reinterpret_cast< wxValidator * >(argp8);
5405 }
5406 if (obj8) {
5407 {
5408 arg9 = wxString_in_helper(obj8);
5409 if (arg9 == NULL) SWIG_fail;
5410 temp9 = true;
5411 }
5412 }
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5416 wxPyEndAllowThreads(__tstate);
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 {
5420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5421 }
5422 {
5423 if (temp6) delete arg6;
5424 }
5425 {
5426 if (temp9)
5427 delete arg9;
5428 }
5429 return resultobj;
5430 fail:
5431 {
5432 if (temp6) delete arg6;
5433 }
5434 {
5435 if (temp9)
5436 delete arg9;
5437 }
5438 return NULL;
5439 }
5440
5441
5442 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5443 PyObject *resultobj = 0;
5444 wxChoice *arg1 = (wxChoice *) 0 ;
5445 int result;
5446 void *argp1 = 0 ;
5447 int res1 = 0 ;
5448 PyObject *swig_obj[1] ;
5449
5450 if (!args) SWIG_fail;
5451 swig_obj[0] = args;
5452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5453 if (!SWIG_IsOK(res1)) {
5454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5455 }
5456 arg1 = reinterpret_cast< wxChoice * >(argp1);
5457 {
5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
5459 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5460 wxPyEndAllowThreads(__tstate);
5461 if (PyErr_Occurred()) SWIG_fail;
5462 }
5463 resultobj = SWIG_From_int(static_cast< int >(result));
5464 return resultobj;
5465 fail:
5466 return NULL;
5467 }
5468
5469
5470 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5471 PyObject *resultobj = 0;
5472 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5473 SwigValueWrapper<wxVisualAttributes > result;
5474 int val1 ;
5475 int ecode1 = 0 ;
5476 PyObject * obj0 = 0 ;
5477 char * kwnames[] = {
5478 (char *) "variant", NULL
5479 };
5480
5481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5482 if (obj0) {
5483 ecode1 = SWIG_AsVal_int(obj0, &val1);
5484 if (!SWIG_IsOK(ecode1)) {
5485 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5486 }
5487 arg1 = static_cast< wxWindowVariant >(val1);
5488 }
5489 {
5490 if (!wxPyCheckForApp()) SWIG_fail;
5491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5492 result = wxChoice::GetClassDefaultAttributes(arg1);
5493 wxPyEndAllowThreads(__tstate);
5494 if (PyErr_Occurred()) SWIG_fail;
5495 }
5496 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5497 return resultobj;
5498 fail:
5499 return NULL;
5500 }
5501
5502
5503 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5504 PyObject *obj;
5505 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5506 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5507 return SWIG_Py_Void();
5508 }
5509
5510 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5511 return SWIG_Python_InitShadowInstance(args);
5512 }
5513
5514 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5515 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5516 return 1;
5517 }
5518
5519
5520 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5521 PyObject *pyobj = 0;
5522
5523 {
5524 #if wxUSE_UNICODE
5525 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5526 #else
5527 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5528 #endif
5529 }
5530 return pyobj;
5531 }
5532
5533
5534 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5535 PyObject *resultobj = 0;
5536 wxWindow *arg1 = (wxWindow *) 0 ;
5537 int arg2 = (int) -1 ;
5538 wxString const &arg3_defvalue = wxPyEmptyString ;
5539 wxString *arg3 = (wxString *) &arg3_defvalue ;
5540 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5541 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5542 wxSize const &arg5_defvalue = wxDefaultSize ;
5543 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5544 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5545 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5546 long arg7 = (long) 0 ;
5547 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5548 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5549 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5550 wxString *arg9 = (wxString *) &arg9_defvalue ;
5551 wxComboBox *result = 0 ;
5552 void *argp1 = 0 ;
5553 int res1 = 0 ;
5554 int val2 ;
5555 int ecode2 = 0 ;
5556 bool temp3 = false ;
5557 wxPoint temp4 ;
5558 wxSize temp5 ;
5559 bool temp6 = false ;
5560 long val7 ;
5561 int ecode7 = 0 ;
5562 void *argp8 = 0 ;
5563 int res8 = 0 ;
5564 bool temp9 = false ;
5565 PyObject * obj0 = 0 ;
5566 PyObject * obj1 = 0 ;
5567 PyObject * obj2 = 0 ;
5568 PyObject * obj3 = 0 ;
5569 PyObject * obj4 = 0 ;
5570 PyObject * obj5 = 0 ;
5571 PyObject * obj6 = 0 ;
5572 PyObject * obj7 = 0 ;
5573 PyObject * obj8 = 0 ;
5574 char * kwnames[] = {
5575 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5576 };
5577
5578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5580 if (!SWIG_IsOK(res1)) {
5581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5582 }
5583 arg1 = reinterpret_cast< wxWindow * >(argp1);
5584 if (obj1) {
5585 ecode2 = SWIG_AsVal_int(obj1, &val2);
5586 if (!SWIG_IsOK(ecode2)) {
5587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5588 }
5589 arg2 = static_cast< int >(val2);
5590 }
5591 if (obj2) {
5592 {
5593 arg3 = wxString_in_helper(obj2);
5594 if (arg3 == NULL) SWIG_fail;
5595 temp3 = true;
5596 }
5597 }
5598 if (obj3) {
5599 {
5600 arg4 = &temp4;
5601 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5602 }
5603 }
5604 if (obj4) {
5605 {
5606 arg5 = &temp5;
5607 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5608 }
5609 }
5610 if (obj5) {
5611 {
5612 if (! PySequence_Check(obj5)) {
5613 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5614 SWIG_fail;
5615 }
5616 arg6 = new wxArrayString;
5617 temp6 = true;
5618 int i, len=PySequence_Length(obj5);
5619 for (i=0; i<len; i++) {
5620 PyObject* item = PySequence_GetItem(obj5, i);
5621 wxString* s = wxString_in_helper(item);
5622 if (PyErr_Occurred()) SWIG_fail;
5623 arg6->Add(*s);
5624 delete s;
5625 Py_DECREF(item);
5626 }
5627 }
5628 }
5629 if (obj6) {
5630 ecode7 = SWIG_AsVal_long(obj6, &val7);
5631 if (!SWIG_IsOK(ecode7)) {
5632 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5633 }
5634 arg7 = static_cast< long >(val7);
5635 }
5636 if (obj7) {
5637 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5638 if (!SWIG_IsOK(res8)) {
5639 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5640 }
5641 if (!argp8) {
5642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5643 }
5644 arg8 = reinterpret_cast< wxValidator * >(argp8);
5645 }
5646 if (obj8) {
5647 {
5648 arg9 = wxString_in_helper(obj8);
5649 if (arg9 == NULL) SWIG_fail;
5650 temp9 = true;
5651 }
5652 }
5653 {
5654 if (!wxPyCheckForApp()) SWIG_fail;
5655 PyThreadState* __tstate = wxPyBeginAllowThreads();
5656 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);
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5661 {
5662 if (temp3)
5663 delete arg3;
5664 }
5665 {
5666 if (temp6) delete arg6;
5667 }
5668 {
5669 if (temp9)
5670 delete arg9;
5671 }
5672 return resultobj;
5673 fail:
5674 {
5675 if (temp3)
5676 delete arg3;
5677 }
5678 {
5679 if (temp6) delete arg6;
5680 }
5681 {
5682 if (temp9)
5683 delete arg9;
5684 }
5685 return NULL;
5686 }
5687
5688
5689 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5690 PyObject *resultobj = 0;
5691 wxComboBox *result = 0 ;
5692
5693 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5694 {
5695 if (!wxPyCheckForApp()) SWIG_fail;
5696 PyThreadState* __tstate = wxPyBeginAllowThreads();
5697 result = (wxComboBox *)new wxComboBox();
5698 wxPyEndAllowThreads(__tstate);
5699 if (PyErr_Occurred()) SWIG_fail;
5700 }
5701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5702 return resultobj;
5703 fail:
5704 return NULL;
5705 }
5706
5707
5708 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5709 PyObject *resultobj = 0;
5710 wxComboBox *arg1 = (wxComboBox *) 0 ;
5711 wxWindow *arg2 = (wxWindow *) 0 ;
5712 int arg3 = (int) -1 ;
5713 wxString const &arg4_defvalue = wxPyEmptyString ;
5714 wxString *arg4 = (wxString *) &arg4_defvalue ;
5715 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5716 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5717 wxSize const &arg6_defvalue = wxDefaultSize ;
5718 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5719 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5720 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5721 long arg8 = (long) 0 ;
5722 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5723 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5724 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5725 wxString *arg10 = (wxString *) &arg10_defvalue ;
5726 bool result;
5727 void *argp1 = 0 ;
5728 int res1 = 0 ;
5729 void *argp2 = 0 ;
5730 int res2 = 0 ;
5731 int val3 ;
5732 int ecode3 = 0 ;
5733 bool temp4 = false ;
5734 wxPoint temp5 ;
5735 wxSize temp6 ;
5736 bool temp7 = false ;
5737 long val8 ;
5738 int ecode8 = 0 ;
5739 void *argp9 = 0 ;
5740 int res9 = 0 ;
5741 bool temp10 = false ;
5742 PyObject * obj0 = 0 ;
5743 PyObject * obj1 = 0 ;
5744 PyObject * obj2 = 0 ;
5745 PyObject * obj3 = 0 ;
5746 PyObject * obj4 = 0 ;
5747 PyObject * obj5 = 0 ;
5748 PyObject * obj6 = 0 ;
5749 PyObject * obj7 = 0 ;
5750 PyObject * obj8 = 0 ;
5751 PyObject * obj9 = 0 ;
5752 char * kwnames[] = {
5753 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5754 };
5755
5756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5758 if (!SWIG_IsOK(res1)) {
5759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5760 }
5761 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5762 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5763 if (!SWIG_IsOK(res2)) {
5764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5765 }
5766 arg2 = reinterpret_cast< wxWindow * >(argp2);
5767 if (obj2) {
5768 ecode3 = SWIG_AsVal_int(obj2, &val3);
5769 if (!SWIG_IsOK(ecode3)) {
5770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5771 }
5772 arg3 = static_cast< int >(val3);
5773 }
5774 if (obj3) {
5775 {
5776 arg4 = wxString_in_helper(obj3);
5777 if (arg4 == NULL) SWIG_fail;
5778 temp4 = true;
5779 }
5780 }
5781 if (obj4) {
5782 {
5783 arg5 = &temp5;
5784 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5785 }
5786 }
5787 if (obj5) {
5788 {
5789 arg6 = &temp6;
5790 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5791 }
5792 }
5793 if (obj6) {
5794 {
5795 if (! PySequence_Check(obj6)) {
5796 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5797 SWIG_fail;
5798 }
5799 arg7 = new wxArrayString;
5800 temp7 = true;
5801 int i, len=PySequence_Length(obj6);
5802 for (i=0; i<len; i++) {
5803 PyObject* item = PySequence_GetItem(obj6, i);
5804 wxString* s = wxString_in_helper(item);
5805 if (PyErr_Occurred()) SWIG_fail;
5806 arg7->Add(*s);
5807 delete s;
5808 Py_DECREF(item);
5809 }
5810 }
5811 }
5812 if (obj7) {
5813 ecode8 = SWIG_AsVal_long(obj7, &val8);
5814 if (!SWIG_IsOK(ecode8)) {
5815 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5816 }
5817 arg8 = static_cast< long >(val8);
5818 }
5819 if (obj8) {
5820 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5821 if (!SWIG_IsOK(res9)) {
5822 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5823 }
5824 if (!argp9) {
5825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5826 }
5827 arg9 = reinterpret_cast< wxValidator * >(argp9);
5828 }
5829 if (obj9) {
5830 {
5831 arg10 = wxString_in_helper(obj9);
5832 if (arg10 == NULL) SWIG_fail;
5833 temp10 = true;
5834 }
5835 }
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 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);
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
5843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5844 }
5845 {
5846 if (temp4)
5847 delete arg4;
5848 }
5849 {
5850 if (temp7) delete arg7;
5851 }
5852 {
5853 if (temp10)
5854 delete arg10;
5855 }
5856 return resultobj;
5857 fail:
5858 {
5859 if (temp4)
5860 delete arg4;
5861 }
5862 {
5863 if (temp7) delete arg7;
5864 }
5865 {
5866 if (temp10)
5867 delete arg10;
5868 }
5869 return NULL;
5870 }
5871
5872
5873 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5874 PyObject *resultobj = 0;
5875 wxComboBox *arg1 = (wxComboBox *) 0 ;
5876 wxString result;
5877 void *argp1 = 0 ;
5878 int res1 = 0 ;
5879 PyObject *swig_obj[1] ;
5880
5881 if (!args) SWIG_fail;
5882 swig_obj[0] = args;
5883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5884 if (!SWIG_IsOK(res1)) {
5885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5886 }
5887 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5888 {
5889 PyThreadState* __tstate = wxPyBeginAllowThreads();
5890 result = ((wxComboBox const *)arg1)->GetValue();
5891 wxPyEndAllowThreads(__tstate);
5892 if (PyErr_Occurred()) SWIG_fail;
5893 }
5894 {
5895 #if wxUSE_UNICODE
5896 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5897 #else
5898 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5899 #endif
5900 }
5901 return resultobj;
5902 fail:
5903 return NULL;
5904 }
5905
5906
5907 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5908 PyObject *resultobj = 0;
5909 wxComboBox *arg1 = (wxComboBox *) 0 ;
5910 wxString *arg2 = 0 ;
5911 void *argp1 = 0 ;
5912 int res1 = 0 ;
5913 bool temp2 = false ;
5914 PyObject * obj0 = 0 ;
5915 PyObject * obj1 = 0 ;
5916 char * kwnames[] = {
5917 (char *) "self",(char *) "value", NULL
5918 };
5919
5920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5922 if (!SWIG_IsOK(res1)) {
5923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5924 }
5925 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5926 {
5927 arg2 = wxString_in_helper(obj1);
5928 if (arg2 == NULL) SWIG_fail;
5929 temp2 = true;
5930 }
5931 {
5932 PyThreadState* __tstate = wxPyBeginAllowThreads();
5933 (arg1)->SetValue((wxString const &)*arg2);
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 resultobj = SWIG_Py_Void();
5938 {
5939 if (temp2)
5940 delete arg2;
5941 }
5942 return resultobj;
5943 fail:
5944 {
5945 if (temp2)
5946 delete arg2;
5947 }
5948 return NULL;
5949 }
5950
5951
5952 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5953 PyObject *resultobj = 0;
5954 wxComboBox *arg1 = (wxComboBox *) 0 ;
5955 void *argp1 = 0 ;
5956 int res1 = 0 ;
5957 PyObject *swig_obj[1] ;
5958
5959 if (!args) SWIG_fail;
5960 swig_obj[0] = args;
5961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5962 if (!SWIG_IsOK(res1)) {
5963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5964 }
5965 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5966 {
5967 PyThreadState* __tstate = wxPyBeginAllowThreads();
5968 (arg1)->Copy();
5969 wxPyEndAllowThreads(__tstate);
5970 if (PyErr_Occurred()) SWIG_fail;
5971 }
5972 resultobj = SWIG_Py_Void();
5973 return resultobj;
5974 fail:
5975 return NULL;
5976 }
5977
5978
5979 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5980 PyObject *resultobj = 0;
5981 wxComboBox *arg1 = (wxComboBox *) 0 ;
5982 void *argp1 = 0 ;
5983 int res1 = 0 ;
5984 PyObject *swig_obj[1] ;
5985
5986 if (!args) SWIG_fail;
5987 swig_obj[0] = args;
5988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5989 if (!SWIG_IsOK(res1)) {
5990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5991 }
5992 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5993 {
5994 PyThreadState* __tstate = wxPyBeginAllowThreads();
5995 (arg1)->Cut();
5996 wxPyEndAllowThreads(__tstate);
5997 if (PyErr_Occurred()) SWIG_fail;
5998 }
5999 resultobj = SWIG_Py_Void();
6000 return resultobj;
6001 fail:
6002 return NULL;
6003 }
6004
6005
6006 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6007 PyObject *resultobj = 0;
6008 wxComboBox *arg1 = (wxComboBox *) 0 ;
6009 void *argp1 = 0 ;
6010 int res1 = 0 ;
6011 PyObject *swig_obj[1] ;
6012
6013 if (!args) SWIG_fail;
6014 swig_obj[0] = args;
6015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6016 if (!SWIG_IsOK(res1)) {
6017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
6018 }
6019 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6020 {
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 (arg1)->Paste();
6023 wxPyEndAllowThreads(__tstate);
6024 if (PyErr_Occurred()) SWIG_fail;
6025 }
6026 resultobj = SWIG_Py_Void();
6027 return resultobj;
6028 fail:
6029 return NULL;
6030 }
6031
6032
6033 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6034 PyObject *resultobj = 0;
6035 wxComboBox *arg1 = (wxComboBox *) 0 ;
6036 long arg2 ;
6037 void *argp1 = 0 ;
6038 int res1 = 0 ;
6039 long val2 ;
6040 int ecode2 = 0 ;
6041 PyObject * obj0 = 0 ;
6042 PyObject * obj1 = 0 ;
6043 char * kwnames[] = {
6044 (char *) "self",(char *) "pos", NULL
6045 };
6046
6047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6049 if (!SWIG_IsOK(res1)) {
6050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6051 }
6052 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6053 ecode2 = SWIG_AsVal_long(obj1, &val2);
6054 if (!SWIG_IsOK(ecode2)) {
6055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6056 }
6057 arg2 = static_cast< long >(val2);
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 (arg1)->SetInsertionPoint(arg2);
6061 wxPyEndAllowThreads(__tstate);
6062 if (PyErr_Occurred()) SWIG_fail;
6063 }
6064 resultobj = SWIG_Py_Void();
6065 return resultobj;
6066 fail:
6067 return NULL;
6068 }
6069
6070
6071 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6072 PyObject *resultobj = 0;
6073 wxComboBox *arg1 = (wxComboBox *) 0 ;
6074 long result;
6075 void *argp1 = 0 ;
6076 int res1 = 0 ;
6077 PyObject *swig_obj[1] ;
6078
6079 if (!args) SWIG_fail;
6080 swig_obj[0] = args;
6081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6082 if (!SWIG_IsOK(res1)) {
6083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6084 }
6085 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6089 wxPyEndAllowThreads(__tstate);
6090 if (PyErr_Occurred()) SWIG_fail;
6091 }
6092 resultobj = SWIG_From_long(static_cast< long >(result));
6093 return resultobj;
6094 fail:
6095 return NULL;
6096 }
6097
6098
6099 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6100 PyObject *resultobj = 0;
6101 wxComboBox *arg1 = (wxComboBox *) 0 ;
6102 long result;
6103 void *argp1 = 0 ;
6104 int res1 = 0 ;
6105 PyObject *swig_obj[1] ;
6106
6107 if (!args) SWIG_fail;
6108 swig_obj[0] = args;
6109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6110 if (!SWIG_IsOK(res1)) {
6111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6112 }
6113 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6114 {
6115 PyThreadState* __tstate = wxPyBeginAllowThreads();
6116 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6117 wxPyEndAllowThreads(__tstate);
6118 if (PyErr_Occurred()) SWIG_fail;
6119 }
6120 resultobj = SWIG_From_long(static_cast< long >(result));
6121 return resultobj;
6122 fail:
6123 return NULL;
6124 }
6125
6126
6127 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6128 PyObject *resultobj = 0;
6129 wxComboBox *arg1 = (wxComboBox *) 0 ;
6130 long arg2 ;
6131 long arg3 ;
6132 wxString *arg4 = 0 ;
6133 void *argp1 = 0 ;
6134 int res1 = 0 ;
6135 long val2 ;
6136 int ecode2 = 0 ;
6137 long val3 ;
6138 int ecode3 = 0 ;
6139 bool temp4 = false ;
6140 PyObject * obj0 = 0 ;
6141 PyObject * obj1 = 0 ;
6142 PyObject * obj2 = 0 ;
6143 PyObject * obj3 = 0 ;
6144 char * kwnames[] = {
6145 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6146 };
6147
6148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6150 if (!SWIG_IsOK(res1)) {
6151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6152 }
6153 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6154 ecode2 = SWIG_AsVal_long(obj1, &val2);
6155 if (!SWIG_IsOK(ecode2)) {
6156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6157 }
6158 arg2 = static_cast< long >(val2);
6159 ecode3 = SWIG_AsVal_long(obj2, &val3);
6160 if (!SWIG_IsOK(ecode3)) {
6161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6162 }
6163 arg3 = static_cast< long >(val3);
6164 {
6165 arg4 = wxString_in_helper(obj3);
6166 if (arg4 == NULL) SWIG_fail;
6167 temp4 = true;
6168 }
6169 {
6170 PyThreadState* __tstate = wxPyBeginAllowThreads();
6171 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6172 wxPyEndAllowThreads(__tstate);
6173 if (PyErr_Occurred()) SWIG_fail;
6174 }
6175 resultobj = SWIG_Py_Void();
6176 {
6177 if (temp4)
6178 delete arg4;
6179 }
6180 return resultobj;
6181 fail:
6182 {
6183 if (temp4)
6184 delete arg4;
6185 }
6186 return NULL;
6187 }
6188
6189
6190 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6191 PyObject *resultobj = 0;
6192 wxComboBox *arg1 = (wxComboBox *) 0 ;
6193 long arg2 ;
6194 long arg3 ;
6195 void *argp1 = 0 ;
6196 int res1 = 0 ;
6197 long val2 ;
6198 int ecode2 = 0 ;
6199 long val3 ;
6200 int ecode3 = 0 ;
6201 PyObject * obj0 = 0 ;
6202 PyObject * obj1 = 0 ;
6203 PyObject * obj2 = 0 ;
6204 char * kwnames[] = {
6205 (char *) "self",(char *) "from",(char *) "to", NULL
6206 };
6207
6208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6210 if (!SWIG_IsOK(res1)) {
6211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6212 }
6213 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6214 ecode2 = SWIG_AsVal_long(obj1, &val2);
6215 if (!SWIG_IsOK(ecode2)) {
6216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6217 }
6218 arg2 = static_cast< long >(val2);
6219 ecode3 = SWIG_AsVal_long(obj2, &val3);
6220 if (!SWIG_IsOK(ecode3)) {
6221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6222 }
6223 arg3 = static_cast< long >(val3);
6224 {
6225 PyThreadState* __tstate = wxPyBeginAllowThreads();
6226 (arg1)->SetSelection(arg2,arg3);
6227 wxPyEndAllowThreads(__tstate);
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 resultobj = SWIG_Py_Void();
6231 return resultobj;
6232 fail:
6233 return NULL;
6234 }
6235
6236
6237 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6238 PyObject *resultobj = 0;
6239 wxComboBox *arg1 = (wxComboBox *) 0 ;
6240 int result;
6241 void *argp1 = 0 ;
6242 int res1 = 0 ;
6243 PyObject *swig_obj[1] ;
6244
6245 if (!args) SWIG_fail;
6246 swig_obj[0] = args;
6247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6248 if (!SWIG_IsOK(res1)) {
6249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6250 }
6251 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6252 {
6253 PyThreadState* __tstate = wxPyBeginAllowThreads();
6254 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) SWIG_fail;
6257 }
6258 resultobj = SWIG_From_int(static_cast< int >(result));
6259 return resultobj;
6260 fail:
6261 return NULL;
6262 }
6263
6264
6265 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6266 PyObject *resultobj = 0;
6267 wxComboBox *arg1 = (wxComboBox *) 0 ;
6268 wxString *arg2 = 0 ;
6269 bool result;
6270 void *argp1 = 0 ;
6271 int res1 = 0 ;
6272 bool temp2 = false ;
6273 PyObject * obj0 = 0 ;
6274 PyObject * obj1 = 0 ;
6275 char * kwnames[] = {
6276 (char *) "self",(char *) "string", NULL
6277 };
6278
6279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6281 if (!SWIG_IsOK(res1)) {
6282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6283 }
6284 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6285 {
6286 arg2 = wxString_in_helper(obj1);
6287 if (arg2 == NULL) SWIG_fail;
6288 temp2 = true;
6289 }
6290 {
6291 PyThreadState* __tstate = wxPyBeginAllowThreads();
6292 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6293 wxPyEndAllowThreads(__tstate);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 {
6297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6298 }
6299 {
6300 if (temp2)
6301 delete arg2;
6302 }
6303 return resultobj;
6304 fail:
6305 {
6306 if (temp2)
6307 delete arg2;
6308 }
6309 return NULL;
6310 }
6311
6312
6313 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6314 PyObject *resultobj = 0;
6315 wxComboBox *arg1 = (wxComboBox *) 0 ;
6316 bool arg2 ;
6317 void *argp1 = 0 ;
6318 int res1 = 0 ;
6319 bool val2 ;
6320 int ecode2 = 0 ;
6321 PyObject * obj0 = 0 ;
6322 PyObject * obj1 = 0 ;
6323 char * kwnames[] = {
6324 (char *) "self",(char *) "editable", NULL
6325 };
6326
6327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6329 if (!SWIG_IsOK(res1)) {
6330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6331 }
6332 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6333 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6334 if (!SWIG_IsOK(ecode2)) {
6335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6336 }
6337 arg2 = static_cast< bool >(val2);
6338 {
6339 PyThreadState* __tstate = wxPyBeginAllowThreads();
6340 (arg1)->SetEditable(arg2);
6341 wxPyEndAllowThreads(__tstate);
6342 if (PyErr_Occurred()) SWIG_fail;
6343 }
6344 resultobj = SWIG_Py_Void();
6345 return resultobj;
6346 fail:
6347 return NULL;
6348 }
6349
6350
6351 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6352 PyObject *resultobj = 0;
6353 wxComboBox *arg1 = (wxComboBox *) 0 ;
6354 void *argp1 = 0 ;
6355 int res1 = 0 ;
6356 PyObject *swig_obj[1] ;
6357
6358 if (!args) SWIG_fail;
6359 swig_obj[0] = args;
6360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6361 if (!SWIG_IsOK(res1)) {
6362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6363 }
6364 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6365 {
6366 PyThreadState* __tstate = wxPyBeginAllowThreads();
6367 (arg1)->SetInsertionPointEnd();
6368 wxPyEndAllowThreads(__tstate);
6369 if (PyErr_Occurred()) SWIG_fail;
6370 }
6371 resultobj = SWIG_Py_Void();
6372 return resultobj;
6373 fail:
6374 return NULL;
6375 }
6376
6377
6378 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6379 PyObject *resultobj = 0;
6380 wxComboBox *arg1 = (wxComboBox *) 0 ;
6381 long arg2 ;
6382 long arg3 ;
6383 void *argp1 = 0 ;
6384 int res1 = 0 ;
6385 long val2 ;
6386 int ecode2 = 0 ;
6387 long val3 ;
6388 int ecode3 = 0 ;
6389 PyObject * obj0 = 0 ;
6390 PyObject * obj1 = 0 ;
6391 PyObject * obj2 = 0 ;
6392 char * kwnames[] = {
6393 (char *) "self",(char *) "from",(char *) "to", NULL
6394 };
6395
6396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6398 if (!SWIG_IsOK(res1)) {
6399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6400 }
6401 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6402 ecode2 = SWIG_AsVal_long(obj1, &val2);
6403 if (!SWIG_IsOK(ecode2)) {
6404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6405 }
6406 arg2 = static_cast< long >(val2);
6407 ecode3 = SWIG_AsVal_long(obj2, &val3);
6408 if (!SWIG_IsOK(ecode3)) {
6409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6410 }
6411 arg3 = static_cast< long >(val3);
6412 {
6413 PyThreadState* __tstate = wxPyBeginAllowThreads();
6414 (arg1)->Remove(arg2,arg3);
6415 wxPyEndAllowThreads(__tstate);
6416 if (PyErr_Occurred()) SWIG_fail;
6417 }
6418 resultobj = SWIG_Py_Void();
6419 return resultobj;
6420 fail:
6421 return NULL;
6422 }
6423
6424
6425 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6426 PyObject *resultobj = 0;
6427 wxComboBox *arg1 = (wxComboBox *) 0 ;
6428 bool result;
6429 void *argp1 = 0 ;
6430 int res1 = 0 ;
6431 PyObject *swig_obj[1] ;
6432
6433 if (!args) SWIG_fail;
6434 swig_obj[0] = args;
6435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6436 if (!SWIG_IsOK(res1)) {
6437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6438 }
6439 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6440 {
6441 PyThreadState* __tstate = wxPyBeginAllowThreads();
6442 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6443 wxPyEndAllowThreads(__tstate);
6444 if (PyErr_Occurred()) SWIG_fail;
6445 }
6446 {
6447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6448 }
6449 return resultobj;
6450 fail:
6451 return NULL;
6452 }
6453
6454
6455 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6456 PyObject *resultobj = 0;
6457 wxComboBox *arg1 = (wxComboBox *) 0 ;
6458 void *argp1 = 0 ;
6459 int res1 = 0 ;
6460 PyObject *swig_obj[1] ;
6461
6462 if (!args) SWIG_fail;
6463 swig_obj[0] = args;
6464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6465 if (!SWIG_IsOK(res1)) {
6466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6467 }
6468 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6469 {
6470 PyThreadState* __tstate = wxPyBeginAllowThreads();
6471 (arg1)->Undo();
6472 wxPyEndAllowThreads(__tstate);
6473 if (PyErr_Occurred()) SWIG_fail;
6474 }
6475 resultobj = SWIG_Py_Void();
6476 return resultobj;
6477 fail:
6478 return NULL;
6479 }
6480
6481
6482 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6483 PyObject *resultobj = 0;
6484 wxComboBox *arg1 = (wxComboBox *) 0 ;
6485 void *argp1 = 0 ;
6486 int res1 = 0 ;
6487 PyObject *swig_obj[1] ;
6488
6489 if (!args) SWIG_fail;
6490 swig_obj[0] = args;
6491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6492 if (!SWIG_IsOK(res1)) {
6493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6494 }
6495 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6496 {
6497 PyThreadState* __tstate = wxPyBeginAllowThreads();
6498 (arg1)->Redo();
6499 wxPyEndAllowThreads(__tstate);
6500 if (PyErr_Occurred()) SWIG_fail;
6501 }
6502 resultobj = SWIG_Py_Void();
6503 return resultobj;
6504 fail:
6505 return NULL;
6506 }
6507
6508
6509 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6510 PyObject *resultobj = 0;
6511 wxComboBox *arg1 = (wxComboBox *) 0 ;
6512 void *argp1 = 0 ;
6513 int res1 = 0 ;
6514 PyObject *swig_obj[1] ;
6515
6516 if (!args) SWIG_fail;
6517 swig_obj[0] = args;
6518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6519 if (!SWIG_IsOK(res1)) {
6520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6521 }
6522 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6523 {
6524 PyThreadState* __tstate = wxPyBeginAllowThreads();
6525 (arg1)->SelectAll();
6526 wxPyEndAllowThreads(__tstate);
6527 if (PyErr_Occurred()) SWIG_fail;
6528 }
6529 resultobj = SWIG_Py_Void();
6530 return resultobj;
6531 fail:
6532 return NULL;
6533 }
6534
6535
6536 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6537 PyObject *resultobj = 0;
6538 wxComboBox *arg1 = (wxComboBox *) 0 ;
6539 bool result;
6540 void *argp1 = 0 ;
6541 int res1 = 0 ;
6542 PyObject *swig_obj[1] ;
6543
6544 if (!args) SWIG_fail;
6545 swig_obj[0] = args;
6546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6547 if (!SWIG_IsOK(res1)) {
6548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6549 }
6550 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6551 {
6552 PyThreadState* __tstate = wxPyBeginAllowThreads();
6553 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6554 wxPyEndAllowThreads(__tstate);
6555 if (PyErr_Occurred()) SWIG_fail;
6556 }
6557 {
6558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6559 }
6560 return resultobj;
6561 fail:
6562 return NULL;
6563 }
6564
6565
6566 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6567 PyObject *resultobj = 0;
6568 wxComboBox *arg1 = (wxComboBox *) 0 ;
6569 bool result;
6570 void *argp1 = 0 ;
6571 int res1 = 0 ;
6572 PyObject *swig_obj[1] ;
6573
6574 if (!args) SWIG_fail;
6575 swig_obj[0] = args;
6576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6577 if (!SWIG_IsOK(res1)) {
6578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6579 }
6580 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6581 {
6582 PyThreadState* __tstate = wxPyBeginAllowThreads();
6583 result = (bool)((wxComboBox const *)arg1)->CanCut();
6584 wxPyEndAllowThreads(__tstate);
6585 if (PyErr_Occurred()) SWIG_fail;
6586 }
6587 {
6588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6589 }
6590 return resultobj;
6591 fail:
6592 return NULL;
6593 }
6594
6595
6596 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6597 PyObject *resultobj = 0;
6598 wxComboBox *arg1 = (wxComboBox *) 0 ;
6599 bool result;
6600 void *argp1 = 0 ;
6601 int res1 = 0 ;
6602 PyObject *swig_obj[1] ;
6603
6604 if (!args) SWIG_fail;
6605 swig_obj[0] = args;
6606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6607 if (!SWIG_IsOK(res1)) {
6608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6609 }
6610 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6611 {
6612 PyThreadState* __tstate = wxPyBeginAllowThreads();
6613 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6614 wxPyEndAllowThreads(__tstate);
6615 if (PyErr_Occurred()) SWIG_fail;
6616 }
6617 {
6618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6619 }
6620 return resultobj;
6621 fail:
6622 return NULL;
6623 }
6624
6625
6626 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6627 PyObject *resultobj = 0;
6628 wxComboBox *arg1 = (wxComboBox *) 0 ;
6629 bool result;
6630 void *argp1 = 0 ;
6631 int res1 = 0 ;
6632 PyObject *swig_obj[1] ;
6633
6634 if (!args) SWIG_fail;
6635 swig_obj[0] = args;
6636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6637 if (!SWIG_IsOK(res1)) {
6638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6639 }
6640 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6641 {
6642 PyThreadState* __tstate = wxPyBeginAllowThreads();
6643 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6644 wxPyEndAllowThreads(__tstate);
6645 if (PyErr_Occurred()) SWIG_fail;
6646 }
6647 {
6648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6649 }
6650 return resultobj;
6651 fail:
6652 return NULL;
6653 }
6654
6655
6656 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6657 PyObject *resultobj = 0;
6658 wxComboBox *arg1 = (wxComboBox *) 0 ;
6659 bool result;
6660 void *argp1 = 0 ;
6661 int res1 = 0 ;
6662 PyObject *swig_obj[1] ;
6663
6664 if (!args) SWIG_fail;
6665 swig_obj[0] = args;
6666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6667 if (!SWIG_IsOK(res1)) {
6668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6669 }
6670 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6671 {
6672 PyThreadState* __tstate = wxPyBeginAllowThreads();
6673 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6674 wxPyEndAllowThreads(__tstate);
6675 if (PyErr_Occurred()) SWIG_fail;
6676 }
6677 {
6678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6679 }
6680 return resultobj;
6681 fail:
6682 return NULL;
6683 }
6684
6685
6686 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6687 PyObject *resultobj = 0;
6688 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6689 SwigValueWrapper<wxVisualAttributes > result;
6690 int val1 ;
6691 int ecode1 = 0 ;
6692 PyObject * obj0 = 0 ;
6693 char * kwnames[] = {
6694 (char *) "variant", NULL
6695 };
6696
6697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6698 if (obj0) {
6699 ecode1 = SWIG_AsVal_int(obj0, &val1);
6700 if (!SWIG_IsOK(ecode1)) {
6701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6702 }
6703 arg1 = static_cast< wxWindowVariant >(val1);
6704 }
6705 {
6706 if (!wxPyCheckForApp()) SWIG_fail;
6707 PyThreadState* __tstate = wxPyBeginAllowThreads();
6708 result = wxComboBox::GetClassDefaultAttributes(arg1);
6709 wxPyEndAllowThreads(__tstate);
6710 if (PyErr_Occurred()) SWIG_fail;
6711 }
6712 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6713 return resultobj;
6714 fail:
6715 return NULL;
6716 }
6717
6718
6719 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6720 PyObject *obj;
6721 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6722 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6723 return SWIG_Py_Void();
6724 }
6725
6726 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6727 return SWIG_Python_InitShadowInstance(args);
6728 }
6729
6730 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6731 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6732 return 1;
6733 }
6734
6735
6736 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6737 PyObject *pyobj = 0;
6738
6739 {
6740 #if wxUSE_UNICODE
6741 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6742 #else
6743 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6744 #endif
6745 }
6746 return pyobj;
6747 }
6748
6749
6750 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6751 PyObject *resultobj = 0;
6752 wxWindow *arg1 = (wxWindow *) 0 ;
6753 int arg2 = (int) -1 ;
6754 int arg3 = (int) 100 ;
6755 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6756 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6757 wxSize const &arg5_defvalue = wxDefaultSize ;
6758 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6759 long arg6 = (long) wxGA_HORIZONTAL ;
6760 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6761 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6762 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6763 wxString *arg8 = (wxString *) &arg8_defvalue ;
6764 wxGauge *result = 0 ;
6765 void *argp1 = 0 ;
6766 int res1 = 0 ;
6767 int val2 ;
6768 int ecode2 = 0 ;
6769 int val3 ;
6770 int ecode3 = 0 ;
6771 wxPoint temp4 ;
6772 wxSize temp5 ;
6773 long val6 ;
6774 int ecode6 = 0 ;
6775 void *argp7 = 0 ;
6776 int res7 = 0 ;
6777 bool temp8 = false ;
6778 PyObject * obj0 = 0 ;
6779 PyObject * obj1 = 0 ;
6780 PyObject * obj2 = 0 ;
6781 PyObject * obj3 = 0 ;
6782 PyObject * obj4 = 0 ;
6783 PyObject * obj5 = 0 ;
6784 PyObject * obj6 = 0 ;
6785 PyObject * obj7 = 0 ;
6786 char * kwnames[] = {
6787 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6788 };
6789
6790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6792 if (!SWIG_IsOK(res1)) {
6793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6794 }
6795 arg1 = reinterpret_cast< wxWindow * >(argp1);
6796 if (obj1) {
6797 ecode2 = SWIG_AsVal_int(obj1, &val2);
6798 if (!SWIG_IsOK(ecode2)) {
6799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6800 }
6801 arg2 = static_cast< int >(val2);
6802 }
6803 if (obj2) {
6804 ecode3 = SWIG_AsVal_int(obj2, &val3);
6805 if (!SWIG_IsOK(ecode3)) {
6806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6807 }
6808 arg3 = static_cast< int >(val3);
6809 }
6810 if (obj3) {
6811 {
6812 arg4 = &temp4;
6813 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6814 }
6815 }
6816 if (obj4) {
6817 {
6818 arg5 = &temp5;
6819 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6820 }
6821 }
6822 if (obj5) {
6823 ecode6 = SWIG_AsVal_long(obj5, &val6);
6824 if (!SWIG_IsOK(ecode6)) {
6825 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6826 }
6827 arg6 = static_cast< long >(val6);
6828 }
6829 if (obj6) {
6830 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6831 if (!SWIG_IsOK(res7)) {
6832 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6833 }
6834 if (!argp7) {
6835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6836 }
6837 arg7 = reinterpret_cast< wxValidator * >(argp7);
6838 }
6839 if (obj7) {
6840 {
6841 arg8 = wxString_in_helper(obj7);
6842 if (arg8 == NULL) SWIG_fail;
6843 temp8 = true;
6844 }
6845 }
6846 {
6847 if (!wxPyCheckForApp()) SWIG_fail;
6848 PyThreadState* __tstate = wxPyBeginAllowThreads();
6849 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6850 wxPyEndAllowThreads(__tstate);
6851 if (PyErr_Occurred()) SWIG_fail;
6852 }
6853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6854 {
6855 if (temp8)
6856 delete arg8;
6857 }
6858 return resultobj;
6859 fail:
6860 {
6861 if (temp8)
6862 delete arg8;
6863 }
6864 return NULL;
6865 }
6866
6867
6868 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6869 PyObject *resultobj = 0;
6870 wxGauge *result = 0 ;
6871
6872 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6873 {
6874 if (!wxPyCheckForApp()) SWIG_fail;
6875 PyThreadState* __tstate = wxPyBeginAllowThreads();
6876 result = (wxGauge *)new wxGauge();
6877 wxPyEndAllowThreads(__tstate);
6878 if (PyErr_Occurred()) SWIG_fail;
6879 }
6880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6881 return resultobj;
6882 fail:
6883 return NULL;
6884 }
6885
6886
6887 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6888 PyObject *resultobj = 0;
6889 wxGauge *arg1 = (wxGauge *) 0 ;
6890 wxWindow *arg2 = (wxWindow *) 0 ;
6891 int arg3 = (int) -1 ;
6892 int arg4 = (int) 100 ;
6893 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6894 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6895 wxSize const &arg6_defvalue = wxDefaultSize ;
6896 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6897 long arg7 = (long) wxGA_HORIZONTAL ;
6898 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6899 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6900 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6901 wxString *arg9 = (wxString *) &arg9_defvalue ;
6902 bool result;
6903 void *argp1 = 0 ;
6904 int res1 = 0 ;
6905 void *argp2 = 0 ;
6906 int res2 = 0 ;
6907 int val3 ;
6908 int ecode3 = 0 ;
6909 int val4 ;
6910 int ecode4 = 0 ;
6911 wxPoint temp5 ;
6912 wxSize temp6 ;
6913 long val7 ;
6914 int ecode7 = 0 ;
6915 void *argp8 = 0 ;
6916 int res8 = 0 ;
6917 bool temp9 = false ;
6918 PyObject * obj0 = 0 ;
6919 PyObject * obj1 = 0 ;
6920 PyObject * obj2 = 0 ;
6921 PyObject * obj3 = 0 ;
6922 PyObject * obj4 = 0 ;
6923 PyObject * obj5 = 0 ;
6924 PyObject * obj6 = 0 ;
6925 PyObject * obj7 = 0 ;
6926 PyObject * obj8 = 0 ;
6927 char * kwnames[] = {
6928 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6929 };
6930
6931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6933 if (!SWIG_IsOK(res1)) {
6934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6935 }
6936 arg1 = reinterpret_cast< wxGauge * >(argp1);
6937 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6938 if (!SWIG_IsOK(res2)) {
6939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6940 }
6941 arg2 = reinterpret_cast< wxWindow * >(argp2);
6942 if (obj2) {
6943 ecode3 = SWIG_AsVal_int(obj2, &val3);
6944 if (!SWIG_IsOK(ecode3)) {
6945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6946 }
6947 arg3 = static_cast< int >(val3);
6948 }
6949 if (obj3) {
6950 ecode4 = SWIG_AsVal_int(obj3, &val4);
6951 if (!SWIG_IsOK(ecode4)) {
6952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6953 }
6954 arg4 = static_cast< int >(val4);
6955 }
6956 if (obj4) {
6957 {
6958 arg5 = &temp5;
6959 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6960 }
6961 }
6962 if (obj5) {
6963 {
6964 arg6 = &temp6;
6965 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6966 }
6967 }
6968 if (obj6) {
6969 ecode7 = SWIG_AsVal_long(obj6, &val7);
6970 if (!SWIG_IsOK(ecode7)) {
6971 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6972 }
6973 arg7 = static_cast< long >(val7);
6974 }
6975 if (obj7) {
6976 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6977 if (!SWIG_IsOK(res8)) {
6978 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6979 }
6980 if (!argp8) {
6981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6982 }
6983 arg8 = reinterpret_cast< wxValidator * >(argp8);
6984 }
6985 if (obj8) {
6986 {
6987 arg9 = wxString_in_helper(obj8);
6988 if (arg9 == NULL) SWIG_fail;
6989 temp9 = true;
6990 }
6991 }
6992 {
6993 PyThreadState* __tstate = wxPyBeginAllowThreads();
6994 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6995 wxPyEndAllowThreads(__tstate);
6996 if (PyErr_Occurred()) SWIG_fail;
6997 }
6998 {
6999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7000 }
7001 {
7002 if (temp9)
7003 delete arg9;
7004 }
7005 return resultobj;
7006 fail:
7007 {
7008 if (temp9)
7009 delete arg9;
7010 }
7011 return NULL;
7012 }
7013
7014
7015 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7016 PyObject *resultobj = 0;
7017 wxGauge *arg1 = (wxGauge *) 0 ;
7018 int arg2 ;
7019 void *argp1 = 0 ;
7020 int res1 = 0 ;
7021 int val2 ;
7022 int ecode2 = 0 ;
7023 PyObject * obj0 = 0 ;
7024 PyObject * obj1 = 0 ;
7025 char * kwnames[] = {
7026 (char *) "self",(char *) "range", NULL
7027 };
7028
7029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7031 if (!SWIG_IsOK(res1)) {
7032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7033 }
7034 arg1 = reinterpret_cast< wxGauge * >(argp1);
7035 ecode2 = SWIG_AsVal_int(obj1, &val2);
7036 if (!SWIG_IsOK(ecode2)) {
7037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7038 }
7039 arg2 = static_cast< int >(val2);
7040 {
7041 PyThreadState* __tstate = wxPyBeginAllowThreads();
7042 (arg1)->SetRange(arg2);
7043 wxPyEndAllowThreads(__tstate);
7044 if (PyErr_Occurred()) SWIG_fail;
7045 }
7046 resultobj = SWIG_Py_Void();
7047 return resultobj;
7048 fail:
7049 return NULL;
7050 }
7051
7052
7053 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7054 PyObject *resultobj = 0;
7055 wxGauge *arg1 = (wxGauge *) 0 ;
7056 int result;
7057 void *argp1 = 0 ;
7058 int res1 = 0 ;
7059 PyObject *swig_obj[1] ;
7060
7061 if (!args) SWIG_fail;
7062 swig_obj[0] = args;
7063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7064 if (!SWIG_IsOK(res1)) {
7065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7066 }
7067 arg1 = reinterpret_cast< wxGauge * >(argp1);
7068 {
7069 PyThreadState* __tstate = wxPyBeginAllowThreads();
7070 result = (int)((wxGauge const *)arg1)->GetRange();
7071 wxPyEndAllowThreads(__tstate);
7072 if (PyErr_Occurred()) SWIG_fail;
7073 }
7074 resultobj = SWIG_From_int(static_cast< int >(result));
7075 return resultobj;
7076 fail:
7077 return NULL;
7078 }
7079
7080
7081 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7082 PyObject *resultobj = 0;
7083 wxGauge *arg1 = (wxGauge *) 0 ;
7084 int arg2 ;
7085 void *argp1 = 0 ;
7086 int res1 = 0 ;
7087 int val2 ;
7088 int ecode2 = 0 ;
7089 PyObject * obj0 = 0 ;
7090 PyObject * obj1 = 0 ;
7091 char * kwnames[] = {
7092 (char *) "self",(char *) "pos", NULL
7093 };
7094
7095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7097 if (!SWIG_IsOK(res1)) {
7098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7099 }
7100 arg1 = reinterpret_cast< wxGauge * >(argp1);
7101 ecode2 = SWIG_AsVal_int(obj1, &val2);
7102 if (!SWIG_IsOK(ecode2)) {
7103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7104 }
7105 arg2 = static_cast< int >(val2);
7106 {
7107 PyThreadState* __tstate = wxPyBeginAllowThreads();
7108 (arg1)->SetValue(arg2);
7109 wxPyEndAllowThreads(__tstate);
7110 if (PyErr_Occurred()) SWIG_fail;
7111 }
7112 resultobj = SWIG_Py_Void();
7113 return resultobj;
7114 fail:
7115 return NULL;
7116 }
7117
7118
7119 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7120 PyObject *resultobj = 0;
7121 wxGauge *arg1 = (wxGauge *) 0 ;
7122 int result;
7123 void *argp1 = 0 ;
7124 int res1 = 0 ;
7125 PyObject *swig_obj[1] ;
7126
7127 if (!args) SWIG_fail;
7128 swig_obj[0] = args;
7129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7130 if (!SWIG_IsOK(res1)) {
7131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7132 }
7133 arg1 = reinterpret_cast< wxGauge * >(argp1);
7134 {
7135 PyThreadState* __tstate = wxPyBeginAllowThreads();
7136 result = (int)((wxGauge const *)arg1)->GetValue();
7137 wxPyEndAllowThreads(__tstate);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 resultobj = SWIG_From_int(static_cast< int >(result));
7141 return resultobj;
7142 fail:
7143 return NULL;
7144 }
7145
7146
7147 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7148 PyObject *resultobj = 0;
7149 wxGauge *arg1 = (wxGauge *) 0 ;
7150 void *argp1 = 0 ;
7151 int res1 = 0 ;
7152 PyObject *swig_obj[1] ;
7153
7154 if (!args) SWIG_fail;
7155 swig_obj[0] = args;
7156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7157 if (!SWIG_IsOK(res1)) {
7158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7159 }
7160 arg1 = reinterpret_cast< wxGauge * >(argp1);
7161 {
7162 PyThreadState* __tstate = wxPyBeginAllowThreads();
7163 (arg1)->Pulse();
7164 wxPyEndAllowThreads(__tstate);
7165 if (PyErr_Occurred()) SWIG_fail;
7166 }
7167 resultobj = SWIG_Py_Void();
7168 return resultobj;
7169 fail:
7170 return NULL;
7171 }
7172
7173
7174 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7175 PyObject *resultobj = 0;
7176 wxGauge *arg1 = (wxGauge *) 0 ;
7177 bool result;
7178 void *argp1 = 0 ;
7179 int res1 = 0 ;
7180 PyObject *swig_obj[1] ;
7181
7182 if (!args) SWIG_fail;
7183 swig_obj[0] = args;
7184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7185 if (!SWIG_IsOK(res1)) {
7186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7187 }
7188 arg1 = reinterpret_cast< wxGauge * >(argp1);
7189 {
7190 PyThreadState* __tstate = wxPyBeginAllowThreads();
7191 result = (bool)((wxGauge const *)arg1)->IsVertical();
7192 wxPyEndAllowThreads(__tstate);
7193 if (PyErr_Occurred()) SWIG_fail;
7194 }
7195 {
7196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7197 }
7198 return resultobj;
7199 fail:
7200 return NULL;
7201 }
7202
7203
7204 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7205 PyObject *resultobj = 0;
7206 wxGauge *arg1 = (wxGauge *) 0 ;
7207 int arg2 ;
7208 void *argp1 = 0 ;
7209 int res1 = 0 ;
7210 int val2 ;
7211 int ecode2 = 0 ;
7212 PyObject * obj0 = 0 ;
7213 PyObject * obj1 = 0 ;
7214 char * kwnames[] = {
7215 (char *) "self",(char *) "w", NULL
7216 };
7217
7218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7220 if (!SWIG_IsOK(res1)) {
7221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7222 }
7223 arg1 = reinterpret_cast< wxGauge * >(argp1);
7224 ecode2 = SWIG_AsVal_int(obj1, &val2);
7225 if (!SWIG_IsOK(ecode2)) {
7226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7227 }
7228 arg2 = static_cast< int >(val2);
7229 {
7230 PyThreadState* __tstate = wxPyBeginAllowThreads();
7231 (arg1)->SetShadowWidth(arg2);
7232 wxPyEndAllowThreads(__tstate);
7233 if (PyErr_Occurred()) SWIG_fail;
7234 }
7235 resultobj = SWIG_Py_Void();
7236 return resultobj;
7237 fail:
7238 return NULL;
7239 }
7240
7241
7242 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7243 PyObject *resultobj = 0;
7244 wxGauge *arg1 = (wxGauge *) 0 ;
7245 int result;
7246 void *argp1 = 0 ;
7247 int res1 = 0 ;
7248 PyObject *swig_obj[1] ;
7249
7250 if (!args) SWIG_fail;
7251 swig_obj[0] = args;
7252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7253 if (!SWIG_IsOK(res1)) {
7254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7255 }
7256 arg1 = reinterpret_cast< wxGauge * >(argp1);
7257 {
7258 PyThreadState* __tstate = wxPyBeginAllowThreads();
7259 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7260 wxPyEndAllowThreads(__tstate);
7261 if (PyErr_Occurred()) SWIG_fail;
7262 }
7263 resultobj = SWIG_From_int(static_cast< int >(result));
7264 return resultobj;
7265 fail:
7266 return NULL;
7267 }
7268
7269
7270 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7271 PyObject *resultobj = 0;
7272 wxGauge *arg1 = (wxGauge *) 0 ;
7273 int arg2 ;
7274 void *argp1 = 0 ;
7275 int res1 = 0 ;
7276 int val2 ;
7277 int ecode2 = 0 ;
7278 PyObject * obj0 = 0 ;
7279 PyObject * obj1 = 0 ;
7280 char * kwnames[] = {
7281 (char *) "self",(char *) "w", NULL
7282 };
7283
7284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7286 if (!SWIG_IsOK(res1)) {
7287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7288 }
7289 arg1 = reinterpret_cast< wxGauge * >(argp1);
7290 ecode2 = SWIG_AsVal_int(obj1, &val2);
7291 if (!SWIG_IsOK(ecode2)) {
7292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7293 }
7294 arg2 = static_cast< int >(val2);
7295 {
7296 PyThreadState* __tstate = wxPyBeginAllowThreads();
7297 (arg1)->SetBezelFace(arg2);
7298 wxPyEndAllowThreads(__tstate);
7299 if (PyErr_Occurred()) SWIG_fail;
7300 }
7301 resultobj = SWIG_Py_Void();
7302 return resultobj;
7303 fail:
7304 return NULL;
7305 }
7306
7307
7308 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7309 PyObject *resultobj = 0;
7310 wxGauge *arg1 = (wxGauge *) 0 ;
7311 int result;
7312 void *argp1 = 0 ;
7313 int res1 = 0 ;
7314 PyObject *swig_obj[1] ;
7315
7316 if (!args) SWIG_fail;
7317 swig_obj[0] = args;
7318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7319 if (!SWIG_IsOK(res1)) {
7320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7321 }
7322 arg1 = reinterpret_cast< wxGauge * >(argp1);
7323 {
7324 PyThreadState* __tstate = wxPyBeginAllowThreads();
7325 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7326 wxPyEndAllowThreads(__tstate);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 resultobj = SWIG_From_int(static_cast< int >(result));
7330 return resultobj;
7331 fail:
7332 return NULL;
7333 }
7334
7335
7336 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7337 PyObject *resultobj = 0;
7338 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7339 SwigValueWrapper<wxVisualAttributes > result;
7340 int val1 ;
7341 int ecode1 = 0 ;
7342 PyObject * obj0 = 0 ;
7343 char * kwnames[] = {
7344 (char *) "variant", NULL
7345 };
7346
7347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7348 if (obj0) {
7349 ecode1 = SWIG_AsVal_int(obj0, &val1);
7350 if (!SWIG_IsOK(ecode1)) {
7351 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7352 }
7353 arg1 = static_cast< wxWindowVariant >(val1);
7354 }
7355 {
7356 if (!wxPyCheckForApp()) SWIG_fail;
7357 PyThreadState* __tstate = wxPyBeginAllowThreads();
7358 result = wxGauge::GetClassDefaultAttributes(arg1);
7359 wxPyEndAllowThreads(__tstate);
7360 if (PyErr_Occurred()) SWIG_fail;
7361 }
7362 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7363 return resultobj;
7364 fail:
7365 return NULL;
7366 }
7367
7368
7369 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7370 PyObject *obj;
7371 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7372 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7373 return SWIG_Py_Void();
7374 }
7375
7376 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7377 return SWIG_Python_InitShadowInstance(args);
7378 }
7379
7380 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7381 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7382 return 1;
7383 }
7384
7385
7386 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7387 PyObject *pyobj = 0;
7388
7389 {
7390 #if wxUSE_UNICODE
7391 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7392 #else
7393 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7394 #endif
7395 }
7396 return pyobj;
7397 }
7398
7399
7400 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7401 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7402 return 1;
7403 }
7404
7405
7406 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7407 PyObject *pyobj = 0;
7408
7409 {
7410 #if wxUSE_UNICODE
7411 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7412 #else
7413 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7414 #endif
7415 }
7416 return pyobj;
7417 }
7418
7419
7420 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7421 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7422 return 1;
7423 }
7424
7425
7426 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7427 PyObject *pyobj = 0;
7428
7429 {
7430 #if wxUSE_UNICODE
7431 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7432 #else
7433 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7434 #endif
7435 }
7436 return pyobj;
7437 }
7438
7439
7440 SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7441 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7442 return 1;
7443 }
7444
7445
7446 SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7447 PyObject *pyobj = 0;
7448
7449 {
7450 #if wxUSE_UNICODE
7451 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7452 #else
7453 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7454 #endif
7455 }
7456 return pyobj;
7457 }
7458
7459
7460 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7461 PyObject *resultobj = 0;
7462 wxWindow *arg1 = (wxWindow *) 0 ;
7463 int arg2 = (int) -1 ;
7464 wxString const &arg3_defvalue = wxPyEmptyString ;
7465 wxString *arg3 = (wxString *) &arg3_defvalue ;
7466 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7467 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7468 wxSize const &arg5_defvalue = wxDefaultSize ;
7469 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7470 long arg6 = (long) 0 ;
7471 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7472 wxString *arg7 = (wxString *) &arg7_defvalue ;
7473 wxStaticBox *result = 0 ;
7474 void *argp1 = 0 ;
7475 int res1 = 0 ;
7476 int val2 ;
7477 int ecode2 = 0 ;
7478 bool temp3 = false ;
7479 wxPoint temp4 ;
7480 wxSize temp5 ;
7481 long val6 ;
7482 int ecode6 = 0 ;
7483 bool temp7 = false ;
7484 PyObject * obj0 = 0 ;
7485 PyObject * obj1 = 0 ;
7486 PyObject * obj2 = 0 ;
7487 PyObject * obj3 = 0 ;
7488 PyObject * obj4 = 0 ;
7489 PyObject * obj5 = 0 ;
7490 PyObject * obj6 = 0 ;
7491 char * kwnames[] = {
7492 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7493 };
7494
7495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7497 if (!SWIG_IsOK(res1)) {
7498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7499 }
7500 arg1 = reinterpret_cast< wxWindow * >(argp1);
7501 if (obj1) {
7502 ecode2 = SWIG_AsVal_int(obj1, &val2);
7503 if (!SWIG_IsOK(ecode2)) {
7504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7505 }
7506 arg2 = static_cast< int >(val2);
7507 }
7508 if (obj2) {
7509 {
7510 arg3 = wxString_in_helper(obj2);
7511 if (arg3 == NULL) SWIG_fail;
7512 temp3 = true;
7513 }
7514 }
7515 if (obj3) {
7516 {
7517 arg4 = &temp4;
7518 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7519 }
7520 }
7521 if (obj4) {
7522 {
7523 arg5 = &temp5;
7524 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7525 }
7526 }
7527 if (obj5) {
7528 ecode6 = SWIG_AsVal_long(obj5, &val6);
7529 if (!SWIG_IsOK(ecode6)) {
7530 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7531 }
7532 arg6 = static_cast< long >(val6);
7533 }
7534 if (obj6) {
7535 {
7536 arg7 = wxString_in_helper(obj6);
7537 if (arg7 == NULL) SWIG_fail;
7538 temp7 = true;
7539 }
7540 }
7541 {
7542 if (!wxPyCheckForApp()) SWIG_fail;
7543 PyThreadState* __tstate = wxPyBeginAllowThreads();
7544 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7545 wxPyEndAllowThreads(__tstate);
7546 if (PyErr_Occurred()) SWIG_fail;
7547 }
7548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7549 {
7550 if (temp3)
7551 delete arg3;
7552 }
7553 {
7554 if (temp7)
7555 delete arg7;
7556 }
7557 return resultobj;
7558 fail:
7559 {
7560 if (temp3)
7561 delete arg3;
7562 }
7563 {
7564 if (temp7)
7565 delete arg7;
7566 }
7567 return NULL;
7568 }
7569
7570
7571 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7572 PyObject *resultobj = 0;
7573 wxStaticBox *result = 0 ;
7574
7575 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7576 {
7577 if (!wxPyCheckForApp()) SWIG_fail;
7578 PyThreadState* __tstate = wxPyBeginAllowThreads();
7579 result = (wxStaticBox *)new wxStaticBox();
7580 wxPyEndAllowThreads(__tstate);
7581 if (PyErr_Occurred()) SWIG_fail;
7582 }
7583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7584 return resultobj;
7585 fail:
7586 return NULL;
7587 }
7588
7589
7590 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7591 PyObject *resultobj = 0;
7592 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7593 wxWindow *arg2 = (wxWindow *) 0 ;
7594 int arg3 = (int) -1 ;
7595 wxString const &arg4_defvalue = wxPyEmptyString ;
7596 wxString *arg4 = (wxString *) &arg4_defvalue ;
7597 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7598 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7599 wxSize const &arg6_defvalue = wxDefaultSize ;
7600 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7601 long arg7 = (long) 0 ;
7602 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7603 wxString *arg8 = (wxString *) &arg8_defvalue ;
7604 bool result;
7605 void *argp1 = 0 ;
7606 int res1 = 0 ;
7607 void *argp2 = 0 ;
7608 int res2 = 0 ;
7609 int val3 ;
7610 int ecode3 = 0 ;
7611 bool temp4 = false ;
7612 wxPoint temp5 ;
7613 wxSize temp6 ;
7614 long val7 ;
7615 int ecode7 = 0 ;
7616 bool temp8 = false ;
7617 PyObject * obj0 = 0 ;
7618 PyObject * obj1 = 0 ;
7619 PyObject * obj2 = 0 ;
7620 PyObject * obj3 = 0 ;
7621 PyObject * obj4 = 0 ;
7622 PyObject * obj5 = 0 ;
7623 PyObject * obj6 = 0 ;
7624 PyObject * obj7 = 0 ;
7625 char * kwnames[] = {
7626 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7627 };
7628
7629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7631 if (!SWIG_IsOK(res1)) {
7632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7633 }
7634 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7635 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7636 if (!SWIG_IsOK(res2)) {
7637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7638 }
7639 arg2 = reinterpret_cast< wxWindow * >(argp2);
7640 if (obj2) {
7641 ecode3 = SWIG_AsVal_int(obj2, &val3);
7642 if (!SWIG_IsOK(ecode3)) {
7643 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7644 }
7645 arg3 = static_cast< int >(val3);
7646 }
7647 if (obj3) {
7648 {
7649 arg4 = wxString_in_helper(obj3);
7650 if (arg4 == NULL) SWIG_fail;
7651 temp4 = true;
7652 }
7653 }
7654 if (obj4) {
7655 {
7656 arg5 = &temp5;
7657 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7658 }
7659 }
7660 if (obj5) {
7661 {
7662 arg6 = &temp6;
7663 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7664 }
7665 }
7666 if (obj6) {
7667 ecode7 = SWIG_AsVal_long(obj6, &val7);
7668 if (!SWIG_IsOK(ecode7)) {
7669 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7670 }
7671 arg7 = static_cast< long >(val7);
7672 }
7673 if (obj7) {
7674 {
7675 arg8 = wxString_in_helper(obj7);
7676 if (arg8 == NULL) SWIG_fail;
7677 temp8 = true;
7678 }
7679 }
7680 {
7681 PyThreadState* __tstate = wxPyBeginAllowThreads();
7682 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7683 wxPyEndAllowThreads(__tstate);
7684 if (PyErr_Occurred()) SWIG_fail;
7685 }
7686 {
7687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7688 }
7689 {
7690 if (temp4)
7691 delete arg4;
7692 }
7693 {
7694 if (temp8)
7695 delete arg8;
7696 }
7697 return resultobj;
7698 fail:
7699 {
7700 if (temp4)
7701 delete arg4;
7702 }
7703 {
7704 if (temp8)
7705 delete arg8;
7706 }
7707 return NULL;
7708 }
7709
7710
7711 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7712 PyObject *resultobj = 0;
7713 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7714 SwigValueWrapper<wxVisualAttributes > result;
7715 int val1 ;
7716 int ecode1 = 0 ;
7717 PyObject * obj0 = 0 ;
7718 char * kwnames[] = {
7719 (char *) "variant", NULL
7720 };
7721
7722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7723 if (obj0) {
7724 ecode1 = SWIG_AsVal_int(obj0, &val1);
7725 if (!SWIG_IsOK(ecode1)) {
7726 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7727 }
7728 arg1 = static_cast< wxWindowVariant >(val1);
7729 }
7730 {
7731 if (!wxPyCheckForApp()) SWIG_fail;
7732 PyThreadState* __tstate = wxPyBeginAllowThreads();
7733 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7734 wxPyEndAllowThreads(__tstate);
7735 if (PyErr_Occurred()) SWIG_fail;
7736 }
7737 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7738 return resultobj;
7739 fail:
7740 return NULL;
7741 }
7742
7743
7744 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7745 PyObject *obj;
7746 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7747 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7748 return SWIG_Py_Void();
7749 }
7750
7751 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7752 return SWIG_Python_InitShadowInstance(args);
7753 }
7754
7755 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7756 PyObject *resultobj = 0;
7757 wxWindow *arg1 = (wxWindow *) 0 ;
7758 int arg2 = (int) -1 ;
7759 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7760 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7761 wxSize const &arg4_defvalue = wxDefaultSize ;
7762 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7763 long arg5 = (long) wxLI_HORIZONTAL ;
7764 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
7765 wxString *arg6 = (wxString *) &arg6_defvalue ;
7766 wxStaticLine *result = 0 ;
7767 void *argp1 = 0 ;
7768 int res1 = 0 ;
7769 int val2 ;
7770 int ecode2 = 0 ;
7771 wxPoint temp3 ;
7772 wxSize temp4 ;
7773 long val5 ;
7774 int ecode5 = 0 ;
7775 bool temp6 = false ;
7776 PyObject * obj0 = 0 ;
7777 PyObject * obj1 = 0 ;
7778 PyObject * obj2 = 0 ;
7779 PyObject * obj3 = 0 ;
7780 PyObject * obj4 = 0 ;
7781 PyObject * obj5 = 0 ;
7782 char * kwnames[] = {
7783 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7784 };
7785
7786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7788 if (!SWIG_IsOK(res1)) {
7789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7790 }
7791 arg1 = reinterpret_cast< wxWindow * >(argp1);
7792 if (obj1) {
7793 ecode2 = SWIG_AsVal_int(obj1, &val2);
7794 if (!SWIG_IsOK(ecode2)) {
7795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7796 }
7797 arg2 = static_cast< int >(val2);
7798 }
7799 if (obj2) {
7800 {
7801 arg3 = &temp3;
7802 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7803 }
7804 }
7805 if (obj3) {
7806 {
7807 arg4 = &temp4;
7808 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7809 }
7810 }
7811 if (obj4) {
7812 ecode5 = SWIG_AsVal_long(obj4, &val5);
7813 if (!SWIG_IsOK(ecode5)) {
7814 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7815 }
7816 arg5 = static_cast< long >(val5);
7817 }
7818 if (obj5) {
7819 {
7820 arg6 = wxString_in_helper(obj5);
7821 if (arg6 == NULL) SWIG_fail;
7822 temp6 = true;
7823 }
7824 }
7825 {
7826 if (!wxPyCheckForApp()) SWIG_fail;
7827 PyThreadState* __tstate = wxPyBeginAllowThreads();
7828 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7829 wxPyEndAllowThreads(__tstate);
7830 if (PyErr_Occurred()) SWIG_fail;
7831 }
7832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7833 {
7834 if (temp6)
7835 delete arg6;
7836 }
7837 return resultobj;
7838 fail:
7839 {
7840 if (temp6)
7841 delete arg6;
7842 }
7843 return NULL;
7844 }
7845
7846
7847 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7848 PyObject *resultobj = 0;
7849 wxStaticLine *result = 0 ;
7850
7851 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7852 {
7853 if (!wxPyCheckForApp()) SWIG_fail;
7854 PyThreadState* __tstate = wxPyBeginAllowThreads();
7855 result = (wxStaticLine *)new wxStaticLine();
7856 wxPyEndAllowThreads(__tstate);
7857 if (PyErr_Occurred()) SWIG_fail;
7858 }
7859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7860 return resultobj;
7861 fail:
7862 return NULL;
7863 }
7864
7865
7866 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7867 PyObject *resultobj = 0;
7868 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7869 wxWindow *arg2 = (wxWindow *) 0 ;
7870 int arg3 = (int) -1 ;
7871 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7872 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7873 wxSize const &arg5_defvalue = wxDefaultSize ;
7874 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7875 long arg6 = (long) wxLI_HORIZONTAL ;
7876 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
7877 wxString *arg7 = (wxString *) &arg7_defvalue ;
7878 bool result;
7879 void *argp1 = 0 ;
7880 int res1 = 0 ;
7881 void *argp2 = 0 ;
7882 int res2 = 0 ;
7883 int val3 ;
7884 int ecode3 = 0 ;
7885 wxPoint temp4 ;
7886 wxSize temp5 ;
7887 long val6 ;
7888 int ecode6 = 0 ;
7889 bool temp7 = false ;
7890 PyObject * obj0 = 0 ;
7891 PyObject * obj1 = 0 ;
7892 PyObject * obj2 = 0 ;
7893 PyObject * obj3 = 0 ;
7894 PyObject * obj4 = 0 ;
7895 PyObject * obj5 = 0 ;
7896 PyObject * obj6 = 0 ;
7897 char * kwnames[] = {
7898 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7899 };
7900
7901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7903 if (!SWIG_IsOK(res1)) {
7904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7905 }
7906 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7907 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7908 if (!SWIG_IsOK(res2)) {
7909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7910 }
7911 arg2 = reinterpret_cast< wxWindow * >(argp2);
7912 if (obj2) {
7913 ecode3 = SWIG_AsVal_int(obj2, &val3);
7914 if (!SWIG_IsOK(ecode3)) {
7915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7916 }
7917 arg3 = static_cast< int >(val3);
7918 }
7919 if (obj3) {
7920 {
7921 arg4 = &temp4;
7922 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7923 }
7924 }
7925 if (obj4) {
7926 {
7927 arg5 = &temp5;
7928 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7929 }
7930 }
7931 if (obj5) {
7932 ecode6 = SWIG_AsVal_long(obj5, &val6);
7933 if (!SWIG_IsOK(ecode6)) {
7934 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7935 }
7936 arg6 = static_cast< long >(val6);
7937 }
7938 if (obj6) {
7939 {
7940 arg7 = wxString_in_helper(obj6);
7941 if (arg7 == NULL) SWIG_fail;
7942 temp7 = true;
7943 }
7944 }
7945 {
7946 PyThreadState* __tstate = wxPyBeginAllowThreads();
7947 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7948 wxPyEndAllowThreads(__tstate);
7949 if (PyErr_Occurred()) SWIG_fail;
7950 }
7951 {
7952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7953 }
7954 {
7955 if (temp7)
7956 delete arg7;
7957 }
7958 return resultobj;
7959 fail:
7960 {
7961 if (temp7)
7962 delete arg7;
7963 }
7964 return NULL;
7965 }
7966
7967
7968 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7969 PyObject *resultobj = 0;
7970 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7971 bool result;
7972 void *argp1 = 0 ;
7973 int res1 = 0 ;
7974 PyObject *swig_obj[1] ;
7975
7976 if (!args) SWIG_fail;
7977 swig_obj[0] = args;
7978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7979 if (!SWIG_IsOK(res1)) {
7980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7981 }
7982 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7983 {
7984 PyThreadState* __tstate = wxPyBeginAllowThreads();
7985 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7986 wxPyEndAllowThreads(__tstate);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
7989 {
7990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7991 }
7992 return resultobj;
7993 fail:
7994 return NULL;
7995 }
7996
7997
7998 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7999 PyObject *resultobj = 0;
8000 int result;
8001
8002 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8003 {
8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
8005 result = (int)wxStaticLine::GetDefaultSize();
8006 wxPyEndAllowThreads(__tstate);
8007 if (PyErr_Occurred()) SWIG_fail;
8008 }
8009 resultobj = SWIG_From_int(static_cast< int >(result));
8010 return resultobj;
8011 fail:
8012 return NULL;
8013 }
8014
8015
8016 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8017 PyObject *resultobj = 0;
8018 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8019 SwigValueWrapper<wxVisualAttributes > result;
8020 int val1 ;
8021 int ecode1 = 0 ;
8022 PyObject * obj0 = 0 ;
8023 char * kwnames[] = {
8024 (char *) "variant", NULL
8025 };
8026
8027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8028 if (obj0) {
8029 ecode1 = SWIG_AsVal_int(obj0, &val1);
8030 if (!SWIG_IsOK(ecode1)) {
8031 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8032 }
8033 arg1 = static_cast< wxWindowVariant >(val1);
8034 }
8035 {
8036 if (!wxPyCheckForApp()) SWIG_fail;
8037 PyThreadState* __tstate = wxPyBeginAllowThreads();
8038 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8039 wxPyEndAllowThreads(__tstate);
8040 if (PyErr_Occurred()) SWIG_fail;
8041 }
8042 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8043 return resultobj;
8044 fail:
8045 return NULL;
8046 }
8047
8048
8049 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8050 PyObject *obj;
8051 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8052 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8053 return SWIG_Py_Void();
8054 }
8055
8056 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8057 return SWIG_Python_InitShadowInstance(args);
8058 }
8059
8060 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8061 PyObject *resultobj = 0;
8062 wxWindow *arg1 = (wxWindow *) 0 ;
8063 int arg2 = (int) -1 ;
8064 wxString const &arg3_defvalue = wxPyEmptyString ;
8065 wxString *arg3 = (wxString *) &arg3_defvalue ;
8066 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8067 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8068 wxSize const &arg5_defvalue = wxDefaultSize ;
8069 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8070 long arg6 = (long) 0 ;
8071 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8072 wxString *arg7 = (wxString *) &arg7_defvalue ;
8073 wxStaticText *result = 0 ;
8074 void *argp1 = 0 ;
8075 int res1 = 0 ;
8076 int val2 ;
8077 int ecode2 = 0 ;
8078 bool temp3 = false ;
8079 wxPoint temp4 ;
8080 wxSize temp5 ;
8081 long val6 ;
8082 int ecode6 = 0 ;
8083 bool temp7 = false ;
8084 PyObject * obj0 = 0 ;
8085 PyObject * obj1 = 0 ;
8086 PyObject * obj2 = 0 ;
8087 PyObject * obj3 = 0 ;
8088 PyObject * obj4 = 0 ;
8089 PyObject * obj5 = 0 ;
8090 PyObject * obj6 = 0 ;
8091 char * kwnames[] = {
8092 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8093 };
8094
8095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8097 if (!SWIG_IsOK(res1)) {
8098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8099 }
8100 arg1 = reinterpret_cast< wxWindow * >(argp1);
8101 if (obj1) {
8102 ecode2 = SWIG_AsVal_int(obj1, &val2);
8103 if (!SWIG_IsOK(ecode2)) {
8104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8105 }
8106 arg2 = static_cast< int >(val2);
8107 }
8108 if (obj2) {
8109 {
8110 arg3 = wxString_in_helper(obj2);
8111 if (arg3 == NULL) SWIG_fail;
8112 temp3 = true;
8113 }
8114 }
8115 if (obj3) {
8116 {
8117 arg4 = &temp4;
8118 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8119 }
8120 }
8121 if (obj4) {
8122 {
8123 arg5 = &temp5;
8124 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8125 }
8126 }
8127 if (obj5) {
8128 ecode6 = SWIG_AsVal_long(obj5, &val6);
8129 if (!SWIG_IsOK(ecode6)) {
8130 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8131 }
8132 arg6 = static_cast< long >(val6);
8133 }
8134 if (obj6) {
8135 {
8136 arg7 = wxString_in_helper(obj6);
8137 if (arg7 == NULL) SWIG_fail;
8138 temp7 = true;
8139 }
8140 }
8141 {
8142 if (!wxPyCheckForApp()) SWIG_fail;
8143 PyThreadState* __tstate = wxPyBeginAllowThreads();
8144 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8145 wxPyEndAllowThreads(__tstate);
8146 if (PyErr_Occurred()) SWIG_fail;
8147 }
8148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8149 {
8150 if (temp3)
8151 delete arg3;
8152 }
8153 {
8154 if (temp7)
8155 delete arg7;
8156 }
8157 return resultobj;
8158 fail:
8159 {
8160 if (temp3)
8161 delete arg3;
8162 }
8163 {
8164 if (temp7)
8165 delete arg7;
8166 }
8167 return NULL;
8168 }
8169
8170
8171 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8172 PyObject *resultobj = 0;
8173 wxStaticText *result = 0 ;
8174
8175 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8176 {
8177 if (!wxPyCheckForApp()) SWIG_fail;
8178 PyThreadState* __tstate = wxPyBeginAllowThreads();
8179 result = (wxStaticText *)new wxStaticText();
8180 wxPyEndAllowThreads(__tstate);
8181 if (PyErr_Occurred()) SWIG_fail;
8182 }
8183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8184 return resultobj;
8185 fail:
8186 return NULL;
8187 }
8188
8189
8190 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8191 PyObject *resultobj = 0;
8192 wxStaticText *arg1 = (wxStaticText *) 0 ;
8193 wxWindow *arg2 = (wxWindow *) 0 ;
8194 int arg3 = (int) -1 ;
8195 wxString const &arg4_defvalue = wxPyEmptyString ;
8196 wxString *arg4 = (wxString *) &arg4_defvalue ;
8197 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8198 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8199 wxSize const &arg6_defvalue = wxDefaultSize ;
8200 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8201 long arg7 = (long) 0 ;
8202 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8203 wxString *arg8 = (wxString *) &arg8_defvalue ;
8204 bool result;
8205 void *argp1 = 0 ;
8206 int res1 = 0 ;
8207 void *argp2 = 0 ;
8208 int res2 = 0 ;
8209 int val3 ;
8210 int ecode3 = 0 ;
8211 bool temp4 = false ;
8212 wxPoint temp5 ;
8213 wxSize temp6 ;
8214 long val7 ;
8215 int ecode7 = 0 ;
8216 bool temp8 = false ;
8217 PyObject * obj0 = 0 ;
8218 PyObject * obj1 = 0 ;
8219 PyObject * obj2 = 0 ;
8220 PyObject * obj3 = 0 ;
8221 PyObject * obj4 = 0 ;
8222 PyObject * obj5 = 0 ;
8223 PyObject * obj6 = 0 ;
8224 PyObject * obj7 = 0 ;
8225 char * kwnames[] = {
8226 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8227 };
8228
8229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8231 if (!SWIG_IsOK(res1)) {
8232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8233 }
8234 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8235 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8236 if (!SWIG_IsOK(res2)) {
8237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8238 }
8239 arg2 = reinterpret_cast< wxWindow * >(argp2);
8240 if (obj2) {
8241 ecode3 = SWIG_AsVal_int(obj2, &val3);
8242 if (!SWIG_IsOK(ecode3)) {
8243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8244 }
8245 arg3 = static_cast< int >(val3);
8246 }
8247 if (obj3) {
8248 {
8249 arg4 = wxString_in_helper(obj3);
8250 if (arg4 == NULL) SWIG_fail;
8251 temp4 = true;
8252 }
8253 }
8254 if (obj4) {
8255 {
8256 arg5 = &temp5;
8257 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8258 }
8259 }
8260 if (obj5) {
8261 {
8262 arg6 = &temp6;
8263 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8264 }
8265 }
8266 if (obj6) {
8267 ecode7 = SWIG_AsVal_long(obj6, &val7);
8268 if (!SWIG_IsOK(ecode7)) {
8269 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8270 }
8271 arg7 = static_cast< long >(val7);
8272 }
8273 if (obj7) {
8274 {
8275 arg8 = wxString_in_helper(obj7);
8276 if (arg8 == NULL) SWIG_fail;
8277 temp8 = true;
8278 }
8279 }
8280 {
8281 PyThreadState* __tstate = wxPyBeginAllowThreads();
8282 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8283 wxPyEndAllowThreads(__tstate);
8284 if (PyErr_Occurred()) SWIG_fail;
8285 }
8286 {
8287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8288 }
8289 {
8290 if (temp4)
8291 delete arg4;
8292 }
8293 {
8294 if (temp8)
8295 delete arg8;
8296 }
8297 return resultobj;
8298 fail:
8299 {
8300 if (temp4)
8301 delete arg4;
8302 }
8303 {
8304 if (temp8)
8305 delete arg8;
8306 }
8307 return NULL;
8308 }
8309
8310
8311 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8312 PyObject *resultobj = 0;
8313 wxStaticText *arg1 = (wxStaticText *) 0 ;
8314 int arg2 ;
8315 void *argp1 = 0 ;
8316 int res1 = 0 ;
8317 int val2 ;
8318 int ecode2 = 0 ;
8319 PyObject * obj0 = 0 ;
8320 PyObject * obj1 = 0 ;
8321 char * kwnames[] = {
8322 (char *) "self",(char *) "width", NULL
8323 };
8324
8325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8327 if (!SWIG_IsOK(res1)) {
8328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8329 }
8330 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8331 ecode2 = SWIG_AsVal_int(obj1, &val2);
8332 if (!SWIG_IsOK(ecode2)) {
8333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8334 }
8335 arg2 = static_cast< int >(val2);
8336 {
8337 PyThreadState* __tstate = wxPyBeginAllowThreads();
8338 (arg1)->Wrap(arg2);
8339 wxPyEndAllowThreads(__tstate);
8340 if (PyErr_Occurred()) SWIG_fail;
8341 }
8342 resultobj = SWIG_Py_Void();
8343 return resultobj;
8344 fail:
8345 return NULL;
8346 }
8347
8348
8349 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8350 PyObject *resultobj = 0;
8351 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8352 SwigValueWrapper<wxVisualAttributes > result;
8353 int val1 ;
8354 int ecode1 = 0 ;
8355 PyObject * obj0 = 0 ;
8356 char * kwnames[] = {
8357 (char *) "variant", NULL
8358 };
8359
8360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8361 if (obj0) {
8362 ecode1 = SWIG_AsVal_int(obj0, &val1);
8363 if (!SWIG_IsOK(ecode1)) {
8364 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8365 }
8366 arg1 = static_cast< wxWindowVariant >(val1);
8367 }
8368 {
8369 if (!wxPyCheckForApp()) SWIG_fail;
8370 PyThreadState* __tstate = wxPyBeginAllowThreads();
8371 result = wxStaticText::GetClassDefaultAttributes(arg1);
8372 wxPyEndAllowThreads(__tstate);
8373 if (PyErr_Occurred()) SWIG_fail;
8374 }
8375 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8376 return resultobj;
8377 fail:
8378 return NULL;
8379 }
8380
8381
8382 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8383 PyObject *obj;
8384 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8385 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8386 return SWIG_Py_Void();
8387 }
8388
8389 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8390 return SWIG_Python_InitShadowInstance(args);
8391 }
8392
8393 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8394 PyObject *resultobj = 0;
8395 wxWindow *arg1 = (wxWindow *) 0 ;
8396 int arg2 = (int) -1 ;
8397 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8398 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8399 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8400 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8401 wxSize const &arg5_defvalue = wxDefaultSize ;
8402 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8403 long arg6 = (long) 0 ;
8404 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8405 wxString *arg7 = (wxString *) &arg7_defvalue ;
8406 wxStaticBitmap *result = 0 ;
8407 void *argp1 = 0 ;
8408 int res1 = 0 ;
8409 int val2 ;
8410 int ecode2 = 0 ;
8411 void *argp3 = 0 ;
8412 int res3 = 0 ;
8413 wxPoint temp4 ;
8414 wxSize temp5 ;
8415 long val6 ;
8416 int ecode6 = 0 ;
8417 bool temp7 = false ;
8418 PyObject * obj0 = 0 ;
8419 PyObject * obj1 = 0 ;
8420 PyObject * obj2 = 0 ;
8421 PyObject * obj3 = 0 ;
8422 PyObject * obj4 = 0 ;
8423 PyObject * obj5 = 0 ;
8424 PyObject * obj6 = 0 ;
8425 char * kwnames[] = {
8426 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8427 };
8428
8429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8431 if (!SWIG_IsOK(res1)) {
8432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8433 }
8434 arg1 = reinterpret_cast< wxWindow * >(argp1);
8435 if (obj1) {
8436 ecode2 = SWIG_AsVal_int(obj1, &val2);
8437 if (!SWIG_IsOK(ecode2)) {
8438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8439 }
8440 arg2 = static_cast< int >(val2);
8441 }
8442 if (obj2) {
8443 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8444 if (!SWIG_IsOK(res3)) {
8445 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8446 }
8447 if (!argp3) {
8448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8449 }
8450 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8451 }
8452 if (obj3) {
8453 {
8454 arg4 = &temp4;
8455 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8456 }
8457 }
8458 if (obj4) {
8459 {
8460 arg5 = &temp5;
8461 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8462 }
8463 }
8464 if (obj5) {
8465 ecode6 = SWIG_AsVal_long(obj5, &val6);
8466 if (!SWIG_IsOK(ecode6)) {
8467 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8468 }
8469 arg6 = static_cast< long >(val6);
8470 }
8471 if (obj6) {
8472 {
8473 arg7 = wxString_in_helper(obj6);
8474 if (arg7 == NULL) SWIG_fail;
8475 temp7 = true;
8476 }
8477 }
8478 {
8479 if (!wxPyCheckForApp()) SWIG_fail;
8480 PyThreadState* __tstate = wxPyBeginAllowThreads();
8481 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8482 wxPyEndAllowThreads(__tstate);
8483 if (PyErr_Occurred()) SWIG_fail;
8484 }
8485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8486 {
8487 if (temp7)
8488 delete arg7;
8489 }
8490 return resultobj;
8491 fail:
8492 {
8493 if (temp7)
8494 delete arg7;
8495 }
8496 return NULL;
8497 }
8498
8499
8500 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8501 PyObject *resultobj = 0;
8502 wxStaticBitmap *result = 0 ;
8503
8504 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8505 {
8506 if (!wxPyCheckForApp()) SWIG_fail;
8507 PyThreadState* __tstate = wxPyBeginAllowThreads();
8508 result = (wxStaticBitmap *)new wxStaticBitmap();
8509 wxPyEndAllowThreads(__tstate);
8510 if (PyErr_Occurred()) SWIG_fail;
8511 }
8512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8513 return resultobj;
8514 fail:
8515 return NULL;
8516 }
8517
8518
8519 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8520 PyObject *resultobj = 0;
8521 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8522 wxWindow *arg2 = (wxWindow *) 0 ;
8523 int arg3 = (int) -1 ;
8524 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8525 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8526 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8527 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8528 wxSize const &arg6_defvalue = wxDefaultSize ;
8529 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8530 long arg7 = (long) 0 ;
8531 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8532 wxString *arg8 = (wxString *) &arg8_defvalue ;
8533 bool result;
8534 void *argp1 = 0 ;
8535 int res1 = 0 ;
8536 void *argp2 = 0 ;
8537 int res2 = 0 ;
8538 int val3 ;
8539 int ecode3 = 0 ;
8540 void *argp4 = 0 ;
8541 int res4 = 0 ;
8542 wxPoint temp5 ;
8543 wxSize temp6 ;
8544 long val7 ;
8545 int ecode7 = 0 ;
8546 bool temp8 = false ;
8547 PyObject * obj0 = 0 ;
8548 PyObject * obj1 = 0 ;
8549 PyObject * obj2 = 0 ;
8550 PyObject * obj3 = 0 ;
8551 PyObject * obj4 = 0 ;
8552 PyObject * obj5 = 0 ;
8553 PyObject * obj6 = 0 ;
8554 PyObject * obj7 = 0 ;
8555 char * kwnames[] = {
8556 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8557 };
8558
8559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8561 if (!SWIG_IsOK(res1)) {
8562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8563 }
8564 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8565 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8566 if (!SWIG_IsOK(res2)) {
8567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8568 }
8569 arg2 = reinterpret_cast< wxWindow * >(argp2);
8570 if (obj2) {
8571 ecode3 = SWIG_AsVal_int(obj2, &val3);
8572 if (!SWIG_IsOK(ecode3)) {
8573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8574 }
8575 arg3 = static_cast< int >(val3);
8576 }
8577 if (obj3) {
8578 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8579 if (!SWIG_IsOK(res4)) {
8580 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8581 }
8582 if (!argp4) {
8583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8584 }
8585 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8586 }
8587 if (obj4) {
8588 {
8589 arg5 = &temp5;
8590 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8591 }
8592 }
8593 if (obj5) {
8594 {
8595 arg6 = &temp6;
8596 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8597 }
8598 }
8599 if (obj6) {
8600 ecode7 = SWIG_AsVal_long(obj6, &val7);
8601 if (!SWIG_IsOK(ecode7)) {
8602 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8603 }
8604 arg7 = static_cast< long >(val7);
8605 }
8606 if (obj7) {
8607 {
8608 arg8 = wxString_in_helper(obj7);
8609 if (arg8 == NULL) SWIG_fail;
8610 temp8 = true;
8611 }
8612 }
8613 {
8614 PyThreadState* __tstate = wxPyBeginAllowThreads();
8615 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8616 wxPyEndAllowThreads(__tstate);
8617 if (PyErr_Occurred()) SWIG_fail;
8618 }
8619 {
8620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8621 }
8622 {
8623 if (temp8)
8624 delete arg8;
8625 }
8626 return resultobj;
8627 fail:
8628 {
8629 if (temp8)
8630 delete arg8;
8631 }
8632 return NULL;
8633 }
8634
8635
8636 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8637 PyObject *resultobj = 0;
8638 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8639 wxBitmap result;
8640 void *argp1 = 0 ;
8641 int res1 = 0 ;
8642 PyObject *swig_obj[1] ;
8643
8644 if (!args) SWIG_fail;
8645 swig_obj[0] = args;
8646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8647 if (!SWIG_IsOK(res1)) {
8648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8649 }
8650 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8651 {
8652 PyThreadState* __tstate = wxPyBeginAllowThreads();
8653 result = (arg1)->GetBitmap();
8654 wxPyEndAllowThreads(__tstate);
8655 if (PyErr_Occurred()) SWIG_fail;
8656 }
8657 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8658 return resultobj;
8659 fail:
8660 return NULL;
8661 }
8662
8663
8664 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8665 PyObject *resultobj = 0;
8666 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8667 wxBitmap *arg2 = 0 ;
8668 void *argp1 = 0 ;
8669 int res1 = 0 ;
8670 void *argp2 = 0 ;
8671 int res2 = 0 ;
8672 PyObject * obj0 = 0 ;
8673 PyObject * obj1 = 0 ;
8674 char * kwnames[] = {
8675 (char *) "self",(char *) "bitmap", NULL
8676 };
8677
8678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8680 if (!SWIG_IsOK(res1)) {
8681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8682 }
8683 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8685 if (!SWIG_IsOK(res2)) {
8686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8687 }
8688 if (!argp2) {
8689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8690 }
8691 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8692 {
8693 PyThreadState* __tstate = wxPyBeginAllowThreads();
8694 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8695 wxPyEndAllowThreads(__tstate);
8696 if (PyErr_Occurred()) SWIG_fail;
8697 }
8698 resultobj = SWIG_Py_Void();
8699 return resultobj;
8700 fail:
8701 return NULL;
8702 }
8703
8704
8705 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8706 PyObject *resultobj = 0;
8707 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8708 wxIcon *arg2 = 0 ;
8709 void *argp1 = 0 ;
8710 int res1 = 0 ;
8711 void *argp2 = 0 ;
8712 int res2 = 0 ;
8713 PyObject * obj0 = 0 ;
8714 PyObject * obj1 = 0 ;
8715 char * kwnames[] = {
8716 (char *) "self",(char *) "icon", NULL
8717 };
8718
8719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8721 if (!SWIG_IsOK(res1)) {
8722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8723 }
8724 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8725 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8726 if (!SWIG_IsOK(res2)) {
8727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8728 }
8729 if (!argp2) {
8730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8731 }
8732 arg2 = reinterpret_cast< wxIcon * >(argp2);
8733 {
8734 PyThreadState* __tstate = wxPyBeginAllowThreads();
8735 (arg1)->SetIcon((wxIcon const &)*arg2);
8736 wxPyEndAllowThreads(__tstate);
8737 if (PyErr_Occurred()) SWIG_fail;
8738 }
8739 resultobj = SWIG_Py_Void();
8740 return resultobj;
8741 fail:
8742 return NULL;
8743 }
8744
8745
8746 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8747 PyObject *resultobj = 0;
8748 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8749 SwigValueWrapper<wxVisualAttributes > result;
8750 int val1 ;
8751 int ecode1 = 0 ;
8752 PyObject * obj0 = 0 ;
8753 char * kwnames[] = {
8754 (char *) "variant", NULL
8755 };
8756
8757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8758 if (obj0) {
8759 ecode1 = SWIG_AsVal_int(obj0, &val1);
8760 if (!SWIG_IsOK(ecode1)) {
8761 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8762 }
8763 arg1 = static_cast< wxWindowVariant >(val1);
8764 }
8765 {
8766 if (!wxPyCheckForApp()) SWIG_fail;
8767 PyThreadState* __tstate = wxPyBeginAllowThreads();
8768 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8769 wxPyEndAllowThreads(__tstate);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 }
8772 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8773 return resultobj;
8774 fail:
8775 return NULL;
8776 }
8777
8778
8779 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8780 PyObject *obj;
8781 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8782 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8783 return SWIG_Py_Void();
8784 }
8785
8786 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8787 return SWIG_Python_InitShadowInstance(args);
8788 }
8789
8790 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8791 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8792 return 1;
8793 }
8794
8795
8796 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8797 PyObject *pyobj = 0;
8798
8799 {
8800 #if wxUSE_UNICODE
8801 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8802 #else
8803 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8804 #endif
8805 }
8806 return pyobj;
8807 }
8808
8809
8810 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8811 PyObject *resultobj = 0;
8812 wxWindow *arg1 = (wxWindow *) 0 ;
8813 int arg2 = (int) -1 ;
8814 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8815 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8816 wxSize const &arg4_defvalue = wxDefaultSize ;
8817 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8818 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8819 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8820 long arg6 = (long) 0 ;
8821 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8822 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8823 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8824 wxString *arg8 = (wxString *) &arg8_defvalue ;
8825 wxListBox *result = 0 ;
8826 void *argp1 = 0 ;
8827 int res1 = 0 ;
8828 int val2 ;
8829 int ecode2 = 0 ;
8830 wxPoint temp3 ;
8831 wxSize temp4 ;
8832 bool temp5 = false ;
8833 long val6 ;
8834 int ecode6 = 0 ;
8835 void *argp7 = 0 ;
8836 int res7 = 0 ;
8837 bool temp8 = false ;
8838 PyObject * obj0 = 0 ;
8839 PyObject * obj1 = 0 ;
8840 PyObject * obj2 = 0 ;
8841 PyObject * obj3 = 0 ;
8842 PyObject * obj4 = 0 ;
8843 PyObject * obj5 = 0 ;
8844 PyObject * obj6 = 0 ;
8845 PyObject * obj7 = 0 ;
8846 char * kwnames[] = {
8847 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8848 };
8849
8850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8852 if (!SWIG_IsOK(res1)) {
8853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8854 }
8855 arg1 = reinterpret_cast< wxWindow * >(argp1);
8856 if (obj1) {
8857 ecode2 = SWIG_AsVal_int(obj1, &val2);
8858 if (!SWIG_IsOK(ecode2)) {
8859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8860 }
8861 arg2 = static_cast< int >(val2);
8862 }
8863 if (obj2) {
8864 {
8865 arg3 = &temp3;
8866 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8867 }
8868 }
8869 if (obj3) {
8870 {
8871 arg4 = &temp4;
8872 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8873 }
8874 }
8875 if (obj4) {
8876 {
8877 if (! PySequence_Check(obj4)) {
8878 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8879 SWIG_fail;
8880 }
8881 arg5 = new wxArrayString;
8882 temp5 = true;
8883 int i, len=PySequence_Length(obj4);
8884 for (i=0; i<len; i++) {
8885 PyObject* item = PySequence_GetItem(obj4, i);
8886 wxString* s = wxString_in_helper(item);
8887 if (PyErr_Occurred()) SWIG_fail;
8888 arg5->Add(*s);
8889 delete s;
8890 Py_DECREF(item);
8891 }
8892 }
8893 }
8894 if (obj5) {
8895 ecode6 = SWIG_AsVal_long(obj5, &val6);
8896 if (!SWIG_IsOK(ecode6)) {
8897 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8898 }
8899 arg6 = static_cast< long >(val6);
8900 }
8901 if (obj6) {
8902 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8903 if (!SWIG_IsOK(res7)) {
8904 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8905 }
8906 if (!argp7) {
8907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8908 }
8909 arg7 = reinterpret_cast< wxValidator * >(argp7);
8910 }
8911 if (obj7) {
8912 {
8913 arg8 = wxString_in_helper(obj7);
8914 if (arg8 == NULL) SWIG_fail;
8915 temp8 = true;
8916 }
8917 }
8918 {
8919 if (!wxPyCheckForApp()) SWIG_fail;
8920 PyThreadState* __tstate = wxPyBeginAllowThreads();
8921 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8922 wxPyEndAllowThreads(__tstate);
8923 if (PyErr_Occurred()) SWIG_fail;
8924 }
8925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8926 {
8927 if (temp5) delete arg5;
8928 }
8929 {
8930 if (temp8)
8931 delete arg8;
8932 }
8933 return resultobj;
8934 fail:
8935 {
8936 if (temp5) delete arg5;
8937 }
8938 {
8939 if (temp8)
8940 delete arg8;
8941 }
8942 return NULL;
8943 }
8944
8945
8946 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8947 PyObject *resultobj = 0;
8948 wxListBox *result = 0 ;
8949
8950 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8951 {
8952 if (!wxPyCheckForApp()) SWIG_fail;
8953 PyThreadState* __tstate = wxPyBeginAllowThreads();
8954 result = (wxListBox *)new wxListBox();
8955 wxPyEndAllowThreads(__tstate);
8956 if (PyErr_Occurred()) SWIG_fail;
8957 }
8958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8959 return resultobj;
8960 fail:
8961 return NULL;
8962 }
8963
8964
8965 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8966 PyObject *resultobj = 0;
8967 wxListBox *arg1 = (wxListBox *) 0 ;
8968 wxWindow *arg2 = (wxWindow *) 0 ;
8969 int arg3 = (int) -1 ;
8970 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8971 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8972 wxSize const &arg5_defvalue = wxDefaultSize ;
8973 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8974 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8975 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8976 long arg7 = (long) 0 ;
8977 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8978 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8979 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8980 wxString *arg9 = (wxString *) &arg9_defvalue ;
8981 bool result;
8982 void *argp1 = 0 ;
8983 int res1 = 0 ;
8984 void *argp2 = 0 ;
8985 int res2 = 0 ;
8986 int val3 ;
8987 int ecode3 = 0 ;
8988 wxPoint temp4 ;
8989 wxSize temp5 ;
8990 bool temp6 = false ;
8991 long val7 ;
8992 int ecode7 = 0 ;
8993 void *argp8 = 0 ;
8994 int res8 = 0 ;
8995 bool temp9 = false ;
8996 PyObject * obj0 = 0 ;
8997 PyObject * obj1 = 0 ;
8998 PyObject * obj2 = 0 ;
8999 PyObject * obj3 = 0 ;
9000 PyObject * obj4 = 0 ;
9001 PyObject * obj5 = 0 ;
9002 PyObject * obj6 = 0 ;
9003 PyObject * obj7 = 0 ;
9004 PyObject * obj8 = 0 ;
9005 char * kwnames[] = {
9006 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9007 };
9008
9009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9011 if (!SWIG_IsOK(res1)) {
9012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9013 }
9014 arg1 = reinterpret_cast< wxListBox * >(argp1);
9015 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9016 if (!SWIG_IsOK(res2)) {
9017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9018 }
9019 arg2 = reinterpret_cast< wxWindow * >(argp2);
9020 if (obj2) {
9021 ecode3 = SWIG_AsVal_int(obj2, &val3);
9022 if (!SWIG_IsOK(ecode3)) {
9023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9024 }
9025 arg3 = static_cast< int >(val3);
9026 }
9027 if (obj3) {
9028 {
9029 arg4 = &temp4;
9030 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9031 }
9032 }
9033 if (obj4) {
9034 {
9035 arg5 = &temp5;
9036 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9037 }
9038 }
9039 if (obj5) {
9040 {
9041 if (! PySequence_Check(obj5)) {
9042 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9043 SWIG_fail;
9044 }
9045 arg6 = new wxArrayString;
9046 temp6 = true;
9047 int i, len=PySequence_Length(obj5);
9048 for (i=0; i<len; i++) {
9049 PyObject* item = PySequence_GetItem(obj5, i);
9050 wxString* s = wxString_in_helper(item);
9051 if (PyErr_Occurred()) SWIG_fail;
9052 arg6->Add(*s);
9053 delete s;
9054 Py_DECREF(item);
9055 }
9056 }
9057 }
9058 if (obj6) {
9059 ecode7 = SWIG_AsVal_long(obj6, &val7);
9060 if (!SWIG_IsOK(ecode7)) {
9061 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9062 }
9063 arg7 = static_cast< long >(val7);
9064 }
9065 if (obj7) {
9066 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9067 if (!SWIG_IsOK(res8)) {
9068 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9069 }
9070 if (!argp8) {
9071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9072 }
9073 arg8 = reinterpret_cast< wxValidator * >(argp8);
9074 }
9075 if (obj8) {
9076 {
9077 arg9 = wxString_in_helper(obj8);
9078 if (arg9 == NULL) SWIG_fail;
9079 temp9 = true;
9080 }
9081 }
9082 {
9083 PyThreadState* __tstate = wxPyBeginAllowThreads();
9084 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9085 wxPyEndAllowThreads(__tstate);
9086 if (PyErr_Occurred()) SWIG_fail;
9087 }
9088 {
9089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9090 }
9091 {
9092 if (temp6) delete arg6;
9093 }
9094 {
9095 if (temp9)
9096 delete arg9;
9097 }
9098 return resultobj;
9099 fail:
9100 {
9101 if (temp6) delete arg6;
9102 }
9103 {
9104 if (temp9)
9105 delete arg9;
9106 }
9107 return NULL;
9108 }
9109
9110
9111 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9112 PyObject *resultobj = 0;
9113 wxListBox *arg1 = (wxListBox *) 0 ;
9114 wxString *arg2 = 0 ;
9115 int arg3 ;
9116 PyObject *arg4 = (PyObject *) NULL ;
9117 void *argp1 = 0 ;
9118 int res1 = 0 ;
9119 bool temp2 = false ;
9120 int val3 ;
9121 int ecode3 = 0 ;
9122 PyObject * obj0 = 0 ;
9123 PyObject * obj1 = 0 ;
9124 PyObject * obj2 = 0 ;
9125 PyObject * obj3 = 0 ;
9126 char * kwnames[] = {
9127 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9128 };
9129
9130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9132 if (!SWIG_IsOK(res1)) {
9133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9134 }
9135 arg1 = reinterpret_cast< wxListBox * >(argp1);
9136 {
9137 arg2 = wxString_in_helper(obj1);
9138 if (arg2 == NULL) SWIG_fail;
9139 temp2 = true;
9140 }
9141 ecode3 = SWIG_AsVal_int(obj2, &val3);
9142 if (!SWIG_IsOK(ecode3)) {
9143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9144 }
9145 arg3 = static_cast< int >(val3);
9146 if (obj3) {
9147 arg4 = obj3;
9148 }
9149 {
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9152 wxPyEndAllowThreads(__tstate);
9153 if (PyErr_Occurred()) SWIG_fail;
9154 }
9155 resultobj = SWIG_Py_Void();
9156 {
9157 if (temp2)
9158 delete arg2;
9159 }
9160 return resultobj;
9161 fail:
9162 {
9163 if (temp2)
9164 delete arg2;
9165 }
9166 return NULL;
9167 }
9168
9169
9170 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9171 PyObject *resultobj = 0;
9172 wxListBox *arg1 = (wxListBox *) 0 ;
9173 wxArrayString *arg2 = 0 ;
9174 unsigned int arg3 ;
9175 void *argp1 = 0 ;
9176 int res1 = 0 ;
9177 bool temp2 = false ;
9178 unsigned int val3 ;
9179 int ecode3 = 0 ;
9180 PyObject * obj0 = 0 ;
9181 PyObject * obj1 = 0 ;
9182 PyObject * obj2 = 0 ;
9183 char * kwnames[] = {
9184 (char *) "self",(char *) "items",(char *) "pos", NULL
9185 };
9186
9187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9189 if (!SWIG_IsOK(res1)) {
9190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9191 }
9192 arg1 = reinterpret_cast< wxListBox * >(argp1);
9193 {
9194 if (! PySequence_Check(obj1)) {
9195 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9196 SWIG_fail;
9197 }
9198 arg2 = new wxArrayString;
9199 temp2 = true;
9200 int i, len=PySequence_Length(obj1);
9201 for (i=0; i<len; i++) {
9202 PyObject* item = PySequence_GetItem(obj1, i);
9203 wxString* s = wxString_in_helper(item);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 arg2->Add(*s);
9206 delete s;
9207 Py_DECREF(item);
9208 }
9209 }
9210 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9211 if (!SWIG_IsOK(ecode3)) {
9212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9213 }
9214 arg3 = static_cast< unsigned int >(val3);
9215 {
9216 PyThreadState* __tstate = wxPyBeginAllowThreads();
9217 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9218 wxPyEndAllowThreads(__tstate);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 }
9221 resultobj = SWIG_Py_Void();
9222 {
9223 if (temp2) delete arg2;
9224 }
9225 return resultobj;
9226 fail:
9227 {
9228 if (temp2) delete arg2;
9229 }
9230 return NULL;
9231 }
9232
9233
9234 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9235 PyObject *resultobj = 0;
9236 wxListBox *arg1 = (wxListBox *) 0 ;
9237 wxArrayString *arg2 = 0 ;
9238 void *argp1 = 0 ;
9239 int res1 = 0 ;
9240 bool temp2 = false ;
9241 PyObject * obj0 = 0 ;
9242 PyObject * obj1 = 0 ;
9243 char * kwnames[] = {
9244 (char *) "self",(char *) "items", NULL
9245 };
9246
9247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9249 if (!SWIG_IsOK(res1)) {
9250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9251 }
9252 arg1 = reinterpret_cast< wxListBox * >(argp1);
9253 {
9254 if (! PySequence_Check(obj1)) {
9255 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9256 SWIG_fail;
9257 }
9258 arg2 = new wxArrayString;
9259 temp2 = true;
9260 int i, len=PySequence_Length(obj1);
9261 for (i=0; i<len; i++) {
9262 PyObject* item = PySequence_GetItem(obj1, i);
9263 wxString* s = wxString_in_helper(item);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 arg2->Add(*s);
9266 delete s;
9267 Py_DECREF(item);
9268 }
9269 }
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 (arg1)->Set((wxArrayString const &)*arg2);
9273 wxPyEndAllowThreads(__tstate);
9274 if (PyErr_Occurred()) SWIG_fail;
9275 }
9276 resultobj = SWIG_Py_Void();
9277 {
9278 if (temp2) delete arg2;
9279 }
9280 return resultobj;
9281 fail:
9282 {
9283 if (temp2) delete arg2;
9284 }
9285 return NULL;
9286 }
9287
9288
9289 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9290 PyObject *resultobj = 0;
9291 wxListBox *arg1 = (wxListBox *) 0 ;
9292 int arg2 ;
9293 bool result;
9294 void *argp1 = 0 ;
9295 int res1 = 0 ;
9296 int val2 ;
9297 int ecode2 = 0 ;
9298 PyObject * obj0 = 0 ;
9299 PyObject * obj1 = 0 ;
9300 char * kwnames[] = {
9301 (char *) "self",(char *) "n", NULL
9302 };
9303
9304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9306 if (!SWIG_IsOK(res1)) {
9307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9308 }
9309 arg1 = reinterpret_cast< wxListBox * >(argp1);
9310 ecode2 = SWIG_AsVal_int(obj1, &val2);
9311 if (!SWIG_IsOK(ecode2)) {
9312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9313 }
9314 arg2 = static_cast< int >(val2);
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9318 wxPyEndAllowThreads(__tstate);
9319 if (PyErr_Occurred()) SWIG_fail;
9320 }
9321 {
9322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9323 }
9324 return resultobj;
9325 fail:
9326 return NULL;
9327 }
9328
9329
9330 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9331 PyObject *resultobj = 0;
9332 wxListBox *arg1 = (wxListBox *) 0 ;
9333 int arg2 ;
9334 bool arg3 = (bool) true ;
9335 void *argp1 = 0 ;
9336 int res1 = 0 ;
9337 int val2 ;
9338 int ecode2 = 0 ;
9339 bool val3 ;
9340 int ecode3 = 0 ;
9341 PyObject * obj0 = 0 ;
9342 PyObject * obj1 = 0 ;
9343 PyObject * obj2 = 0 ;
9344 char * kwnames[] = {
9345 (char *) "self",(char *) "n",(char *) "select", NULL
9346 };
9347
9348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9350 if (!SWIG_IsOK(res1)) {
9351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9352 }
9353 arg1 = reinterpret_cast< wxListBox * >(argp1);
9354 ecode2 = SWIG_AsVal_int(obj1, &val2);
9355 if (!SWIG_IsOK(ecode2)) {
9356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9357 }
9358 arg2 = static_cast< int >(val2);
9359 if (obj2) {
9360 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9361 if (!SWIG_IsOK(ecode3)) {
9362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9363 }
9364 arg3 = static_cast< bool >(val3);
9365 }
9366 {
9367 PyThreadState* __tstate = wxPyBeginAllowThreads();
9368 (arg1)->SetSelection(arg2,arg3);
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 resultobj = SWIG_Py_Void();
9373 return resultobj;
9374 fail:
9375 return NULL;
9376 }
9377
9378
9379 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9380 PyObject *resultobj = 0;
9381 wxListBox *arg1 = (wxListBox *) 0 ;
9382 int arg2 ;
9383 void *argp1 = 0 ;
9384 int res1 = 0 ;
9385 int val2 ;
9386 int ecode2 = 0 ;
9387 PyObject * obj0 = 0 ;
9388 PyObject * obj1 = 0 ;
9389 char * kwnames[] = {
9390 (char *) "self",(char *) "n", NULL
9391 };
9392
9393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9395 if (!SWIG_IsOK(res1)) {
9396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9397 }
9398 arg1 = reinterpret_cast< wxListBox * >(argp1);
9399 ecode2 = SWIG_AsVal_int(obj1, &val2);
9400 if (!SWIG_IsOK(ecode2)) {
9401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9402 }
9403 arg2 = static_cast< int >(val2);
9404 {
9405 PyThreadState* __tstate = wxPyBeginAllowThreads();
9406 (arg1)->Select(arg2);
9407 wxPyEndAllowThreads(__tstate);
9408 if (PyErr_Occurred()) SWIG_fail;
9409 }
9410 resultobj = SWIG_Py_Void();
9411 return resultobj;
9412 fail:
9413 return NULL;
9414 }
9415
9416
9417 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9418 PyObject *resultobj = 0;
9419 wxListBox *arg1 = (wxListBox *) 0 ;
9420 int arg2 ;
9421 void *argp1 = 0 ;
9422 int res1 = 0 ;
9423 int val2 ;
9424 int ecode2 = 0 ;
9425 PyObject * obj0 = 0 ;
9426 PyObject * obj1 = 0 ;
9427 char * kwnames[] = {
9428 (char *) "self",(char *) "n", NULL
9429 };
9430
9431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9433 if (!SWIG_IsOK(res1)) {
9434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9435 }
9436 arg1 = reinterpret_cast< wxListBox * >(argp1);
9437 ecode2 = SWIG_AsVal_int(obj1, &val2);
9438 if (!SWIG_IsOK(ecode2)) {
9439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9440 }
9441 arg2 = static_cast< int >(val2);
9442 {
9443 PyThreadState* __tstate = wxPyBeginAllowThreads();
9444 (arg1)->Deselect(arg2);
9445 wxPyEndAllowThreads(__tstate);
9446 if (PyErr_Occurred()) SWIG_fail;
9447 }
9448 resultobj = SWIG_Py_Void();
9449 return resultobj;
9450 fail:
9451 return NULL;
9452 }
9453
9454
9455 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9456 PyObject *resultobj = 0;
9457 wxListBox *arg1 = (wxListBox *) 0 ;
9458 int arg2 = (int) -1 ;
9459 void *argp1 = 0 ;
9460 int res1 = 0 ;
9461 int val2 ;
9462 int ecode2 = 0 ;
9463 PyObject * obj0 = 0 ;
9464 PyObject * obj1 = 0 ;
9465 char * kwnames[] = {
9466 (char *) "self",(char *) "itemToLeaveSelected", NULL
9467 };
9468
9469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9471 if (!SWIG_IsOK(res1)) {
9472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9473 }
9474 arg1 = reinterpret_cast< wxListBox * >(argp1);
9475 if (obj1) {
9476 ecode2 = SWIG_AsVal_int(obj1, &val2);
9477 if (!SWIG_IsOK(ecode2)) {
9478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9479 }
9480 arg2 = static_cast< int >(val2);
9481 }
9482 {
9483 PyThreadState* __tstate = wxPyBeginAllowThreads();
9484 (arg1)->DeselectAll(arg2);
9485 wxPyEndAllowThreads(__tstate);
9486 if (PyErr_Occurred()) SWIG_fail;
9487 }
9488 resultobj = SWIG_Py_Void();
9489 return resultobj;
9490 fail:
9491 return NULL;
9492 }
9493
9494
9495 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9496 PyObject *resultobj = 0;
9497 wxListBox *arg1 = (wxListBox *) 0 ;
9498 wxString *arg2 = 0 ;
9499 bool arg3 = (bool) true ;
9500 bool result;
9501 void *argp1 = 0 ;
9502 int res1 = 0 ;
9503 bool temp2 = false ;
9504 bool val3 ;
9505 int ecode3 = 0 ;
9506 PyObject * obj0 = 0 ;
9507 PyObject * obj1 = 0 ;
9508 PyObject * obj2 = 0 ;
9509 char * kwnames[] = {
9510 (char *) "self",(char *) "s",(char *) "select", NULL
9511 };
9512
9513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9515 if (!SWIG_IsOK(res1)) {
9516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9517 }
9518 arg1 = reinterpret_cast< wxListBox * >(argp1);
9519 {
9520 arg2 = wxString_in_helper(obj1);
9521 if (arg2 == NULL) SWIG_fail;
9522 temp2 = true;
9523 }
9524 if (obj2) {
9525 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9526 if (!SWIG_IsOK(ecode3)) {
9527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9528 }
9529 arg3 = static_cast< bool >(val3);
9530 }
9531 {
9532 PyThreadState* __tstate = wxPyBeginAllowThreads();
9533 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9534 wxPyEndAllowThreads(__tstate);
9535 if (PyErr_Occurred()) SWIG_fail;
9536 }
9537 {
9538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9539 }
9540 {
9541 if (temp2)
9542 delete arg2;
9543 }
9544 return resultobj;
9545 fail:
9546 {
9547 if (temp2)
9548 delete arg2;
9549 }
9550 return NULL;
9551 }
9552
9553
9554 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9555 PyObject *resultobj = 0;
9556 wxListBox *arg1 = (wxListBox *) 0 ;
9557 PyObject *result = 0 ;
9558 void *argp1 = 0 ;
9559 int res1 = 0 ;
9560 PyObject *swig_obj[1] ;
9561
9562 if (!args) SWIG_fail;
9563 swig_obj[0] = args;
9564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9565 if (!SWIG_IsOK(res1)) {
9566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9567 }
9568 arg1 = reinterpret_cast< wxListBox * >(argp1);
9569 {
9570 PyThreadState* __tstate = wxPyBeginAllowThreads();
9571 result = (PyObject *)wxListBox_GetSelections(arg1);
9572 wxPyEndAllowThreads(__tstate);
9573 if (PyErr_Occurred()) SWIG_fail;
9574 }
9575 resultobj = result;
9576 return resultobj;
9577 fail:
9578 return NULL;
9579 }
9580
9581
9582 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9583 PyObject *resultobj = 0;
9584 wxListBox *arg1 = (wxListBox *) 0 ;
9585 int arg2 ;
9586 void *argp1 = 0 ;
9587 int res1 = 0 ;
9588 int val2 ;
9589 int ecode2 = 0 ;
9590 PyObject * obj0 = 0 ;
9591 PyObject * obj1 = 0 ;
9592 char * kwnames[] = {
9593 (char *) "self",(char *) "n", NULL
9594 };
9595
9596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9598 if (!SWIG_IsOK(res1)) {
9599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9600 }
9601 arg1 = reinterpret_cast< wxListBox * >(argp1);
9602 ecode2 = SWIG_AsVal_int(obj1, &val2);
9603 if (!SWIG_IsOK(ecode2)) {
9604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9605 }
9606 arg2 = static_cast< int >(val2);
9607 {
9608 PyThreadState* __tstate = wxPyBeginAllowThreads();
9609 (arg1)->SetFirstItem(arg2);
9610 wxPyEndAllowThreads(__tstate);
9611 if (PyErr_Occurred()) SWIG_fail;
9612 }
9613 resultobj = SWIG_Py_Void();
9614 return resultobj;
9615 fail:
9616 return NULL;
9617 }
9618
9619
9620 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9621 PyObject *resultobj = 0;
9622 wxListBox *arg1 = (wxListBox *) 0 ;
9623 wxString *arg2 = 0 ;
9624 void *argp1 = 0 ;
9625 int res1 = 0 ;
9626 bool temp2 = false ;
9627 PyObject * obj0 = 0 ;
9628 PyObject * obj1 = 0 ;
9629 char * kwnames[] = {
9630 (char *) "self",(char *) "s", NULL
9631 };
9632
9633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9635 if (!SWIG_IsOK(res1)) {
9636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9637 }
9638 arg1 = reinterpret_cast< wxListBox * >(argp1);
9639 {
9640 arg2 = wxString_in_helper(obj1);
9641 if (arg2 == NULL) SWIG_fail;
9642 temp2 = true;
9643 }
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 (arg1)->SetFirstItem((wxString const &)*arg2);
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 resultobj = SWIG_Py_Void();
9651 {
9652 if (temp2)
9653 delete arg2;
9654 }
9655 return resultobj;
9656 fail:
9657 {
9658 if (temp2)
9659 delete arg2;
9660 }
9661 return NULL;
9662 }
9663
9664
9665 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9666 PyObject *resultobj = 0;
9667 wxListBox *arg1 = (wxListBox *) 0 ;
9668 int arg2 ;
9669 void *argp1 = 0 ;
9670 int res1 = 0 ;
9671 int val2 ;
9672 int ecode2 = 0 ;
9673 PyObject * obj0 = 0 ;
9674 PyObject * obj1 = 0 ;
9675 char * kwnames[] = {
9676 (char *) "self",(char *) "n", NULL
9677 };
9678
9679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9681 if (!SWIG_IsOK(res1)) {
9682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9683 }
9684 arg1 = reinterpret_cast< wxListBox * >(argp1);
9685 ecode2 = SWIG_AsVal_int(obj1, &val2);
9686 if (!SWIG_IsOK(ecode2)) {
9687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9688 }
9689 arg2 = static_cast< int >(val2);
9690 {
9691 PyThreadState* __tstate = wxPyBeginAllowThreads();
9692 (arg1)->EnsureVisible(arg2);
9693 wxPyEndAllowThreads(__tstate);
9694 if (PyErr_Occurred()) SWIG_fail;
9695 }
9696 resultobj = SWIG_Py_Void();
9697 return resultobj;
9698 fail:
9699 return NULL;
9700 }
9701
9702
9703 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9704 PyObject *resultobj = 0;
9705 wxListBox *arg1 = (wxListBox *) 0 ;
9706 wxString *arg2 = 0 ;
9707 void *argp1 = 0 ;
9708 int res1 = 0 ;
9709 bool temp2 = false ;
9710 PyObject * obj0 = 0 ;
9711 PyObject * obj1 = 0 ;
9712 char * kwnames[] = {
9713 (char *) "self",(char *) "s", NULL
9714 };
9715
9716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9718 if (!SWIG_IsOK(res1)) {
9719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9720 }
9721 arg1 = reinterpret_cast< wxListBox * >(argp1);
9722 {
9723 arg2 = wxString_in_helper(obj1);
9724 if (arg2 == NULL) SWIG_fail;
9725 temp2 = true;
9726 }
9727 {
9728 PyThreadState* __tstate = wxPyBeginAllowThreads();
9729 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9730 wxPyEndAllowThreads(__tstate);
9731 if (PyErr_Occurred()) SWIG_fail;
9732 }
9733 resultobj = SWIG_Py_Void();
9734 {
9735 if (temp2)
9736 delete arg2;
9737 }
9738 return resultobj;
9739 fail:
9740 {
9741 if (temp2)
9742 delete arg2;
9743 }
9744 return NULL;
9745 }
9746
9747
9748 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9749 PyObject *resultobj = 0;
9750 wxListBox *arg1 = (wxListBox *) 0 ;
9751 bool result;
9752 void *argp1 = 0 ;
9753 int res1 = 0 ;
9754 PyObject *swig_obj[1] ;
9755
9756 if (!args) SWIG_fail;
9757 swig_obj[0] = args;
9758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9759 if (!SWIG_IsOK(res1)) {
9760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9761 }
9762 arg1 = reinterpret_cast< wxListBox * >(argp1);
9763 {
9764 PyThreadState* __tstate = wxPyBeginAllowThreads();
9765 result = (bool)((wxListBox const *)arg1)->IsSorted();
9766 wxPyEndAllowThreads(__tstate);
9767 if (PyErr_Occurred()) SWIG_fail;
9768 }
9769 {
9770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9771 }
9772 return resultobj;
9773 fail:
9774 return NULL;
9775 }
9776
9777
9778 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9779 PyObject *resultobj = 0;
9780 wxListBox *arg1 = (wxListBox *) 0 ;
9781 wxPoint *arg2 = 0 ;
9782 int result;
9783 void *argp1 = 0 ;
9784 int res1 = 0 ;
9785 wxPoint temp2 ;
9786 PyObject * obj0 = 0 ;
9787 PyObject * obj1 = 0 ;
9788 char * kwnames[] = {
9789 (char *) "self",(char *) "pt", NULL
9790 };
9791
9792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9794 if (!SWIG_IsOK(res1)) {
9795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9796 }
9797 arg1 = reinterpret_cast< wxListBox * >(argp1);
9798 {
9799 arg2 = &temp2;
9800 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9801 }
9802 {
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 resultobj = SWIG_From_int(static_cast< int >(result));
9809 return resultobj;
9810 fail:
9811 return NULL;
9812 }
9813
9814
9815 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9816 PyObject *resultobj = 0;
9817 wxListBox *arg1 = (wxListBox *) 0 ;
9818 int arg2 ;
9819 wxColour *arg3 = 0 ;
9820 void *argp1 = 0 ;
9821 int res1 = 0 ;
9822 int val2 ;
9823 int ecode2 = 0 ;
9824 wxColour temp3 ;
9825 PyObject * obj0 = 0 ;
9826 PyObject * obj1 = 0 ;
9827 PyObject * obj2 = 0 ;
9828 char * kwnames[] = {
9829 (char *) "self",(char *) "item",(char *) "c", NULL
9830 };
9831
9832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9834 if (!SWIG_IsOK(res1)) {
9835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9836 }
9837 arg1 = reinterpret_cast< wxListBox * >(argp1);
9838 ecode2 = SWIG_AsVal_int(obj1, &val2);
9839 if (!SWIG_IsOK(ecode2)) {
9840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9841 }
9842 arg2 = static_cast< int >(val2);
9843 {
9844 arg3 = &temp3;
9845 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9846 }
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 resultobj = SWIG_Py_Void();
9854 return resultobj;
9855 fail:
9856 return NULL;
9857 }
9858
9859
9860 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj = 0;
9862 wxListBox *arg1 = (wxListBox *) 0 ;
9863 int arg2 ;
9864 wxColour *arg3 = 0 ;
9865 void *argp1 = 0 ;
9866 int res1 = 0 ;
9867 int val2 ;
9868 int ecode2 = 0 ;
9869 wxColour temp3 ;
9870 PyObject * obj0 = 0 ;
9871 PyObject * obj1 = 0 ;
9872 PyObject * obj2 = 0 ;
9873 char * kwnames[] = {
9874 (char *) "self",(char *) "item",(char *) "c", NULL
9875 };
9876
9877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9879 if (!SWIG_IsOK(res1)) {
9880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9881 }
9882 arg1 = reinterpret_cast< wxListBox * >(argp1);
9883 ecode2 = SWIG_AsVal_int(obj1, &val2);
9884 if (!SWIG_IsOK(ecode2)) {
9885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9886 }
9887 arg2 = static_cast< int >(val2);
9888 {
9889 arg3 = &temp3;
9890 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9891 }
9892 {
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9895 wxPyEndAllowThreads(__tstate);
9896 if (PyErr_Occurred()) SWIG_fail;
9897 }
9898 resultobj = SWIG_Py_Void();
9899 return resultobj;
9900 fail:
9901 return NULL;
9902 }
9903
9904
9905 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9906 PyObject *resultobj = 0;
9907 wxListBox *arg1 = (wxListBox *) 0 ;
9908 int arg2 ;
9909 wxFont *arg3 = 0 ;
9910 void *argp1 = 0 ;
9911 int res1 = 0 ;
9912 int val2 ;
9913 int ecode2 = 0 ;
9914 void *argp3 = 0 ;
9915 int res3 = 0 ;
9916 PyObject * obj0 = 0 ;
9917 PyObject * obj1 = 0 ;
9918 PyObject * obj2 = 0 ;
9919 char * kwnames[] = {
9920 (char *) "self",(char *) "item",(char *) "f", NULL
9921 };
9922
9923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9925 if (!SWIG_IsOK(res1)) {
9926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9927 }
9928 arg1 = reinterpret_cast< wxListBox * >(argp1);
9929 ecode2 = SWIG_AsVal_int(obj1, &val2);
9930 if (!SWIG_IsOK(ecode2)) {
9931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9932 }
9933 arg2 = static_cast< int >(val2);
9934 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9935 if (!SWIG_IsOK(res3)) {
9936 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9937 }
9938 if (!argp3) {
9939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9940 }
9941 arg3 = reinterpret_cast< wxFont * >(argp3);
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9945 wxPyEndAllowThreads(__tstate);
9946 if (PyErr_Occurred()) SWIG_fail;
9947 }
9948 resultobj = SWIG_Py_Void();
9949 return resultobj;
9950 fail:
9951 return NULL;
9952 }
9953
9954
9955 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9956 PyObject *resultobj = 0;
9957 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9958 SwigValueWrapper<wxVisualAttributes > result;
9959 int val1 ;
9960 int ecode1 = 0 ;
9961 PyObject * obj0 = 0 ;
9962 char * kwnames[] = {
9963 (char *) "variant", NULL
9964 };
9965
9966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9967 if (obj0) {
9968 ecode1 = SWIG_AsVal_int(obj0, &val1);
9969 if (!SWIG_IsOK(ecode1)) {
9970 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9971 }
9972 arg1 = static_cast< wxWindowVariant >(val1);
9973 }
9974 {
9975 if (!wxPyCheckForApp()) SWIG_fail;
9976 PyThreadState* __tstate = wxPyBeginAllowThreads();
9977 result = wxListBox::GetClassDefaultAttributes(arg1);
9978 wxPyEndAllowThreads(__tstate);
9979 if (PyErr_Occurred()) SWIG_fail;
9980 }
9981 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9982 return resultobj;
9983 fail:
9984 return NULL;
9985 }
9986
9987
9988 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9989 PyObject *obj;
9990 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9991 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9992 return SWIG_Py_Void();
9993 }
9994
9995 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9996 return SWIG_Python_InitShadowInstance(args);
9997 }
9998
9999 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10000 PyObject *resultobj = 0;
10001 wxWindow *arg1 = (wxWindow *) 0 ;
10002 int arg2 = (int) -1 ;
10003 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10004 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10005 wxSize const &arg4_defvalue = wxDefaultSize ;
10006 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10007 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10008 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10009 long arg6 = (long) 0 ;
10010 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10011 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10012 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10013 wxString *arg8 = (wxString *) &arg8_defvalue ;
10014 wxCheckListBox *result = 0 ;
10015 void *argp1 = 0 ;
10016 int res1 = 0 ;
10017 int val2 ;
10018 int ecode2 = 0 ;
10019 wxPoint temp3 ;
10020 wxSize temp4 ;
10021 bool temp5 = false ;
10022 long val6 ;
10023 int ecode6 = 0 ;
10024 void *argp7 = 0 ;
10025 int res7 = 0 ;
10026 bool temp8 = false ;
10027 PyObject * obj0 = 0 ;
10028 PyObject * obj1 = 0 ;
10029 PyObject * obj2 = 0 ;
10030 PyObject * obj3 = 0 ;
10031 PyObject * obj4 = 0 ;
10032 PyObject * obj5 = 0 ;
10033 PyObject * obj6 = 0 ;
10034 PyObject * obj7 = 0 ;
10035 char * kwnames[] = {
10036 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10037 };
10038
10039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10041 if (!SWIG_IsOK(res1)) {
10042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10043 }
10044 arg1 = reinterpret_cast< wxWindow * >(argp1);
10045 if (obj1) {
10046 ecode2 = SWIG_AsVal_int(obj1, &val2);
10047 if (!SWIG_IsOK(ecode2)) {
10048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10049 }
10050 arg2 = static_cast< int >(val2);
10051 }
10052 if (obj2) {
10053 {
10054 arg3 = &temp3;
10055 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10056 }
10057 }
10058 if (obj3) {
10059 {
10060 arg4 = &temp4;
10061 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10062 }
10063 }
10064 if (obj4) {
10065 {
10066 if (! PySequence_Check(obj4)) {
10067 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10068 SWIG_fail;
10069 }
10070 arg5 = new wxArrayString;
10071 temp5 = true;
10072 int i, len=PySequence_Length(obj4);
10073 for (i=0; i<len; i++) {
10074 PyObject* item = PySequence_GetItem(obj4, i);
10075 wxString* s = wxString_in_helper(item);
10076 if (PyErr_Occurred()) SWIG_fail;
10077 arg5->Add(*s);
10078 delete s;
10079 Py_DECREF(item);
10080 }
10081 }
10082 }
10083 if (obj5) {
10084 ecode6 = SWIG_AsVal_long(obj5, &val6);
10085 if (!SWIG_IsOK(ecode6)) {
10086 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10087 }
10088 arg6 = static_cast< long >(val6);
10089 }
10090 if (obj6) {
10091 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10092 if (!SWIG_IsOK(res7)) {
10093 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10094 }
10095 if (!argp7) {
10096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10097 }
10098 arg7 = reinterpret_cast< wxValidator * >(argp7);
10099 }
10100 if (obj7) {
10101 {
10102 arg8 = wxString_in_helper(obj7);
10103 if (arg8 == NULL) SWIG_fail;
10104 temp8 = true;
10105 }
10106 }
10107 {
10108 if (!wxPyCheckForApp()) SWIG_fail;
10109 PyThreadState* __tstate = wxPyBeginAllowThreads();
10110 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10111 wxPyEndAllowThreads(__tstate);
10112 if (PyErr_Occurred()) SWIG_fail;
10113 }
10114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10115 {
10116 if (temp5) delete arg5;
10117 }
10118 {
10119 if (temp8)
10120 delete arg8;
10121 }
10122 return resultobj;
10123 fail:
10124 {
10125 if (temp5) delete arg5;
10126 }
10127 {
10128 if (temp8)
10129 delete arg8;
10130 }
10131 return NULL;
10132 }
10133
10134
10135 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10136 PyObject *resultobj = 0;
10137 wxCheckListBox *result = 0 ;
10138
10139 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10140 {
10141 if (!wxPyCheckForApp()) SWIG_fail;
10142 PyThreadState* __tstate = wxPyBeginAllowThreads();
10143 result = (wxCheckListBox *)new wxCheckListBox();
10144 wxPyEndAllowThreads(__tstate);
10145 if (PyErr_Occurred()) SWIG_fail;
10146 }
10147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10148 return resultobj;
10149 fail:
10150 return NULL;
10151 }
10152
10153
10154 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10155 PyObject *resultobj = 0;
10156 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10157 wxWindow *arg2 = (wxWindow *) 0 ;
10158 int arg3 = (int) -1 ;
10159 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10160 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10161 wxSize const &arg5_defvalue = wxDefaultSize ;
10162 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10163 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10164 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10165 long arg7 = (long) 0 ;
10166 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10167 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10168 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10169 wxString *arg9 = (wxString *) &arg9_defvalue ;
10170 bool result;
10171 void *argp1 = 0 ;
10172 int res1 = 0 ;
10173 void *argp2 = 0 ;
10174 int res2 = 0 ;
10175 int val3 ;
10176 int ecode3 = 0 ;
10177 wxPoint temp4 ;
10178 wxSize temp5 ;
10179 bool temp6 = false ;
10180 long val7 ;
10181 int ecode7 = 0 ;
10182 void *argp8 = 0 ;
10183 int res8 = 0 ;
10184 bool temp9 = false ;
10185 PyObject * obj0 = 0 ;
10186 PyObject * obj1 = 0 ;
10187 PyObject * obj2 = 0 ;
10188 PyObject * obj3 = 0 ;
10189 PyObject * obj4 = 0 ;
10190 PyObject * obj5 = 0 ;
10191 PyObject * obj6 = 0 ;
10192 PyObject * obj7 = 0 ;
10193 PyObject * obj8 = 0 ;
10194 char * kwnames[] = {
10195 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10196 };
10197
10198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10200 if (!SWIG_IsOK(res1)) {
10201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10202 }
10203 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10204 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10205 if (!SWIG_IsOK(res2)) {
10206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10207 }
10208 arg2 = reinterpret_cast< wxWindow * >(argp2);
10209 if (obj2) {
10210 ecode3 = SWIG_AsVal_int(obj2, &val3);
10211 if (!SWIG_IsOK(ecode3)) {
10212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10213 }
10214 arg3 = static_cast< int >(val3);
10215 }
10216 if (obj3) {
10217 {
10218 arg4 = &temp4;
10219 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10220 }
10221 }
10222 if (obj4) {
10223 {
10224 arg5 = &temp5;
10225 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10226 }
10227 }
10228 if (obj5) {
10229 {
10230 if (! PySequence_Check(obj5)) {
10231 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10232 SWIG_fail;
10233 }
10234 arg6 = new wxArrayString;
10235 temp6 = true;
10236 int i, len=PySequence_Length(obj5);
10237 for (i=0; i<len; i++) {
10238 PyObject* item = PySequence_GetItem(obj5, i);
10239 wxString* s = wxString_in_helper(item);
10240 if (PyErr_Occurred()) SWIG_fail;
10241 arg6->Add(*s);
10242 delete s;
10243 Py_DECREF(item);
10244 }
10245 }
10246 }
10247 if (obj6) {
10248 ecode7 = SWIG_AsVal_long(obj6, &val7);
10249 if (!SWIG_IsOK(ecode7)) {
10250 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10251 }
10252 arg7 = static_cast< long >(val7);
10253 }
10254 if (obj7) {
10255 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10256 if (!SWIG_IsOK(res8)) {
10257 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10258 }
10259 if (!argp8) {
10260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10261 }
10262 arg8 = reinterpret_cast< wxValidator * >(argp8);
10263 }
10264 if (obj8) {
10265 {
10266 arg9 = wxString_in_helper(obj8);
10267 if (arg9 == NULL) SWIG_fail;
10268 temp9 = true;
10269 }
10270 }
10271 {
10272 PyThreadState* __tstate = wxPyBeginAllowThreads();
10273 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10274 wxPyEndAllowThreads(__tstate);
10275 if (PyErr_Occurred()) SWIG_fail;
10276 }
10277 {
10278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10279 }
10280 {
10281 if (temp6) delete arg6;
10282 }
10283 {
10284 if (temp9)
10285 delete arg9;
10286 }
10287 return resultobj;
10288 fail:
10289 {
10290 if (temp6) delete arg6;
10291 }
10292 {
10293 if (temp9)
10294 delete arg9;
10295 }
10296 return NULL;
10297 }
10298
10299
10300 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10301 PyObject *resultobj = 0;
10302 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10303 unsigned int arg2 ;
10304 bool result;
10305 void *argp1 = 0 ;
10306 int res1 = 0 ;
10307 unsigned int val2 ;
10308 int ecode2 = 0 ;
10309 PyObject * obj0 = 0 ;
10310 PyObject * obj1 = 0 ;
10311 char * kwnames[] = {
10312 (char *) "self",(char *) "index", NULL
10313 };
10314
10315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10317 if (!SWIG_IsOK(res1)) {
10318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10319 }
10320 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10321 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10322 if (!SWIG_IsOK(ecode2)) {
10323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10324 }
10325 arg2 = static_cast< unsigned int >(val2);
10326 {
10327 PyThreadState* __tstate = wxPyBeginAllowThreads();
10328 result = (bool)(arg1)->IsChecked(arg2);
10329 wxPyEndAllowThreads(__tstate);
10330 if (PyErr_Occurred()) SWIG_fail;
10331 }
10332 {
10333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10334 }
10335 return resultobj;
10336 fail:
10337 return NULL;
10338 }
10339
10340
10341 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10342 PyObject *resultobj = 0;
10343 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10344 unsigned int arg2 ;
10345 int arg3 = (int) true ;
10346 void *argp1 = 0 ;
10347 int res1 = 0 ;
10348 unsigned int val2 ;
10349 int ecode2 = 0 ;
10350 int val3 ;
10351 int ecode3 = 0 ;
10352 PyObject * obj0 = 0 ;
10353 PyObject * obj1 = 0 ;
10354 PyObject * obj2 = 0 ;
10355 char * kwnames[] = {
10356 (char *) "self",(char *) "index",(char *) "check", NULL
10357 };
10358
10359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10361 if (!SWIG_IsOK(res1)) {
10362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10363 }
10364 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10365 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10366 if (!SWIG_IsOK(ecode2)) {
10367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10368 }
10369 arg2 = static_cast< unsigned int >(val2);
10370 if (obj2) {
10371 ecode3 = SWIG_AsVal_int(obj2, &val3);
10372 if (!SWIG_IsOK(ecode3)) {
10373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10374 }
10375 arg3 = static_cast< int >(val3);
10376 }
10377 {
10378 PyThreadState* __tstate = wxPyBeginAllowThreads();
10379 (arg1)->Check(arg2,arg3);
10380 wxPyEndAllowThreads(__tstate);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 }
10383 resultobj = SWIG_Py_Void();
10384 return resultobj;
10385 fail:
10386 return NULL;
10387 }
10388
10389
10390 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10391 PyObject *obj;
10392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10393 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10394 return SWIG_Py_Void();
10395 }
10396
10397 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10398 return SWIG_Python_InitShadowInstance(args);
10399 }
10400
10401 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10402 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10403 return 1;
10404 }
10405
10406
10407 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10408 PyObject *pyobj = 0;
10409
10410 {
10411 #if wxUSE_UNICODE
10412 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10413 #else
10414 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10415 #endif
10416 }
10417 return pyobj;
10418 }
10419
10420
10421 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10422 PyObject *resultobj = 0;
10423 wxColour const &arg1_defvalue = wxNullColour ;
10424 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10425 wxColour const &arg2_defvalue = wxNullColour ;
10426 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10427 wxFont const &arg3_defvalue = wxNullFont ;
10428 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10429 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10430 wxTextAttr *result = 0 ;
10431 wxColour temp1 ;
10432 wxColour temp2 ;
10433 void *argp3 = 0 ;
10434 int res3 = 0 ;
10435 int val4 ;
10436 int ecode4 = 0 ;
10437 PyObject * obj0 = 0 ;
10438 PyObject * obj1 = 0 ;
10439 PyObject * obj2 = 0 ;
10440 PyObject * obj3 = 0 ;
10441 char * kwnames[] = {
10442 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10443 };
10444
10445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10446 if (obj0) {
10447 {
10448 arg1 = &temp1;
10449 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10450 }
10451 }
10452 if (obj1) {
10453 {
10454 arg2 = &temp2;
10455 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10456 }
10457 }
10458 if (obj2) {
10459 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10460 if (!SWIG_IsOK(res3)) {
10461 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10462 }
10463 if (!argp3) {
10464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10465 }
10466 arg3 = reinterpret_cast< wxFont * >(argp3);
10467 }
10468 if (obj3) {
10469 ecode4 = SWIG_AsVal_int(obj3, &val4);
10470 if (!SWIG_IsOK(ecode4)) {
10471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10472 }
10473 arg4 = static_cast< wxTextAttrAlignment >(val4);
10474 }
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10478 wxPyEndAllowThreads(__tstate);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
10481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10482 return resultobj;
10483 fail:
10484 return NULL;
10485 }
10486
10487
10488 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10489 PyObject *resultobj = 0;
10490 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10491 void *argp1 = 0 ;
10492 int res1 = 0 ;
10493 PyObject *swig_obj[1] ;
10494
10495 if (!args) SWIG_fail;
10496 swig_obj[0] = args;
10497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10498 if (!SWIG_IsOK(res1)) {
10499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10500 }
10501 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10502 {
10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
10504 delete arg1;
10505
10506 wxPyEndAllowThreads(__tstate);
10507 if (PyErr_Occurred()) SWIG_fail;
10508 }
10509 resultobj = SWIG_Py_Void();
10510 return resultobj;
10511 fail:
10512 return NULL;
10513 }
10514
10515
10516 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10517 PyObject *resultobj = 0;
10518 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10519 void *argp1 = 0 ;
10520 int res1 = 0 ;
10521 PyObject *swig_obj[1] ;
10522
10523 if (!args) SWIG_fail;
10524 swig_obj[0] = args;
10525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10526 if (!SWIG_IsOK(res1)) {
10527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10528 }
10529 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 (arg1)->Init();
10533 wxPyEndAllowThreads(__tstate);
10534 if (PyErr_Occurred()) SWIG_fail;
10535 }
10536 resultobj = SWIG_Py_Void();
10537 return resultobj;
10538 fail:
10539 return NULL;
10540 }
10541
10542
10543 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10544 PyObject *resultobj = 0;
10545 wxTextAttr *arg1 = 0 ;
10546 wxTextAttr *arg2 = 0 ;
10547 wxTextAttr result;
10548 void *argp1 = 0 ;
10549 int res1 = 0 ;
10550 void *argp2 = 0 ;
10551 int res2 = 0 ;
10552 PyObject * obj0 = 0 ;
10553 PyObject * obj1 = 0 ;
10554 char * kwnames[] = {
10555 (char *) "base",(char *) "overlay", NULL
10556 };
10557
10558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10559 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10560 if (!SWIG_IsOK(res1)) {
10561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10562 }
10563 if (!argp1) {
10564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10565 }
10566 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10567 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10568 if (!SWIG_IsOK(res2)) {
10569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10570 }
10571 if (!argp2) {
10572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10573 }
10574 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10575 {
10576 PyThreadState* __tstate = wxPyBeginAllowThreads();
10577 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10578 wxPyEndAllowThreads(__tstate);
10579 if (PyErr_Occurred()) SWIG_fail;
10580 }
10581 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10582 return resultobj;
10583 fail:
10584 return NULL;
10585 }
10586
10587
10588 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10589 PyObject *resultobj = 0;
10590 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10591 wxColour *arg2 = 0 ;
10592 void *argp1 = 0 ;
10593 int res1 = 0 ;
10594 wxColour temp2 ;
10595 PyObject * obj0 = 0 ;
10596 PyObject * obj1 = 0 ;
10597 char * kwnames[] = {
10598 (char *) "self",(char *) "colText", NULL
10599 };
10600
10601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10603 if (!SWIG_IsOK(res1)) {
10604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10605 }
10606 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10607 {
10608 arg2 = &temp2;
10609 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10610 }
10611 {
10612 PyThreadState* __tstate = wxPyBeginAllowThreads();
10613 (arg1)->SetTextColour((wxColour const &)*arg2);
10614 wxPyEndAllowThreads(__tstate);
10615 if (PyErr_Occurred()) SWIG_fail;
10616 }
10617 resultobj = SWIG_Py_Void();
10618 return resultobj;
10619 fail:
10620 return NULL;
10621 }
10622
10623
10624 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10625 PyObject *resultobj = 0;
10626 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10627 wxColour *arg2 = 0 ;
10628 void *argp1 = 0 ;
10629 int res1 = 0 ;
10630 wxColour temp2 ;
10631 PyObject * obj0 = 0 ;
10632 PyObject * obj1 = 0 ;
10633 char * kwnames[] = {
10634 (char *) "self",(char *) "colBack", NULL
10635 };
10636
10637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10639 if (!SWIG_IsOK(res1)) {
10640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10641 }
10642 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10643 {
10644 arg2 = &temp2;
10645 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10646 }
10647 {
10648 PyThreadState* __tstate = wxPyBeginAllowThreads();
10649 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10650 wxPyEndAllowThreads(__tstate);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 }
10653 resultobj = SWIG_Py_Void();
10654 return resultobj;
10655 fail:
10656 return NULL;
10657 }
10658
10659
10660 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10661 PyObject *resultobj = 0;
10662 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10663 wxFont *arg2 = 0 ;
10664 long arg3 = (long) wxTEXT_ATTR_FONT ;
10665 void *argp1 = 0 ;
10666 int res1 = 0 ;
10667 void *argp2 = 0 ;
10668 int res2 = 0 ;
10669 long val3 ;
10670 int ecode3 = 0 ;
10671 PyObject * obj0 = 0 ;
10672 PyObject * obj1 = 0 ;
10673 PyObject * obj2 = 0 ;
10674 char * kwnames[] = {
10675 (char *) "self",(char *) "font",(char *) "flags", NULL
10676 };
10677
10678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10680 if (!SWIG_IsOK(res1)) {
10681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10682 }
10683 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10685 if (!SWIG_IsOK(res2)) {
10686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10687 }
10688 if (!argp2) {
10689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10690 }
10691 arg2 = reinterpret_cast< wxFont * >(argp2);
10692 if (obj2) {
10693 ecode3 = SWIG_AsVal_long(obj2, &val3);
10694 if (!SWIG_IsOK(ecode3)) {
10695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10696 }
10697 arg3 = static_cast< long >(val3);
10698 }
10699 {
10700 PyThreadState* __tstate = wxPyBeginAllowThreads();
10701 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10702 wxPyEndAllowThreads(__tstate);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 }
10705 resultobj = SWIG_Py_Void();
10706 return resultobj;
10707 fail:
10708 return NULL;
10709 }
10710
10711
10712 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10713 PyObject *resultobj = 0;
10714 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10715 wxTextAttrAlignment arg2 ;
10716 void *argp1 = 0 ;
10717 int res1 = 0 ;
10718 int val2 ;
10719 int ecode2 = 0 ;
10720 PyObject * obj0 = 0 ;
10721 PyObject * obj1 = 0 ;
10722 char * kwnames[] = {
10723 (char *) "self",(char *) "alignment", NULL
10724 };
10725
10726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10728 if (!SWIG_IsOK(res1)) {
10729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10730 }
10731 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10732 ecode2 = SWIG_AsVal_int(obj1, &val2);
10733 if (!SWIG_IsOK(ecode2)) {
10734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10735 }
10736 arg2 = static_cast< wxTextAttrAlignment >(val2);
10737 {
10738 PyThreadState* __tstate = wxPyBeginAllowThreads();
10739 (arg1)->SetAlignment(arg2);
10740 wxPyEndAllowThreads(__tstate);
10741 if (PyErr_Occurred()) SWIG_fail;
10742 }
10743 resultobj = SWIG_Py_Void();
10744 return resultobj;
10745 fail:
10746 return NULL;
10747 }
10748
10749
10750 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10751 PyObject *resultobj = 0;
10752 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10753 wxArrayInt *arg2 = 0 ;
10754 void *argp1 = 0 ;
10755 int res1 = 0 ;
10756 bool temp2 = false ;
10757 PyObject * obj0 = 0 ;
10758 PyObject * obj1 = 0 ;
10759 char * kwnames[] = {
10760 (char *) "self",(char *) "tabs", NULL
10761 };
10762
10763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10765 if (!SWIG_IsOK(res1)) {
10766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10767 }
10768 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10769 {
10770 if (! PySequence_Check(obj1)) {
10771 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10772 SWIG_fail;
10773 }
10774 arg2 = new wxArrayInt;
10775 temp2 = true;
10776 int i, len=PySequence_Length(obj1);
10777 for (i=0; i<len; i++) {
10778 PyObject* item = PySequence_GetItem(obj1, i);
10779 PyObject* number = PyNumber_Int(item);
10780 if (!number) {
10781 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10782 SWIG_fail;
10783 }
10784 arg2->Add(PyInt_AS_LONG(number));
10785 Py_DECREF(item);
10786 Py_DECREF(number);
10787 }
10788 }
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10792 wxPyEndAllowThreads(__tstate);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 }
10795 resultobj = SWIG_Py_Void();
10796 {
10797 if (temp2) delete arg2;
10798 }
10799 return resultobj;
10800 fail:
10801 {
10802 if (temp2) delete arg2;
10803 }
10804 return NULL;
10805 }
10806
10807
10808 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj = 0;
10810 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10811 int arg2 ;
10812 int arg3 = (int) 0 ;
10813 void *argp1 = 0 ;
10814 int res1 = 0 ;
10815 int val2 ;
10816 int ecode2 = 0 ;
10817 int val3 ;
10818 int ecode3 = 0 ;
10819 PyObject * obj0 = 0 ;
10820 PyObject * obj1 = 0 ;
10821 PyObject * obj2 = 0 ;
10822 char * kwnames[] = {
10823 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10824 };
10825
10826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10828 if (!SWIG_IsOK(res1)) {
10829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10830 }
10831 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10832 ecode2 = SWIG_AsVal_int(obj1, &val2);
10833 if (!SWIG_IsOK(ecode2)) {
10834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10835 }
10836 arg2 = static_cast< int >(val2);
10837 if (obj2) {
10838 ecode3 = SWIG_AsVal_int(obj2, &val3);
10839 if (!SWIG_IsOK(ecode3)) {
10840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10841 }
10842 arg3 = static_cast< int >(val3);
10843 }
10844 {
10845 PyThreadState* __tstate = wxPyBeginAllowThreads();
10846 (arg1)->SetLeftIndent(arg2,arg3);
10847 wxPyEndAllowThreads(__tstate);
10848 if (PyErr_Occurred()) SWIG_fail;
10849 }
10850 resultobj = SWIG_Py_Void();
10851 return resultobj;
10852 fail:
10853 return NULL;
10854 }
10855
10856
10857 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10858 PyObject *resultobj = 0;
10859 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10860 int arg2 ;
10861 void *argp1 = 0 ;
10862 int res1 = 0 ;
10863 int val2 ;
10864 int ecode2 = 0 ;
10865 PyObject * obj0 = 0 ;
10866 PyObject * obj1 = 0 ;
10867 char * kwnames[] = {
10868 (char *) "self",(char *) "indent", NULL
10869 };
10870
10871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10873 if (!SWIG_IsOK(res1)) {
10874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10875 }
10876 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10877 ecode2 = SWIG_AsVal_int(obj1, &val2);
10878 if (!SWIG_IsOK(ecode2)) {
10879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10880 }
10881 arg2 = static_cast< int >(val2);
10882 {
10883 PyThreadState* __tstate = wxPyBeginAllowThreads();
10884 (arg1)->SetRightIndent(arg2);
10885 wxPyEndAllowThreads(__tstate);
10886 if (PyErr_Occurred()) SWIG_fail;
10887 }
10888 resultobj = SWIG_Py_Void();
10889 return resultobj;
10890 fail:
10891 return NULL;
10892 }
10893
10894
10895 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10896 PyObject *resultobj = 0;
10897 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10898 long arg2 ;
10899 void *argp1 = 0 ;
10900 int res1 = 0 ;
10901 long val2 ;
10902 int ecode2 = 0 ;
10903 PyObject * obj0 = 0 ;
10904 PyObject * obj1 = 0 ;
10905 char * kwnames[] = {
10906 (char *) "self",(char *) "flags", NULL
10907 };
10908
10909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10911 if (!SWIG_IsOK(res1)) {
10912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10913 }
10914 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10915 ecode2 = SWIG_AsVal_long(obj1, &val2);
10916 if (!SWIG_IsOK(ecode2)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10918 }
10919 arg2 = static_cast< long >(val2);
10920 {
10921 PyThreadState* __tstate = wxPyBeginAllowThreads();
10922 (arg1)->SetFlags(arg2);
10923 wxPyEndAllowThreads(__tstate);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 }
10926 resultobj = SWIG_Py_Void();
10927 return resultobj;
10928 fail:
10929 return NULL;
10930 }
10931
10932
10933 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10934 PyObject *resultobj = 0;
10935 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10936 bool result;
10937 void *argp1 = 0 ;
10938 int res1 = 0 ;
10939 PyObject *swig_obj[1] ;
10940
10941 if (!args) SWIG_fail;
10942 swig_obj[0] = args;
10943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10944 if (!SWIG_IsOK(res1)) {
10945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10946 }
10947 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10951 wxPyEndAllowThreads(__tstate);
10952 if (PyErr_Occurred()) SWIG_fail;
10953 }
10954 {
10955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10956 }
10957 return resultobj;
10958 fail:
10959 return NULL;
10960 }
10961
10962
10963 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10964 PyObject *resultobj = 0;
10965 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10966 bool result;
10967 void *argp1 = 0 ;
10968 int res1 = 0 ;
10969 PyObject *swig_obj[1] ;
10970
10971 if (!args) SWIG_fail;
10972 swig_obj[0] = args;
10973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10974 if (!SWIG_IsOK(res1)) {
10975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10976 }
10977 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10978 {
10979 PyThreadState* __tstate = wxPyBeginAllowThreads();
10980 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10981 wxPyEndAllowThreads(__tstate);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 }
10984 {
10985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10986 }
10987 return resultobj;
10988 fail:
10989 return NULL;
10990 }
10991
10992
10993 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10994 PyObject *resultobj = 0;
10995 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10996 bool result;
10997 void *argp1 = 0 ;
10998 int res1 = 0 ;
10999 PyObject *swig_obj[1] ;
11000
11001 if (!args) SWIG_fail;
11002 swig_obj[0] = args;
11003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11004 if (!SWIG_IsOK(res1)) {
11005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11006 }
11007 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 {
11015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11016 }
11017 return resultobj;
11018 fail:
11019 return NULL;
11020 }
11021
11022
11023 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11024 PyObject *resultobj = 0;
11025 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11026 bool result;
11027 void *argp1 = 0 ;
11028 int res1 = 0 ;
11029 PyObject *swig_obj[1] ;
11030
11031 if (!args) SWIG_fail;
11032 swig_obj[0] = args;
11033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11034 if (!SWIG_IsOK(res1)) {
11035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11036 }
11037 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11041 wxPyEndAllowThreads(__tstate);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 {
11045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11046 }
11047 return resultobj;
11048 fail:
11049 return NULL;
11050 }
11051
11052
11053 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11054 PyObject *resultobj = 0;
11055 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11056 bool result;
11057 void *argp1 = 0 ;
11058 int res1 = 0 ;
11059 PyObject *swig_obj[1] ;
11060
11061 if (!args) SWIG_fail;
11062 swig_obj[0] = args;
11063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11064 if (!SWIG_IsOK(res1)) {
11065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11066 }
11067 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11071 wxPyEndAllowThreads(__tstate);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 }
11074 {
11075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11076 }
11077 return resultobj;
11078 fail:
11079 return NULL;
11080 }
11081
11082
11083 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11084 PyObject *resultobj = 0;
11085 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11086 bool result;
11087 void *argp1 = 0 ;
11088 int res1 = 0 ;
11089 PyObject *swig_obj[1] ;
11090
11091 if (!args) SWIG_fail;
11092 swig_obj[0] = args;
11093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11094 if (!SWIG_IsOK(res1)) {
11095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11096 }
11097 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11101 wxPyEndAllowThreads(__tstate);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 {
11105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11106 }
11107 return resultobj;
11108 fail:
11109 return NULL;
11110 }
11111
11112
11113 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11114 PyObject *resultobj = 0;
11115 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11116 bool result;
11117 void *argp1 = 0 ;
11118 int res1 = 0 ;
11119 PyObject *swig_obj[1] ;
11120
11121 if (!args) SWIG_fail;
11122 swig_obj[0] = args;
11123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11124 if (!SWIG_IsOK(res1)) {
11125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11126 }
11127 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 {
11135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11136 }
11137 return resultobj;
11138 fail:
11139 return NULL;
11140 }
11141
11142
11143 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj = 0;
11145 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11146 long arg2 ;
11147 bool result;
11148 void *argp1 = 0 ;
11149 int res1 = 0 ;
11150 long val2 ;
11151 int ecode2 = 0 ;
11152 PyObject * obj0 = 0 ;
11153 PyObject * obj1 = 0 ;
11154 char * kwnames[] = {
11155 (char *) "self",(char *) "flag", NULL
11156 };
11157
11158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11160 if (!SWIG_IsOK(res1)) {
11161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11162 }
11163 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11164 ecode2 = SWIG_AsVal_long(obj1, &val2);
11165 if (!SWIG_IsOK(ecode2)) {
11166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11167 }
11168 arg2 = static_cast< long >(val2);
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 {
11176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11177 }
11178 return resultobj;
11179 fail:
11180 return NULL;
11181 }
11182
11183
11184 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11185 PyObject *resultobj = 0;
11186 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11187 wxColour *result = 0 ;
11188 void *argp1 = 0 ;
11189 int res1 = 0 ;
11190 PyObject *swig_obj[1] ;
11191
11192 if (!args) SWIG_fail;
11193 swig_obj[0] = args;
11194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11195 if (!SWIG_IsOK(res1)) {
11196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11197 }
11198 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11199 {
11200 PyThreadState* __tstate = wxPyBeginAllowThreads();
11201 {
11202 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11203 result = (wxColour *) &_result_ref;
11204 }
11205 wxPyEndAllowThreads(__tstate);
11206 if (PyErr_Occurred()) SWIG_fail;
11207 }
11208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11209 return resultobj;
11210 fail:
11211 return NULL;
11212 }
11213
11214
11215 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11216 PyObject *resultobj = 0;
11217 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11218 wxColour *result = 0 ;
11219 void *argp1 = 0 ;
11220 int res1 = 0 ;
11221 PyObject *swig_obj[1] ;
11222
11223 if (!args) SWIG_fail;
11224 swig_obj[0] = args;
11225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11226 if (!SWIG_IsOK(res1)) {
11227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11228 }
11229 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11230 {
11231 PyThreadState* __tstate = wxPyBeginAllowThreads();
11232 {
11233 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11234 result = (wxColour *) &_result_ref;
11235 }
11236 wxPyEndAllowThreads(__tstate);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 }
11239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11240 return resultobj;
11241 fail:
11242 return NULL;
11243 }
11244
11245
11246 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11247 PyObject *resultobj = 0;
11248 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11249 wxFont *result = 0 ;
11250 void *argp1 = 0 ;
11251 int res1 = 0 ;
11252 PyObject *swig_obj[1] ;
11253
11254 if (!args) SWIG_fail;
11255 swig_obj[0] = args;
11256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11257 if (!SWIG_IsOK(res1)) {
11258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11259 }
11260 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11261 {
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
11263 {
11264 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11265 result = (wxFont *) &_result_ref;
11266 }
11267 wxPyEndAllowThreads(__tstate);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 }
11270 {
11271 wxFont* resultptr = new wxFont(*result);
11272 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11273 }
11274 return resultobj;
11275 fail:
11276 return NULL;
11277 }
11278
11279
11280 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11281 PyObject *resultobj = 0;
11282 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11283 wxTextAttrAlignment result;
11284 void *argp1 = 0 ;
11285 int res1 = 0 ;
11286 PyObject *swig_obj[1] ;
11287
11288 if (!args) SWIG_fail;
11289 swig_obj[0] = args;
11290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11291 if (!SWIG_IsOK(res1)) {
11292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11293 }
11294 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11295 {
11296 PyThreadState* __tstate = wxPyBeginAllowThreads();
11297 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11298 wxPyEndAllowThreads(__tstate);
11299 if (PyErr_Occurred()) SWIG_fail;
11300 }
11301 resultobj = SWIG_From_int(static_cast< int >(result));
11302 return resultobj;
11303 fail:
11304 return NULL;
11305 }
11306
11307
11308 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11309 PyObject *resultobj = 0;
11310 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11311 wxArrayInt *result = 0 ;
11312 void *argp1 = 0 ;
11313 int res1 = 0 ;
11314 PyObject *swig_obj[1] ;
11315
11316 if (!args) SWIG_fail;
11317 swig_obj[0] = args;
11318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11319 if (!SWIG_IsOK(res1)) {
11320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11321 }
11322 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11323 {
11324 PyThreadState* __tstate = wxPyBeginAllowThreads();
11325 {
11326 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11327 result = (wxArrayInt *) &_result_ref;
11328 }
11329 wxPyEndAllowThreads(__tstate);
11330 if (PyErr_Occurred()) SWIG_fail;
11331 }
11332 {
11333 resultobj = wxArrayInt2PyList_helper(*result);
11334 }
11335 return resultobj;
11336 fail:
11337 return NULL;
11338 }
11339
11340
11341 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11342 PyObject *resultobj = 0;
11343 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11344 long result;
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_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11354 }
11355 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11356 {
11357 PyThreadState* __tstate = wxPyBeginAllowThreads();
11358 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11359 wxPyEndAllowThreads(__tstate);
11360 if (PyErr_Occurred()) SWIG_fail;
11361 }
11362 resultobj = SWIG_From_long(static_cast< long >(result));
11363 return resultobj;
11364 fail:
11365 return NULL;
11366 }
11367
11368
11369 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11370 PyObject *resultobj = 0;
11371 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11372 long result;
11373 void *argp1 = 0 ;
11374 int res1 = 0 ;
11375 PyObject *swig_obj[1] ;
11376
11377 if (!args) SWIG_fail;
11378 swig_obj[0] = args;
11379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11380 if (!SWIG_IsOK(res1)) {
11381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11382 }
11383 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11384 {
11385 PyThreadState* __tstate = wxPyBeginAllowThreads();
11386 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11387 wxPyEndAllowThreads(__tstate);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 }
11390 resultobj = SWIG_From_long(static_cast< long >(result));
11391 return resultobj;
11392 fail:
11393 return NULL;
11394 }
11395
11396
11397 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11398 PyObject *resultobj = 0;
11399 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11400 long result;
11401 void *argp1 = 0 ;
11402 int res1 = 0 ;
11403 PyObject *swig_obj[1] ;
11404
11405 if (!args) SWIG_fail;
11406 swig_obj[0] = args;
11407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11408 if (!SWIG_IsOK(res1)) {
11409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11410 }
11411 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11412 {
11413 PyThreadState* __tstate = wxPyBeginAllowThreads();
11414 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11415 wxPyEndAllowThreads(__tstate);
11416 if (PyErr_Occurred()) SWIG_fail;
11417 }
11418 resultobj = SWIG_From_long(static_cast< long >(result));
11419 return resultobj;
11420 fail:
11421 return NULL;
11422 }
11423
11424
11425 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11426 PyObject *resultobj = 0;
11427 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11428 long result;
11429 void *argp1 = 0 ;
11430 int res1 = 0 ;
11431 PyObject *swig_obj[1] ;
11432
11433 if (!args) SWIG_fail;
11434 swig_obj[0] = args;
11435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11436 if (!SWIG_IsOK(res1)) {
11437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11438 }
11439 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11440 {
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11443 wxPyEndAllowThreads(__tstate);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 }
11446 resultobj = SWIG_From_long(static_cast< long >(result));
11447 return resultobj;
11448 fail:
11449 return NULL;
11450 }
11451
11452
11453 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11454 PyObject *resultobj = 0;
11455 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11456 bool result;
11457 void *argp1 = 0 ;
11458 int res1 = 0 ;
11459 PyObject *swig_obj[1] ;
11460
11461 if (!args) SWIG_fail;
11462 swig_obj[0] = args;
11463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11464 if (!SWIG_IsOK(res1)) {
11465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11466 }
11467 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 {
11475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11476 }
11477 return resultobj;
11478 fail:
11479 return NULL;
11480 }
11481
11482
11483 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11484 PyObject *resultobj = 0;
11485 wxTextAttr *arg1 = 0 ;
11486 wxTextAttr *arg2 = 0 ;
11487 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11488 wxTextAttr result;
11489 void *argp1 = 0 ;
11490 int res1 = 0 ;
11491 void *argp2 = 0 ;
11492 int res2 = 0 ;
11493 void *argp3 = 0 ;
11494 int res3 = 0 ;
11495 PyObject * obj0 = 0 ;
11496 PyObject * obj1 = 0 ;
11497 PyObject * obj2 = 0 ;
11498 char * kwnames[] = {
11499 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11500 };
11501
11502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11503 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11504 if (!SWIG_IsOK(res1)) {
11505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11506 }
11507 if (!argp1) {
11508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11509 }
11510 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11512 if (!SWIG_IsOK(res2)) {
11513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11514 }
11515 if (!argp2) {
11516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11517 }
11518 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11519 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11520 if (!SWIG_IsOK(res3)) {
11521 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11522 }
11523 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11524 {
11525 PyThreadState* __tstate = wxPyBeginAllowThreads();
11526 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11527 wxPyEndAllowThreads(__tstate);
11528 if (PyErr_Occurred()) SWIG_fail;
11529 }
11530 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11531 return resultobj;
11532 fail:
11533 return NULL;
11534 }
11535
11536
11537 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11538 PyObject *obj;
11539 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11540 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11541 return SWIG_Py_Void();
11542 }
11543
11544 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11545 return SWIG_Python_InitShadowInstance(args);
11546 }
11547
11548 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11549 PyObject *resultobj = 0;
11550 wxWindow *arg1 = (wxWindow *) 0 ;
11551 int arg2 = (int) -1 ;
11552 wxString const &arg3_defvalue = wxPyEmptyString ;
11553 wxString *arg3 = (wxString *) &arg3_defvalue ;
11554 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11555 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11556 wxSize const &arg5_defvalue = wxDefaultSize ;
11557 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11558 long arg6 = (long) 0 ;
11559 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11560 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11561 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11562 wxString *arg8 = (wxString *) &arg8_defvalue ;
11563 wxTextCtrl *result = 0 ;
11564 void *argp1 = 0 ;
11565 int res1 = 0 ;
11566 int val2 ;
11567 int ecode2 = 0 ;
11568 bool temp3 = false ;
11569 wxPoint temp4 ;
11570 wxSize temp5 ;
11571 long val6 ;
11572 int ecode6 = 0 ;
11573 void *argp7 = 0 ;
11574 int res7 = 0 ;
11575 bool temp8 = false ;
11576 PyObject * obj0 = 0 ;
11577 PyObject * obj1 = 0 ;
11578 PyObject * obj2 = 0 ;
11579 PyObject * obj3 = 0 ;
11580 PyObject * obj4 = 0 ;
11581 PyObject * obj5 = 0 ;
11582 PyObject * obj6 = 0 ;
11583 PyObject * obj7 = 0 ;
11584 char * kwnames[] = {
11585 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11586 };
11587
11588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11590 if (!SWIG_IsOK(res1)) {
11591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11592 }
11593 arg1 = reinterpret_cast< wxWindow * >(argp1);
11594 if (obj1) {
11595 ecode2 = SWIG_AsVal_int(obj1, &val2);
11596 if (!SWIG_IsOK(ecode2)) {
11597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11598 }
11599 arg2 = static_cast< int >(val2);
11600 }
11601 if (obj2) {
11602 {
11603 arg3 = wxString_in_helper(obj2);
11604 if (arg3 == NULL) SWIG_fail;
11605 temp3 = true;
11606 }
11607 }
11608 if (obj3) {
11609 {
11610 arg4 = &temp4;
11611 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11612 }
11613 }
11614 if (obj4) {
11615 {
11616 arg5 = &temp5;
11617 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11618 }
11619 }
11620 if (obj5) {
11621 ecode6 = SWIG_AsVal_long(obj5, &val6);
11622 if (!SWIG_IsOK(ecode6)) {
11623 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11624 }
11625 arg6 = static_cast< long >(val6);
11626 }
11627 if (obj6) {
11628 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11629 if (!SWIG_IsOK(res7)) {
11630 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11631 }
11632 if (!argp7) {
11633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11634 }
11635 arg7 = reinterpret_cast< wxValidator * >(argp7);
11636 }
11637 if (obj7) {
11638 {
11639 arg8 = wxString_in_helper(obj7);
11640 if (arg8 == NULL) SWIG_fail;
11641 temp8 = true;
11642 }
11643 }
11644 {
11645 if (!wxPyCheckForApp()) SWIG_fail;
11646 PyThreadState* __tstate = wxPyBeginAllowThreads();
11647 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11648 wxPyEndAllowThreads(__tstate);
11649 if (PyErr_Occurred()) SWIG_fail;
11650 }
11651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11652 {
11653 if (temp3)
11654 delete arg3;
11655 }
11656 {
11657 if (temp8)
11658 delete arg8;
11659 }
11660 return resultobj;
11661 fail:
11662 {
11663 if (temp3)
11664 delete arg3;
11665 }
11666 {
11667 if (temp8)
11668 delete arg8;
11669 }
11670 return NULL;
11671 }
11672
11673
11674 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11675 PyObject *resultobj = 0;
11676 wxTextCtrl *result = 0 ;
11677
11678 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11679 {
11680 if (!wxPyCheckForApp()) SWIG_fail;
11681 PyThreadState* __tstate = wxPyBeginAllowThreads();
11682 result = (wxTextCtrl *)new wxTextCtrl();
11683 wxPyEndAllowThreads(__tstate);
11684 if (PyErr_Occurred()) SWIG_fail;
11685 }
11686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11687 return resultobj;
11688 fail:
11689 return NULL;
11690 }
11691
11692
11693 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11694 PyObject *resultobj = 0;
11695 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11696 wxWindow *arg2 = (wxWindow *) 0 ;
11697 int arg3 = (int) -1 ;
11698 wxString const &arg4_defvalue = wxPyEmptyString ;
11699 wxString *arg4 = (wxString *) &arg4_defvalue ;
11700 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11701 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11702 wxSize const &arg6_defvalue = wxDefaultSize ;
11703 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11704 long arg7 = (long) 0 ;
11705 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11706 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11707 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11708 wxString *arg9 = (wxString *) &arg9_defvalue ;
11709 bool result;
11710 void *argp1 = 0 ;
11711 int res1 = 0 ;
11712 void *argp2 = 0 ;
11713 int res2 = 0 ;
11714 int val3 ;
11715 int ecode3 = 0 ;
11716 bool temp4 = false ;
11717 wxPoint temp5 ;
11718 wxSize temp6 ;
11719 long val7 ;
11720 int ecode7 = 0 ;
11721 void *argp8 = 0 ;
11722 int res8 = 0 ;
11723 bool temp9 = false ;
11724 PyObject * obj0 = 0 ;
11725 PyObject * obj1 = 0 ;
11726 PyObject * obj2 = 0 ;
11727 PyObject * obj3 = 0 ;
11728 PyObject * obj4 = 0 ;
11729 PyObject * obj5 = 0 ;
11730 PyObject * obj6 = 0 ;
11731 PyObject * obj7 = 0 ;
11732 PyObject * obj8 = 0 ;
11733 char * kwnames[] = {
11734 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11735 };
11736
11737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11739 if (!SWIG_IsOK(res1)) {
11740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11741 }
11742 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11743 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11744 if (!SWIG_IsOK(res2)) {
11745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11746 }
11747 arg2 = reinterpret_cast< wxWindow * >(argp2);
11748 if (obj2) {
11749 ecode3 = SWIG_AsVal_int(obj2, &val3);
11750 if (!SWIG_IsOK(ecode3)) {
11751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11752 }
11753 arg3 = static_cast< int >(val3);
11754 }
11755 if (obj3) {
11756 {
11757 arg4 = wxString_in_helper(obj3);
11758 if (arg4 == NULL) SWIG_fail;
11759 temp4 = true;
11760 }
11761 }
11762 if (obj4) {
11763 {
11764 arg5 = &temp5;
11765 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11766 }
11767 }
11768 if (obj5) {
11769 {
11770 arg6 = &temp6;
11771 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11772 }
11773 }
11774 if (obj6) {
11775 ecode7 = SWIG_AsVal_long(obj6, &val7);
11776 if (!SWIG_IsOK(ecode7)) {
11777 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11778 }
11779 arg7 = static_cast< long >(val7);
11780 }
11781 if (obj7) {
11782 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11783 if (!SWIG_IsOK(res8)) {
11784 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11785 }
11786 if (!argp8) {
11787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11788 }
11789 arg8 = reinterpret_cast< wxValidator * >(argp8);
11790 }
11791 if (obj8) {
11792 {
11793 arg9 = wxString_in_helper(obj8);
11794 if (arg9 == NULL) SWIG_fail;
11795 temp9 = true;
11796 }
11797 }
11798 {
11799 PyThreadState* __tstate = wxPyBeginAllowThreads();
11800 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11801 wxPyEndAllowThreads(__tstate);
11802 if (PyErr_Occurred()) SWIG_fail;
11803 }
11804 {
11805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11806 }
11807 {
11808 if (temp4)
11809 delete arg4;
11810 }
11811 {
11812 if (temp9)
11813 delete arg9;
11814 }
11815 return resultobj;
11816 fail:
11817 {
11818 if (temp4)
11819 delete arg4;
11820 }
11821 {
11822 if (temp9)
11823 delete arg9;
11824 }
11825 return NULL;
11826 }
11827
11828
11829 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11830 PyObject *resultobj = 0;
11831 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11832 wxString result;
11833 void *argp1 = 0 ;
11834 int res1 = 0 ;
11835 PyObject *swig_obj[1] ;
11836
11837 if (!args) SWIG_fail;
11838 swig_obj[0] = args;
11839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11840 if (!SWIG_IsOK(res1)) {
11841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11842 }
11843 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11844 {
11845 PyThreadState* __tstate = wxPyBeginAllowThreads();
11846 result = ((wxTextCtrl const *)arg1)->GetValue();
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 {
11851 #if wxUSE_UNICODE
11852 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11853 #else
11854 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11855 #endif
11856 }
11857 return resultobj;
11858 fail:
11859 return NULL;
11860 }
11861
11862
11863 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11864 PyObject *resultobj = 0;
11865 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11866 wxString *arg2 = 0 ;
11867 void *argp1 = 0 ;
11868 int res1 = 0 ;
11869 bool temp2 = false ;
11870 PyObject * obj0 = 0 ;
11871 PyObject * obj1 = 0 ;
11872 char * kwnames[] = {
11873 (char *) "self",(char *) "value", NULL
11874 };
11875
11876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11878 if (!SWIG_IsOK(res1)) {
11879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11880 }
11881 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11882 {
11883 arg2 = wxString_in_helper(obj1);
11884 if (arg2 == NULL) SWIG_fail;
11885 temp2 = true;
11886 }
11887 {
11888 PyThreadState* __tstate = wxPyBeginAllowThreads();
11889 (arg1)->SetValue((wxString const &)*arg2);
11890 wxPyEndAllowThreads(__tstate);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 }
11893 resultobj = SWIG_Py_Void();
11894 {
11895 if (temp2)
11896 delete arg2;
11897 }
11898 return resultobj;
11899 fail:
11900 {
11901 if (temp2)
11902 delete arg2;
11903 }
11904 return NULL;
11905 }
11906
11907
11908 SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11909 PyObject *resultobj = 0;
11910 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11911 bool result;
11912 void *argp1 = 0 ;
11913 int res1 = 0 ;
11914 PyObject *swig_obj[1] ;
11915
11916 if (!args) SWIG_fail;
11917 swig_obj[0] = args;
11918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11919 if (!SWIG_IsOK(res1)) {
11920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11921 }
11922 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11923 {
11924 PyThreadState* __tstate = wxPyBeginAllowThreads();
11925 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11926 wxPyEndAllowThreads(__tstate);
11927 if (PyErr_Occurred()) SWIG_fail;
11928 }
11929 {
11930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11931 }
11932 return resultobj;
11933 fail:
11934 return NULL;
11935 }
11936
11937
11938 SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11939 PyObject *resultobj = 0;
11940 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11941 wxString *arg2 = 0 ;
11942 void *argp1 = 0 ;
11943 int res1 = 0 ;
11944 bool temp2 = false ;
11945 PyObject * obj0 = 0 ;
11946 PyObject * obj1 = 0 ;
11947 char * kwnames[] = {
11948 (char *) "self",(char *) "value", NULL
11949 };
11950
11951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
11952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11953 if (!SWIG_IsOK(res1)) {
11954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11955 }
11956 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11957 {
11958 arg2 = wxString_in_helper(obj1);
11959 if (arg2 == NULL) SWIG_fail;
11960 temp2 = true;
11961 }
11962 {
11963 PyThreadState* __tstate = wxPyBeginAllowThreads();
11964 (arg1)->ChangeValue((wxString const &)*arg2);
11965 wxPyEndAllowThreads(__tstate);
11966 if (PyErr_Occurred()) SWIG_fail;
11967 }
11968 resultobj = SWIG_Py_Void();
11969 {
11970 if (temp2)
11971 delete arg2;
11972 }
11973 return resultobj;
11974 fail:
11975 {
11976 if (temp2)
11977 delete arg2;
11978 }
11979 return NULL;
11980 }
11981
11982
11983 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11984 PyObject *resultobj = 0;
11985 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11986 long arg2 ;
11987 long arg3 ;
11988 wxString result;
11989 void *argp1 = 0 ;
11990 int res1 = 0 ;
11991 long val2 ;
11992 int ecode2 = 0 ;
11993 long val3 ;
11994 int ecode3 = 0 ;
11995 PyObject * obj0 = 0 ;
11996 PyObject * obj1 = 0 ;
11997 PyObject * obj2 = 0 ;
11998 char * kwnames[] = {
11999 (char *) "self",(char *) "from",(char *) "to", NULL
12000 };
12001
12002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12004 if (!SWIG_IsOK(res1)) {
12005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12006 }
12007 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12008 ecode2 = SWIG_AsVal_long(obj1, &val2);
12009 if (!SWIG_IsOK(ecode2)) {
12010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12011 }
12012 arg2 = static_cast< long >(val2);
12013 ecode3 = SWIG_AsVal_long(obj2, &val3);
12014 if (!SWIG_IsOK(ecode3)) {
12015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12016 }
12017 arg3 = static_cast< long >(val3);
12018 {
12019 PyThreadState* __tstate = wxPyBeginAllowThreads();
12020 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12021 wxPyEndAllowThreads(__tstate);
12022 if (PyErr_Occurred()) SWIG_fail;
12023 }
12024 {
12025 #if wxUSE_UNICODE
12026 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12027 #else
12028 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12029 #endif
12030 }
12031 return resultobj;
12032 fail:
12033 return NULL;
12034 }
12035
12036
12037 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12038 PyObject *resultobj = 0;
12039 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12040 long arg2 ;
12041 int result;
12042 void *argp1 = 0 ;
12043 int res1 = 0 ;
12044 long val2 ;
12045 int ecode2 = 0 ;
12046 PyObject * obj0 = 0 ;
12047 PyObject * obj1 = 0 ;
12048 char * kwnames[] = {
12049 (char *) "self",(char *) "lineNo", NULL
12050 };
12051
12052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12054 if (!SWIG_IsOK(res1)) {
12055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12056 }
12057 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12058 ecode2 = SWIG_AsVal_long(obj1, &val2);
12059 if (!SWIG_IsOK(ecode2)) {
12060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12061 }
12062 arg2 = static_cast< long >(val2);
12063 {
12064 PyThreadState* __tstate = wxPyBeginAllowThreads();
12065 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12066 wxPyEndAllowThreads(__tstate);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 resultobj = SWIG_From_int(static_cast< int >(result));
12070 return resultobj;
12071 fail:
12072 return NULL;
12073 }
12074
12075
12076 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12077 PyObject *resultobj = 0;
12078 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12079 long arg2 ;
12080 wxString result;
12081 void *argp1 = 0 ;
12082 int res1 = 0 ;
12083 long val2 ;
12084 int ecode2 = 0 ;
12085 PyObject * obj0 = 0 ;
12086 PyObject * obj1 = 0 ;
12087 char * kwnames[] = {
12088 (char *) "self",(char *) "lineNo", NULL
12089 };
12090
12091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12093 if (!SWIG_IsOK(res1)) {
12094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12095 }
12096 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12097 ecode2 = SWIG_AsVal_long(obj1, &val2);
12098 if (!SWIG_IsOK(ecode2)) {
12099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12100 }
12101 arg2 = static_cast< long >(val2);
12102 {
12103 PyThreadState* __tstate = wxPyBeginAllowThreads();
12104 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12105 wxPyEndAllowThreads(__tstate);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 {
12109 #if wxUSE_UNICODE
12110 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12111 #else
12112 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12113 #endif
12114 }
12115 return resultobj;
12116 fail:
12117 return NULL;
12118 }
12119
12120
12121 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12122 PyObject *resultobj = 0;
12123 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12124 int result;
12125 void *argp1 = 0 ;
12126 int res1 = 0 ;
12127 PyObject *swig_obj[1] ;
12128
12129 if (!args) SWIG_fail;
12130 swig_obj[0] = args;
12131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12132 if (!SWIG_IsOK(res1)) {
12133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12134 }
12135 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12136 {
12137 PyThreadState* __tstate = wxPyBeginAllowThreads();
12138 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12139 wxPyEndAllowThreads(__tstate);
12140 if (PyErr_Occurred()) SWIG_fail;
12141 }
12142 resultobj = SWIG_From_int(static_cast< int >(result));
12143 return resultobj;
12144 fail:
12145 return NULL;
12146 }
12147
12148
12149 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12150 PyObject *resultobj = 0;
12151 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12152 bool result;
12153 void *argp1 = 0 ;
12154 int res1 = 0 ;
12155 PyObject *swig_obj[1] ;
12156
12157 if (!args) SWIG_fail;
12158 swig_obj[0] = args;
12159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12160 if (!SWIG_IsOK(res1)) {
12161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12162 }
12163 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12164 {
12165 PyThreadState* __tstate = wxPyBeginAllowThreads();
12166 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12167 wxPyEndAllowThreads(__tstate);
12168 if (PyErr_Occurred()) SWIG_fail;
12169 }
12170 {
12171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12172 }
12173 return resultobj;
12174 fail:
12175 return NULL;
12176 }
12177
12178
12179 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12180 PyObject *resultobj = 0;
12181 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12182 bool result;
12183 void *argp1 = 0 ;
12184 int res1 = 0 ;
12185 PyObject *swig_obj[1] ;
12186
12187 if (!args) SWIG_fail;
12188 swig_obj[0] = args;
12189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12190 if (!SWIG_IsOK(res1)) {
12191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12192 }
12193 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12194 {
12195 PyThreadState* __tstate = wxPyBeginAllowThreads();
12196 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12197 wxPyEndAllowThreads(__tstate);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 }
12200 {
12201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12202 }
12203 return resultobj;
12204 fail:
12205 return NULL;
12206 }
12207
12208
12209 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12210 PyObject *resultobj = 0;
12211 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12212 bool result;
12213 void *argp1 = 0 ;
12214 int res1 = 0 ;
12215 PyObject *swig_obj[1] ;
12216
12217 if (!args) SWIG_fail;
12218 swig_obj[0] = args;
12219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12220 if (!SWIG_IsOK(res1)) {
12221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12222 }
12223 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12224 {
12225 PyThreadState* __tstate = wxPyBeginAllowThreads();
12226 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12227 wxPyEndAllowThreads(__tstate);
12228 if (PyErr_Occurred()) SWIG_fail;
12229 }
12230 {
12231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12232 }
12233 return resultobj;
12234 fail:
12235 return NULL;
12236 }
12237
12238
12239 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12240 PyObject *resultobj = 0;
12241 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12242 bool result;
12243 void *argp1 = 0 ;
12244 int res1 = 0 ;
12245 PyObject *swig_obj[1] ;
12246
12247 if (!args) SWIG_fail;
12248 swig_obj[0] = args;
12249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12250 if (!SWIG_IsOK(res1)) {
12251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12252 }
12253 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12254 {
12255 PyThreadState* __tstate = wxPyBeginAllowThreads();
12256 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12257 wxPyEndAllowThreads(__tstate);
12258 if (PyErr_Occurred()) SWIG_fail;
12259 }
12260 {
12261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12262 }
12263 return resultobj;
12264 fail:
12265 return NULL;
12266 }
12267
12268
12269 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12270 PyObject *resultobj = 0;
12271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12272 long *arg2 = (long *) 0 ;
12273 long *arg3 = (long *) 0 ;
12274 void *argp1 = 0 ;
12275 int res1 = 0 ;
12276 long temp2 ;
12277 int res2 = SWIG_TMPOBJ ;
12278 long temp3 ;
12279 int res3 = SWIG_TMPOBJ ;
12280 PyObject *swig_obj[1] ;
12281
12282 arg2 = &temp2;
12283 arg3 = &temp3;
12284 if (!args) SWIG_fail;
12285 swig_obj[0] = args;
12286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12287 if (!SWIG_IsOK(res1)) {
12288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12289 }
12290 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12291 {
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12294 wxPyEndAllowThreads(__tstate);
12295 if (PyErr_Occurred()) SWIG_fail;
12296 }
12297 resultobj = SWIG_Py_Void();
12298 if (SWIG_IsTmpObj(res2)) {
12299 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12300 } else {
12301 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12302 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12303 }
12304 if (SWIG_IsTmpObj(res3)) {
12305 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12306 } else {
12307 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12308 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12309 }
12310 return resultobj;
12311 fail:
12312 return NULL;
12313 }
12314
12315
12316 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12317 PyObject *resultobj = 0;
12318 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12319 wxString result;
12320 void *argp1 = 0 ;
12321 int res1 = 0 ;
12322 PyObject *swig_obj[1] ;
12323
12324 if (!args) SWIG_fail;
12325 swig_obj[0] = args;
12326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12327 if (!SWIG_IsOK(res1)) {
12328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12329 }
12330 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12331 {
12332 PyThreadState* __tstate = wxPyBeginAllowThreads();
12333 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12334 wxPyEndAllowThreads(__tstate);
12335 if (PyErr_Occurred()) SWIG_fail;
12336 }
12337 {
12338 #if wxUSE_UNICODE
12339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12340 #else
12341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12342 #endif
12343 }
12344 return resultobj;
12345 fail:
12346 return NULL;
12347 }
12348
12349
12350 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12351 PyObject *resultobj = 0;
12352 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
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_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12362 }
12363 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12364 {
12365 PyThreadState* __tstate = wxPyBeginAllowThreads();
12366 (arg1)->Clear();
12367 wxPyEndAllowThreads(__tstate);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 resultobj = SWIG_Py_Void();
12371 return resultobj;
12372 fail:
12373 return NULL;
12374 }
12375
12376
12377 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12378 PyObject *resultobj = 0;
12379 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12380 long arg2 ;
12381 long arg3 ;
12382 wxString *arg4 = 0 ;
12383 void *argp1 = 0 ;
12384 int res1 = 0 ;
12385 long val2 ;
12386 int ecode2 = 0 ;
12387 long val3 ;
12388 int ecode3 = 0 ;
12389 bool temp4 = false ;
12390 PyObject * obj0 = 0 ;
12391 PyObject * obj1 = 0 ;
12392 PyObject * obj2 = 0 ;
12393 PyObject * obj3 = 0 ;
12394 char * kwnames[] = {
12395 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12396 };
12397
12398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12402 }
12403 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12404 ecode2 = SWIG_AsVal_long(obj1, &val2);
12405 if (!SWIG_IsOK(ecode2)) {
12406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12407 }
12408 arg2 = static_cast< long >(val2);
12409 ecode3 = SWIG_AsVal_long(obj2, &val3);
12410 if (!SWIG_IsOK(ecode3)) {
12411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12412 }
12413 arg3 = static_cast< long >(val3);
12414 {
12415 arg4 = wxString_in_helper(obj3);
12416 if (arg4 == NULL) SWIG_fail;
12417 temp4 = true;
12418 }
12419 {
12420 PyThreadState* __tstate = wxPyBeginAllowThreads();
12421 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12422 wxPyEndAllowThreads(__tstate);
12423 if (PyErr_Occurred()) SWIG_fail;
12424 }
12425 resultobj = SWIG_Py_Void();
12426 {
12427 if (temp4)
12428 delete arg4;
12429 }
12430 return resultobj;
12431 fail:
12432 {
12433 if (temp4)
12434 delete arg4;
12435 }
12436 return NULL;
12437 }
12438
12439
12440 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12441 PyObject *resultobj = 0;
12442 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12443 long arg2 ;
12444 long arg3 ;
12445 void *argp1 = 0 ;
12446 int res1 = 0 ;
12447 long val2 ;
12448 int ecode2 = 0 ;
12449 long val3 ;
12450 int ecode3 = 0 ;
12451 PyObject * obj0 = 0 ;
12452 PyObject * obj1 = 0 ;
12453 PyObject * obj2 = 0 ;
12454 char * kwnames[] = {
12455 (char *) "self",(char *) "from",(char *) "to", NULL
12456 };
12457
12458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12460 if (!SWIG_IsOK(res1)) {
12461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12462 }
12463 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12464 ecode2 = SWIG_AsVal_long(obj1, &val2);
12465 if (!SWIG_IsOK(ecode2)) {
12466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12467 }
12468 arg2 = static_cast< long >(val2);
12469 ecode3 = SWIG_AsVal_long(obj2, &val3);
12470 if (!SWIG_IsOK(ecode3)) {
12471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12472 }
12473 arg3 = static_cast< long >(val3);
12474 {
12475 PyThreadState* __tstate = wxPyBeginAllowThreads();
12476 (arg1)->Remove(arg2,arg3);
12477 wxPyEndAllowThreads(__tstate);
12478 if (PyErr_Occurred()) SWIG_fail;
12479 }
12480 resultobj = SWIG_Py_Void();
12481 return resultobj;
12482 fail:
12483 return NULL;
12484 }
12485
12486
12487 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12488 PyObject *resultobj = 0;
12489 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12490 wxString *arg2 = 0 ;
12491 int arg3 = (int) wxTEXT_TYPE_ANY ;
12492 bool result;
12493 void *argp1 = 0 ;
12494 int res1 = 0 ;
12495 bool temp2 = false ;
12496 int val3 ;
12497 int ecode3 = 0 ;
12498 PyObject * obj0 = 0 ;
12499 PyObject * obj1 = 0 ;
12500 PyObject * obj2 = 0 ;
12501 char * kwnames[] = {
12502 (char *) "self",(char *) "file",(char *) "fileType", NULL
12503 };
12504
12505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12507 if (!SWIG_IsOK(res1)) {
12508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12509 }
12510 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12511 {
12512 arg2 = wxString_in_helper(obj1);
12513 if (arg2 == NULL) SWIG_fail;
12514 temp2 = true;
12515 }
12516 if (obj2) {
12517 ecode3 = SWIG_AsVal_int(obj2, &val3);
12518 if (!SWIG_IsOK(ecode3)) {
12519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12520 }
12521 arg3 = static_cast< int >(val3);
12522 }
12523 {
12524 PyThreadState* __tstate = wxPyBeginAllowThreads();
12525 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12526 wxPyEndAllowThreads(__tstate);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 }
12529 {
12530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12531 }
12532 {
12533 if (temp2)
12534 delete arg2;
12535 }
12536 return resultobj;
12537 fail:
12538 {
12539 if (temp2)
12540 delete arg2;
12541 }
12542 return NULL;
12543 }
12544
12545
12546 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12547 PyObject *resultobj = 0;
12548 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12549 wxString const &arg2_defvalue = wxPyEmptyString ;
12550 wxString *arg2 = (wxString *) &arg2_defvalue ;
12551 int arg3 = (int) wxTEXT_TYPE_ANY ;
12552 bool result;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 bool temp2 = false ;
12556 int val3 ;
12557 int ecode3 = 0 ;
12558 PyObject * obj0 = 0 ;
12559 PyObject * obj1 = 0 ;
12560 PyObject * obj2 = 0 ;
12561 char * kwnames[] = {
12562 (char *) "self",(char *) "file",(char *) "fileType", NULL
12563 };
12564
12565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12567 if (!SWIG_IsOK(res1)) {
12568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12569 }
12570 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12571 if (obj1) {
12572 {
12573 arg2 = wxString_in_helper(obj1);
12574 if (arg2 == NULL) SWIG_fail;
12575 temp2 = true;
12576 }
12577 }
12578 if (obj2) {
12579 ecode3 = SWIG_AsVal_int(obj2, &val3);
12580 if (!SWIG_IsOK(ecode3)) {
12581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12582 }
12583 arg3 = static_cast< int >(val3);
12584 }
12585 {
12586 PyThreadState* __tstate = wxPyBeginAllowThreads();
12587 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12588 wxPyEndAllowThreads(__tstate);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 }
12591 {
12592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12593 }
12594 {
12595 if (temp2)
12596 delete arg2;
12597 }
12598 return resultobj;
12599 fail:
12600 {
12601 if (temp2)
12602 delete arg2;
12603 }
12604 return NULL;
12605 }
12606
12607
12608 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12609 PyObject *resultobj = 0;
12610 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12611 void *argp1 = 0 ;
12612 int res1 = 0 ;
12613 PyObject *swig_obj[1] ;
12614
12615 if (!args) SWIG_fail;
12616 swig_obj[0] = args;
12617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12618 if (!SWIG_IsOK(res1)) {
12619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12620 }
12621 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12622 {
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 (arg1)->MarkDirty();
12625 wxPyEndAllowThreads(__tstate);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 resultobj = SWIG_Py_Void();
12629 return resultobj;
12630 fail:
12631 return NULL;
12632 }
12633
12634
12635 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12636 PyObject *resultobj = 0;
12637 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12638 void *argp1 = 0 ;
12639 int res1 = 0 ;
12640 PyObject *swig_obj[1] ;
12641
12642 if (!args) SWIG_fail;
12643 swig_obj[0] = args;
12644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12645 if (!SWIG_IsOK(res1)) {
12646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12647 }
12648 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12649 {
12650 PyThreadState* __tstate = wxPyBeginAllowThreads();
12651 (arg1)->DiscardEdits();
12652 wxPyEndAllowThreads(__tstate);
12653 if (PyErr_Occurred()) SWIG_fail;
12654 }
12655 resultobj = SWIG_Py_Void();
12656 return resultobj;
12657 fail:
12658 return NULL;
12659 }
12660
12661
12662 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12663 PyObject *resultobj = 0;
12664 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12665 bool arg2 ;
12666 void *argp1 = 0 ;
12667 int res1 = 0 ;
12668 bool val2 ;
12669 int ecode2 = 0 ;
12670 PyObject * obj0 = 0 ;
12671 PyObject * obj1 = 0 ;
12672 char * kwnames[] = {
12673 (char *) "self",(char *) "modified", NULL
12674 };
12675
12676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12678 if (!SWIG_IsOK(res1)) {
12679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12680 }
12681 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12682 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12683 if (!SWIG_IsOK(ecode2)) {
12684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12685 }
12686 arg2 = static_cast< bool >(val2);
12687 {
12688 PyThreadState* __tstate = wxPyBeginAllowThreads();
12689 (arg1)->SetModified(arg2);
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 resultobj = SWIG_Py_Void();
12694 return resultobj;
12695 fail:
12696 return NULL;
12697 }
12698
12699
12700 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12701 PyObject *resultobj = 0;
12702 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12703 unsigned long arg2 ;
12704 void *argp1 = 0 ;
12705 int res1 = 0 ;
12706 unsigned long val2 ;
12707 int ecode2 = 0 ;
12708 PyObject * obj0 = 0 ;
12709 PyObject * obj1 = 0 ;
12710 char * kwnames[] = {
12711 (char *) "self",(char *) "len", NULL
12712 };
12713
12714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12716 if (!SWIG_IsOK(res1)) {
12717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12718 }
12719 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12720 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12721 if (!SWIG_IsOK(ecode2)) {
12722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12723 }
12724 arg2 = static_cast< unsigned long >(val2);
12725 {
12726 PyThreadState* __tstate = wxPyBeginAllowThreads();
12727 (arg1)->SetMaxLength(arg2);
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 resultobj = SWIG_Py_Void();
12732 return resultobj;
12733 fail:
12734 return NULL;
12735 }
12736
12737
12738 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12739 PyObject *resultobj = 0;
12740 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12741 wxString *arg2 = 0 ;
12742 void *argp1 = 0 ;
12743 int res1 = 0 ;
12744 bool temp2 = false ;
12745 PyObject * obj0 = 0 ;
12746 PyObject * obj1 = 0 ;
12747 char * kwnames[] = {
12748 (char *) "self",(char *) "text", NULL
12749 };
12750
12751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12753 if (!SWIG_IsOK(res1)) {
12754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12755 }
12756 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12757 {
12758 arg2 = wxString_in_helper(obj1);
12759 if (arg2 == NULL) SWIG_fail;
12760 temp2 = true;
12761 }
12762 {
12763 PyThreadState* __tstate = wxPyBeginAllowThreads();
12764 (arg1)->WriteText((wxString const &)*arg2);
12765 wxPyEndAllowThreads(__tstate);
12766 if (PyErr_Occurred()) SWIG_fail;
12767 }
12768 resultobj = SWIG_Py_Void();
12769 {
12770 if (temp2)
12771 delete arg2;
12772 }
12773 return resultobj;
12774 fail:
12775 {
12776 if (temp2)
12777 delete arg2;
12778 }
12779 return NULL;
12780 }
12781
12782
12783 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12784 PyObject *resultobj = 0;
12785 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12786 wxString *arg2 = 0 ;
12787 void *argp1 = 0 ;
12788 int res1 = 0 ;
12789 bool temp2 = false ;
12790 PyObject * obj0 = 0 ;
12791 PyObject * obj1 = 0 ;
12792 char * kwnames[] = {
12793 (char *) "self",(char *) "text", NULL
12794 };
12795
12796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12798 if (!SWIG_IsOK(res1)) {
12799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12800 }
12801 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12802 {
12803 arg2 = wxString_in_helper(obj1);
12804 if (arg2 == NULL) SWIG_fail;
12805 temp2 = true;
12806 }
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 (arg1)->AppendText((wxString const &)*arg2);
12810 wxPyEndAllowThreads(__tstate);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 }
12813 resultobj = SWIG_Py_Void();
12814 {
12815 if (temp2)
12816 delete arg2;
12817 }
12818 return resultobj;
12819 fail:
12820 {
12821 if (temp2)
12822 delete arg2;
12823 }
12824 return NULL;
12825 }
12826
12827
12828 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12829 PyObject *resultobj = 0;
12830 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12831 wxKeyEvent *arg2 = 0 ;
12832 bool result;
12833 void *argp1 = 0 ;
12834 int res1 = 0 ;
12835 void *argp2 = 0 ;
12836 int res2 = 0 ;
12837 PyObject * obj0 = 0 ;
12838 PyObject * obj1 = 0 ;
12839 char * kwnames[] = {
12840 (char *) "self",(char *) "event", NULL
12841 };
12842
12843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12845 if (!SWIG_IsOK(res1)) {
12846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12847 }
12848 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12849 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12850 if (!SWIG_IsOK(res2)) {
12851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12852 }
12853 if (!argp2) {
12854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12855 }
12856 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12857 {
12858 PyThreadState* __tstate = wxPyBeginAllowThreads();
12859 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12860 wxPyEndAllowThreads(__tstate);
12861 if (PyErr_Occurred()) SWIG_fail;
12862 }
12863 {
12864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12865 }
12866 return resultobj;
12867 fail:
12868 return NULL;
12869 }
12870
12871
12872 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12873 PyObject *resultobj = 0;
12874 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12875 long arg2 ;
12876 long arg3 ;
12877 wxTextAttr *arg4 = 0 ;
12878 bool result;
12879 void *argp1 = 0 ;
12880 int res1 = 0 ;
12881 long val2 ;
12882 int ecode2 = 0 ;
12883 long val3 ;
12884 int ecode3 = 0 ;
12885 void *argp4 = 0 ;
12886 int res4 = 0 ;
12887 PyObject * obj0 = 0 ;
12888 PyObject * obj1 = 0 ;
12889 PyObject * obj2 = 0 ;
12890 PyObject * obj3 = 0 ;
12891 char * kwnames[] = {
12892 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12893 };
12894
12895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12897 if (!SWIG_IsOK(res1)) {
12898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12899 }
12900 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12901 ecode2 = SWIG_AsVal_long(obj1, &val2);
12902 if (!SWIG_IsOK(ecode2)) {
12903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12904 }
12905 arg2 = static_cast< long >(val2);
12906 ecode3 = SWIG_AsVal_long(obj2, &val3);
12907 if (!SWIG_IsOK(ecode3)) {
12908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12909 }
12910 arg3 = static_cast< long >(val3);
12911 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12912 if (!SWIG_IsOK(res4)) {
12913 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12914 }
12915 if (!argp4) {
12916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12917 }
12918 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12919 {
12920 PyThreadState* __tstate = wxPyBeginAllowThreads();
12921 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12922 wxPyEndAllowThreads(__tstate);
12923 if (PyErr_Occurred()) SWIG_fail;
12924 }
12925 {
12926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12927 }
12928 return resultobj;
12929 fail:
12930 return NULL;
12931 }
12932
12933
12934 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12935 PyObject *resultobj = 0;
12936 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12937 long arg2 ;
12938 wxTextAttr *arg3 = 0 ;
12939 bool result;
12940 void *argp1 = 0 ;
12941 int res1 = 0 ;
12942 long val2 ;
12943 int ecode2 = 0 ;
12944 void *argp3 = 0 ;
12945 int res3 = 0 ;
12946 PyObject * obj0 = 0 ;
12947 PyObject * obj1 = 0 ;
12948 PyObject * obj2 = 0 ;
12949 char * kwnames[] = {
12950 (char *) "self",(char *) "position",(char *) "style", NULL
12951 };
12952
12953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12955 if (!SWIG_IsOK(res1)) {
12956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12957 }
12958 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12959 ecode2 = SWIG_AsVal_long(obj1, &val2);
12960 if (!SWIG_IsOK(ecode2)) {
12961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12962 }
12963 arg2 = static_cast< long >(val2);
12964 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12965 if (!SWIG_IsOK(res3)) {
12966 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12967 }
12968 if (!argp3) {
12969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12970 }
12971 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12972 {
12973 PyThreadState* __tstate = wxPyBeginAllowThreads();
12974 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12975 wxPyEndAllowThreads(__tstate);
12976 if (PyErr_Occurred()) SWIG_fail;
12977 }
12978 {
12979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12980 }
12981 return resultobj;
12982 fail:
12983 return NULL;
12984 }
12985
12986
12987 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj = 0;
12989 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12990 wxTextAttr *arg2 = 0 ;
12991 bool result;
12992 void *argp1 = 0 ;
12993 int res1 = 0 ;
12994 void *argp2 = 0 ;
12995 int res2 = 0 ;
12996 PyObject * obj0 = 0 ;
12997 PyObject * obj1 = 0 ;
12998 char * kwnames[] = {
12999 (char *) "self",(char *) "style", NULL
13000 };
13001
13002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13004 if (!SWIG_IsOK(res1)) {
13005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13006 }
13007 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13008 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13009 if (!SWIG_IsOK(res2)) {
13010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13011 }
13012 if (!argp2) {
13013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13014 }
13015 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13016 {
13017 PyThreadState* __tstate = wxPyBeginAllowThreads();
13018 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13019 wxPyEndAllowThreads(__tstate);
13020 if (PyErr_Occurred()) SWIG_fail;
13021 }
13022 {
13023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13024 }
13025 return resultobj;
13026 fail:
13027 return NULL;
13028 }
13029
13030
13031 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13032 PyObject *resultobj = 0;
13033 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13034 wxTextAttr *result = 0 ;
13035 void *argp1 = 0 ;
13036 int res1 = 0 ;
13037 PyObject *swig_obj[1] ;
13038
13039 if (!args) SWIG_fail;
13040 swig_obj[0] = args;
13041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13042 if (!SWIG_IsOK(res1)) {
13043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13044 }
13045 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13046 {
13047 PyThreadState* __tstate = wxPyBeginAllowThreads();
13048 {
13049 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13050 result = (wxTextAttr *) &_result_ref;
13051 }
13052 wxPyEndAllowThreads(__tstate);
13053 if (PyErr_Occurred()) SWIG_fail;
13054 }
13055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13056 return resultobj;
13057 fail:
13058 return NULL;
13059 }
13060
13061
13062 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13063 PyObject *resultobj = 0;
13064 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13065 long arg2 ;
13066 long arg3 ;
13067 long result;
13068 void *argp1 = 0 ;
13069 int res1 = 0 ;
13070 long val2 ;
13071 int ecode2 = 0 ;
13072 long val3 ;
13073 int ecode3 = 0 ;
13074 PyObject * obj0 = 0 ;
13075 PyObject * obj1 = 0 ;
13076 PyObject * obj2 = 0 ;
13077 char * kwnames[] = {
13078 (char *) "self",(char *) "x",(char *) "y", NULL
13079 };
13080
13081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13083 if (!SWIG_IsOK(res1)) {
13084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13085 }
13086 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13087 ecode2 = SWIG_AsVal_long(obj1, &val2);
13088 if (!SWIG_IsOK(ecode2)) {
13089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13090 }
13091 arg2 = static_cast< long >(val2);
13092 ecode3 = SWIG_AsVal_long(obj2, &val3);
13093 if (!SWIG_IsOK(ecode3)) {
13094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13095 }
13096 arg3 = static_cast< long >(val3);
13097 {
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13100 wxPyEndAllowThreads(__tstate);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 resultobj = SWIG_From_long(static_cast< long >(result));
13104 return resultobj;
13105 fail:
13106 return NULL;
13107 }
13108
13109
13110 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13111 PyObject *resultobj = 0;
13112 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13113 long arg2 ;
13114 long *arg3 = (long *) 0 ;
13115 long *arg4 = (long *) 0 ;
13116 void *argp1 = 0 ;
13117 int res1 = 0 ;
13118 long val2 ;
13119 int ecode2 = 0 ;
13120 long temp3 ;
13121 int res3 = SWIG_TMPOBJ ;
13122 long temp4 ;
13123 int res4 = SWIG_TMPOBJ ;
13124 PyObject * obj0 = 0 ;
13125 PyObject * obj1 = 0 ;
13126 char * kwnames[] = {
13127 (char *) "self",(char *) "pos", NULL
13128 };
13129
13130 arg3 = &temp3;
13131 arg4 = &temp4;
13132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13134 if (!SWIG_IsOK(res1)) {
13135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13136 }
13137 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13138 ecode2 = SWIG_AsVal_long(obj1, &val2);
13139 if (!SWIG_IsOK(ecode2)) {
13140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13141 }
13142 arg2 = static_cast< long >(val2);
13143 {
13144 PyThreadState* __tstate = wxPyBeginAllowThreads();
13145 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13146 wxPyEndAllowThreads(__tstate);
13147 if (PyErr_Occurred()) SWIG_fail;
13148 }
13149 resultobj = SWIG_Py_Void();
13150 if (SWIG_IsTmpObj(res3)) {
13151 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13152 } else {
13153 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13155 }
13156 if (SWIG_IsTmpObj(res4)) {
13157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13158 } else {
13159 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13161 }
13162 return resultobj;
13163 fail:
13164 return NULL;
13165 }
13166
13167
13168 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13169 PyObject *resultobj = 0;
13170 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13171 long arg2 ;
13172 void *argp1 = 0 ;
13173 int res1 = 0 ;
13174 long val2 ;
13175 int ecode2 = 0 ;
13176 PyObject * obj0 = 0 ;
13177 PyObject * obj1 = 0 ;
13178 char * kwnames[] = {
13179 (char *) "self",(char *) "pos", NULL
13180 };
13181
13182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13184 if (!SWIG_IsOK(res1)) {
13185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13186 }
13187 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13188 ecode2 = SWIG_AsVal_long(obj1, &val2);
13189 if (!SWIG_IsOK(ecode2)) {
13190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13191 }
13192 arg2 = static_cast< long >(val2);
13193 {
13194 PyThreadState* __tstate = wxPyBeginAllowThreads();
13195 (arg1)->ShowPosition(arg2);
13196 wxPyEndAllowThreads(__tstate);
13197 if (PyErr_Occurred()) SWIG_fail;
13198 }
13199 resultobj = SWIG_Py_Void();
13200 return resultobj;
13201 fail:
13202 return NULL;
13203 }
13204
13205
13206 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13207 PyObject *resultobj = 0;
13208 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13209 wxPoint *arg2 = 0 ;
13210 long *arg3 = (long *) 0 ;
13211 long *arg4 = (long *) 0 ;
13212 wxTextCtrlHitTestResult result;
13213 void *argp1 = 0 ;
13214 int res1 = 0 ;
13215 wxPoint temp2 ;
13216 long temp3 ;
13217 int res3 = SWIG_TMPOBJ ;
13218 long temp4 ;
13219 int res4 = SWIG_TMPOBJ ;
13220 PyObject * obj0 = 0 ;
13221 PyObject * obj1 = 0 ;
13222 char * kwnames[] = {
13223 (char *) "self",(char *) "pt", NULL
13224 };
13225
13226 arg3 = &temp3;
13227 arg4 = &temp4;
13228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13230 if (!SWIG_IsOK(res1)) {
13231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13232 }
13233 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13234 {
13235 arg2 = &temp2;
13236 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13237 }
13238 {
13239 PyThreadState* __tstate = wxPyBeginAllowThreads();
13240 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13241 wxPyEndAllowThreads(__tstate);
13242 if (PyErr_Occurred()) SWIG_fail;
13243 }
13244 resultobj = SWIG_From_int(static_cast< int >(result));
13245 if (SWIG_IsTmpObj(res3)) {
13246 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13247 } else {
13248 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13249 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13250 }
13251 if (SWIG_IsTmpObj(res4)) {
13252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13253 } else {
13254 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13256 }
13257 return resultobj;
13258 fail:
13259 return NULL;
13260 }
13261
13262
13263 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13264 PyObject *resultobj = 0;
13265 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13266 wxPoint *arg2 = 0 ;
13267 long *arg3 = (long *) 0 ;
13268 wxTextCtrlHitTestResult result;
13269 void *argp1 = 0 ;
13270 int res1 = 0 ;
13271 wxPoint temp2 ;
13272 long temp3 ;
13273 int res3 = SWIG_TMPOBJ ;
13274 PyObject * obj0 = 0 ;
13275 PyObject * obj1 = 0 ;
13276 char * kwnames[] = {
13277 (char *) "self",(char *) "pt", NULL
13278 };
13279
13280 arg3 = &temp3;
13281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13283 if (!SWIG_IsOK(res1)) {
13284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13285 }
13286 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13287 {
13288 arg2 = &temp2;
13289 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13290 }
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 resultobj = SWIG_From_int(static_cast< int >(result));
13298 if (SWIG_IsTmpObj(res3)) {
13299 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13300 } else {
13301 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13302 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13303 }
13304 return resultobj;
13305 fail:
13306 return NULL;
13307 }
13308
13309
13310 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13311 PyObject *resultobj = 0;
13312 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13313 void *argp1 = 0 ;
13314 int res1 = 0 ;
13315 PyObject *swig_obj[1] ;
13316
13317 if (!args) SWIG_fail;
13318 swig_obj[0] = args;
13319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13320 if (!SWIG_IsOK(res1)) {
13321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13322 }
13323 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 (arg1)->Copy();
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 resultobj = SWIG_Py_Void();
13331 return resultobj;
13332 fail:
13333 return NULL;
13334 }
13335
13336
13337 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13338 PyObject *resultobj = 0;
13339 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13340 void *argp1 = 0 ;
13341 int res1 = 0 ;
13342 PyObject *swig_obj[1] ;
13343
13344 if (!args) SWIG_fail;
13345 swig_obj[0] = args;
13346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13347 if (!SWIG_IsOK(res1)) {
13348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13349 }
13350 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13351 {
13352 PyThreadState* __tstate = wxPyBeginAllowThreads();
13353 (arg1)->Cut();
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 resultobj = SWIG_Py_Void();
13358 return resultobj;
13359 fail:
13360 return NULL;
13361 }
13362
13363
13364 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13365 PyObject *resultobj = 0;
13366 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13367 void *argp1 = 0 ;
13368 int res1 = 0 ;
13369 PyObject *swig_obj[1] ;
13370
13371 if (!args) SWIG_fail;
13372 swig_obj[0] = args;
13373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13374 if (!SWIG_IsOK(res1)) {
13375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13376 }
13377 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13378 {
13379 PyThreadState* __tstate = wxPyBeginAllowThreads();
13380 (arg1)->Paste();
13381 wxPyEndAllowThreads(__tstate);
13382 if (PyErr_Occurred()) SWIG_fail;
13383 }
13384 resultobj = SWIG_Py_Void();
13385 return resultobj;
13386 fail:
13387 return NULL;
13388 }
13389
13390
13391 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13392 PyObject *resultobj = 0;
13393 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13394 bool result;
13395 void *argp1 = 0 ;
13396 int res1 = 0 ;
13397 PyObject *swig_obj[1] ;
13398
13399 if (!args) SWIG_fail;
13400 swig_obj[0] = args;
13401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13402 if (!SWIG_IsOK(res1)) {
13403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13404 }
13405 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13406 {
13407 PyThreadState* __tstate = wxPyBeginAllowThreads();
13408 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
13412 {
13413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13414 }
13415 return resultobj;
13416 fail:
13417 return NULL;
13418 }
13419
13420
13421 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13422 PyObject *resultobj = 0;
13423 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13424 bool result;
13425 void *argp1 = 0 ;
13426 int res1 = 0 ;
13427 PyObject *swig_obj[1] ;
13428
13429 if (!args) SWIG_fail;
13430 swig_obj[0] = args;
13431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13432 if (!SWIG_IsOK(res1)) {
13433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13434 }
13435 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13436 {
13437 PyThreadState* __tstate = wxPyBeginAllowThreads();
13438 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13439 wxPyEndAllowThreads(__tstate);
13440 if (PyErr_Occurred()) SWIG_fail;
13441 }
13442 {
13443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13444 }
13445 return resultobj;
13446 fail:
13447 return NULL;
13448 }
13449
13450
13451 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13452 PyObject *resultobj = 0;
13453 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13454 bool result;
13455 void *argp1 = 0 ;
13456 int res1 = 0 ;
13457 PyObject *swig_obj[1] ;
13458
13459 if (!args) SWIG_fail;
13460 swig_obj[0] = args;
13461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13462 if (!SWIG_IsOK(res1)) {
13463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13464 }
13465 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13466 {
13467 PyThreadState* __tstate = wxPyBeginAllowThreads();
13468 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13469 wxPyEndAllowThreads(__tstate);
13470 if (PyErr_Occurred()) SWIG_fail;
13471 }
13472 {
13473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13474 }
13475 return resultobj;
13476 fail:
13477 return NULL;
13478 }
13479
13480
13481 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13482 PyObject *resultobj = 0;
13483 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13484 void *argp1 = 0 ;
13485 int res1 = 0 ;
13486 PyObject *swig_obj[1] ;
13487
13488 if (!args) SWIG_fail;
13489 swig_obj[0] = args;
13490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13491 if (!SWIG_IsOK(res1)) {
13492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13493 }
13494 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13495 {
13496 PyThreadState* __tstate = wxPyBeginAllowThreads();
13497 (arg1)->Undo();
13498 wxPyEndAllowThreads(__tstate);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 }
13501 resultobj = SWIG_Py_Void();
13502 return resultobj;
13503 fail:
13504 return NULL;
13505 }
13506
13507
13508 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13509 PyObject *resultobj = 0;
13510 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13511 void *argp1 = 0 ;
13512 int res1 = 0 ;
13513 PyObject *swig_obj[1] ;
13514
13515 if (!args) SWIG_fail;
13516 swig_obj[0] = args;
13517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13518 if (!SWIG_IsOK(res1)) {
13519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13520 }
13521 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13522 {
13523 PyThreadState* __tstate = wxPyBeginAllowThreads();
13524 (arg1)->Redo();
13525 wxPyEndAllowThreads(__tstate);
13526 if (PyErr_Occurred()) SWIG_fail;
13527 }
13528 resultobj = SWIG_Py_Void();
13529 return resultobj;
13530 fail:
13531 return NULL;
13532 }
13533
13534
13535 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13536 PyObject *resultobj = 0;
13537 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13538 bool result;
13539 void *argp1 = 0 ;
13540 int res1 = 0 ;
13541 PyObject *swig_obj[1] ;
13542
13543 if (!args) SWIG_fail;
13544 swig_obj[0] = args;
13545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13546 if (!SWIG_IsOK(res1)) {
13547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13548 }
13549 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13550 {
13551 PyThreadState* __tstate = wxPyBeginAllowThreads();
13552 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13553 wxPyEndAllowThreads(__tstate);
13554 if (PyErr_Occurred()) SWIG_fail;
13555 }
13556 {
13557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13558 }
13559 return resultobj;
13560 fail:
13561 return NULL;
13562 }
13563
13564
13565 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13566 PyObject *resultobj = 0;
13567 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13568 bool result;
13569 void *argp1 = 0 ;
13570 int res1 = 0 ;
13571 PyObject *swig_obj[1] ;
13572
13573 if (!args) SWIG_fail;
13574 swig_obj[0] = args;
13575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13576 if (!SWIG_IsOK(res1)) {
13577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13578 }
13579 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13580 {
13581 PyThreadState* __tstate = wxPyBeginAllowThreads();
13582 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 {
13587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13588 }
13589 return resultobj;
13590 fail:
13591 return NULL;
13592 }
13593
13594
13595 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13596 PyObject *resultobj = 0;
13597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13598 long arg2 ;
13599 void *argp1 = 0 ;
13600 int res1 = 0 ;
13601 long val2 ;
13602 int ecode2 = 0 ;
13603 PyObject * obj0 = 0 ;
13604 PyObject * obj1 = 0 ;
13605 char * kwnames[] = {
13606 (char *) "self",(char *) "pos", NULL
13607 };
13608
13609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13611 if (!SWIG_IsOK(res1)) {
13612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13613 }
13614 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13615 ecode2 = SWIG_AsVal_long(obj1, &val2);
13616 if (!SWIG_IsOK(ecode2)) {
13617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13618 }
13619 arg2 = static_cast< long >(val2);
13620 {
13621 PyThreadState* __tstate = wxPyBeginAllowThreads();
13622 (arg1)->SetInsertionPoint(arg2);
13623 wxPyEndAllowThreads(__tstate);
13624 if (PyErr_Occurred()) SWIG_fail;
13625 }
13626 resultobj = SWIG_Py_Void();
13627 return resultobj;
13628 fail:
13629 return NULL;
13630 }
13631
13632
13633 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13634 PyObject *resultobj = 0;
13635 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13636 void *argp1 = 0 ;
13637 int res1 = 0 ;
13638 PyObject *swig_obj[1] ;
13639
13640 if (!args) SWIG_fail;
13641 swig_obj[0] = args;
13642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13643 if (!SWIG_IsOK(res1)) {
13644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13645 }
13646 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13647 {
13648 PyThreadState* __tstate = wxPyBeginAllowThreads();
13649 (arg1)->SetInsertionPointEnd();
13650 wxPyEndAllowThreads(__tstate);
13651 if (PyErr_Occurred()) SWIG_fail;
13652 }
13653 resultobj = SWIG_Py_Void();
13654 return resultobj;
13655 fail:
13656 return NULL;
13657 }
13658
13659
13660 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13661 PyObject *resultobj = 0;
13662 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13663 long result;
13664 void *argp1 = 0 ;
13665 int res1 = 0 ;
13666 PyObject *swig_obj[1] ;
13667
13668 if (!args) SWIG_fail;
13669 swig_obj[0] = args;
13670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13671 if (!SWIG_IsOK(res1)) {
13672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13673 }
13674 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13675 {
13676 PyThreadState* __tstate = wxPyBeginAllowThreads();
13677 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13678 wxPyEndAllowThreads(__tstate);
13679 if (PyErr_Occurred()) SWIG_fail;
13680 }
13681 resultobj = SWIG_From_long(static_cast< long >(result));
13682 return resultobj;
13683 fail:
13684 return NULL;
13685 }
13686
13687
13688 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13689 PyObject *resultobj = 0;
13690 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13691 long result;
13692 void *argp1 = 0 ;
13693 int res1 = 0 ;
13694 PyObject *swig_obj[1] ;
13695
13696 if (!args) SWIG_fail;
13697 swig_obj[0] = args;
13698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13699 if (!SWIG_IsOK(res1)) {
13700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13701 }
13702 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13703 {
13704 PyThreadState* __tstate = wxPyBeginAllowThreads();
13705 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13706 wxPyEndAllowThreads(__tstate);
13707 if (PyErr_Occurred()) SWIG_fail;
13708 }
13709 resultobj = SWIG_From_long(static_cast< long >(result));
13710 return resultobj;
13711 fail:
13712 return NULL;
13713 }
13714
13715
13716 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13717 PyObject *resultobj = 0;
13718 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13719 long arg2 ;
13720 long arg3 ;
13721 void *argp1 = 0 ;
13722 int res1 = 0 ;
13723 long val2 ;
13724 int ecode2 = 0 ;
13725 long val3 ;
13726 int ecode3 = 0 ;
13727 PyObject * obj0 = 0 ;
13728 PyObject * obj1 = 0 ;
13729 PyObject * obj2 = 0 ;
13730 char * kwnames[] = {
13731 (char *) "self",(char *) "from",(char *) "to", NULL
13732 };
13733
13734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13736 if (!SWIG_IsOK(res1)) {
13737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13738 }
13739 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13740 ecode2 = SWIG_AsVal_long(obj1, &val2);
13741 if (!SWIG_IsOK(ecode2)) {
13742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13743 }
13744 arg2 = static_cast< long >(val2);
13745 ecode3 = SWIG_AsVal_long(obj2, &val3);
13746 if (!SWIG_IsOK(ecode3)) {
13747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13748 }
13749 arg3 = static_cast< long >(val3);
13750 {
13751 PyThreadState* __tstate = wxPyBeginAllowThreads();
13752 (arg1)->SetSelection(arg2,arg3);
13753 wxPyEndAllowThreads(__tstate);
13754 if (PyErr_Occurred()) SWIG_fail;
13755 }
13756 resultobj = SWIG_Py_Void();
13757 return resultobj;
13758 fail:
13759 return NULL;
13760 }
13761
13762
13763 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13764 PyObject *resultobj = 0;
13765 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13766 void *argp1 = 0 ;
13767 int res1 = 0 ;
13768 PyObject *swig_obj[1] ;
13769
13770 if (!args) SWIG_fail;
13771 swig_obj[0] = args;
13772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13773 if (!SWIG_IsOK(res1)) {
13774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13775 }
13776 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13777 {
13778 PyThreadState* __tstate = wxPyBeginAllowThreads();
13779 (arg1)->SelectAll();
13780 wxPyEndAllowThreads(__tstate);
13781 if (PyErr_Occurred()) SWIG_fail;
13782 }
13783 resultobj = SWIG_Py_Void();
13784 return resultobj;
13785 fail:
13786 return NULL;
13787 }
13788
13789
13790 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13791 PyObject *resultobj = 0;
13792 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13793 bool arg2 ;
13794 void *argp1 = 0 ;
13795 int res1 = 0 ;
13796 bool val2 ;
13797 int ecode2 = 0 ;
13798 PyObject * obj0 = 0 ;
13799 PyObject * obj1 = 0 ;
13800 char * kwnames[] = {
13801 (char *) "self",(char *) "editable", NULL
13802 };
13803
13804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13806 if (!SWIG_IsOK(res1)) {
13807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13808 }
13809 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13810 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13811 if (!SWIG_IsOK(ecode2)) {
13812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13813 }
13814 arg2 = static_cast< bool >(val2);
13815 {
13816 PyThreadState* __tstate = wxPyBeginAllowThreads();
13817 (arg1)->SetEditable(arg2);
13818 wxPyEndAllowThreads(__tstate);
13819 if (PyErr_Occurred()) SWIG_fail;
13820 }
13821 resultobj = SWIG_Py_Void();
13822 return resultobj;
13823 fail:
13824 return NULL;
13825 }
13826
13827
13828 SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13829 PyObject *resultobj = 0;
13830 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13831 bool arg2 ;
13832 void *argp1 = 0 ;
13833 int res1 = 0 ;
13834 bool val2 ;
13835 int ecode2 = 0 ;
13836 PyObject * obj0 = 0 ;
13837 PyObject * obj1 = 0 ;
13838 char * kwnames[] = {
13839 (char *) "self",(char *) "check", NULL
13840 };
13841
13842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
13843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13844 if (!SWIG_IsOK(res1)) {
13845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13846 }
13847 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13848 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13849 if (!SWIG_IsOK(ecode2)) {
13850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
13851 }
13852 arg2 = static_cast< bool >(val2);
13853 {
13854 PyThreadState* __tstate = wxPyBeginAllowThreads();
13855 (arg1)->MacCheckSpelling(arg2);
13856 wxPyEndAllowThreads(__tstate);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 }
13859 resultobj = SWIG_Py_Void();
13860 return resultobj;
13861 fail:
13862 return NULL;
13863 }
13864
13865
13866 SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13867 PyObject *resultobj = 0;
13868 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13869 void *argp1 = 0 ;
13870 int res1 = 0 ;
13871 PyObject *swig_obj[1] ;
13872
13873 if (!args) SWIG_fail;
13874 swig_obj[0] = args;
13875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13876 if (!SWIG_IsOK(res1)) {
13877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13878 }
13879 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13880 {
13881 PyThreadState* __tstate = wxPyBeginAllowThreads();
13882 (arg1)->SendTextUpdatedEvent();
13883 wxPyEndAllowThreads(__tstate);
13884 if (PyErr_Occurred()) SWIG_fail;
13885 }
13886 resultobj = SWIG_Py_Void();
13887 return resultobj;
13888 fail:
13889 return NULL;
13890 }
13891
13892
13893 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13894 PyObject *resultobj = 0;
13895 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13896 wxString *arg2 = 0 ;
13897 void *argp1 = 0 ;
13898 int res1 = 0 ;
13899 bool temp2 = false ;
13900 PyObject * obj0 = 0 ;
13901 PyObject * obj1 = 0 ;
13902 char * kwnames[] = {
13903 (char *) "self",(char *) "text", NULL
13904 };
13905
13906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13908 if (!SWIG_IsOK(res1)) {
13909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13910 }
13911 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13912 {
13913 arg2 = wxString_in_helper(obj1);
13914 if (arg2 == NULL) SWIG_fail;
13915 temp2 = true;
13916 }
13917 {
13918 PyThreadState* __tstate = wxPyBeginAllowThreads();
13919 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13920 wxPyEndAllowThreads(__tstate);
13921 if (PyErr_Occurred()) SWIG_fail;
13922 }
13923 resultobj = SWIG_Py_Void();
13924 {
13925 if (temp2)
13926 delete arg2;
13927 }
13928 return resultobj;
13929 fail:
13930 {
13931 if (temp2)
13932 delete arg2;
13933 }
13934 return NULL;
13935 }
13936
13937
13938 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13939 PyObject *resultobj = 0;
13940 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13941 long arg2 ;
13942 long arg3 ;
13943 wxString result;
13944 void *argp1 = 0 ;
13945 int res1 = 0 ;
13946 long val2 ;
13947 int ecode2 = 0 ;
13948 long val3 ;
13949 int ecode3 = 0 ;
13950 PyObject * obj0 = 0 ;
13951 PyObject * obj1 = 0 ;
13952 PyObject * obj2 = 0 ;
13953 char * kwnames[] = {
13954 (char *) "self",(char *) "from",(char *) "to", NULL
13955 };
13956
13957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13959 if (!SWIG_IsOK(res1)) {
13960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13961 }
13962 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13963 ecode2 = SWIG_AsVal_long(obj1, &val2);
13964 if (!SWIG_IsOK(ecode2)) {
13965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13966 }
13967 arg2 = static_cast< long >(val2);
13968 ecode3 = SWIG_AsVal_long(obj2, &val3);
13969 if (!SWIG_IsOK(ecode3)) {
13970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13971 }
13972 arg3 = static_cast< long >(val3);
13973 {
13974 PyThreadState* __tstate = wxPyBeginAllowThreads();
13975 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13976 wxPyEndAllowThreads(__tstate);
13977 if (PyErr_Occurred()) SWIG_fail;
13978 }
13979 {
13980 #if wxUSE_UNICODE
13981 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13982 #else
13983 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13984 #endif
13985 }
13986 return resultobj;
13987 fail:
13988 return NULL;
13989 }
13990
13991
13992 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13993 PyObject *resultobj = 0;
13994 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13995 SwigValueWrapper<wxVisualAttributes > result;
13996 int val1 ;
13997 int ecode1 = 0 ;
13998 PyObject * obj0 = 0 ;
13999 char * kwnames[] = {
14000 (char *) "variant", NULL
14001 };
14002
14003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14004 if (obj0) {
14005 ecode1 = SWIG_AsVal_int(obj0, &val1);
14006 if (!SWIG_IsOK(ecode1)) {
14007 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14008 }
14009 arg1 = static_cast< wxWindowVariant >(val1);
14010 }
14011 {
14012 if (!wxPyCheckForApp()) SWIG_fail;
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14019 return resultobj;
14020 fail:
14021 return NULL;
14022 }
14023
14024
14025 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14026 PyObject *obj;
14027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14028 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14029 return SWIG_Py_Void();
14030 }
14031
14032 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14033 return SWIG_Python_InitShadowInstance(args);
14034 }
14035
14036 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14037 PyObject *resultobj = 0;
14038 int arg1 ;
14039 wxMouseEvent *arg2 = 0 ;
14040 long arg3 ;
14041 long arg4 ;
14042 wxTextUrlEvent *result = 0 ;
14043 int val1 ;
14044 int ecode1 = 0 ;
14045 void *argp2 = 0 ;
14046 int res2 = 0 ;
14047 long val3 ;
14048 int ecode3 = 0 ;
14049 long val4 ;
14050 int ecode4 = 0 ;
14051 PyObject * obj0 = 0 ;
14052 PyObject * obj1 = 0 ;
14053 PyObject * obj2 = 0 ;
14054 PyObject * obj3 = 0 ;
14055 char * kwnames[] = {
14056 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14057 };
14058
14059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14060 ecode1 = SWIG_AsVal_int(obj0, &val1);
14061 if (!SWIG_IsOK(ecode1)) {
14062 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14063 }
14064 arg1 = static_cast< int >(val1);
14065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14066 if (!SWIG_IsOK(res2)) {
14067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14068 }
14069 if (!argp2) {
14070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14071 }
14072 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14073 ecode3 = SWIG_AsVal_long(obj2, &val3);
14074 if (!SWIG_IsOK(ecode3)) {
14075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14076 }
14077 arg3 = static_cast< long >(val3);
14078 ecode4 = SWIG_AsVal_long(obj3, &val4);
14079 if (!SWIG_IsOK(ecode4)) {
14080 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14081 }
14082 arg4 = static_cast< long >(val4);
14083 {
14084 PyThreadState* __tstate = wxPyBeginAllowThreads();
14085 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14086 wxPyEndAllowThreads(__tstate);
14087 if (PyErr_Occurred()) SWIG_fail;
14088 }
14089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14090 return resultobj;
14091 fail:
14092 return NULL;
14093 }
14094
14095
14096 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14097 PyObject *resultobj = 0;
14098 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14099 wxMouseEvent *result = 0 ;
14100 void *argp1 = 0 ;
14101 int res1 = 0 ;
14102 PyObject *swig_obj[1] ;
14103
14104 if (!args) SWIG_fail;
14105 swig_obj[0] = args;
14106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14107 if (!SWIG_IsOK(res1)) {
14108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14109 }
14110 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14111 {
14112 PyThreadState* __tstate = wxPyBeginAllowThreads();
14113 {
14114 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14115 result = (wxMouseEvent *) &_result_ref;
14116 }
14117 wxPyEndAllowThreads(__tstate);
14118 if (PyErr_Occurred()) SWIG_fail;
14119 }
14120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14121 return resultobj;
14122 fail:
14123 return NULL;
14124 }
14125
14126
14127 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14128 PyObject *resultobj = 0;
14129 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14130 long result;
14131 void *argp1 = 0 ;
14132 int res1 = 0 ;
14133 PyObject *swig_obj[1] ;
14134
14135 if (!args) SWIG_fail;
14136 swig_obj[0] = args;
14137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14138 if (!SWIG_IsOK(res1)) {
14139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14140 }
14141 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14142 {
14143 PyThreadState* __tstate = wxPyBeginAllowThreads();
14144 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14145 wxPyEndAllowThreads(__tstate);
14146 if (PyErr_Occurred()) SWIG_fail;
14147 }
14148 resultobj = SWIG_From_long(static_cast< long >(result));
14149 return resultobj;
14150 fail:
14151 return NULL;
14152 }
14153
14154
14155 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14156 PyObject *resultobj = 0;
14157 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14158 long result;
14159 void *argp1 = 0 ;
14160 int res1 = 0 ;
14161 PyObject *swig_obj[1] ;
14162
14163 if (!args) SWIG_fail;
14164 swig_obj[0] = args;
14165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14166 if (!SWIG_IsOK(res1)) {
14167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14168 }
14169 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14170 {
14171 PyThreadState* __tstate = wxPyBeginAllowThreads();
14172 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14173 wxPyEndAllowThreads(__tstate);
14174 if (PyErr_Occurred()) SWIG_fail;
14175 }
14176 resultobj = SWIG_From_long(static_cast< long >(result));
14177 return resultobj;
14178 fail:
14179 return NULL;
14180 }
14181
14182
14183 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14184 PyObject *obj;
14185 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14186 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14187 return SWIG_Py_Void();
14188 }
14189
14190 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14191 return SWIG_Python_InitShadowInstance(args);
14192 }
14193
14194 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14195 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14196 return 1;
14197 }
14198
14199
14200 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14201 PyObject *pyobj = 0;
14202
14203 {
14204 #if wxUSE_UNICODE
14205 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14206 #else
14207 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14208 #endif
14209 }
14210 return pyobj;
14211 }
14212
14213
14214 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14215 PyObject *resultobj = 0;
14216 wxWindow *arg1 = (wxWindow *) 0 ;
14217 int arg2 = (int) -1 ;
14218 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14219 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14220 wxSize const &arg4_defvalue = wxDefaultSize ;
14221 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14222 long arg5 = (long) wxSB_HORIZONTAL ;
14223 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14224 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14225 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14226 wxString *arg7 = (wxString *) &arg7_defvalue ;
14227 wxScrollBar *result = 0 ;
14228 void *argp1 = 0 ;
14229 int res1 = 0 ;
14230 int val2 ;
14231 int ecode2 = 0 ;
14232 wxPoint temp3 ;
14233 wxSize temp4 ;
14234 long val5 ;
14235 int ecode5 = 0 ;
14236 void *argp6 = 0 ;
14237 int res6 = 0 ;
14238 bool temp7 = false ;
14239 PyObject * obj0 = 0 ;
14240 PyObject * obj1 = 0 ;
14241 PyObject * obj2 = 0 ;
14242 PyObject * obj3 = 0 ;
14243 PyObject * obj4 = 0 ;
14244 PyObject * obj5 = 0 ;
14245 PyObject * obj6 = 0 ;
14246 char * kwnames[] = {
14247 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14248 };
14249
14250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14252 if (!SWIG_IsOK(res1)) {
14253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14254 }
14255 arg1 = reinterpret_cast< wxWindow * >(argp1);
14256 if (obj1) {
14257 ecode2 = SWIG_AsVal_int(obj1, &val2);
14258 if (!SWIG_IsOK(ecode2)) {
14259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14260 }
14261 arg2 = static_cast< int >(val2);
14262 }
14263 if (obj2) {
14264 {
14265 arg3 = &temp3;
14266 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14267 }
14268 }
14269 if (obj3) {
14270 {
14271 arg4 = &temp4;
14272 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14273 }
14274 }
14275 if (obj4) {
14276 ecode5 = SWIG_AsVal_long(obj4, &val5);
14277 if (!SWIG_IsOK(ecode5)) {
14278 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14279 }
14280 arg5 = static_cast< long >(val5);
14281 }
14282 if (obj5) {
14283 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14284 if (!SWIG_IsOK(res6)) {
14285 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14286 }
14287 if (!argp6) {
14288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14289 }
14290 arg6 = reinterpret_cast< wxValidator * >(argp6);
14291 }
14292 if (obj6) {
14293 {
14294 arg7 = wxString_in_helper(obj6);
14295 if (arg7 == NULL) SWIG_fail;
14296 temp7 = true;
14297 }
14298 }
14299 {
14300 if (!wxPyCheckForApp()) SWIG_fail;
14301 PyThreadState* __tstate = wxPyBeginAllowThreads();
14302 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14303 wxPyEndAllowThreads(__tstate);
14304 if (PyErr_Occurred()) SWIG_fail;
14305 }
14306 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14307 {
14308 if (temp7)
14309 delete arg7;
14310 }
14311 return resultobj;
14312 fail:
14313 {
14314 if (temp7)
14315 delete arg7;
14316 }
14317 return NULL;
14318 }
14319
14320
14321 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14322 PyObject *resultobj = 0;
14323 wxScrollBar *result = 0 ;
14324
14325 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14326 {
14327 if (!wxPyCheckForApp()) SWIG_fail;
14328 PyThreadState* __tstate = wxPyBeginAllowThreads();
14329 result = (wxScrollBar *)new wxScrollBar();
14330 wxPyEndAllowThreads(__tstate);
14331 if (PyErr_Occurred()) SWIG_fail;
14332 }
14333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14334 return resultobj;
14335 fail:
14336 return NULL;
14337 }
14338
14339
14340 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14341 PyObject *resultobj = 0;
14342 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14343 wxWindow *arg2 = (wxWindow *) 0 ;
14344 int arg3 = (int) -1 ;
14345 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14346 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14347 wxSize const &arg5_defvalue = wxDefaultSize ;
14348 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14349 long arg6 = (long) wxSB_HORIZONTAL ;
14350 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14351 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14352 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14353 wxString *arg8 = (wxString *) &arg8_defvalue ;
14354 bool result;
14355 void *argp1 = 0 ;
14356 int res1 = 0 ;
14357 void *argp2 = 0 ;
14358 int res2 = 0 ;
14359 int val3 ;
14360 int ecode3 = 0 ;
14361 wxPoint temp4 ;
14362 wxSize temp5 ;
14363 long val6 ;
14364 int ecode6 = 0 ;
14365 void *argp7 = 0 ;
14366 int res7 = 0 ;
14367 bool temp8 = false ;
14368 PyObject * obj0 = 0 ;
14369 PyObject * obj1 = 0 ;
14370 PyObject * obj2 = 0 ;
14371 PyObject * obj3 = 0 ;
14372 PyObject * obj4 = 0 ;
14373 PyObject * obj5 = 0 ;
14374 PyObject * obj6 = 0 ;
14375 PyObject * obj7 = 0 ;
14376 char * kwnames[] = {
14377 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14378 };
14379
14380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14382 if (!SWIG_IsOK(res1)) {
14383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14384 }
14385 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14386 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14387 if (!SWIG_IsOK(res2)) {
14388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14389 }
14390 arg2 = reinterpret_cast< wxWindow * >(argp2);
14391 if (obj2) {
14392 ecode3 = SWIG_AsVal_int(obj2, &val3);
14393 if (!SWIG_IsOK(ecode3)) {
14394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14395 }
14396 arg3 = static_cast< int >(val3);
14397 }
14398 if (obj3) {
14399 {
14400 arg4 = &temp4;
14401 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14402 }
14403 }
14404 if (obj4) {
14405 {
14406 arg5 = &temp5;
14407 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14408 }
14409 }
14410 if (obj5) {
14411 ecode6 = SWIG_AsVal_long(obj5, &val6);
14412 if (!SWIG_IsOK(ecode6)) {
14413 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14414 }
14415 arg6 = static_cast< long >(val6);
14416 }
14417 if (obj6) {
14418 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14419 if (!SWIG_IsOK(res7)) {
14420 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14421 }
14422 if (!argp7) {
14423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14424 }
14425 arg7 = reinterpret_cast< wxValidator * >(argp7);
14426 }
14427 if (obj7) {
14428 {
14429 arg8 = wxString_in_helper(obj7);
14430 if (arg8 == NULL) SWIG_fail;
14431 temp8 = true;
14432 }
14433 }
14434 {
14435 PyThreadState* __tstate = wxPyBeginAllowThreads();
14436 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14437 wxPyEndAllowThreads(__tstate);
14438 if (PyErr_Occurred()) SWIG_fail;
14439 }
14440 {
14441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14442 }
14443 {
14444 if (temp8)
14445 delete arg8;
14446 }
14447 return resultobj;
14448 fail:
14449 {
14450 if (temp8)
14451 delete arg8;
14452 }
14453 return NULL;
14454 }
14455
14456
14457 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14458 PyObject *resultobj = 0;
14459 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14460 int result;
14461 void *argp1 = 0 ;
14462 int res1 = 0 ;
14463 PyObject *swig_obj[1] ;
14464
14465 if (!args) SWIG_fail;
14466 swig_obj[0] = args;
14467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14468 if (!SWIG_IsOK(res1)) {
14469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14470 }
14471 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14472 {
14473 PyThreadState* __tstate = wxPyBeginAllowThreads();
14474 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14475 wxPyEndAllowThreads(__tstate);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 }
14478 resultobj = SWIG_From_int(static_cast< int >(result));
14479 return resultobj;
14480 fail:
14481 return NULL;
14482 }
14483
14484
14485 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14486 PyObject *resultobj = 0;
14487 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14488 int result;
14489 void *argp1 = 0 ;
14490 int res1 = 0 ;
14491 PyObject *swig_obj[1] ;
14492
14493 if (!args) SWIG_fail;
14494 swig_obj[0] = args;
14495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14496 if (!SWIG_IsOK(res1)) {
14497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14498 }
14499 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14500 {
14501 PyThreadState* __tstate = wxPyBeginAllowThreads();
14502 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14503 wxPyEndAllowThreads(__tstate);
14504 if (PyErr_Occurred()) SWIG_fail;
14505 }
14506 resultobj = SWIG_From_int(static_cast< int >(result));
14507 return resultobj;
14508 fail:
14509 return NULL;
14510 }
14511
14512
14513 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14514 PyObject *resultobj = 0;
14515 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14516 int result;
14517 void *argp1 = 0 ;
14518 int res1 = 0 ;
14519 PyObject *swig_obj[1] ;
14520
14521 if (!args) SWIG_fail;
14522 swig_obj[0] = args;
14523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14524 if (!SWIG_IsOK(res1)) {
14525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14526 }
14527 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14528 {
14529 PyThreadState* __tstate = wxPyBeginAllowThreads();
14530 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14531 wxPyEndAllowThreads(__tstate);
14532 if (PyErr_Occurred()) SWIG_fail;
14533 }
14534 resultobj = SWIG_From_int(static_cast< int >(result));
14535 return resultobj;
14536 fail:
14537 return NULL;
14538 }
14539
14540
14541 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14542 PyObject *resultobj = 0;
14543 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14544 int result;
14545 void *argp1 = 0 ;
14546 int res1 = 0 ;
14547 PyObject *swig_obj[1] ;
14548
14549 if (!args) SWIG_fail;
14550 swig_obj[0] = args;
14551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14552 if (!SWIG_IsOK(res1)) {
14553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14554 }
14555 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14556 {
14557 PyThreadState* __tstate = wxPyBeginAllowThreads();
14558 result = (int)((wxScrollBar const *)arg1)->GetRange();
14559 wxPyEndAllowThreads(__tstate);
14560 if (PyErr_Occurred()) SWIG_fail;
14561 }
14562 resultobj = SWIG_From_int(static_cast< int >(result));
14563 return resultobj;
14564 fail:
14565 return NULL;
14566 }
14567
14568
14569 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14570 PyObject *resultobj = 0;
14571 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14572 bool result;
14573 void *argp1 = 0 ;
14574 int res1 = 0 ;
14575 PyObject *swig_obj[1] ;
14576
14577 if (!args) SWIG_fail;
14578 swig_obj[0] = args;
14579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14580 if (!SWIG_IsOK(res1)) {
14581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14582 }
14583 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14584 {
14585 PyThreadState* __tstate = wxPyBeginAllowThreads();
14586 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14587 wxPyEndAllowThreads(__tstate);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 }
14590 {
14591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14592 }
14593 return resultobj;
14594 fail:
14595 return NULL;
14596 }
14597
14598
14599 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14600 PyObject *resultobj = 0;
14601 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14602 int arg2 ;
14603 void *argp1 = 0 ;
14604 int res1 = 0 ;
14605 int val2 ;
14606 int ecode2 = 0 ;
14607 PyObject * obj0 = 0 ;
14608 PyObject * obj1 = 0 ;
14609 char * kwnames[] = {
14610 (char *) "self",(char *) "viewStart", NULL
14611 };
14612
14613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14615 if (!SWIG_IsOK(res1)) {
14616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14617 }
14618 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14619 ecode2 = SWIG_AsVal_int(obj1, &val2);
14620 if (!SWIG_IsOK(ecode2)) {
14621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14622 }
14623 arg2 = static_cast< int >(val2);
14624 {
14625 PyThreadState* __tstate = wxPyBeginAllowThreads();
14626 (arg1)->SetThumbPosition(arg2);
14627 wxPyEndAllowThreads(__tstate);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 }
14630 resultobj = SWIG_Py_Void();
14631 return resultobj;
14632 fail:
14633 return NULL;
14634 }
14635
14636
14637 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14638 PyObject *resultobj = 0;
14639 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14640 SwigValueWrapper<wxVisualAttributes > result;
14641 int val1 ;
14642 int ecode1 = 0 ;
14643 PyObject * obj0 = 0 ;
14644 char * kwnames[] = {
14645 (char *) "variant", NULL
14646 };
14647
14648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14649 if (obj0) {
14650 ecode1 = SWIG_AsVal_int(obj0, &val1);
14651 if (!SWIG_IsOK(ecode1)) {
14652 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14653 }
14654 arg1 = static_cast< wxWindowVariant >(val1);
14655 }
14656 {
14657 if (!wxPyCheckForApp()) SWIG_fail;
14658 PyThreadState* __tstate = wxPyBeginAllowThreads();
14659 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14660 wxPyEndAllowThreads(__tstate);
14661 if (PyErr_Occurred()) SWIG_fail;
14662 }
14663 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14664 return resultobj;
14665 fail:
14666 return NULL;
14667 }
14668
14669
14670 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14671 PyObject *obj;
14672 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14673 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14674 return SWIG_Py_Void();
14675 }
14676
14677 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14678 return SWIG_Python_InitShadowInstance(args);
14679 }
14680
14681 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14682 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14683 return 1;
14684 }
14685
14686
14687 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14688 PyObject *pyobj = 0;
14689
14690 {
14691 #if wxUSE_UNICODE
14692 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14693 #else
14694 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14695 #endif
14696 }
14697 return pyobj;
14698 }
14699
14700
14701 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14702 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14703 return 1;
14704 }
14705
14706
14707 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14708 PyObject *pyobj = 0;
14709
14710 {
14711 #if wxUSE_UNICODE
14712 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14713 #else
14714 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14715 #endif
14716 }
14717 return pyobj;
14718 }
14719
14720
14721 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14722 PyObject *resultobj = 0;
14723 wxWindow *arg1 = (wxWindow *) 0 ;
14724 int arg2 = (int) -1 ;
14725 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14726 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14727 wxSize const &arg4_defvalue = wxDefaultSize ;
14728 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14729 long arg5 = (long) wxSP_HORIZONTAL ;
14730 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14731 wxString *arg6 = (wxString *) &arg6_defvalue ;
14732 wxSpinButton *result = 0 ;
14733 void *argp1 = 0 ;
14734 int res1 = 0 ;
14735 int val2 ;
14736 int ecode2 = 0 ;
14737 wxPoint temp3 ;
14738 wxSize temp4 ;
14739 long val5 ;
14740 int ecode5 = 0 ;
14741 bool temp6 = false ;
14742 PyObject * obj0 = 0 ;
14743 PyObject * obj1 = 0 ;
14744 PyObject * obj2 = 0 ;
14745 PyObject * obj3 = 0 ;
14746 PyObject * obj4 = 0 ;
14747 PyObject * obj5 = 0 ;
14748 char * kwnames[] = {
14749 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14750 };
14751
14752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14754 if (!SWIG_IsOK(res1)) {
14755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14756 }
14757 arg1 = reinterpret_cast< wxWindow * >(argp1);
14758 if (obj1) {
14759 ecode2 = SWIG_AsVal_int(obj1, &val2);
14760 if (!SWIG_IsOK(ecode2)) {
14761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14762 }
14763 arg2 = static_cast< int >(val2);
14764 }
14765 if (obj2) {
14766 {
14767 arg3 = &temp3;
14768 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14769 }
14770 }
14771 if (obj3) {
14772 {
14773 arg4 = &temp4;
14774 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14775 }
14776 }
14777 if (obj4) {
14778 ecode5 = SWIG_AsVal_long(obj4, &val5);
14779 if (!SWIG_IsOK(ecode5)) {
14780 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14781 }
14782 arg5 = static_cast< long >(val5);
14783 }
14784 if (obj5) {
14785 {
14786 arg6 = wxString_in_helper(obj5);
14787 if (arg6 == NULL) SWIG_fail;
14788 temp6 = true;
14789 }
14790 }
14791 {
14792 if (!wxPyCheckForApp()) SWIG_fail;
14793 PyThreadState* __tstate = wxPyBeginAllowThreads();
14794 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14799 {
14800 if (temp6)
14801 delete arg6;
14802 }
14803 return resultobj;
14804 fail:
14805 {
14806 if (temp6)
14807 delete arg6;
14808 }
14809 return NULL;
14810 }
14811
14812
14813 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14814 PyObject *resultobj = 0;
14815 wxSpinButton *result = 0 ;
14816
14817 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14818 {
14819 if (!wxPyCheckForApp()) SWIG_fail;
14820 PyThreadState* __tstate = wxPyBeginAllowThreads();
14821 result = (wxSpinButton *)new wxSpinButton();
14822 wxPyEndAllowThreads(__tstate);
14823 if (PyErr_Occurred()) SWIG_fail;
14824 }
14825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14826 return resultobj;
14827 fail:
14828 return NULL;
14829 }
14830
14831
14832 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14833 PyObject *resultobj = 0;
14834 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14835 wxWindow *arg2 = (wxWindow *) 0 ;
14836 int arg3 = (int) -1 ;
14837 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14838 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14839 wxSize const &arg5_defvalue = wxDefaultSize ;
14840 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14841 long arg6 = (long) wxSP_HORIZONTAL ;
14842 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14843 wxString *arg7 = (wxString *) &arg7_defvalue ;
14844 bool result;
14845 void *argp1 = 0 ;
14846 int res1 = 0 ;
14847 void *argp2 = 0 ;
14848 int res2 = 0 ;
14849 int val3 ;
14850 int ecode3 = 0 ;
14851 wxPoint temp4 ;
14852 wxSize temp5 ;
14853 long val6 ;
14854 int ecode6 = 0 ;
14855 bool temp7 = false ;
14856 PyObject * obj0 = 0 ;
14857 PyObject * obj1 = 0 ;
14858 PyObject * obj2 = 0 ;
14859 PyObject * obj3 = 0 ;
14860 PyObject * obj4 = 0 ;
14861 PyObject * obj5 = 0 ;
14862 PyObject * obj6 = 0 ;
14863 char * kwnames[] = {
14864 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14865 };
14866
14867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14869 if (!SWIG_IsOK(res1)) {
14870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14871 }
14872 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14873 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14874 if (!SWIG_IsOK(res2)) {
14875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14876 }
14877 arg2 = reinterpret_cast< wxWindow * >(argp2);
14878 if (obj2) {
14879 ecode3 = SWIG_AsVal_int(obj2, &val3);
14880 if (!SWIG_IsOK(ecode3)) {
14881 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14882 }
14883 arg3 = static_cast< int >(val3);
14884 }
14885 if (obj3) {
14886 {
14887 arg4 = &temp4;
14888 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14889 }
14890 }
14891 if (obj4) {
14892 {
14893 arg5 = &temp5;
14894 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14895 }
14896 }
14897 if (obj5) {
14898 ecode6 = SWIG_AsVal_long(obj5, &val6);
14899 if (!SWIG_IsOK(ecode6)) {
14900 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14901 }
14902 arg6 = static_cast< long >(val6);
14903 }
14904 if (obj6) {
14905 {
14906 arg7 = wxString_in_helper(obj6);
14907 if (arg7 == NULL) SWIG_fail;
14908 temp7 = true;
14909 }
14910 }
14911 {
14912 PyThreadState* __tstate = wxPyBeginAllowThreads();
14913 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14914 wxPyEndAllowThreads(__tstate);
14915 if (PyErr_Occurred()) SWIG_fail;
14916 }
14917 {
14918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14919 }
14920 {
14921 if (temp7)
14922 delete arg7;
14923 }
14924 return resultobj;
14925 fail:
14926 {
14927 if (temp7)
14928 delete arg7;
14929 }
14930 return NULL;
14931 }
14932
14933
14934 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14935 PyObject *resultobj = 0;
14936 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14937 int result;
14938 void *argp1 = 0 ;
14939 int res1 = 0 ;
14940 PyObject *swig_obj[1] ;
14941
14942 if (!args) SWIG_fail;
14943 swig_obj[0] = args;
14944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14945 if (!SWIG_IsOK(res1)) {
14946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14947 }
14948 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 result = (int)((wxSpinButton const *)arg1)->GetValue();
14952 wxPyEndAllowThreads(__tstate);
14953 if (PyErr_Occurred()) SWIG_fail;
14954 }
14955 resultobj = SWIG_From_int(static_cast< int >(result));
14956 return resultobj;
14957 fail:
14958 return NULL;
14959 }
14960
14961
14962 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14963 PyObject *resultobj = 0;
14964 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14965 int result;
14966 void *argp1 = 0 ;
14967 int res1 = 0 ;
14968 PyObject *swig_obj[1] ;
14969
14970 if (!args) SWIG_fail;
14971 swig_obj[0] = args;
14972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14973 if (!SWIG_IsOK(res1)) {
14974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14975 }
14976 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14977 {
14978 PyThreadState* __tstate = wxPyBeginAllowThreads();
14979 result = (int)((wxSpinButton const *)arg1)->GetMin();
14980 wxPyEndAllowThreads(__tstate);
14981 if (PyErr_Occurred()) SWIG_fail;
14982 }
14983 resultobj = SWIG_From_int(static_cast< int >(result));
14984 return resultobj;
14985 fail:
14986 return NULL;
14987 }
14988
14989
14990 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14991 PyObject *resultobj = 0;
14992 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14993 int result;
14994 void *argp1 = 0 ;
14995 int res1 = 0 ;
14996 PyObject *swig_obj[1] ;
14997
14998 if (!args) SWIG_fail;
14999 swig_obj[0] = args;
15000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15001 if (!SWIG_IsOK(res1)) {
15002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15003 }
15004 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15005 {
15006 PyThreadState* __tstate = wxPyBeginAllowThreads();
15007 result = (int)((wxSpinButton const *)arg1)->GetMax();
15008 wxPyEndAllowThreads(__tstate);
15009 if (PyErr_Occurred()) SWIG_fail;
15010 }
15011 resultobj = SWIG_From_int(static_cast< int >(result));
15012 return resultobj;
15013 fail:
15014 return NULL;
15015 }
15016
15017
15018 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15019 PyObject *resultobj = 0;
15020 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15021 int arg2 ;
15022 void *argp1 = 0 ;
15023 int res1 = 0 ;
15024 int val2 ;
15025 int ecode2 = 0 ;
15026 PyObject * obj0 = 0 ;
15027 PyObject * obj1 = 0 ;
15028 char * kwnames[] = {
15029 (char *) "self",(char *) "val", NULL
15030 };
15031
15032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15034 if (!SWIG_IsOK(res1)) {
15035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15036 }
15037 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15038 ecode2 = SWIG_AsVal_int(obj1, &val2);
15039 if (!SWIG_IsOK(ecode2)) {
15040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15041 }
15042 arg2 = static_cast< int >(val2);
15043 {
15044 PyThreadState* __tstate = wxPyBeginAllowThreads();
15045 (arg1)->SetValue(arg2);
15046 wxPyEndAllowThreads(__tstate);
15047 if (PyErr_Occurred()) SWIG_fail;
15048 }
15049 resultobj = SWIG_Py_Void();
15050 return resultobj;
15051 fail:
15052 return NULL;
15053 }
15054
15055
15056 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15057 PyObject *resultobj = 0;
15058 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15059 int arg2 ;
15060 void *argp1 = 0 ;
15061 int res1 = 0 ;
15062 int val2 ;
15063 int ecode2 = 0 ;
15064 PyObject * obj0 = 0 ;
15065 PyObject * obj1 = 0 ;
15066 char * kwnames[] = {
15067 (char *) "self",(char *) "minVal", NULL
15068 };
15069
15070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15072 if (!SWIG_IsOK(res1)) {
15073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15074 }
15075 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15076 ecode2 = SWIG_AsVal_int(obj1, &val2);
15077 if (!SWIG_IsOK(ecode2)) {
15078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15079 }
15080 arg2 = static_cast< int >(val2);
15081 {
15082 PyThreadState* __tstate = wxPyBeginAllowThreads();
15083 (arg1)->SetMin(arg2);
15084 wxPyEndAllowThreads(__tstate);
15085 if (PyErr_Occurred()) SWIG_fail;
15086 }
15087 resultobj = SWIG_Py_Void();
15088 return resultobj;
15089 fail:
15090 return NULL;
15091 }
15092
15093
15094 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15095 PyObject *resultobj = 0;
15096 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15097 int arg2 ;
15098 void *argp1 = 0 ;
15099 int res1 = 0 ;
15100 int val2 ;
15101 int ecode2 = 0 ;
15102 PyObject * obj0 = 0 ;
15103 PyObject * obj1 = 0 ;
15104 char * kwnames[] = {
15105 (char *) "self",(char *) "maxVal", NULL
15106 };
15107
15108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15110 if (!SWIG_IsOK(res1)) {
15111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15112 }
15113 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15114 ecode2 = SWIG_AsVal_int(obj1, &val2);
15115 if (!SWIG_IsOK(ecode2)) {
15116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15117 }
15118 arg2 = static_cast< int >(val2);
15119 {
15120 PyThreadState* __tstate = wxPyBeginAllowThreads();
15121 (arg1)->SetMax(arg2);
15122 wxPyEndAllowThreads(__tstate);
15123 if (PyErr_Occurred()) SWIG_fail;
15124 }
15125 resultobj = SWIG_Py_Void();
15126 return resultobj;
15127 fail:
15128 return NULL;
15129 }
15130
15131
15132 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15133 PyObject *resultobj = 0;
15134 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15135 int arg2 ;
15136 int arg3 ;
15137 void *argp1 = 0 ;
15138 int res1 = 0 ;
15139 int val2 ;
15140 int ecode2 = 0 ;
15141 int val3 ;
15142 int ecode3 = 0 ;
15143 PyObject * obj0 = 0 ;
15144 PyObject * obj1 = 0 ;
15145 PyObject * obj2 = 0 ;
15146 char * kwnames[] = {
15147 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15148 };
15149
15150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15152 if (!SWIG_IsOK(res1)) {
15153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15154 }
15155 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15156 ecode2 = SWIG_AsVal_int(obj1, &val2);
15157 if (!SWIG_IsOK(ecode2)) {
15158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15159 }
15160 arg2 = static_cast< int >(val2);
15161 ecode3 = SWIG_AsVal_int(obj2, &val3);
15162 if (!SWIG_IsOK(ecode3)) {
15163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15164 }
15165 arg3 = static_cast< int >(val3);
15166 {
15167 PyThreadState* __tstate = wxPyBeginAllowThreads();
15168 (arg1)->SetRange(arg2,arg3);
15169 wxPyEndAllowThreads(__tstate);
15170 if (PyErr_Occurred()) SWIG_fail;
15171 }
15172 resultobj = SWIG_Py_Void();
15173 return resultobj;
15174 fail:
15175 return NULL;
15176 }
15177
15178
15179 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15180 PyObject *resultobj = 0;
15181 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15182 bool result;
15183 void *argp1 = 0 ;
15184 int res1 = 0 ;
15185 PyObject *swig_obj[1] ;
15186
15187 if (!args) SWIG_fail;
15188 swig_obj[0] = args;
15189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15190 if (!SWIG_IsOK(res1)) {
15191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15192 }
15193 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15194 {
15195 PyThreadState* __tstate = wxPyBeginAllowThreads();
15196 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15197 wxPyEndAllowThreads(__tstate);
15198 if (PyErr_Occurred()) SWIG_fail;
15199 }
15200 {
15201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15202 }
15203 return resultobj;
15204 fail:
15205 return NULL;
15206 }
15207
15208
15209 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15210 PyObject *resultobj = 0;
15211 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15212 SwigValueWrapper<wxVisualAttributes > result;
15213 int val1 ;
15214 int ecode1 = 0 ;
15215 PyObject * obj0 = 0 ;
15216 char * kwnames[] = {
15217 (char *) "variant", NULL
15218 };
15219
15220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15221 if (obj0) {
15222 ecode1 = SWIG_AsVal_int(obj0, &val1);
15223 if (!SWIG_IsOK(ecode1)) {
15224 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15225 }
15226 arg1 = static_cast< wxWindowVariant >(val1);
15227 }
15228 {
15229 if (!wxPyCheckForApp()) SWIG_fail;
15230 PyThreadState* __tstate = wxPyBeginAllowThreads();
15231 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15232 wxPyEndAllowThreads(__tstate);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15236 return resultobj;
15237 fail:
15238 return NULL;
15239 }
15240
15241
15242 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15243 PyObject *obj;
15244 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15245 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15246 return SWIG_Py_Void();
15247 }
15248
15249 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15250 return SWIG_Python_InitShadowInstance(args);
15251 }
15252
15253 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15254 PyObject *resultobj = 0;
15255 wxWindow *arg1 = (wxWindow *) 0 ;
15256 int arg2 = (int) -1 ;
15257 wxString const &arg3_defvalue = wxPyEmptyString ;
15258 wxString *arg3 = (wxString *) &arg3_defvalue ;
15259 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15260 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15261 wxSize const &arg5_defvalue = wxDefaultSize ;
15262 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15263 long arg6 = (long) wxSP_ARROW_KEYS ;
15264 int arg7 = (int) 0 ;
15265 int arg8 = (int) 100 ;
15266 int arg9 = (int) 0 ;
15267 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15268 wxString *arg10 = (wxString *) &arg10_defvalue ;
15269 wxSpinCtrl *result = 0 ;
15270 void *argp1 = 0 ;
15271 int res1 = 0 ;
15272 int val2 ;
15273 int ecode2 = 0 ;
15274 bool temp3 = false ;
15275 wxPoint temp4 ;
15276 wxSize temp5 ;
15277 long val6 ;
15278 int ecode6 = 0 ;
15279 int val7 ;
15280 int ecode7 = 0 ;
15281 int val8 ;
15282 int ecode8 = 0 ;
15283 int val9 ;
15284 int ecode9 = 0 ;
15285 bool temp10 = false ;
15286 PyObject * obj0 = 0 ;
15287 PyObject * obj1 = 0 ;
15288 PyObject * obj2 = 0 ;
15289 PyObject * obj3 = 0 ;
15290 PyObject * obj4 = 0 ;
15291 PyObject * obj5 = 0 ;
15292 PyObject * obj6 = 0 ;
15293 PyObject * obj7 = 0 ;
15294 PyObject * obj8 = 0 ;
15295 PyObject * obj9 = 0 ;
15296 char * kwnames[] = {
15297 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15298 };
15299
15300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15302 if (!SWIG_IsOK(res1)) {
15303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15304 }
15305 arg1 = reinterpret_cast< wxWindow * >(argp1);
15306 if (obj1) {
15307 ecode2 = SWIG_AsVal_int(obj1, &val2);
15308 if (!SWIG_IsOK(ecode2)) {
15309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15310 }
15311 arg2 = static_cast< int >(val2);
15312 }
15313 if (obj2) {
15314 {
15315 arg3 = wxString_in_helper(obj2);
15316 if (arg3 == NULL) SWIG_fail;
15317 temp3 = true;
15318 }
15319 }
15320 if (obj3) {
15321 {
15322 arg4 = &temp4;
15323 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15324 }
15325 }
15326 if (obj4) {
15327 {
15328 arg5 = &temp5;
15329 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15330 }
15331 }
15332 if (obj5) {
15333 ecode6 = SWIG_AsVal_long(obj5, &val6);
15334 if (!SWIG_IsOK(ecode6)) {
15335 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15336 }
15337 arg6 = static_cast< long >(val6);
15338 }
15339 if (obj6) {
15340 ecode7 = SWIG_AsVal_int(obj6, &val7);
15341 if (!SWIG_IsOK(ecode7)) {
15342 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15343 }
15344 arg7 = static_cast< int >(val7);
15345 }
15346 if (obj7) {
15347 ecode8 = SWIG_AsVal_int(obj7, &val8);
15348 if (!SWIG_IsOK(ecode8)) {
15349 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15350 }
15351 arg8 = static_cast< int >(val8);
15352 }
15353 if (obj8) {
15354 ecode9 = SWIG_AsVal_int(obj8, &val9);
15355 if (!SWIG_IsOK(ecode9)) {
15356 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15357 }
15358 arg9 = static_cast< int >(val9);
15359 }
15360 if (obj9) {
15361 {
15362 arg10 = wxString_in_helper(obj9);
15363 if (arg10 == NULL) SWIG_fail;
15364 temp10 = true;
15365 }
15366 }
15367 {
15368 if (!wxPyCheckForApp()) SWIG_fail;
15369 PyThreadState* __tstate = wxPyBeginAllowThreads();
15370 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15371 wxPyEndAllowThreads(__tstate);
15372 if (PyErr_Occurred()) SWIG_fail;
15373 }
15374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15375 {
15376 if (temp3)
15377 delete arg3;
15378 }
15379 {
15380 if (temp10)
15381 delete arg10;
15382 }
15383 return resultobj;
15384 fail:
15385 {
15386 if (temp3)
15387 delete arg3;
15388 }
15389 {
15390 if (temp10)
15391 delete arg10;
15392 }
15393 return NULL;
15394 }
15395
15396
15397 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15398 PyObject *resultobj = 0;
15399 wxSpinCtrl *result = 0 ;
15400
15401 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15402 {
15403 if (!wxPyCheckForApp()) SWIG_fail;
15404 PyThreadState* __tstate = wxPyBeginAllowThreads();
15405 result = (wxSpinCtrl *)new wxSpinCtrl();
15406 wxPyEndAllowThreads(__tstate);
15407 if (PyErr_Occurred()) SWIG_fail;
15408 }
15409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15410 return resultobj;
15411 fail:
15412 return NULL;
15413 }
15414
15415
15416 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15417 PyObject *resultobj = 0;
15418 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15419 wxWindow *arg2 = (wxWindow *) 0 ;
15420 int arg3 = (int) -1 ;
15421 wxString const &arg4_defvalue = wxPyEmptyString ;
15422 wxString *arg4 = (wxString *) &arg4_defvalue ;
15423 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15424 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15425 wxSize const &arg6_defvalue = wxDefaultSize ;
15426 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15427 long arg7 = (long) wxSP_ARROW_KEYS ;
15428 int arg8 = (int) 0 ;
15429 int arg9 = (int) 100 ;
15430 int arg10 = (int) 0 ;
15431 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15432 wxString *arg11 = (wxString *) &arg11_defvalue ;
15433 bool result;
15434 void *argp1 = 0 ;
15435 int res1 = 0 ;
15436 void *argp2 = 0 ;
15437 int res2 = 0 ;
15438 int val3 ;
15439 int ecode3 = 0 ;
15440 bool temp4 = false ;
15441 wxPoint temp5 ;
15442 wxSize temp6 ;
15443 long val7 ;
15444 int ecode7 = 0 ;
15445 int val8 ;
15446 int ecode8 = 0 ;
15447 int val9 ;
15448 int ecode9 = 0 ;
15449 int val10 ;
15450 int ecode10 = 0 ;
15451 bool temp11 = false ;
15452 PyObject * obj0 = 0 ;
15453 PyObject * obj1 = 0 ;
15454 PyObject * obj2 = 0 ;
15455 PyObject * obj3 = 0 ;
15456 PyObject * obj4 = 0 ;
15457 PyObject * obj5 = 0 ;
15458 PyObject * obj6 = 0 ;
15459 PyObject * obj7 = 0 ;
15460 PyObject * obj8 = 0 ;
15461 PyObject * obj9 = 0 ;
15462 PyObject * obj10 = 0 ;
15463 char * kwnames[] = {
15464 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15465 };
15466
15467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15469 if (!SWIG_IsOK(res1)) {
15470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15471 }
15472 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15473 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15474 if (!SWIG_IsOK(res2)) {
15475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15476 }
15477 arg2 = reinterpret_cast< wxWindow * >(argp2);
15478 if (obj2) {
15479 ecode3 = SWIG_AsVal_int(obj2, &val3);
15480 if (!SWIG_IsOK(ecode3)) {
15481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15482 }
15483 arg3 = static_cast< int >(val3);
15484 }
15485 if (obj3) {
15486 {
15487 arg4 = wxString_in_helper(obj3);
15488 if (arg4 == NULL) SWIG_fail;
15489 temp4 = true;
15490 }
15491 }
15492 if (obj4) {
15493 {
15494 arg5 = &temp5;
15495 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15496 }
15497 }
15498 if (obj5) {
15499 {
15500 arg6 = &temp6;
15501 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15502 }
15503 }
15504 if (obj6) {
15505 ecode7 = SWIG_AsVal_long(obj6, &val7);
15506 if (!SWIG_IsOK(ecode7)) {
15507 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15508 }
15509 arg7 = static_cast< long >(val7);
15510 }
15511 if (obj7) {
15512 ecode8 = SWIG_AsVal_int(obj7, &val8);
15513 if (!SWIG_IsOK(ecode8)) {
15514 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15515 }
15516 arg8 = static_cast< int >(val8);
15517 }
15518 if (obj8) {
15519 ecode9 = SWIG_AsVal_int(obj8, &val9);
15520 if (!SWIG_IsOK(ecode9)) {
15521 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15522 }
15523 arg9 = static_cast< int >(val9);
15524 }
15525 if (obj9) {
15526 ecode10 = SWIG_AsVal_int(obj9, &val10);
15527 if (!SWIG_IsOK(ecode10)) {
15528 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15529 }
15530 arg10 = static_cast< int >(val10);
15531 }
15532 if (obj10) {
15533 {
15534 arg11 = wxString_in_helper(obj10);
15535 if (arg11 == NULL) SWIG_fail;
15536 temp11 = true;
15537 }
15538 }
15539 {
15540 PyThreadState* __tstate = wxPyBeginAllowThreads();
15541 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15542 wxPyEndAllowThreads(__tstate);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 }
15545 {
15546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15547 }
15548 {
15549 if (temp4)
15550 delete arg4;
15551 }
15552 {
15553 if (temp11)
15554 delete arg11;
15555 }
15556 return resultobj;
15557 fail:
15558 {
15559 if (temp4)
15560 delete arg4;
15561 }
15562 {
15563 if (temp11)
15564 delete arg11;
15565 }
15566 return NULL;
15567 }
15568
15569
15570 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15571 PyObject *resultobj = 0;
15572 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15573 int result;
15574 void *argp1 = 0 ;
15575 int res1 = 0 ;
15576 PyObject *swig_obj[1] ;
15577
15578 if (!args) SWIG_fail;
15579 swig_obj[0] = args;
15580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15581 if (!SWIG_IsOK(res1)) {
15582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15583 }
15584 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15585 {
15586 PyThreadState* __tstate = wxPyBeginAllowThreads();
15587 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15588 wxPyEndAllowThreads(__tstate);
15589 if (PyErr_Occurred()) SWIG_fail;
15590 }
15591 resultobj = SWIG_From_int(static_cast< int >(result));
15592 return resultobj;
15593 fail:
15594 return NULL;
15595 }
15596
15597
15598 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15599 PyObject *resultobj = 0;
15600 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15601 int arg2 ;
15602 void *argp1 = 0 ;
15603 int res1 = 0 ;
15604 int val2 ;
15605 int ecode2 = 0 ;
15606 PyObject * obj0 = 0 ;
15607 PyObject * obj1 = 0 ;
15608 char * kwnames[] = {
15609 (char *) "self",(char *) "value", NULL
15610 };
15611
15612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15614 if (!SWIG_IsOK(res1)) {
15615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15616 }
15617 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15618 ecode2 = SWIG_AsVal_int(obj1, &val2);
15619 if (!SWIG_IsOK(ecode2)) {
15620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15621 }
15622 arg2 = static_cast< int >(val2);
15623 {
15624 PyThreadState* __tstate = wxPyBeginAllowThreads();
15625 (arg1)->SetValue(arg2);
15626 wxPyEndAllowThreads(__tstate);
15627 if (PyErr_Occurred()) SWIG_fail;
15628 }
15629 resultobj = SWIG_Py_Void();
15630 return resultobj;
15631 fail:
15632 return NULL;
15633 }
15634
15635
15636 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15637 PyObject *resultobj = 0;
15638 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15639 wxString *arg2 = 0 ;
15640 void *argp1 = 0 ;
15641 int res1 = 0 ;
15642 bool temp2 = false ;
15643 PyObject * obj0 = 0 ;
15644 PyObject * obj1 = 0 ;
15645 char * kwnames[] = {
15646 (char *) "self",(char *) "text", NULL
15647 };
15648
15649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15651 if (!SWIG_IsOK(res1)) {
15652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15653 }
15654 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15655 {
15656 arg2 = wxString_in_helper(obj1);
15657 if (arg2 == NULL) SWIG_fail;
15658 temp2 = true;
15659 }
15660 {
15661 PyThreadState* __tstate = wxPyBeginAllowThreads();
15662 (arg1)->SetValue((wxString const &)*arg2);
15663 wxPyEndAllowThreads(__tstate);
15664 if (PyErr_Occurred()) SWIG_fail;
15665 }
15666 resultobj = SWIG_Py_Void();
15667 {
15668 if (temp2)
15669 delete arg2;
15670 }
15671 return resultobj;
15672 fail:
15673 {
15674 if (temp2)
15675 delete arg2;
15676 }
15677 return NULL;
15678 }
15679
15680
15681 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15682 PyObject *resultobj = 0;
15683 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15684 int arg2 ;
15685 int arg3 ;
15686 void *argp1 = 0 ;
15687 int res1 = 0 ;
15688 int val2 ;
15689 int ecode2 = 0 ;
15690 int val3 ;
15691 int ecode3 = 0 ;
15692 PyObject * obj0 = 0 ;
15693 PyObject * obj1 = 0 ;
15694 PyObject * obj2 = 0 ;
15695 char * kwnames[] = {
15696 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15697 };
15698
15699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15701 if (!SWIG_IsOK(res1)) {
15702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15703 }
15704 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15705 ecode2 = SWIG_AsVal_int(obj1, &val2);
15706 if (!SWIG_IsOK(ecode2)) {
15707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15708 }
15709 arg2 = static_cast< int >(val2);
15710 ecode3 = SWIG_AsVal_int(obj2, &val3);
15711 if (!SWIG_IsOK(ecode3)) {
15712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15713 }
15714 arg3 = static_cast< int >(val3);
15715 {
15716 PyThreadState* __tstate = wxPyBeginAllowThreads();
15717 (arg1)->SetRange(arg2,arg3);
15718 wxPyEndAllowThreads(__tstate);
15719 if (PyErr_Occurred()) SWIG_fail;
15720 }
15721 resultobj = SWIG_Py_Void();
15722 return resultobj;
15723 fail:
15724 return NULL;
15725 }
15726
15727
15728 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15729 PyObject *resultobj = 0;
15730 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15731 int result;
15732 void *argp1 = 0 ;
15733 int res1 = 0 ;
15734 PyObject *swig_obj[1] ;
15735
15736 if (!args) SWIG_fail;
15737 swig_obj[0] = args;
15738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15739 if (!SWIG_IsOK(res1)) {
15740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15741 }
15742 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15743 {
15744 PyThreadState* __tstate = wxPyBeginAllowThreads();
15745 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15746 wxPyEndAllowThreads(__tstate);
15747 if (PyErr_Occurred()) SWIG_fail;
15748 }
15749 resultobj = SWIG_From_int(static_cast< int >(result));
15750 return resultobj;
15751 fail:
15752 return NULL;
15753 }
15754
15755
15756 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15757 PyObject *resultobj = 0;
15758 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15759 int result;
15760 void *argp1 = 0 ;
15761 int res1 = 0 ;
15762 PyObject *swig_obj[1] ;
15763
15764 if (!args) SWIG_fail;
15765 swig_obj[0] = args;
15766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15767 if (!SWIG_IsOK(res1)) {
15768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15769 }
15770 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15771 {
15772 PyThreadState* __tstate = wxPyBeginAllowThreads();
15773 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15774 wxPyEndAllowThreads(__tstate);
15775 if (PyErr_Occurred()) SWIG_fail;
15776 }
15777 resultobj = SWIG_From_int(static_cast< int >(result));
15778 return resultobj;
15779 fail:
15780 return NULL;
15781 }
15782
15783
15784 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15785 PyObject *resultobj = 0;
15786 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15787 long arg2 ;
15788 long arg3 ;
15789 void *argp1 = 0 ;
15790 int res1 = 0 ;
15791 long val2 ;
15792 int ecode2 = 0 ;
15793 long val3 ;
15794 int ecode3 = 0 ;
15795 PyObject * obj0 = 0 ;
15796 PyObject * obj1 = 0 ;
15797 PyObject * obj2 = 0 ;
15798 char * kwnames[] = {
15799 (char *) "self",(char *) "from",(char *) "to", NULL
15800 };
15801
15802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15804 if (!SWIG_IsOK(res1)) {
15805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15806 }
15807 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15808 ecode2 = SWIG_AsVal_long(obj1, &val2);
15809 if (!SWIG_IsOK(ecode2)) {
15810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15811 }
15812 arg2 = static_cast< long >(val2);
15813 ecode3 = SWIG_AsVal_long(obj2, &val3);
15814 if (!SWIG_IsOK(ecode3)) {
15815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15816 }
15817 arg3 = static_cast< long >(val3);
15818 {
15819 PyThreadState* __tstate = wxPyBeginAllowThreads();
15820 (arg1)->SetSelection(arg2,arg3);
15821 wxPyEndAllowThreads(__tstate);
15822 if (PyErr_Occurred()) SWIG_fail;
15823 }
15824 resultobj = SWIG_Py_Void();
15825 return resultobj;
15826 fail:
15827 return NULL;
15828 }
15829
15830
15831 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15832 PyObject *resultobj = 0;
15833 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15834 SwigValueWrapper<wxVisualAttributes > result;
15835 int val1 ;
15836 int ecode1 = 0 ;
15837 PyObject * obj0 = 0 ;
15838 char * kwnames[] = {
15839 (char *) "variant", NULL
15840 };
15841
15842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15843 if (obj0) {
15844 ecode1 = SWIG_AsVal_int(obj0, &val1);
15845 if (!SWIG_IsOK(ecode1)) {
15846 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15847 }
15848 arg1 = static_cast< wxWindowVariant >(val1);
15849 }
15850 {
15851 if (!wxPyCheckForApp()) SWIG_fail;
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15858 return resultobj;
15859 fail:
15860 return NULL;
15861 }
15862
15863
15864 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15865 PyObject *obj;
15866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15867 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15868 return SWIG_Py_Void();
15869 }
15870
15871 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15872 return SWIG_Python_InitShadowInstance(args);
15873 }
15874
15875 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15876 PyObject *resultobj = 0;
15877 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15878 int arg2 = (int) 0 ;
15879 wxSpinEvent *result = 0 ;
15880 int val1 ;
15881 int ecode1 = 0 ;
15882 int val2 ;
15883 int ecode2 = 0 ;
15884 PyObject * obj0 = 0 ;
15885 PyObject * obj1 = 0 ;
15886 char * kwnames[] = {
15887 (char *) "commandType",(char *) "winid", NULL
15888 };
15889
15890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15891 if (obj0) {
15892 ecode1 = SWIG_AsVal_int(obj0, &val1);
15893 if (!SWIG_IsOK(ecode1)) {
15894 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15895 }
15896 arg1 = static_cast< wxEventType >(val1);
15897 }
15898 if (obj1) {
15899 ecode2 = SWIG_AsVal_int(obj1, &val2);
15900 if (!SWIG_IsOK(ecode2)) {
15901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15902 }
15903 arg2 = static_cast< int >(val2);
15904 }
15905 {
15906 PyThreadState* __tstate = wxPyBeginAllowThreads();
15907 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15908 wxPyEndAllowThreads(__tstate);
15909 if (PyErr_Occurred()) SWIG_fail;
15910 }
15911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15912 return resultobj;
15913 fail:
15914 return NULL;
15915 }
15916
15917
15918 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15919 PyObject *resultobj = 0;
15920 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15921 int result;
15922 void *argp1 = 0 ;
15923 int res1 = 0 ;
15924 PyObject *swig_obj[1] ;
15925
15926 if (!args) SWIG_fail;
15927 swig_obj[0] = args;
15928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15929 if (!SWIG_IsOK(res1)) {
15930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15931 }
15932 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15933 {
15934 PyThreadState* __tstate = wxPyBeginAllowThreads();
15935 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15936 wxPyEndAllowThreads(__tstate);
15937 if (PyErr_Occurred()) SWIG_fail;
15938 }
15939 resultobj = SWIG_From_int(static_cast< int >(result));
15940 return resultobj;
15941 fail:
15942 return NULL;
15943 }
15944
15945
15946 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15947 PyObject *resultobj = 0;
15948 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15949 int arg2 ;
15950 void *argp1 = 0 ;
15951 int res1 = 0 ;
15952 int val2 ;
15953 int ecode2 = 0 ;
15954 PyObject * obj0 = 0 ;
15955 PyObject * obj1 = 0 ;
15956 char * kwnames[] = {
15957 (char *) "self",(char *) "pos", NULL
15958 };
15959
15960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15962 if (!SWIG_IsOK(res1)) {
15963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15964 }
15965 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15966 ecode2 = SWIG_AsVal_int(obj1, &val2);
15967 if (!SWIG_IsOK(ecode2)) {
15968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15969 }
15970 arg2 = static_cast< int >(val2);
15971 {
15972 PyThreadState* __tstate = wxPyBeginAllowThreads();
15973 (arg1)->SetPosition(arg2);
15974 wxPyEndAllowThreads(__tstate);
15975 if (PyErr_Occurred()) SWIG_fail;
15976 }
15977 resultobj = SWIG_Py_Void();
15978 return resultobj;
15979 fail:
15980 return NULL;
15981 }
15982
15983
15984 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15985 PyObject *obj;
15986 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15987 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15988 return SWIG_Py_Void();
15989 }
15990
15991 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15992 return SWIG_Python_InitShadowInstance(args);
15993 }
15994
15995 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15996 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15997 return 1;
15998 }
15999
16000
16001 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16002 PyObject *pyobj = 0;
16003
16004 {
16005 #if wxUSE_UNICODE
16006 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16007 #else
16008 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16009 #endif
16010 }
16011 return pyobj;
16012 }
16013
16014
16015 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16016 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16017 return 1;
16018 }
16019
16020
16021 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16022 PyObject *pyobj = 0;
16023
16024 {
16025 #if wxUSE_UNICODE
16026 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16027 #else
16028 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16029 #endif
16030 }
16031 return pyobj;
16032 }
16033
16034
16035 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16036 PyObject *resultobj = 0;
16037 wxWindow *arg1 = (wxWindow *) 0 ;
16038 int arg2 = (int) -1 ;
16039 wxString const &arg3_defvalue = wxPyEmptyString ;
16040 wxString *arg3 = (wxString *) &arg3_defvalue ;
16041 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16042 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16043 wxSize const &arg5_defvalue = wxDefaultSize ;
16044 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16045 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16046 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16047 int arg7 = (int) 0 ;
16048 long arg8 = (long) wxRA_HORIZONTAL ;
16049 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16050 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16051 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16052 wxString *arg10 = (wxString *) &arg10_defvalue ;
16053 wxRadioBox *result = 0 ;
16054 void *argp1 = 0 ;
16055 int res1 = 0 ;
16056 int val2 ;
16057 int ecode2 = 0 ;
16058 bool temp3 = false ;
16059 wxPoint temp4 ;
16060 wxSize temp5 ;
16061 bool temp6 = false ;
16062 int val7 ;
16063 int ecode7 = 0 ;
16064 long val8 ;
16065 int ecode8 = 0 ;
16066 void *argp9 = 0 ;
16067 int res9 = 0 ;
16068 bool temp10 = false ;
16069 PyObject * obj0 = 0 ;
16070 PyObject * obj1 = 0 ;
16071 PyObject * obj2 = 0 ;
16072 PyObject * obj3 = 0 ;
16073 PyObject * obj4 = 0 ;
16074 PyObject * obj5 = 0 ;
16075 PyObject * obj6 = 0 ;
16076 PyObject * obj7 = 0 ;
16077 PyObject * obj8 = 0 ;
16078 PyObject * obj9 = 0 ;
16079 char * kwnames[] = {
16080 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16081 };
16082
16083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16085 if (!SWIG_IsOK(res1)) {
16086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16087 }
16088 arg1 = reinterpret_cast< wxWindow * >(argp1);
16089 if (obj1) {
16090 ecode2 = SWIG_AsVal_int(obj1, &val2);
16091 if (!SWIG_IsOK(ecode2)) {
16092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16093 }
16094 arg2 = static_cast< int >(val2);
16095 }
16096 if (obj2) {
16097 {
16098 arg3 = wxString_in_helper(obj2);
16099 if (arg3 == NULL) SWIG_fail;
16100 temp3 = true;
16101 }
16102 }
16103 if (obj3) {
16104 {
16105 arg4 = &temp4;
16106 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16107 }
16108 }
16109 if (obj4) {
16110 {
16111 arg5 = &temp5;
16112 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16113 }
16114 }
16115 if (obj5) {
16116 {
16117 if (! PySequence_Check(obj5)) {
16118 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16119 SWIG_fail;
16120 }
16121 arg6 = new wxArrayString;
16122 temp6 = true;
16123 int i, len=PySequence_Length(obj5);
16124 for (i=0; i<len; i++) {
16125 PyObject* item = PySequence_GetItem(obj5, i);
16126 wxString* s = wxString_in_helper(item);
16127 if (PyErr_Occurred()) SWIG_fail;
16128 arg6->Add(*s);
16129 delete s;
16130 Py_DECREF(item);
16131 }
16132 }
16133 }
16134 if (obj6) {
16135 ecode7 = SWIG_AsVal_int(obj6, &val7);
16136 if (!SWIG_IsOK(ecode7)) {
16137 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16138 }
16139 arg7 = static_cast< int >(val7);
16140 }
16141 if (obj7) {
16142 ecode8 = SWIG_AsVal_long(obj7, &val8);
16143 if (!SWIG_IsOK(ecode8)) {
16144 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16145 }
16146 arg8 = static_cast< long >(val8);
16147 }
16148 if (obj8) {
16149 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16150 if (!SWIG_IsOK(res9)) {
16151 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16152 }
16153 if (!argp9) {
16154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16155 }
16156 arg9 = reinterpret_cast< wxValidator * >(argp9);
16157 }
16158 if (obj9) {
16159 {
16160 arg10 = wxString_in_helper(obj9);
16161 if (arg10 == NULL) SWIG_fail;
16162 temp10 = true;
16163 }
16164 }
16165 {
16166 if (!wxPyCheckForApp()) SWIG_fail;
16167 PyThreadState* __tstate = wxPyBeginAllowThreads();
16168 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);
16169 wxPyEndAllowThreads(__tstate);
16170 if (PyErr_Occurred()) SWIG_fail;
16171 }
16172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16173 {
16174 if (temp3)
16175 delete arg3;
16176 }
16177 {
16178 if (temp6) delete arg6;
16179 }
16180 {
16181 if (temp10)
16182 delete arg10;
16183 }
16184 return resultobj;
16185 fail:
16186 {
16187 if (temp3)
16188 delete arg3;
16189 }
16190 {
16191 if (temp6) delete arg6;
16192 }
16193 {
16194 if (temp10)
16195 delete arg10;
16196 }
16197 return NULL;
16198 }
16199
16200
16201 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16202 PyObject *resultobj = 0;
16203 wxRadioBox *result = 0 ;
16204
16205 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16206 {
16207 if (!wxPyCheckForApp()) SWIG_fail;
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 result = (wxRadioBox *)new wxRadioBox();
16210 wxPyEndAllowThreads(__tstate);
16211 if (PyErr_Occurred()) SWIG_fail;
16212 }
16213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16214 return resultobj;
16215 fail:
16216 return NULL;
16217 }
16218
16219
16220 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16221 PyObject *resultobj = 0;
16222 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16223 wxWindow *arg2 = (wxWindow *) 0 ;
16224 int arg3 = (int) -1 ;
16225 wxString const &arg4_defvalue = wxPyEmptyString ;
16226 wxString *arg4 = (wxString *) &arg4_defvalue ;
16227 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16228 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16229 wxSize const &arg6_defvalue = wxDefaultSize ;
16230 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16231 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16232 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16233 int arg8 = (int) 0 ;
16234 long arg9 = (long) wxRA_HORIZONTAL ;
16235 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16236 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16237 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16238 wxString *arg11 = (wxString *) &arg11_defvalue ;
16239 bool result;
16240 void *argp1 = 0 ;
16241 int res1 = 0 ;
16242 void *argp2 = 0 ;
16243 int res2 = 0 ;
16244 int val3 ;
16245 int ecode3 = 0 ;
16246 bool temp4 = false ;
16247 wxPoint temp5 ;
16248 wxSize temp6 ;
16249 bool temp7 = false ;
16250 int val8 ;
16251 int ecode8 = 0 ;
16252 long val9 ;
16253 int ecode9 = 0 ;
16254 void *argp10 = 0 ;
16255 int res10 = 0 ;
16256 bool temp11 = false ;
16257 PyObject * obj0 = 0 ;
16258 PyObject * obj1 = 0 ;
16259 PyObject * obj2 = 0 ;
16260 PyObject * obj3 = 0 ;
16261 PyObject * obj4 = 0 ;
16262 PyObject * obj5 = 0 ;
16263 PyObject * obj6 = 0 ;
16264 PyObject * obj7 = 0 ;
16265 PyObject * obj8 = 0 ;
16266 PyObject * obj9 = 0 ;
16267 PyObject * obj10 = 0 ;
16268 char * kwnames[] = {
16269 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16270 };
16271
16272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16274 if (!SWIG_IsOK(res1)) {
16275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16276 }
16277 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16278 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16279 if (!SWIG_IsOK(res2)) {
16280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16281 }
16282 arg2 = reinterpret_cast< wxWindow * >(argp2);
16283 if (obj2) {
16284 ecode3 = SWIG_AsVal_int(obj2, &val3);
16285 if (!SWIG_IsOK(ecode3)) {
16286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16287 }
16288 arg3 = static_cast< int >(val3);
16289 }
16290 if (obj3) {
16291 {
16292 arg4 = wxString_in_helper(obj3);
16293 if (arg4 == NULL) SWIG_fail;
16294 temp4 = true;
16295 }
16296 }
16297 if (obj4) {
16298 {
16299 arg5 = &temp5;
16300 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16301 }
16302 }
16303 if (obj5) {
16304 {
16305 arg6 = &temp6;
16306 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16307 }
16308 }
16309 if (obj6) {
16310 {
16311 if (! PySequence_Check(obj6)) {
16312 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16313 SWIG_fail;
16314 }
16315 arg7 = new wxArrayString;
16316 temp7 = true;
16317 int i, len=PySequence_Length(obj6);
16318 for (i=0; i<len; i++) {
16319 PyObject* item = PySequence_GetItem(obj6, i);
16320 wxString* s = wxString_in_helper(item);
16321 if (PyErr_Occurred()) SWIG_fail;
16322 arg7->Add(*s);
16323 delete s;
16324 Py_DECREF(item);
16325 }
16326 }
16327 }
16328 if (obj7) {
16329 ecode8 = SWIG_AsVal_int(obj7, &val8);
16330 if (!SWIG_IsOK(ecode8)) {
16331 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16332 }
16333 arg8 = static_cast< int >(val8);
16334 }
16335 if (obj8) {
16336 ecode9 = SWIG_AsVal_long(obj8, &val9);
16337 if (!SWIG_IsOK(ecode9)) {
16338 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16339 }
16340 arg9 = static_cast< long >(val9);
16341 }
16342 if (obj9) {
16343 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16344 if (!SWIG_IsOK(res10)) {
16345 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16346 }
16347 if (!argp10) {
16348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16349 }
16350 arg10 = reinterpret_cast< wxValidator * >(argp10);
16351 }
16352 if (obj10) {
16353 {
16354 arg11 = wxString_in_helper(obj10);
16355 if (arg11 == NULL) SWIG_fail;
16356 temp11 = true;
16357 }
16358 }
16359 {
16360 PyThreadState* __tstate = wxPyBeginAllowThreads();
16361 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);
16362 wxPyEndAllowThreads(__tstate);
16363 if (PyErr_Occurred()) SWIG_fail;
16364 }
16365 {
16366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16367 }
16368 {
16369 if (temp4)
16370 delete arg4;
16371 }
16372 {
16373 if (temp7) delete arg7;
16374 }
16375 {
16376 if (temp11)
16377 delete arg11;
16378 }
16379 return resultobj;
16380 fail:
16381 {
16382 if (temp4)
16383 delete arg4;
16384 }
16385 {
16386 if (temp7) delete arg7;
16387 }
16388 {
16389 if (temp11)
16390 delete arg11;
16391 }
16392 return NULL;
16393 }
16394
16395
16396 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16397 PyObject *resultobj = 0;
16398 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16399 int arg2 ;
16400 void *argp1 = 0 ;
16401 int res1 = 0 ;
16402 int val2 ;
16403 int ecode2 = 0 ;
16404 PyObject * obj0 = 0 ;
16405 PyObject * obj1 = 0 ;
16406 char * kwnames[] = {
16407 (char *) "self",(char *) "n", NULL
16408 };
16409
16410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16412 if (!SWIG_IsOK(res1)) {
16413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16414 }
16415 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16416 ecode2 = SWIG_AsVal_int(obj1, &val2);
16417 if (!SWIG_IsOK(ecode2)) {
16418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16419 }
16420 arg2 = static_cast< int >(val2);
16421 {
16422 PyThreadState* __tstate = wxPyBeginAllowThreads();
16423 (arg1)->SetSelection(arg2);
16424 wxPyEndAllowThreads(__tstate);
16425 if (PyErr_Occurred()) SWIG_fail;
16426 }
16427 resultobj = SWIG_Py_Void();
16428 return resultobj;
16429 fail:
16430 return NULL;
16431 }
16432
16433
16434 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16435 PyObject *resultobj = 0;
16436 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16437 int result;
16438 void *argp1 = 0 ;
16439 int res1 = 0 ;
16440 PyObject *swig_obj[1] ;
16441
16442 if (!args) SWIG_fail;
16443 swig_obj[0] = args;
16444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16445 if (!SWIG_IsOK(res1)) {
16446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16447 }
16448 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16449 {
16450 PyThreadState* __tstate = wxPyBeginAllowThreads();
16451 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16452 wxPyEndAllowThreads(__tstate);
16453 if (PyErr_Occurred()) SWIG_fail;
16454 }
16455 resultobj = SWIG_From_int(static_cast< int >(result));
16456 return resultobj;
16457 fail:
16458 return NULL;
16459 }
16460
16461
16462 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16463 PyObject *resultobj = 0;
16464 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16465 wxString result;
16466 void *argp1 = 0 ;
16467 int res1 = 0 ;
16468 PyObject *swig_obj[1] ;
16469
16470 if (!args) SWIG_fail;
16471 swig_obj[0] = args;
16472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16473 if (!SWIG_IsOK(res1)) {
16474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16475 }
16476 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16477 {
16478 PyThreadState* __tstate = wxPyBeginAllowThreads();
16479 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16480 wxPyEndAllowThreads(__tstate);
16481 if (PyErr_Occurred()) SWIG_fail;
16482 }
16483 {
16484 #if wxUSE_UNICODE
16485 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16486 #else
16487 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16488 #endif
16489 }
16490 return resultobj;
16491 fail:
16492 return NULL;
16493 }
16494
16495
16496 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16497 PyObject *resultobj = 0;
16498 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16499 wxString *arg2 = 0 ;
16500 bool result;
16501 void *argp1 = 0 ;
16502 int res1 = 0 ;
16503 bool temp2 = false ;
16504 PyObject * obj0 = 0 ;
16505 PyObject * obj1 = 0 ;
16506 char * kwnames[] = {
16507 (char *) "self",(char *) "s", NULL
16508 };
16509
16510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16512 if (!SWIG_IsOK(res1)) {
16513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16514 }
16515 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16516 {
16517 arg2 = wxString_in_helper(obj1);
16518 if (arg2 == NULL) SWIG_fail;
16519 temp2 = true;
16520 }
16521 {
16522 PyThreadState* __tstate = wxPyBeginAllowThreads();
16523 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16524 wxPyEndAllowThreads(__tstate);
16525 if (PyErr_Occurred()) SWIG_fail;
16526 }
16527 {
16528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16529 }
16530 {
16531 if (temp2)
16532 delete arg2;
16533 }
16534 return resultobj;
16535 fail:
16536 {
16537 if (temp2)
16538 delete arg2;
16539 }
16540 return NULL;
16541 }
16542
16543
16544 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16545 PyObject *resultobj = 0;
16546 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16547 size_t result;
16548 void *argp1 = 0 ;
16549 int res1 = 0 ;
16550 PyObject *swig_obj[1] ;
16551
16552 if (!args) SWIG_fail;
16553 swig_obj[0] = args;
16554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16555 if (!SWIG_IsOK(res1)) {
16556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16557 }
16558 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16559 {
16560 PyThreadState* __tstate = wxPyBeginAllowThreads();
16561 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16562 wxPyEndAllowThreads(__tstate);
16563 if (PyErr_Occurred()) SWIG_fail;
16564 }
16565 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16566 return resultobj;
16567 fail:
16568 return NULL;
16569 }
16570
16571
16572 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16573 PyObject *resultobj = 0;
16574 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16575 wxString *arg2 = 0 ;
16576 int result;
16577 void *argp1 = 0 ;
16578 int res1 = 0 ;
16579 bool temp2 = false ;
16580 PyObject * obj0 = 0 ;
16581 PyObject * obj1 = 0 ;
16582 char * kwnames[] = {
16583 (char *) "self",(char *) "s", NULL
16584 };
16585
16586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16588 if (!SWIG_IsOK(res1)) {
16589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16590 }
16591 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16592 {
16593 arg2 = wxString_in_helper(obj1);
16594 if (arg2 == NULL) SWIG_fail;
16595 temp2 = true;
16596 }
16597 {
16598 PyThreadState* __tstate = wxPyBeginAllowThreads();
16599 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16600 wxPyEndAllowThreads(__tstate);
16601 if (PyErr_Occurred()) SWIG_fail;
16602 }
16603 resultobj = SWIG_From_int(static_cast< int >(result));
16604 {
16605 if (temp2)
16606 delete arg2;
16607 }
16608 return resultobj;
16609 fail:
16610 {
16611 if (temp2)
16612 delete arg2;
16613 }
16614 return NULL;
16615 }
16616
16617
16618 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16619 PyObject *resultobj = 0;
16620 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16621 int arg2 ;
16622 wxString result;
16623 void *argp1 = 0 ;
16624 int res1 = 0 ;
16625 int val2 ;
16626 int ecode2 = 0 ;
16627 PyObject * obj0 = 0 ;
16628 PyObject * obj1 = 0 ;
16629 char * kwnames[] = {
16630 (char *) "self",(char *) "n", NULL
16631 };
16632
16633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16635 if (!SWIG_IsOK(res1)) {
16636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16637 }
16638 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16639 ecode2 = SWIG_AsVal_int(obj1, &val2);
16640 if (!SWIG_IsOK(ecode2)) {
16641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16642 }
16643 arg2 = static_cast< int >(val2);
16644 {
16645 PyThreadState* __tstate = wxPyBeginAllowThreads();
16646 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16647 wxPyEndAllowThreads(__tstate);
16648 if (PyErr_Occurred()) SWIG_fail;
16649 }
16650 {
16651 #if wxUSE_UNICODE
16652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16653 #else
16654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16655 #endif
16656 }
16657 return resultobj;
16658 fail:
16659 return NULL;
16660 }
16661
16662
16663 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16664 PyObject *resultobj = 0;
16665 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16666 int arg2 ;
16667 wxString *arg3 = 0 ;
16668 void *argp1 = 0 ;
16669 int res1 = 0 ;
16670 int val2 ;
16671 int ecode2 = 0 ;
16672 bool temp3 = false ;
16673 PyObject * obj0 = 0 ;
16674 PyObject * obj1 = 0 ;
16675 PyObject * obj2 = 0 ;
16676 char * kwnames[] = {
16677 (char *) "self",(char *) "n",(char *) "label", NULL
16678 };
16679
16680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16682 if (!SWIG_IsOK(res1)) {
16683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16684 }
16685 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16686 ecode2 = SWIG_AsVal_int(obj1, &val2);
16687 if (!SWIG_IsOK(ecode2)) {
16688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16689 }
16690 arg2 = static_cast< int >(val2);
16691 {
16692 arg3 = wxString_in_helper(obj2);
16693 if (arg3 == NULL) SWIG_fail;
16694 temp3 = true;
16695 }
16696 {
16697 PyThreadState* __tstate = wxPyBeginAllowThreads();
16698 (arg1)->SetString(arg2,(wxString const &)*arg3);
16699 wxPyEndAllowThreads(__tstate);
16700 if (PyErr_Occurred()) SWIG_fail;
16701 }
16702 resultobj = SWIG_Py_Void();
16703 {
16704 if (temp3)
16705 delete arg3;
16706 }
16707 return resultobj;
16708 fail:
16709 {
16710 if (temp3)
16711 delete arg3;
16712 }
16713 return NULL;
16714 }
16715
16716
16717 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16718 PyObject *resultobj = 0;
16719 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16720 unsigned int arg2 ;
16721 bool arg3 = (bool) true ;
16722 void *argp1 = 0 ;
16723 int res1 = 0 ;
16724 unsigned int val2 ;
16725 int ecode2 = 0 ;
16726 bool val3 ;
16727 int ecode3 = 0 ;
16728 PyObject * obj0 = 0 ;
16729 PyObject * obj1 = 0 ;
16730 PyObject * obj2 = 0 ;
16731 char * kwnames[] = {
16732 (char *) "self",(char *) "n",(char *) "enable", NULL
16733 };
16734
16735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16737 if (!SWIG_IsOK(res1)) {
16738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16739 }
16740 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16741 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16742 if (!SWIG_IsOK(ecode2)) {
16743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16744 }
16745 arg2 = static_cast< unsigned int >(val2);
16746 if (obj2) {
16747 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16748 if (!SWIG_IsOK(ecode3)) {
16749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16750 }
16751 arg3 = static_cast< bool >(val3);
16752 }
16753 {
16754 PyThreadState* __tstate = wxPyBeginAllowThreads();
16755 (arg1)->Enable(arg2,arg3);
16756 wxPyEndAllowThreads(__tstate);
16757 if (PyErr_Occurred()) SWIG_fail;
16758 }
16759 resultobj = SWIG_Py_Void();
16760 return resultobj;
16761 fail:
16762 return NULL;
16763 }
16764
16765
16766 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16767 PyObject *resultobj = 0;
16768 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16769 unsigned int arg2 ;
16770 bool arg3 = (bool) true ;
16771 void *argp1 = 0 ;
16772 int res1 = 0 ;
16773 unsigned int val2 ;
16774 int ecode2 = 0 ;
16775 bool val3 ;
16776 int ecode3 = 0 ;
16777 PyObject * obj0 = 0 ;
16778 PyObject * obj1 = 0 ;
16779 PyObject * obj2 = 0 ;
16780 char * kwnames[] = {
16781 (char *) "self",(char *) "n",(char *) "show", NULL
16782 };
16783
16784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16786 if (!SWIG_IsOK(res1)) {
16787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16788 }
16789 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16790 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16791 if (!SWIG_IsOK(ecode2)) {
16792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16793 }
16794 arg2 = static_cast< unsigned int >(val2);
16795 if (obj2) {
16796 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16797 if (!SWIG_IsOK(ecode3)) {
16798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16799 }
16800 arg3 = static_cast< bool >(val3);
16801 }
16802 {
16803 PyThreadState* __tstate = wxPyBeginAllowThreads();
16804 (arg1)->Show(arg2,arg3);
16805 wxPyEndAllowThreads(__tstate);
16806 if (PyErr_Occurred()) SWIG_fail;
16807 }
16808 resultobj = SWIG_Py_Void();
16809 return resultobj;
16810 fail:
16811 return NULL;
16812 }
16813
16814
16815 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16816 PyObject *resultobj = 0;
16817 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16818 unsigned int arg2 ;
16819 bool result;
16820 void *argp1 = 0 ;
16821 int res1 = 0 ;
16822 unsigned int val2 ;
16823 int ecode2 = 0 ;
16824 PyObject * obj0 = 0 ;
16825 PyObject * obj1 = 0 ;
16826 char * kwnames[] = {
16827 (char *) "self",(char *) "n", NULL
16828 };
16829
16830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16832 if (!SWIG_IsOK(res1)) {
16833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16834 }
16835 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16836 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16837 if (!SWIG_IsOK(ecode2)) {
16838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16839 }
16840 arg2 = static_cast< unsigned int >(val2);
16841 {
16842 PyThreadState* __tstate = wxPyBeginAllowThreads();
16843 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16844 wxPyEndAllowThreads(__tstate);
16845 if (PyErr_Occurred()) SWIG_fail;
16846 }
16847 {
16848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16849 }
16850 return resultobj;
16851 fail:
16852 return NULL;
16853 }
16854
16855
16856 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16857 PyObject *resultobj = 0;
16858 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16859 unsigned int arg2 ;
16860 bool result;
16861 void *argp1 = 0 ;
16862 int res1 = 0 ;
16863 unsigned int val2 ;
16864 int ecode2 = 0 ;
16865 PyObject * obj0 = 0 ;
16866 PyObject * obj1 = 0 ;
16867 char * kwnames[] = {
16868 (char *) "self",(char *) "n", NULL
16869 };
16870
16871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16873 if (!SWIG_IsOK(res1)) {
16874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16875 }
16876 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16877 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16878 if (!SWIG_IsOK(ecode2)) {
16879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16880 }
16881 arg2 = static_cast< unsigned int >(val2);
16882 {
16883 PyThreadState* __tstate = wxPyBeginAllowThreads();
16884 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16885 wxPyEndAllowThreads(__tstate);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 }
16888 {
16889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16890 }
16891 return resultobj;
16892 fail:
16893 return NULL;
16894 }
16895
16896
16897 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16898 PyObject *resultobj = 0;
16899 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16900 unsigned int result;
16901 void *argp1 = 0 ;
16902 int res1 = 0 ;
16903 PyObject *swig_obj[1] ;
16904
16905 if (!args) SWIG_fail;
16906 swig_obj[0] = args;
16907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16908 if (!SWIG_IsOK(res1)) {
16909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16910 }
16911 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16912 {
16913 PyThreadState* __tstate = wxPyBeginAllowThreads();
16914 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16915 wxPyEndAllowThreads(__tstate);
16916 if (PyErr_Occurred()) SWIG_fail;
16917 }
16918 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16919 return resultobj;
16920 fail:
16921 return NULL;
16922 }
16923
16924
16925 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16926 PyObject *resultobj = 0;
16927 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16928 unsigned int result;
16929 void *argp1 = 0 ;
16930 int res1 = 0 ;
16931 PyObject *swig_obj[1] ;
16932
16933 if (!args) SWIG_fail;
16934 swig_obj[0] = args;
16935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16936 if (!SWIG_IsOK(res1)) {
16937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16938 }
16939 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16940 {
16941 PyThreadState* __tstate = wxPyBeginAllowThreads();
16942 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16943 wxPyEndAllowThreads(__tstate);
16944 if (PyErr_Occurred()) SWIG_fail;
16945 }
16946 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16947 return resultobj;
16948 fail:
16949 return NULL;
16950 }
16951
16952
16953 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16954 PyObject *resultobj = 0;
16955 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16956 int arg2 ;
16957 wxDirection arg3 ;
16958 long arg4 ;
16959 int result;
16960 void *argp1 = 0 ;
16961 int res1 = 0 ;
16962 int val2 ;
16963 int ecode2 = 0 ;
16964 int val3 ;
16965 int ecode3 = 0 ;
16966 long val4 ;
16967 int ecode4 = 0 ;
16968 PyObject * obj0 = 0 ;
16969 PyObject * obj1 = 0 ;
16970 PyObject * obj2 = 0 ;
16971 PyObject * obj3 = 0 ;
16972 char * kwnames[] = {
16973 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16974 };
16975
16976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16978 if (!SWIG_IsOK(res1)) {
16979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16980 }
16981 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16982 ecode2 = SWIG_AsVal_int(obj1, &val2);
16983 if (!SWIG_IsOK(ecode2)) {
16984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16985 }
16986 arg2 = static_cast< int >(val2);
16987 ecode3 = SWIG_AsVal_int(obj2, &val3);
16988 if (!SWIG_IsOK(ecode3)) {
16989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16990 }
16991 arg3 = static_cast< wxDirection >(val3);
16992 ecode4 = SWIG_AsVal_long(obj3, &val4);
16993 if (!SWIG_IsOK(ecode4)) {
16994 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16995 }
16996 arg4 = static_cast< long >(val4);
16997 {
16998 PyThreadState* __tstate = wxPyBeginAllowThreads();
16999 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17000 wxPyEndAllowThreads(__tstate);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 }
17003 resultobj = SWIG_From_int(static_cast< int >(result));
17004 return resultobj;
17005 fail:
17006 return NULL;
17007 }
17008
17009
17010 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17011 PyObject *resultobj = 0;
17012 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17013 unsigned int arg2 ;
17014 wxString *arg3 = 0 ;
17015 void *argp1 = 0 ;
17016 int res1 = 0 ;
17017 unsigned int val2 ;
17018 int ecode2 = 0 ;
17019 bool temp3 = false ;
17020 PyObject * obj0 = 0 ;
17021 PyObject * obj1 = 0 ;
17022 PyObject * obj2 = 0 ;
17023 char * kwnames[] = {
17024 (char *) "self",(char *) "item",(char *) "text", NULL
17025 };
17026
17027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17029 if (!SWIG_IsOK(res1)) {
17030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17031 }
17032 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17033 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17034 if (!SWIG_IsOK(ecode2)) {
17035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17036 }
17037 arg2 = static_cast< unsigned int >(val2);
17038 {
17039 arg3 = wxString_in_helper(obj2);
17040 if (arg3 == NULL) SWIG_fail;
17041 temp3 = true;
17042 }
17043 {
17044 PyThreadState* __tstate = wxPyBeginAllowThreads();
17045 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17046 wxPyEndAllowThreads(__tstate);
17047 if (PyErr_Occurred()) SWIG_fail;
17048 }
17049 resultobj = SWIG_Py_Void();
17050 {
17051 if (temp3)
17052 delete arg3;
17053 }
17054 return resultobj;
17055 fail:
17056 {
17057 if (temp3)
17058 delete arg3;
17059 }
17060 return NULL;
17061 }
17062
17063
17064 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17065 PyObject *resultobj = 0;
17066 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17067 unsigned int arg2 ;
17068 wxToolTip *result = 0 ;
17069 void *argp1 = 0 ;
17070 int res1 = 0 ;
17071 unsigned int val2 ;
17072 int ecode2 = 0 ;
17073 PyObject * obj0 = 0 ;
17074 PyObject * obj1 = 0 ;
17075 char * kwnames[] = {
17076 (char *) "self",(char *) "item", NULL
17077 };
17078
17079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17081 if (!SWIG_IsOK(res1)) {
17082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17083 }
17084 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17085 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17086 if (!SWIG_IsOK(ecode2)) {
17087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17088 }
17089 arg2 = static_cast< unsigned int >(val2);
17090 {
17091 PyThreadState* __tstate = wxPyBeginAllowThreads();
17092 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17093 wxPyEndAllowThreads(__tstate);
17094 if (PyErr_Occurred()) SWIG_fail;
17095 }
17096 {
17097 resultobj = wxPyMake_wxObject(result, (bool)0);
17098 }
17099 return resultobj;
17100 fail:
17101 return NULL;
17102 }
17103
17104
17105 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17106 PyObject *resultobj = 0;
17107 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17108 unsigned int arg2 ;
17109 wxString *arg3 = 0 ;
17110 void *argp1 = 0 ;
17111 int res1 = 0 ;
17112 unsigned int val2 ;
17113 int ecode2 = 0 ;
17114 bool temp3 = false ;
17115 PyObject * obj0 = 0 ;
17116 PyObject * obj1 = 0 ;
17117 PyObject * obj2 = 0 ;
17118 char * kwnames[] = {
17119 (char *) "self",(char *) "n",(char *) "helpText", NULL
17120 };
17121
17122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17124 if (!SWIG_IsOK(res1)) {
17125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17126 }
17127 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17128 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17129 if (!SWIG_IsOK(ecode2)) {
17130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17131 }
17132 arg2 = static_cast< unsigned int >(val2);
17133 {
17134 arg3 = wxString_in_helper(obj2);
17135 if (arg3 == NULL) SWIG_fail;
17136 temp3 = true;
17137 }
17138 {
17139 PyThreadState* __tstate = wxPyBeginAllowThreads();
17140 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17141 wxPyEndAllowThreads(__tstate);
17142 if (PyErr_Occurred()) SWIG_fail;
17143 }
17144 resultobj = SWIG_Py_Void();
17145 {
17146 if (temp3)
17147 delete arg3;
17148 }
17149 return resultobj;
17150 fail:
17151 {
17152 if (temp3)
17153 delete arg3;
17154 }
17155 return NULL;
17156 }
17157
17158
17159 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17160 PyObject *resultobj = 0;
17161 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17162 unsigned int arg2 ;
17163 wxString result;
17164 void *argp1 = 0 ;
17165 int res1 = 0 ;
17166 unsigned int val2 ;
17167 int ecode2 = 0 ;
17168 PyObject * obj0 = 0 ;
17169 PyObject * obj1 = 0 ;
17170 char * kwnames[] = {
17171 (char *) "self",(char *) "n", NULL
17172 };
17173
17174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17176 if (!SWIG_IsOK(res1)) {
17177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17178 }
17179 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17180 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17181 if (!SWIG_IsOK(ecode2)) {
17182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17183 }
17184 arg2 = static_cast< unsigned int >(val2);
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17188 wxPyEndAllowThreads(__tstate);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 }
17191 {
17192 #if wxUSE_UNICODE
17193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17194 #else
17195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17196 #endif
17197 }
17198 return resultobj;
17199 fail:
17200 return NULL;
17201 }
17202
17203
17204 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17205 PyObject *resultobj = 0;
17206 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17207 SwigValueWrapper<wxVisualAttributes > result;
17208 int val1 ;
17209 int ecode1 = 0 ;
17210 PyObject * obj0 = 0 ;
17211 char * kwnames[] = {
17212 (char *) "variant", NULL
17213 };
17214
17215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17216 if (obj0) {
17217 ecode1 = SWIG_AsVal_int(obj0, &val1);
17218 if (!SWIG_IsOK(ecode1)) {
17219 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17220 }
17221 arg1 = static_cast< wxWindowVariant >(val1);
17222 }
17223 {
17224 if (!wxPyCheckForApp()) SWIG_fail;
17225 PyThreadState* __tstate = wxPyBeginAllowThreads();
17226 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17227 wxPyEndAllowThreads(__tstate);
17228 if (PyErr_Occurred()) SWIG_fail;
17229 }
17230 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17231 return resultobj;
17232 fail:
17233 return NULL;
17234 }
17235
17236
17237 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17238 PyObject *obj;
17239 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17240 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17241 return SWIG_Py_Void();
17242 }
17243
17244 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17245 return SWIG_Python_InitShadowInstance(args);
17246 }
17247
17248 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17249 PyObject *resultobj = 0;
17250 wxWindow *arg1 = (wxWindow *) 0 ;
17251 int arg2 = (int) -1 ;
17252 wxString const &arg3_defvalue = wxPyEmptyString ;
17253 wxString *arg3 = (wxString *) &arg3_defvalue ;
17254 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17255 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17256 wxSize const &arg5_defvalue = wxDefaultSize ;
17257 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17258 long arg6 = (long) 0 ;
17259 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17260 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17261 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17262 wxString *arg8 = (wxString *) &arg8_defvalue ;
17263 wxRadioButton *result = 0 ;
17264 void *argp1 = 0 ;
17265 int res1 = 0 ;
17266 int val2 ;
17267 int ecode2 = 0 ;
17268 bool temp3 = false ;
17269 wxPoint temp4 ;
17270 wxSize temp5 ;
17271 long val6 ;
17272 int ecode6 = 0 ;
17273 void *argp7 = 0 ;
17274 int res7 = 0 ;
17275 bool temp8 = false ;
17276 PyObject * obj0 = 0 ;
17277 PyObject * obj1 = 0 ;
17278 PyObject * obj2 = 0 ;
17279 PyObject * obj3 = 0 ;
17280 PyObject * obj4 = 0 ;
17281 PyObject * obj5 = 0 ;
17282 PyObject * obj6 = 0 ;
17283 PyObject * obj7 = 0 ;
17284 char * kwnames[] = {
17285 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17286 };
17287
17288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17290 if (!SWIG_IsOK(res1)) {
17291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17292 }
17293 arg1 = reinterpret_cast< wxWindow * >(argp1);
17294 if (obj1) {
17295 ecode2 = SWIG_AsVal_int(obj1, &val2);
17296 if (!SWIG_IsOK(ecode2)) {
17297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17298 }
17299 arg2 = static_cast< int >(val2);
17300 }
17301 if (obj2) {
17302 {
17303 arg3 = wxString_in_helper(obj2);
17304 if (arg3 == NULL) SWIG_fail;
17305 temp3 = true;
17306 }
17307 }
17308 if (obj3) {
17309 {
17310 arg4 = &temp4;
17311 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17312 }
17313 }
17314 if (obj4) {
17315 {
17316 arg5 = &temp5;
17317 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17318 }
17319 }
17320 if (obj5) {
17321 ecode6 = SWIG_AsVal_long(obj5, &val6);
17322 if (!SWIG_IsOK(ecode6)) {
17323 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17324 }
17325 arg6 = static_cast< long >(val6);
17326 }
17327 if (obj6) {
17328 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17329 if (!SWIG_IsOK(res7)) {
17330 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17331 }
17332 if (!argp7) {
17333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17334 }
17335 arg7 = reinterpret_cast< wxValidator * >(argp7);
17336 }
17337 if (obj7) {
17338 {
17339 arg8 = wxString_in_helper(obj7);
17340 if (arg8 == NULL) SWIG_fail;
17341 temp8 = true;
17342 }
17343 }
17344 {
17345 if (!wxPyCheckForApp()) SWIG_fail;
17346 PyThreadState* __tstate = wxPyBeginAllowThreads();
17347 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17348 wxPyEndAllowThreads(__tstate);
17349 if (PyErr_Occurred()) SWIG_fail;
17350 }
17351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17352 {
17353 if (temp3)
17354 delete arg3;
17355 }
17356 {
17357 if (temp8)
17358 delete arg8;
17359 }
17360 return resultobj;
17361 fail:
17362 {
17363 if (temp3)
17364 delete arg3;
17365 }
17366 {
17367 if (temp8)
17368 delete arg8;
17369 }
17370 return NULL;
17371 }
17372
17373
17374 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17375 PyObject *resultobj = 0;
17376 wxRadioButton *result = 0 ;
17377
17378 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17379 {
17380 if (!wxPyCheckForApp()) SWIG_fail;
17381 PyThreadState* __tstate = wxPyBeginAllowThreads();
17382 result = (wxRadioButton *)new wxRadioButton();
17383 wxPyEndAllowThreads(__tstate);
17384 if (PyErr_Occurred()) SWIG_fail;
17385 }
17386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17387 return resultobj;
17388 fail:
17389 return NULL;
17390 }
17391
17392
17393 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17394 PyObject *resultobj = 0;
17395 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17396 wxWindow *arg2 = (wxWindow *) 0 ;
17397 int arg3 = (int) -1 ;
17398 wxString const &arg4_defvalue = wxPyEmptyString ;
17399 wxString *arg4 = (wxString *) &arg4_defvalue ;
17400 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17401 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17402 wxSize const &arg6_defvalue = wxDefaultSize ;
17403 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17404 long arg7 = (long) 0 ;
17405 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17406 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17407 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17408 wxString *arg9 = (wxString *) &arg9_defvalue ;
17409 bool result;
17410 void *argp1 = 0 ;
17411 int res1 = 0 ;
17412 void *argp2 = 0 ;
17413 int res2 = 0 ;
17414 int val3 ;
17415 int ecode3 = 0 ;
17416 bool temp4 = false ;
17417 wxPoint temp5 ;
17418 wxSize temp6 ;
17419 long val7 ;
17420 int ecode7 = 0 ;
17421 void *argp8 = 0 ;
17422 int res8 = 0 ;
17423 bool temp9 = false ;
17424 PyObject * obj0 = 0 ;
17425 PyObject * obj1 = 0 ;
17426 PyObject * obj2 = 0 ;
17427 PyObject * obj3 = 0 ;
17428 PyObject * obj4 = 0 ;
17429 PyObject * obj5 = 0 ;
17430 PyObject * obj6 = 0 ;
17431 PyObject * obj7 = 0 ;
17432 PyObject * obj8 = 0 ;
17433 char * kwnames[] = {
17434 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17435 };
17436
17437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17439 if (!SWIG_IsOK(res1)) {
17440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17441 }
17442 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17443 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17444 if (!SWIG_IsOK(res2)) {
17445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17446 }
17447 arg2 = reinterpret_cast< wxWindow * >(argp2);
17448 if (obj2) {
17449 ecode3 = SWIG_AsVal_int(obj2, &val3);
17450 if (!SWIG_IsOK(ecode3)) {
17451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17452 }
17453 arg3 = static_cast< int >(val3);
17454 }
17455 if (obj3) {
17456 {
17457 arg4 = wxString_in_helper(obj3);
17458 if (arg4 == NULL) SWIG_fail;
17459 temp4 = true;
17460 }
17461 }
17462 if (obj4) {
17463 {
17464 arg5 = &temp5;
17465 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17466 }
17467 }
17468 if (obj5) {
17469 {
17470 arg6 = &temp6;
17471 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17472 }
17473 }
17474 if (obj6) {
17475 ecode7 = SWIG_AsVal_long(obj6, &val7);
17476 if (!SWIG_IsOK(ecode7)) {
17477 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17478 }
17479 arg7 = static_cast< long >(val7);
17480 }
17481 if (obj7) {
17482 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17483 if (!SWIG_IsOK(res8)) {
17484 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17485 }
17486 if (!argp8) {
17487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17488 }
17489 arg8 = reinterpret_cast< wxValidator * >(argp8);
17490 }
17491 if (obj8) {
17492 {
17493 arg9 = wxString_in_helper(obj8);
17494 if (arg9 == NULL) SWIG_fail;
17495 temp9 = true;
17496 }
17497 }
17498 {
17499 PyThreadState* __tstate = wxPyBeginAllowThreads();
17500 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17501 wxPyEndAllowThreads(__tstate);
17502 if (PyErr_Occurred()) SWIG_fail;
17503 }
17504 {
17505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17506 }
17507 {
17508 if (temp4)
17509 delete arg4;
17510 }
17511 {
17512 if (temp9)
17513 delete arg9;
17514 }
17515 return resultobj;
17516 fail:
17517 {
17518 if (temp4)
17519 delete arg4;
17520 }
17521 {
17522 if (temp9)
17523 delete arg9;
17524 }
17525 return NULL;
17526 }
17527
17528
17529 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17530 PyObject *resultobj = 0;
17531 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17532 bool result;
17533 void *argp1 = 0 ;
17534 int res1 = 0 ;
17535 PyObject *swig_obj[1] ;
17536
17537 if (!args) SWIG_fail;
17538 swig_obj[0] = args;
17539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17540 if (!SWIG_IsOK(res1)) {
17541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17542 }
17543 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17544 {
17545 PyThreadState* __tstate = wxPyBeginAllowThreads();
17546 result = (bool)(arg1)->GetValue();
17547 wxPyEndAllowThreads(__tstate);
17548 if (PyErr_Occurred()) SWIG_fail;
17549 }
17550 {
17551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17552 }
17553 return resultobj;
17554 fail:
17555 return NULL;
17556 }
17557
17558
17559 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17560 PyObject *resultobj = 0;
17561 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17562 bool arg2 ;
17563 void *argp1 = 0 ;
17564 int res1 = 0 ;
17565 bool val2 ;
17566 int ecode2 = 0 ;
17567 PyObject * obj0 = 0 ;
17568 PyObject * obj1 = 0 ;
17569 char * kwnames[] = {
17570 (char *) "self",(char *) "value", NULL
17571 };
17572
17573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17575 if (!SWIG_IsOK(res1)) {
17576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17577 }
17578 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17579 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17580 if (!SWIG_IsOK(ecode2)) {
17581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17582 }
17583 arg2 = static_cast< bool >(val2);
17584 {
17585 PyThreadState* __tstate = wxPyBeginAllowThreads();
17586 (arg1)->SetValue(arg2);
17587 wxPyEndAllowThreads(__tstate);
17588 if (PyErr_Occurred()) SWIG_fail;
17589 }
17590 resultobj = SWIG_Py_Void();
17591 return resultobj;
17592 fail:
17593 return NULL;
17594 }
17595
17596
17597 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17598 PyObject *resultobj = 0;
17599 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17600 SwigValueWrapper<wxVisualAttributes > result;
17601 int val1 ;
17602 int ecode1 = 0 ;
17603 PyObject * obj0 = 0 ;
17604 char * kwnames[] = {
17605 (char *) "variant", NULL
17606 };
17607
17608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17609 if (obj0) {
17610 ecode1 = SWIG_AsVal_int(obj0, &val1);
17611 if (!SWIG_IsOK(ecode1)) {
17612 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17613 }
17614 arg1 = static_cast< wxWindowVariant >(val1);
17615 }
17616 {
17617 if (!wxPyCheckForApp()) SWIG_fail;
17618 PyThreadState* __tstate = wxPyBeginAllowThreads();
17619 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17620 wxPyEndAllowThreads(__tstate);
17621 if (PyErr_Occurred()) SWIG_fail;
17622 }
17623 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17624 return resultobj;
17625 fail:
17626 return NULL;
17627 }
17628
17629
17630 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17631 PyObject *obj;
17632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17633 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17634 return SWIG_Py_Void();
17635 }
17636
17637 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17638 return SWIG_Python_InitShadowInstance(args);
17639 }
17640
17641 SWIGINTERN int SliderNameStr_set(PyObject *) {
17642 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17643 return 1;
17644 }
17645
17646
17647 SWIGINTERN PyObject *SliderNameStr_get(void) {
17648 PyObject *pyobj = 0;
17649
17650 {
17651 #if wxUSE_UNICODE
17652 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17653 #else
17654 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17655 #endif
17656 }
17657 return pyobj;
17658 }
17659
17660
17661 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17662 PyObject *resultobj = 0;
17663 wxWindow *arg1 = (wxWindow *) 0 ;
17664 int arg2 = (int) -1 ;
17665 int arg3 = (int) 0 ;
17666 int arg4 = (int) 0 ;
17667 int arg5 = (int) 100 ;
17668 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17669 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17670 wxSize const &arg7_defvalue = wxDefaultSize ;
17671 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17672 long arg8 = (long) wxSL_HORIZONTAL ;
17673 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17674 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17675 wxString const &arg10_defvalue = wxPySliderNameStr ;
17676 wxString *arg10 = (wxString *) &arg10_defvalue ;
17677 wxSlider *result = 0 ;
17678 void *argp1 = 0 ;
17679 int res1 = 0 ;
17680 int val2 ;
17681 int ecode2 = 0 ;
17682 int val3 ;
17683 int ecode3 = 0 ;
17684 int val4 ;
17685 int ecode4 = 0 ;
17686 int val5 ;
17687 int ecode5 = 0 ;
17688 wxPoint temp6 ;
17689 wxSize temp7 ;
17690 long val8 ;
17691 int ecode8 = 0 ;
17692 void *argp9 = 0 ;
17693 int res9 = 0 ;
17694 bool temp10 = false ;
17695 PyObject * obj0 = 0 ;
17696 PyObject * obj1 = 0 ;
17697 PyObject * obj2 = 0 ;
17698 PyObject * obj3 = 0 ;
17699 PyObject * obj4 = 0 ;
17700 PyObject * obj5 = 0 ;
17701 PyObject * obj6 = 0 ;
17702 PyObject * obj7 = 0 ;
17703 PyObject * obj8 = 0 ;
17704 PyObject * obj9 = 0 ;
17705 char * kwnames[] = {
17706 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17707 };
17708
17709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17711 if (!SWIG_IsOK(res1)) {
17712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17713 }
17714 arg1 = reinterpret_cast< wxWindow * >(argp1);
17715 if (obj1) {
17716 ecode2 = SWIG_AsVal_int(obj1, &val2);
17717 if (!SWIG_IsOK(ecode2)) {
17718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17719 }
17720 arg2 = static_cast< int >(val2);
17721 }
17722 if (obj2) {
17723 ecode3 = SWIG_AsVal_int(obj2, &val3);
17724 if (!SWIG_IsOK(ecode3)) {
17725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17726 }
17727 arg3 = static_cast< int >(val3);
17728 }
17729 if (obj3) {
17730 ecode4 = SWIG_AsVal_int(obj3, &val4);
17731 if (!SWIG_IsOK(ecode4)) {
17732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17733 }
17734 arg4 = static_cast< int >(val4);
17735 }
17736 if (obj4) {
17737 ecode5 = SWIG_AsVal_int(obj4, &val5);
17738 if (!SWIG_IsOK(ecode5)) {
17739 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17740 }
17741 arg5 = static_cast< int >(val5);
17742 }
17743 if (obj5) {
17744 {
17745 arg6 = &temp6;
17746 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17747 }
17748 }
17749 if (obj6) {
17750 {
17751 arg7 = &temp7;
17752 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17753 }
17754 }
17755 if (obj7) {
17756 ecode8 = SWIG_AsVal_long(obj7, &val8);
17757 if (!SWIG_IsOK(ecode8)) {
17758 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17759 }
17760 arg8 = static_cast< long >(val8);
17761 }
17762 if (obj8) {
17763 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17764 if (!SWIG_IsOK(res9)) {
17765 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17766 }
17767 if (!argp9) {
17768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17769 }
17770 arg9 = reinterpret_cast< wxValidator * >(argp9);
17771 }
17772 if (obj9) {
17773 {
17774 arg10 = wxString_in_helper(obj9);
17775 if (arg10 == NULL) SWIG_fail;
17776 temp10 = true;
17777 }
17778 }
17779 {
17780 if (!wxPyCheckForApp()) SWIG_fail;
17781 PyThreadState* __tstate = wxPyBeginAllowThreads();
17782 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17783 wxPyEndAllowThreads(__tstate);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17787 {
17788 if (temp10)
17789 delete arg10;
17790 }
17791 return resultobj;
17792 fail:
17793 {
17794 if (temp10)
17795 delete arg10;
17796 }
17797 return NULL;
17798 }
17799
17800
17801 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17802 PyObject *resultobj = 0;
17803 wxSlider *result = 0 ;
17804
17805 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17806 {
17807 if (!wxPyCheckForApp()) SWIG_fail;
17808 PyThreadState* __tstate = wxPyBeginAllowThreads();
17809 result = (wxSlider *)new wxSlider();
17810 wxPyEndAllowThreads(__tstate);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 }
17813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17814 return resultobj;
17815 fail:
17816 return NULL;
17817 }
17818
17819
17820 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17821 PyObject *resultobj = 0;
17822 wxSlider *arg1 = (wxSlider *) 0 ;
17823 wxWindow *arg2 = (wxWindow *) 0 ;
17824 int arg3 = (int) -1 ;
17825 int arg4 = (int) 0 ;
17826 int arg5 = (int) 0 ;
17827 int arg6 = (int) 100 ;
17828 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17829 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17830 wxSize const &arg8_defvalue = wxDefaultSize ;
17831 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17832 long arg9 = (long) wxSL_HORIZONTAL ;
17833 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17834 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17835 wxString const &arg11_defvalue = wxPySliderNameStr ;
17836 wxString *arg11 = (wxString *) &arg11_defvalue ;
17837 bool result;
17838 void *argp1 = 0 ;
17839 int res1 = 0 ;
17840 void *argp2 = 0 ;
17841 int res2 = 0 ;
17842 int val3 ;
17843 int ecode3 = 0 ;
17844 int val4 ;
17845 int ecode4 = 0 ;
17846 int val5 ;
17847 int ecode5 = 0 ;
17848 int val6 ;
17849 int ecode6 = 0 ;
17850 wxPoint temp7 ;
17851 wxSize temp8 ;
17852 long val9 ;
17853 int ecode9 = 0 ;
17854 void *argp10 = 0 ;
17855 int res10 = 0 ;
17856 bool temp11 = false ;
17857 PyObject * obj0 = 0 ;
17858 PyObject * obj1 = 0 ;
17859 PyObject * obj2 = 0 ;
17860 PyObject * obj3 = 0 ;
17861 PyObject * obj4 = 0 ;
17862 PyObject * obj5 = 0 ;
17863 PyObject * obj6 = 0 ;
17864 PyObject * obj7 = 0 ;
17865 PyObject * obj8 = 0 ;
17866 PyObject * obj9 = 0 ;
17867 PyObject * obj10 = 0 ;
17868 char * kwnames[] = {
17869 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17870 };
17871
17872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17874 if (!SWIG_IsOK(res1)) {
17875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17876 }
17877 arg1 = reinterpret_cast< wxSlider * >(argp1);
17878 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17879 if (!SWIG_IsOK(res2)) {
17880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17881 }
17882 arg2 = reinterpret_cast< wxWindow * >(argp2);
17883 if (obj2) {
17884 ecode3 = SWIG_AsVal_int(obj2, &val3);
17885 if (!SWIG_IsOK(ecode3)) {
17886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17887 }
17888 arg3 = static_cast< int >(val3);
17889 }
17890 if (obj3) {
17891 ecode4 = SWIG_AsVal_int(obj3, &val4);
17892 if (!SWIG_IsOK(ecode4)) {
17893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17894 }
17895 arg4 = static_cast< int >(val4);
17896 }
17897 if (obj4) {
17898 ecode5 = SWIG_AsVal_int(obj4, &val5);
17899 if (!SWIG_IsOK(ecode5)) {
17900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17901 }
17902 arg5 = static_cast< int >(val5);
17903 }
17904 if (obj5) {
17905 ecode6 = SWIG_AsVal_int(obj5, &val6);
17906 if (!SWIG_IsOK(ecode6)) {
17907 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17908 }
17909 arg6 = static_cast< int >(val6);
17910 }
17911 if (obj6) {
17912 {
17913 arg7 = &temp7;
17914 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17915 }
17916 }
17917 if (obj7) {
17918 {
17919 arg8 = &temp8;
17920 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17921 }
17922 }
17923 if (obj8) {
17924 ecode9 = SWIG_AsVal_long(obj8, &val9);
17925 if (!SWIG_IsOK(ecode9)) {
17926 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17927 }
17928 arg9 = static_cast< long >(val9);
17929 }
17930 if (obj9) {
17931 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17932 if (!SWIG_IsOK(res10)) {
17933 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17934 }
17935 if (!argp10) {
17936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17937 }
17938 arg10 = reinterpret_cast< wxValidator * >(argp10);
17939 }
17940 if (obj10) {
17941 {
17942 arg11 = wxString_in_helper(obj10);
17943 if (arg11 == NULL) SWIG_fail;
17944 temp11 = true;
17945 }
17946 }
17947 {
17948 PyThreadState* __tstate = wxPyBeginAllowThreads();
17949 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17950 wxPyEndAllowThreads(__tstate);
17951 if (PyErr_Occurred()) SWIG_fail;
17952 }
17953 {
17954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17955 }
17956 {
17957 if (temp11)
17958 delete arg11;
17959 }
17960 return resultobj;
17961 fail:
17962 {
17963 if (temp11)
17964 delete arg11;
17965 }
17966 return NULL;
17967 }
17968
17969
17970 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17971 PyObject *resultobj = 0;
17972 wxSlider *arg1 = (wxSlider *) 0 ;
17973 int result;
17974 void *argp1 = 0 ;
17975 int res1 = 0 ;
17976 PyObject *swig_obj[1] ;
17977
17978 if (!args) SWIG_fail;
17979 swig_obj[0] = args;
17980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17981 if (!SWIG_IsOK(res1)) {
17982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17983 }
17984 arg1 = reinterpret_cast< wxSlider * >(argp1);
17985 {
17986 PyThreadState* __tstate = wxPyBeginAllowThreads();
17987 result = (int)((wxSlider const *)arg1)->GetValue();
17988 wxPyEndAllowThreads(__tstate);
17989 if (PyErr_Occurred()) SWIG_fail;
17990 }
17991 resultobj = SWIG_From_int(static_cast< int >(result));
17992 return resultobj;
17993 fail:
17994 return NULL;
17995 }
17996
17997
17998 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17999 PyObject *resultobj = 0;
18000 wxSlider *arg1 = (wxSlider *) 0 ;
18001 int arg2 ;
18002 void *argp1 = 0 ;
18003 int res1 = 0 ;
18004 int val2 ;
18005 int ecode2 = 0 ;
18006 PyObject * obj0 = 0 ;
18007 PyObject * obj1 = 0 ;
18008 char * kwnames[] = {
18009 (char *) "self",(char *) "value", NULL
18010 };
18011
18012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18014 if (!SWIG_IsOK(res1)) {
18015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18016 }
18017 arg1 = reinterpret_cast< wxSlider * >(argp1);
18018 ecode2 = SWIG_AsVal_int(obj1, &val2);
18019 if (!SWIG_IsOK(ecode2)) {
18020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18021 }
18022 arg2 = static_cast< int >(val2);
18023 {
18024 PyThreadState* __tstate = wxPyBeginAllowThreads();
18025 (arg1)->SetValue(arg2);
18026 wxPyEndAllowThreads(__tstate);
18027 if (PyErr_Occurred()) SWIG_fail;
18028 }
18029 resultobj = SWIG_Py_Void();
18030 return resultobj;
18031 fail:
18032 return NULL;
18033 }
18034
18035
18036 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18037 PyObject *resultobj = 0;
18038 wxSlider *arg1 = (wxSlider *) 0 ;
18039 int arg2 ;
18040 int arg3 ;
18041 void *argp1 = 0 ;
18042 int res1 = 0 ;
18043 int val2 ;
18044 int ecode2 = 0 ;
18045 int val3 ;
18046 int ecode3 = 0 ;
18047 PyObject * obj0 = 0 ;
18048 PyObject * obj1 = 0 ;
18049 PyObject * obj2 = 0 ;
18050 char * kwnames[] = {
18051 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18052 };
18053
18054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18056 if (!SWIG_IsOK(res1)) {
18057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18058 }
18059 arg1 = reinterpret_cast< wxSlider * >(argp1);
18060 ecode2 = SWIG_AsVal_int(obj1, &val2);
18061 if (!SWIG_IsOK(ecode2)) {
18062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18063 }
18064 arg2 = static_cast< int >(val2);
18065 ecode3 = SWIG_AsVal_int(obj2, &val3);
18066 if (!SWIG_IsOK(ecode3)) {
18067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18068 }
18069 arg3 = static_cast< int >(val3);
18070 {
18071 PyThreadState* __tstate = wxPyBeginAllowThreads();
18072 (arg1)->SetRange(arg2,arg3);
18073 wxPyEndAllowThreads(__tstate);
18074 if (PyErr_Occurred()) SWIG_fail;
18075 }
18076 resultobj = SWIG_Py_Void();
18077 return resultobj;
18078 fail:
18079 return NULL;
18080 }
18081
18082
18083 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18084 PyObject *resultobj = 0;
18085 wxSlider *arg1 = (wxSlider *) 0 ;
18086 int result;
18087 void *argp1 = 0 ;
18088 int res1 = 0 ;
18089 PyObject *swig_obj[1] ;
18090
18091 if (!args) SWIG_fail;
18092 swig_obj[0] = args;
18093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18094 if (!SWIG_IsOK(res1)) {
18095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18096 }
18097 arg1 = reinterpret_cast< wxSlider * >(argp1);
18098 {
18099 PyThreadState* __tstate = wxPyBeginAllowThreads();
18100 result = (int)((wxSlider const *)arg1)->GetMin();
18101 wxPyEndAllowThreads(__tstate);
18102 if (PyErr_Occurred()) SWIG_fail;
18103 }
18104 resultobj = SWIG_From_int(static_cast< int >(result));
18105 return resultobj;
18106 fail:
18107 return NULL;
18108 }
18109
18110
18111 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18112 PyObject *resultobj = 0;
18113 wxSlider *arg1 = (wxSlider *) 0 ;
18114 int result;
18115 void *argp1 = 0 ;
18116 int res1 = 0 ;
18117 PyObject *swig_obj[1] ;
18118
18119 if (!args) SWIG_fail;
18120 swig_obj[0] = args;
18121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18122 if (!SWIG_IsOK(res1)) {
18123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18124 }
18125 arg1 = reinterpret_cast< wxSlider * >(argp1);
18126 {
18127 PyThreadState* __tstate = wxPyBeginAllowThreads();
18128 result = (int)((wxSlider const *)arg1)->GetMax();
18129 wxPyEndAllowThreads(__tstate);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 }
18132 resultobj = SWIG_From_int(static_cast< int >(result));
18133 return resultobj;
18134 fail:
18135 return NULL;
18136 }
18137
18138
18139 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18140 PyObject *resultobj = 0;
18141 wxSlider *arg1 = (wxSlider *) 0 ;
18142 int arg2 ;
18143 void *argp1 = 0 ;
18144 int res1 = 0 ;
18145 int val2 ;
18146 int ecode2 = 0 ;
18147 PyObject * obj0 = 0 ;
18148 PyObject * obj1 = 0 ;
18149 char * kwnames[] = {
18150 (char *) "self",(char *) "minValue", NULL
18151 };
18152
18153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18155 if (!SWIG_IsOK(res1)) {
18156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18157 }
18158 arg1 = reinterpret_cast< wxSlider * >(argp1);
18159 ecode2 = SWIG_AsVal_int(obj1, &val2);
18160 if (!SWIG_IsOK(ecode2)) {
18161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18162 }
18163 arg2 = static_cast< int >(val2);
18164 {
18165 PyThreadState* __tstate = wxPyBeginAllowThreads();
18166 (arg1)->SetMin(arg2);
18167 wxPyEndAllowThreads(__tstate);
18168 if (PyErr_Occurred()) SWIG_fail;
18169 }
18170 resultobj = SWIG_Py_Void();
18171 return resultobj;
18172 fail:
18173 return NULL;
18174 }
18175
18176
18177 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18178 PyObject *resultobj = 0;
18179 wxSlider *arg1 = (wxSlider *) 0 ;
18180 int arg2 ;
18181 void *argp1 = 0 ;
18182 int res1 = 0 ;
18183 int val2 ;
18184 int ecode2 = 0 ;
18185 PyObject * obj0 = 0 ;
18186 PyObject * obj1 = 0 ;
18187 char * kwnames[] = {
18188 (char *) "self",(char *) "maxValue", NULL
18189 };
18190
18191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18193 if (!SWIG_IsOK(res1)) {
18194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18195 }
18196 arg1 = reinterpret_cast< wxSlider * >(argp1);
18197 ecode2 = SWIG_AsVal_int(obj1, &val2);
18198 if (!SWIG_IsOK(ecode2)) {
18199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18200 }
18201 arg2 = static_cast< int >(val2);
18202 {
18203 PyThreadState* __tstate = wxPyBeginAllowThreads();
18204 (arg1)->SetMax(arg2);
18205 wxPyEndAllowThreads(__tstate);
18206 if (PyErr_Occurred()) SWIG_fail;
18207 }
18208 resultobj = SWIG_Py_Void();
18209 return resultobj;
18210 fail:
18211 return NULL;
18212 }
18213
18214
18215 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18216 PyObject *resultobj = 0;
18217 wxSlider *arg1 = (wxSlider *) 0 ;
18218 int arg2 ;
18219 void *argp1 = 0 ;
18220 int res1 = 0 ;
18221 int val2 ;
18222 int ecode2 = 0 ;
18223 PyObject * obj0 = 0 ;
18224 PyObject * obj1 = 0 ;
18225 char * kwnames[] = {
18226 (char *) "self",(char *) "lineSize", NULL
18227 };
18228
18229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18231 if (!SWIG_IsOK(res1)) {
18232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18233 }
18234 arg1 = reinterpret_cast< wxSlider * >(argp1);
18235 ecode2 = SWIG_AsVal_int(obj1, &val2);
18236 if (!SWIG_IsOK(ecode2)) {
18237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18238 }
18239 arg2 = static_cast< int >(val2);
18240 {
18241 PyThreadState* __tstate = wxPyBeginAllowThreads();
18242 (arg1)->SetLineSize(arg2);
18243 wxPyEndAllowThreads(__tstate);
18244 if (PyErr_Occurred()) SWIG_fail;
18245 }
18246 resultobj = SWIG_Py_Void();
18247 return resultobj;
18248 fail:
18249 return NULL;
18250 }
18251
18252
18253 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18254 PyObject *resultobj = 0;
18255 wxSlider *arg1 = (wxSlider *) 0 ;
18256 int arg2 ;
18257 void *argp1 = 0 ;
18258 int res1 = 0 ;
18259 int val2 ;
18260 int ecode2 = 0 ;
18261 PyObject * obj0 = 0 ;
18262 PyObject * obj1 = 0 ;
18263 char * kwnames[] = {
18264 (char *) "self",(char *) "pageSize", NULL
18265 };
18266
18267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18269 if (!SWIG_IsOK(res1)) {
18270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18271 }
18272 arg1 = reinterpret_cast< wxSlider * >(argp1);
18273 ecode2 = SWIG_AsVal_int(obj1, &val2);
18274 if (!SWIG_IsOK(ecode2)) {
18275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18276 }
18277 arg2 = static_cast< int >(val2);
18278 {
18279 PyThreadState* __tstate = wxPyBeginAllowThreads();
18280 (arg1)->SetPageSize(arg2);
18281 wxPyEndAllowThreads(__tstate);
18282 if (PyErr_Occurred()) SWIG_fail;
18283 }
18284 resultobj = SWIG_Py_Void();
18285 return resultobj;
18286 fail:
18287 return NULL;
18288 }
18289
18290
18291 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18292 PyObject *resultobj = 0;
18293 wxSlider *arg1 = (wxSlider *) 0 ;
18294 int result;
18295 void *argp1 = 0 ;
18296 int res1 = 0 ;
18297 PyObject *swig_obj[1] ;
18298
18299 if (!args) SWIG_fail;
18300 swig_obj[0] = args;
18301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18302 if (!SWIG_IsOK(res1)) {
18303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18304 }
18305 arg1 = reinterpret_cast< wxSlider * >(argp1);
18306 {
18307 PyThreadState* __tstate = wxPyBeginAllowThreads();
18308 result = (int)((wxSlider const *)arg1)->GetLineSize();
18309 wxPyEndAllowThreads(__tstate);
18310 if (PyErr_Occurred()) SWIG_fail;
18311 }
18312 resultobj = SWIG_From_int(static_cast< int >(result));
18313 return resultobj;
18314 fail:
18315 return NULL;
18316 }
18317
18318
18319 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18320 PyObject *resultobj = 0;
18321 wxSlider *arg1 = (wxSlider *) 0 ;
18322 int result;
18323 void *argp1 = 0 ;
18324 int res1 = 0 ;
18325 PyObject *swig_obj[1] ;
18326
18327 if (!args) SWIG_fail;
18328 swig_obj[0] = args;
18329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18330 if (!SWIG_IsOK(res1)) {
18331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18332 }
18333 arg1 = reinterpret_cast< wxSlider * >(argp1);
18334 {
18335 PyThreadState* __tstate = wxPyBeginAllowThreads();
18336 result = (int)((wxSlider const *)arg1)->GetPageSize();
18337 wxPyEndAllowThreads(__tstate);
18338 if (PyErr_Occurred()) SWIG_fail;
18339 }
18340 resultobj = SWIG_From_int(static_cast< int >(result));
18341 return resultobj;
18342 fail:
18343 return NULL;
18344 }
18345
18346
18347 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18348 PyObject *resultobj = 0;
18349 wxSlider *arg1 = (wxSlider *) 0 ;
18350 int arg2 ;
18351 void *argp1 = 0 ;
18352 int res1 = 0 ;
18353 int val2 ;
18354 int ecode2 = 0 ;
18355 PyObject * obj0 = 0 ;
18356 PyObject * obj1 = 0 ;
18357 char * kwnames[] = {
18358 (char *) "self",(char *) "lenPixels", NULL
18359 };
18360
18361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18363 if (!SWIG_IsOK(res1)) {
18364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18365 }
18366 arg1 = reinterpret_cast< wxSlider * >(argp1);
18367 ecode2 = SWIG_AsVal_int(obj1, &val2);
18368 if (!SWIG_IsOK(ecode2)) {
18369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18370 }
18371 arg2 = static_cast< int >(val2);
18372 {
18373 PyThreadState* __tstate = wxPyBeginAllowThreads();
18374 (arg1)->SetThumbLength(arg2);
18375 wxPyEndAllowThreads(__tstate);
18376 if (PyErr_Occurred()) SWIG_fail;
18377 }
18378 resultobj = SWIG_Py_Void();
18379 return resultobj;
18380 fail:
18381 return NULL;
18382 }
18383
18384
18385 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18386 PyObject *resultobj = 0;
18387 wxSlider *arg1 = (wxSlider *) 0 ;
18388 int result;
18389 void *argp1 = 0 ;
18390 int res1 = 0 ;
18391 PyObject *swig_obj[1] ;
18392
18393 if (!args) SWIG_fail;
18394 swig_obj[0] = args;
18395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18396 if (!SWIG_IsOK(res1)) {
18397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18398 }
18399 arg1 = reinterpret_cast< wxSlider * >(argp1);
18400 {
18401 PyThreadState* __tstate = wxPyBeginAllowThreads();
18402 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18403 wxPyEndAllowThreads(__tstate);
18404 if (PyErr_Occurred()) SWIG_fail;
18405 }
18406 resultobj = SWIG_From_int(static_cast< int >(result));
18407 return resultobj;
18408 fail:
18409 return NULL;
18410 }
18411
18412
18413 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18414 PyObject *resultobj = 0;
18415 wxSlider *arg1 = (wxSlider *) 0 ;
18416 int arg2 ;
18417 int arg3 = (int) 1 ;
18418 void *argp1 = 0 ;
18419 int res1 = 0 ;
18420 int val2 ;
18421 int ecode2 = 0 ;
18422 int val3 ;
18423 int ecode3 = 0 ;
18424 PyObject * obj0 = 0 ;
18425 PyObject * obj1 = 0 ;
18426 PyObject * obj2 = 0 ;
18427 char * kwnames[] = {
18428 (char *) "self",(char *) "n",(char *) "pos", NULL
18429 };
18430
18431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18433 if (!SWIG_IsOK(res1)) {
18434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18435 }
18436 arg1 = reinterpret_cast< wxSlider * >(argp1);
18437 ecode2 = SWIG_AsVal_int(obj1, &val2);
18438 if (!SWIG_IsOK(ecode2)) {
18439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18440 }
18441 arg2 = static_cast< int >(val2);
18442 if (obj2) {
18443 ecode3 = SWIG_AsVal_int(obj2, &val3);
18444 if (!SWIG_IsOK(ecode3)) {
18445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18446 }
18447 arg3 = static_cast< int >(val3);
18448 }
18449 {
18450 PyThreadState* __tstate = wxPyBeginAllowThreads();
18451 (arg1)->SetTickFreq(arg2,arg3);
18452 wxPyEndAllowThreads(__tstate);
18453 if (PyErr_Occurred()) SWIG_fail;
18454 }
18455 resultobj = SWIG_Py_Void();
18456 return resultobj;
18457 fail:
18458 return NULL;
18459 }
18460
18461
18462 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18463 PyObject *resultobj = 0;
18464 wxSlider *arg1 = (wxSlider *) 0 ;
18465 int result;
18466 void *argp1 = 0 ;
18467 int res1 = 0 ;
18468 PyObject *swig_obj[1] ;
18469
18470 if (!args) SWIG_fail;
18471 swig_obj[0] = args;
18472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18473 if (!SWIG_IsOK(res1)) {
18474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18475 }
18476 arg1 = reinterpret_cast< wxSlider * >(argp1);
18477 {
18478 PyThreadState* __tstate = wxPyBeginAllowThreads();
18479 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18480 wxPyEndAllowThreads(__tstate);
18481 if (PyErr_Occurred()) SWIG_fail;
18482 }
18483 resultobj = SWIG_From_int(static_cast< int >(result));
18484 return resultobj;
18485 fail:
18486 return NULL;
18487 }
18488
18489
18490 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18491 PyObject *resultobj = 0;
18492 wxSlider *arg1 = (wxSlider *) 0 ;
18493 void *argp1 = 0 ;
18494 int res1 = 0 ;
18495 PyObject *swig_obj[1] ;
18496
18497 if (!args) SWIG_fail;
18498 swig_obj[0] = args;
18499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18500 if (!SWIG_IsOK(res1)) {
18501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18502 }
18503 arg1 = reinterpret_cast< wxSlider * >(argp1);
18504 {
18505 PyThreadState* __tstate = wxPyBeginAllowThreads();
18506 (arg1)->ClearTicks();
18507 wxPyEndAllowThreads(__tstate);
18508 if (PyErr_Occurred()) SWIG_fail;
18509 }
18510 resultobj = SWIG_Py_Void();
18511 return resultobj;
18512 fail:
18513 return NULL;
18514 }
18515
18516
18517 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18518 PyObject *resultobj = 0;
18519 wxSlider *arg1 = (wxSlider *) 0 ;
18520 int arg2 ;
18521 void *argp1 = 0 ;
18522 int res1 = 0 ;
18523 int val2 ;
18524 int ecode2 = 0 ;
18525 PyObject * obj0 = 0 ;
18526 PyObject * obj1 = 0 ;
18527 char * kwnames[] = {
18528 (char *) "self",(char *) "tickPos", NULL
18529 };
18530
18531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18533 if (!SWIG_IsOK(res1)) {
18534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18535 }
18536 arg1 = reinterpret_cast< wxSlider * >(argp1);
18537 ecode2 = SWIG_AsVal_int(obj1, &val2);
18538 if (!SWIG_IsOK(ecode2)) {
18539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18540 }
18541 arg2 = static_cast< int >(val2);
18542 {
18543 PyThreadState* __tstate = wxPyBeginAllowThreads();
18544 (arg1)->SetTick(arg2);
18545 wxPyEndAllowThreads(__tstate);
18546 if (PyErr_Occurred()) SWIG_fail;
18547 }
18548 resultobj = SWIG_Py_Void();
18549 return resultobj;
18550 fail:
18551 return NULL;
18552 }
18553
18554
18555 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18556 PyObject *resultobj = 0;
18557 wxSlider *arg1 = (wxSlider *) 0 ;
18558 void *argp1 = 0 ;
18559 int res1 = 0 ;
18560 PyObject *swig_obj[1] ;
18561
18562 if (!args) SWIG_fail;
18563 swig_obj[0] = args;
18564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18565 if (!SWIG_IsOK(res1)) {
18566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18567 }
18568 arg1 = reinterpret_cast< wxSlider * >(argp1);
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 (arg1)->ClearSel();
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 resultobj = SWIG_Py_Void();
18576 return resultobj;
18577 fail:
18578 return NULL;
18579 }
18580
18581
18582 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18583 PyObject *resultobj = 0;
18584 wxSlider *arg1 = (wxSlider *) 0 ;
18585 int result;
18586 void *argp1 = 0 ;
18587 int res1 = 0 ;
18588 PyObject *swig_obj[1] ;
18589
18590 if (!args) SWIG_fail;
18591 swig_obj[0] = args;
18592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18593 if (!SWIG_IsOK(res1)) {
18594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18595 }
18596 arg1 = reinterpret_cast< wxSlider * >(argp1);
18597 {
18598 PyThreadState* __tstate = wxPyBeginAllowThreads();
18599 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18600 wxPyEndAllowThreads(__tstate);
18601 if (PyErr_Occurred()) SWIG_fail;
18602 }
18603 resultobj = SWIG_From_int(static_cast< int >(result));
18604 return resultobj;
18605 fail:
18606 return NULL;
18607 }
18608
18609
18610 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18611 PyObject *resultobj = 0;
18612 wxSlider *arg1 = (wxSlider *) 0 ;
18613 int result;
18614 void *argp1 = 0 ;
18615 int res1 = 0 ;
18616 PyObject *swig_obj[1] ;
18617
18618 if (!args) SWIG_fail;
18619 swig_obj[0] = args;
18620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18621 if (!SWIG_IsOK(res1)) {
18622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18623 }
18624 arg1 = reinterpret_cast< wxSlider * >(argp1);
18625 {
18626 PyThreadState* __tstate = wxPyBeginAllowThreads();
18627 result = (int)((wxSlider const *)arg1)->GetSelStart();
18628 wxPyEndAllowThreads(__tstate);
18629 if (PyErr_Occurred()) SWIG_fail;
18630 }
18631 resultobj = SWIG_From_int(static_cast< int >(result));
18632 return resultobj;
18633 fail:
18634 return NULL;
18635 }
18636
18637
18638 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18639 PyObject *resultobj = 0;
18640 wxSlider *arg1 = (wxSlider *) 0 ;
18641 int arg2 ;
18642 int arg3 ;
18643 void *argp1 = 0 ;
18644 int res1 = 0 ;
18645 int val2 ;
18646 int ecode2 = 0 ;
18647 int val3 ;
18648 int ecode3 = 0 ;
18649 PyObject * obj0 = 0 ;
18650 PyObject * obj1 = 0 ;
18651 PyObject * obj2 = 0 ;
18652 char * kwnames[] = {
18653 (char *) "self",(char *) "min",(char *) "max", NULL
18654 };
18655
18656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18658 if (!SWIG_IsOK(res1)) {
18659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18660 }
18661 arg1 = reinterpret_cast< wxSlider * >(argp1);
18662 ecode2 = SWIG_AsVal_int(obj1, &val2);
18663 if (!SWIG_IsOK(ecode2)) {
18664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18665 }
18666 arg2 = static_cast< int >(val2);
18667 ecode3 = SWIG_AsVal_int(obj2, &val3);
18668 if (!SWIG_IsOK(ecode3)) {
18669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18670 }
18671 arg3 = static_cast< int >(val3);
18672 {
18673 PyThreadState* __tstate = wxPyBeginAllowThreads();
18674 (arg1)->SetSelection(arg2,arg3);
18675 wxPyEndAllowThreads(__tstate);
18676 if (PyErr_Occurred()) SWIG_fail;
18677 }
18678 resultobj = SWIG_Py_Void();
18679 return resultobj;
18680 fail:
18681 return NULL;
18682 }
18683
18684
18685 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18686 PyObject *resultobj = 0;
18687 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18688 SwigValueWrapper<wxVisualAttributes > result;
18689 int val1 ;
18690 int ecode1 = 0 ;
18691 PyObject * obj0 = 0 ;
18692 char * kwnames[] = {
18693 (char *) "variant", NULL
18694 };
18695
18696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18697 if (obj0) {
18698 ecode1 = SWIG_AsVal_int(obj0, &val1);
18699 if (!SWIG_IsOK(ecode1)) {
18700 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18701 }
18702 arg1 = static_cast< wxWindowVariant >(val1);
18703 }
18704 {
18705 if (!wxPyCheckForApp()) SWIG_fail;
18706 PyThreadState* __tstate = wxPyBeginAllowThreads();
18707 result = wxSlider::GetClassDefaultAttributes(arg1);
18708 wxPyEndAllowThreads(__tstate);
18709 if (PyErr_Occurred()) SWIG_fail;
18710 }
18711 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18712 return resultobj;
18713 fail:
18714 return NULL;
18715 }
18716
18717
18718 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18719 PyObject *obj;
18720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18721 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18722 return SWIG_Py_Void();
18723 }
18724
18725 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18726 return SWIG_Python_InitShadowInstance(args);
18727 }
18728
18729 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18730 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18731 return 1;
18732 }
18733
18734
18735 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18736 PyObject *pyobj = 0;
18737
18738 {
18739 #if wxUSE_UNICODE
18740 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18741 #else
18742 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18743 #endif
18744 }
18745 return pyobj;
18746 }
18747
18748
18749 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18750 PyObject *resultobj = 0;
18751 wxWindow *arg1 = (wxWindow *) 0 ;
18752 int arg2 = (int) -1 ;
18753 wxString const &arg3_defvalue = wxPyEmptyString ;
18754 wxString *arg3 = (wxString *) &arg3_defvalue ;
18755 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18756 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18757 wxSize const &arg5_defvalue = wxDefaultSize ;
18758 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18759 long arg6 = (long) 0 ;
18760 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18761 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18762 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18763 wxString *arg8 = (wxString *) &arg8_defvalue ;
18764 wxToggleButton *result = 0 ;
18765 void *argp1 = 0 ;
18766 int res1 = 0 ;
18767 int val2 ;
18768 int ecode2 = 0 ;
18769 bool temp3 = false ;
18770 wxPoint temp4 ;
18771 wxSize temp5 ;
18772 long val6 ;
18773 int ecode6 = 0 ;
18774 void *argp7 = 0 ;
18775 int res7 = 0 ;
18776 bool temp8 = false ;
18777 PyObject * obj0 = 0 ;
18778 PyObject * obj1 = 0 ;
18779 PyObject * obj2 = 0 ;
18780 PyObject * obj3 = 0 ;
18781 PyObject * obj4 = 0 ;
18782 PyObject * obj5 = 0 ;
18783 PyObject * obj6 = 0 ;
18784 PyObject * obj7 = 0 ;
18785 char * kwnames[] = {
18786 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18787 };
18788
18789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18791 if (!SWIG_IsOK(res1)) {
18792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18793 }
18794 arg1 = reinterpret_cast< wxWindow * >(argp1);
18795 if (obj1) {
18796 ecode2 = SWIG_AsVal_int(obj1, &val2);
18797 if (!SWIG_IsOK(ecode2)) {
18798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18799 }
18800 arg2 = static_cast< int >(val2);
18801 }
18802 if (obj2) {
18803 {
18804 arg3 = wxString_in_helper(obj2);
18805 if (arg3 == NULL) SWIG_fail;
18806 temp3 = true;
18807 }
18808 }
18809 if (obj3) {
18810 {
18811 arg4 = &temp4;
18812 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18813 }
18814 }
18815 if (obj4) {
18816 {
18817 arg5 = &temp5;
18818 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18819 }
18820 }
18821 if (obj5) {
18822 ecode6 = SWIG_AsVal_long(obj5, &val6);
18823 if (!SWIG_IsOK(ecode6)) {
18824 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18825 }
18826 arg6 = static_cast< long >(val6);
18827 }
18828 if (obj6) {
18829 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18830 if (!SWIG_IsOK(res7)) {
18831 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18832 }
18833 if (!argp7) {
18834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18835 }
18836 arg7 = reinterpret_cast< wxValidator * >(argp7);
18837 }
18838 if (obj7) {
18839 {
18840 arg8 = wxString_in_helper(obj7);
18841 if (arg8 == NULL) SWIG_fail;
18842 temp8 = true;
18843 }
18844 }
18845 {
18846 if (!wxPyCheckForApp()) SWIG_fail;
18847 PyThreadState* __tstate = wxPyBeginAllowThreads();
18848 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18849 wxPyEndAllowThreads(__tstate);
18850 if (PyErr_Occurred()) SWIG_fail;
18851 }
18852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18853 {
18854 if (temp3)
18855 delete arg3;
18856 }
18857 {
18858 if (temp8)
18859 delete arg8;
18860 }
18861 return resultobj;
18862 fail:
18863 {
18864 if (temp3)
18865 delete arg3;
18866 }
18867 {
18868 if (temp8)
18869 delete arg8;
18870 }
18871 return NULL;
18872 }
18873
18874
18875 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18876 PyObject *resultobj = 0;
18877 wxToggleButton *result = 0 ;
18878
18879 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18880 {
18881 if (!wxPyCheckForApp()) SWIG_fail;
18882 PyThreadState* __tstate = wxPyBeginAllowThreads();
18883 result = (wxToggleButton *)new wxToggleButton();
18884 wxPyEndAllowThreads(__tstate);
18885 if (PyErr_Occurred()) SWIG_fail;
18886 }
18887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18888 return resultobj;
18889 fail:
18890 return NULL;
18891 }
18892
18893
18894 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18895 PyObject *resultobj = 0;
18896 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18897 wxWindow *arg2 = (wxWindow *) 0 ;
18898 int arg3 = (int) -1 ;
18899 wxString const &arg4_defvalue = wxPyEmptyString ;
18900 wxString *arg4 = (wxString *) &arg4_defvalue ;
18901 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18902 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18903 wxSize const &arg6_defvalue = wxDefaultSize ;
18904 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18905 long arg7 = (long) 0 ;
18906 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18907 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18908 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18909 wxString *arg9 = (wxString *) &arg9_defvalue ;
18910 bool result;
18911 void *argp1 = 0 ;
18912 int res1 = 0 ;
18913 void *argp2 = 0 ;
18914 int res2 = 0 ;
18915 int val3 ;
18916 int ecode3 = 0 ;
18917 bool temp4 = false ;
18918 wxPoint temp5 ;
18919 wxSize temp6 ;
18920 long val7 ;
18921 int ecode7 = 0 ;
18922 void *argp8 = 0 ;
18923 int res8 = 0 ;
18924 bool temp9 = false ;
18925 PyObject * obj0 = 0 ;
18926 PyObject * obj1 = 0 ;
18927 PyObject * obj2 = 0 ;
18928 PyObject * obj3 = 0 ;
18929 PyObject * obj4 = 0 ;
18930 PyObject * obj5 = 0 ;
18931 PyObject * obj6 = 0 ;
18932 PyObject * obj7 = 0 ;
18933 PyObject * obj8 = 0 ;
18934 char * kwnames[] = {
18935 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18936 };
18937
18938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18940 if (!SWIG_IsOK(res1)) {
18941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18942 }
18943 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18944 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18945 if (!SWIG_IsOK(res2)) {
18946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18947 }
18948 arg2 = reinterpret_cast< wxWindow * >(argp2);
18949 if (obj2) {
18950 ecode3 = SWIG_AsVal_int(obj2, &val3);
18951 if (!SWIG_IsOK(ecode3)) {
18952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18953 }
18954 arg3 = static_cast< int >(val3);
18955 }
18956 if (obj3) {
18957 {
18958 arg4 = wxString_in_helper(obj3);
18959 if (arg4 == NULL) SWIG_fail;
18960 temp4 = true;
18961 }
18962 }
18963 if (obj4) {
18964 {
18965 arg5 = &temp5;
18966 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18967 }
18968 }
18969 if (obj5) {
18970 {
18971 arg6 = &temp6;
18972 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18973 }
18974 }
18975 if (obj6) {
18976 ecode7 = SWIG_AsVal_long(obj6, &val7);
18977 if (!SWIG_IsOK(ecode7)) {
18978 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18979 }
18980 arg7 = static_cast< long >(val7);
18981 }
18982 if (obj7) {
18983 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18984 if (!SWIG_IsOK(res8)) {
18985 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18986 }
18987 if (!argp8) {
18988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18989 }
18990 arg8 = reinterpret_cast< wxValidator * >(argp8);
18991 }
18992 if (obj8) {
18993 {
18994 arg9 = wxString_in_helper(obj8);
18995 if (arg9 == NULL) SWIG_fail;
18996 temp9 = true;
18997 }
18998 }
18999 {
19000 PyThreadState* __tstate = wxPyBeginAllowThreads();
19001 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19002 wxPyEndAllowThreads(__tstate);
19003 if (PyErr_Occurred()) SWIG_fail;
19004 }
19005 {
19006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19007 }
19008 {
19009 if (temp4)
19010 delete arg4;
19011 }
19012 {
19013 if (temp9)
19014 delete arg9;
19015 }
19016 return resultobj;
19017 fail:
19018 {
19019 if (temp4)
19020 delete arg4;
19021 }
19022 {
19023 if (temp9)
19024 delete arg9;
19025 }
19026 return NULL;
19027 }
19028
19029
19030 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19031 PyObject *resultobj = 0;
19032 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19033 bool arg2 ;
19034 void *argp1 = 0 ;
19035 int res1 = 0 ;
19036 bool val2 ;
19037 int ecode2 = 0 ;
19038 PyObject * obj0 = 0 ;
19039 PyObject * obj1 = 0 ;
19040 char * kwnames[] = {
19041 (char *) "self",(char *) "value", NULL
19042 };
19043
19044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19046 if (!SWIG_IsOK(res1)) {
19047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19048 }
19049 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19050 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19051 if (!SWIG_IsOK(ecode2)) {
19052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19053 }
19054 arg2 = static_cast< bool >(val2);
19055 {
19056 PyThreadState* __tstate = wxPyBeginAllowThreads();
19057 (arg1)->SetValue(arg2);
19058 wxPyEndAllowThreads(__tstate);
19059 if (PyErr_Occurred()) SWIG_fail;
19060 }
19061 resultobj = SWIG_Py_Void();
19062 return resultobj;
19063 fail:
19064 return NULL;
19065 }
19066
19067
19068 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19069 PyObject *resultobj = 0;
19070 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19071 bool result;
19072 void *argp1 = 0 ;
19073 int res1 = 0 ;
19074 PyObject *swig_obj[1] ;
19075
19076 if (!args) SWIG_fail;
19077 swig_obj[0] = args;
19078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19079 if (!SWIG_IsOK(res1)) {
19080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19081 }
19082 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19083 {
19084 PyThreadState* __tstate = wxPyBeginAllowThreads();
19085 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19086 wxPyEndAllowThreads(__tstate);
19087 if (PyErr_Occurred()) SWIG_fail;
19088 }
19089 {
19090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19091 }
19092 return resultobj;
19093 fail:
19094 return NULL;
19095 }
19096
19097
19098 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19099 PyObject *resultobj = 0;
19100 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19101 SwigValueWrapper<wxVisualAttributes > result;
19102 int val1 ;
19103 int ecode1 = 0 ;
19104 PyObject * obj0 = 0 ;
19105 char * kwnames[] = {
19106 (char *) "variant", NULL
19107 };
19108
19109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19110 if (obj0) {
19111 ecode1 = SWIG_AsVal_int(obj0, &val1);
19112 if (!SWIG_IsOK(ecode1)) {
19113 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19114 }
19115 arg1 = static_cast< wxWindowVariant >(val1);
19116 }
19117 {
19118 if (!wxPyCheckForApp()) SWIG_fail;
19119 PyThreadState* __tstate = wxPyBeginAllowThreads();
19120 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19121 wxPyEndAllowThreads(__tstate);
19122 if (PyErr_Occurred()) SWIG_fail;
19123 }
19124 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19125 return resultobj;
19126 fail:
19127 return NULL;
19128 }
19129
19130
19131 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19132 PyObject *obj;
19133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19134 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19135 return SWIG_Py_Void();
19136 }
19137
19138 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19139 return SWIG_Python_InitShadowInstance(args);
19140 }
19141
19142 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19143 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19144 return 1;
19145 }
19146
19147
19148 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19149 PyObject *pyobj = 0;
19150
19151 {
19152 #if wxUSE_UNICODE
19153 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19154 #else
19155 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19156 #endif
19157 }
19158 return pyobj;
19159 }
19160
19161
19162 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19163 PyObject *resultobj = 0;
19164 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19165 size_t result;
19166 void *argp1 = 0 ;
19167 int res1 = 0 ;
19168 PyObject *swig_obj[1] ;
19169
19170 if (!args) SWIG_fail;
19171 swig_obj[0] = args;
19172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19173 if (!SWIG_IsOK(res1)) {
19174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19175 }
19176 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19177 {
19178 PyThreadState* __tstate = wxPyBeginAllowThreads();
19179 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19180 wxPyEndAllowThreads(__tstate);
19181 if (PyErr_Occurred()) SWIG_fail;
19182 }
19183 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19184 return resultobj;
19185 fail:
19186 return NULL;
19187 }
19188
19189
19190 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19191 PyObject *resultobj = 0;
19192 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19193 size_t arg2 ;
19194 wxWindow *result = 0 ;
19195 void *argp1 = 0 ;
19196 int res1 = 0 ;
19197 size_t val2 ;
19198 int ecode2 = 0 ;
19199 PyObject * obj0 = 0 ;
19200 PyObject * obj1 = 0 ;
19201 char * kwnames[] = {
19202 (char *) "self",(char *) "n", NULL
19203 };
19204
19205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19207 if (!SWIG_IsOK(res1)) {
19208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19209 }
19210 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19211 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19212 if (!SWIG_IsOK(ecode2)) {
19213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19214 }
19215 arg2 = static_cast< size_t >(val2);
19216 {
19217 PyThreadState* __tstate = wxPyBeginAllowThreads();
19218 result = (wxWindow *)(arg1)->GetPage(arg2);
19219 wxPyEndAllowThreads(__tstate);
19220 if (PyErr_Occurred()) SWIG_fail;
19221 }
19222 {
19223 resultobj = wxPyMake_wxObject(result, 0);
19224 }
19225 return resultobj;
19226 fail:
19227 return NULL;
19228 }
19229
19230
19231 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19232 PyObject *resultobj = 0;
19233 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19234 wxWindow *result = 0 ;
19235 void *argp1 = 0 ;
19236 int res1 = 0 ;
19237 PyObject *swig_obj[1] ;
19238
19239 if (!args) SWIG_fail;
19240 swig_obj[0] = args;
19241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19242 if (!SWIG_IsOK(res1)) {
19243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19244 }
19245 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19246 {
19247 PyThreadState* __tstate = wxPyBeginAllowThreads();
19248 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19249 wxPyEndAllowThreads(__tstate);
19250 if (PyErr_Occurred()) SWIG_fail;
19251 }
19252 {
19253 resultobj = wxPyMake_wxObject(result, 0);
19254 }
19255 return resultobj;
19256 fail:
19257 return NULL;
19258 }
19259
19260
19261 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19262 PyObject *resultobj = 0;
19263 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19264 int result;
19265 void *argp1 = 0 ;
19266 int res1 = 0 ;
19267 PyObject *swig_obj[1] ;
19268
19269 if (!args) SWIG_fail;
19270 swig_obj[0] = args;
19271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19272 if (!SWIG_IsOK(res1)) {
19273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19274 }
19275 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19276 {
19277 PyThreadState* __tstate = wxPyBeginAllowThreads();
19278 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19279 wxPyEndAllowThreads(__tstate);
19280 if (PyErr_Occurred()) SWIG_fail;
19281 }
19282 resultobj = SWIG_From_int(static_cast< int >(result));
19283 return resultobj;
19284 fail:
19285 return NULL;
19286 }
19287
19288
19289 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19290 PyObject *resultobj = 0;
19291 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19292 size_t arg2 ;
19293 wxString *arg3 = 0 ;
19294 bool result;
19295 void *argp1 = 0 ;
19296 int res1 = 0 ;
19297 size_t val2 ;
19298 int ecode2 = 0 ;
19299 bool temp3 = false ;
19300 PyObject * obj0 = 0 ;
19301 PyObject * obj1 = 0 ;
19302 PyObject * obj2 = 0 ;
19303 char * kwnames[] = {
19304 (char *) "self",(char *) "n",(char *) "strText", NULL
19305 };
19306
19307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19309 if (!SWIG_IsOK(res1)) {
19310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19311 }
19312 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19313 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19314 if (!SWIG_IsOK(ecode2)) {
19315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19316 }
19317 arg2 = static_cast< size_t >(val2);
19318 {
19319 arg3 = wxString_in_helper(obj2);
19320 if (arg3 == NULL) SWIG_fail;
19321 temp3 = true;
19322 }
19323 {
19324 PyThreadState* __tstate = wxPyBeginAllowThreads();
19325 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19326 wxPyEndAllowThreads(__tstate);
19327 if (PyErr_Occurred()) SWIG_fail;
19328 }
19329 {
19330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19331 }
19332 {
19333 if (temp3)
19334 delete arg3;
19335 }
19336 return resultobj;
19337 fail:
19338 {
19339 if (temp3)
19340 delete arg3;
19341 }
19342 return NULL;
19343 }
19344
19345
19346 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19347 PyObject *resultobj = 0;
19348 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19349 size_t arg2 ;
19350 wxString result;
19351 void *argp1 = 0 ;
19352 int res1 = 0 ;
19353 size_t val2 ;
19354 int ecode2 = 0 ;
19355 PyObject * obj0 = 0 ;
19356 PyObject * obj1 = 0 ;
19357 char * kwnames[] = {
19358 (char *) "self",(char *) "n", NULL
19359 };
19360
19361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19363 if (!SWIG_IsOK(res1)) {
19364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19365 }
19366 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19367 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19368 if (!SWIG_IsOK(ecode2)) {
19369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19370 }
19371 arg2 = static_cast< size_t >(val2);
19372 {
19373 PyThreadState* __tstate = wxPyBeginAllowThreads();
19374 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19375 wxPyEndAllowThreads(__tstate);
19376 if (PyErr_Occurred()) SWIG_fail;
19377 }
19378 {
19379 #if wxUSE_UNICODE
19380 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19381 #else
19382 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19383 #endif
19384 }
19385 return resultobj;
19386 fail:
19387 return NULL;
19388 }
19389
19390
19391 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19392 PyObject *resultobj = 0;
19393 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19394 wxImageList *arg2 = (wxImageList *) 0 ;
19395 void *argp1 = 0 ;
19396 int res1 = 0 ;
19397 void *argp2 = 0 ;
19398 int res2 = 0 ;
19399 PyObject * obj0 = 0 ;
19400 PyObject * obj1 = 0 ;
19401 char * kwnames[] = {
19402 (char *) "self",(char *) "imageList", NULL
19403 };
19404
19405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19407 if (!SWIG_IsOK(res1)) {
19408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19409 }
19410 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19411 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19412 if (!SWIG_IsOK(res2)) {
19413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19414 }
19415 arg2 = reinterpret_cast< wxImageList * >(argp2);
19416 {
19417 PyThreadState* __tstate = wxPyBeginAllowThreads();
19418 (arg1)->SetImageList(arg2);
19419 wxPyEndAllowThreads(__tstate);
19420 if (PyErr_Occurred()) SWIG_fail;
19421 }
19422 resultobj = SWIG_Py_Void();
19423 return resultobj;
19424 fail:
19425 return NULL;
19426 }
19427
19428
19429 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19430 PyObject *resultobj = 0;
19431 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19432 wxImageList *arg2 = (wxImageList *) 0 ;
19433 void *argp1 = 0 ;
19434 int res1 = 0 ;
19435 int res2 = 0 ;
19436 PyObject * obj0 = 0 ;
19437 PyObject * obj1 = 0 ;
19438 char * kwnames[] = {
19439 (char *) "self",(char *) "imageList", NULL
19440 };
19441
19442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19444 if (!SWIG_IsOK(res1)) {
19445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19446 }
19447 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19448 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19449 if (!SWIG_IsOK(res2)) {
19450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19451 }
19452 {
19453 PyThreadState* __tstate = wxPyBeginAllowThreads();
19454 (arg1)->AssignImageList(arg2);
19455 wxPyEndAllowThreads(__tstate);
19456 if (PyErr_Occurred()) SWIG_fail;
19457 }
19458 resultobj = SWIG_Py_Void();
19459 return resultobj;
19460 fail:
19461 return NULL;
19462 }
19463
19464
19465 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19466 PyObject *resultobj = 0;
19467 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19468 wxImageList *result = 0 ;
19469 void *argp1 = 0 ;
19470 int res1 = 0 ;
19471 PyObject *swig_obj[1] ;
19472
19473 if (!args) SWIG_fail;
19474 swig_obj[0] = args;
19475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19476 if (!SWIG_IsOK(res1)) {
19477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19478 }
19479 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19480 {
19481 PyThreadState* __tstate = wxPyBeginAllowThreads();
19482 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19483 wxPyEndAllowThreads(__tstate);
19484 if (PyErr_Occurred()) SWIG_fail;
19485 }
19486 {
19487 resultobj = wxPyMake_wxObject(result, (bool)0);
19488 }
19489 return resultobj;
19490 fail:
19491 return NULL;
19492 }
19493
19494
19495 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19496 PyObject *resultobj = 0;
19497 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19498 size_t arg2 ;
19499 int result;
19500 void *argp1 = 0 ;
19501 int res1 = 0 ;
19502 size_t val2 ;
19503 int ecode2 = 0 ;
19504 PyObject * obj0 = 0 ;
19505 PyObject * obj1 = 0 ;
19506 char * kwnames[] = {
19507 (char *) "self",(char *) "n", NULL
19508 };
19509
19510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19512 if (!SWIG_IsOK(res1)) {
19513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19514 }
19515 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19516 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19517 if (!SWIG_IsOK(ecode2)) {
19518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19519 }
19520 arg2 = static_cast< size_t >(val2);
19521 {
19522 PyThreadState* __tstate = wxPyBeginAllowThreads();
19523 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19524 wxPyEndAllowThreads(__tstate);
19525 if (PyErr_Occurred()) SWIG_fail;
19526 }
19527 resultobj = SWIG_From_int(static_cast< int >(result));
19528 return resultobj;
19529 fail:
19530 return NULL;
19531 }
19532
19533
19534 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19535 PyObject *resultobj = 0;
19536 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19537 size_t arg2 ;
19538 int arg3 ;
19539 bool result;
19540 void *argp1 = 0 ;
19541 int res1 = 0 ;
19542 size_t val2 ;
19543 int ecode2 = 0 ;
19544 int val3 ;
19545 int ecode3 = 0 ;
19546 PyObject * obj0 = 0 ;
19547 PyObject * obj1 = 0 ;
19548 PyObject * obj2 = 0 ;
19549 char * kwnames[] = {
19550 (char *) "self",(char *) "n",(char *) "imageId", NULL
19551 };
19552
19553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19555 if (!SWIG_IsOK(res1)) {
19556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19557 }
19558 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19559 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19560 if (!SWIG_IsOK(ecode2)) {
19561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19562 }
19563 arg2 = static_cast< size_t >(val2);
19564 ecode3 = SWIG_AsVal_int(obj2, &val3);
19565 if (!SWIG_IsOK(ecode3)) {
19566 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19567 }
19568 arg3 = static_cast< int >(val3);
19569 {
19570 PyThreadState* __tstate = wxPyBeginAllowThreads();
19571 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19572 wxPyEndAllowThreads(__tstate);
19573 if (PyErr_Occurred()) SWIG_fail;
19574 }
19575 {
19576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19577 }
19578 return resultobj;
19579 fail:
19580 return NULL;
19581 }
19582
19583
19584 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19585 PyObject *resultobj = 0;
19586 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19587 wxSize *arg2 = 0 ;
19588 void *argp1 = 0 ;
19589 int res1 = 0 ;
19590 wxSize temp2 ;
19591 PyObject * obj0 = 0 ;
19592 PyObject * obj1 = 0 ;
19593 char * kwnames[] = {
19594 (char *) "self",(char *) "size", NULL
19595 };
19596
19597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19599 if (!SWIG_IsOK(res1)) {
19600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19601 }
19602 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19603 {
19604 arg2 = &temp2;
19605 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19606 }
19607 {
19608 PyThreadState* __tstate = wxPyBeginAllowThreads();
19609 (arg1)->SetPageSize((wxSize const &)*arg2);
19610 wxPyEndAllowThreads(__tstate);
19611 if (PyErr_Occurred()) SWIG_fail;
19612 }
19613 resultobj = SWIG_Py_Void();
19614 return resultobj;
19615 fail:
19616 return NULL;
19617 }
19618
19619
19620 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19621 PyObject *resultobj = 0;
19622 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19623 wxSize *arg2 = 0 ;
19624 wxSize result;
19625 void *argp1 = 0 ;
19626 int res1 = 0 ;
19627 wxSize temp2 ;
19628 PyObject * obj0 = 0 ;
19629 PyObject * obj1 = 0 ;
19630 char * kwnames[] = {
19631 (char *) "self",(char *) "sizePage", NULL
19632 };
19633
19634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19636 if (!SWIG_IsOK(res1)) {
19637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19638 }
19639 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19640 {
19641 arg2 = &temp2;
19642 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19643 }
19644 {
19645 PyThreadState* __tstate = wxPyBeginAllowThreads();
19646 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19647 wxPyEndAllowThreads(__tstate);
19648 if (PyErr_Occurred()) SWIG_fail;
19649 }
19650 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19651 return resultobj;
19652 fail:
19653 return NULL;
19654 }
19655
19656
19657 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19658 PyObject *resultobj = 0;
19659 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19660 unsigned int result;
19661 void *argp1 = 0 ;
19662 int res1 = 0 ;
19663 PyObject *swig_obj[1] ;
19664
19665 if (!args) SWIG_fail;
19666 swig_obj[0] = args;
19667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19668 if (!SWIG_IsOK(res1)) {
19669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19670 }
19671 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19672 {
19673 PyThreadState* __tstate = wxPyBeginAllowThreads();
19674 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19675 wxPyEndAllowThreads(__tstate);
19676 if (PyErr_Occurred()) SWIG_fail;
19677 }
19678 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19679 return resultobj;
19680 fail:
19681 return NULL;
19682 }
19683
19684
19685 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19686 PyObject *resultobj = 0;
19687 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19688 unsigned int arg2 ;
19689 void *argp1 = 0 ;
19690 int res1 = 0 ;
19691 unsigned int val2 ;
19692 int ecode2 = 0 ;
19693 PyObject * obj0 = 0 ;
19694 PyObject * obj1 = 0 ;
19695 char * kwnames[] = {
19696 (char *) "self",(char *) "internalBorder", NULL
19697 };
19698
19699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19701 if (!SWIG_IsOK(res1)) {
19702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19703 }
19704 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19705 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19706 if (!SWIG_IsOK(ecode2)) {
19707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19708 }
19709 arg2 = static_cast< unsigned int >(val2);
19710 {
19711 PyThreadState* __tstate = wxPyBeginAllowThreads();
19712 (arg1)->SetInternalBorder(arg2);
19713 wxPyEndAllowThreads(__tstate);
19714 if (PyErr_Occurred()) SWIG_fail;
19715 }
19716 resultobj = SWIG_Py_Void();
19717 return resultobj;
19718 fail:
19719 return NULL;
19720 }
19721
19722
19723 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19724 PyObject *resultobj = 0;
19725 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19726 bool result;
19727 void *argp1 = 0 ;
19728 int res1 = 0 ;
19729 PyObject *swig_obj[1] ;
19730
19731 if (!args) SWIG_fail;
19732 swig_obj[0] = args;
19733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19734 if (!SWIG_IsOK(res1)) {
19735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19736 }
19737 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19738 {
19739 PyThreadState* __tstate = wxPyBeginAllowThreads();
19740 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19741 wxPyEndAllowThreads(__tstate);
19742 if (PyErr_Occurred()) SWIG_fail;
19743 }
19744 {
19745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19746 }
19747 return resultobj;
19748 fail:
19749 return NULL;
19750 }
19751
19752
19753 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19754 PyObject *resultobj = 0;
19755 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19756 int arg2 ;
19757 void *argp1 = 0 ;
19758 int res1 = 0 ;
19759 int val2 ;
19760 int ecode2 = 0 ;
19761 PyObject * obj0 = 0 ;
19762 PyObject * obj1 = 0 ;
19763 char * kwnames[] = {
19764 (char *) "self",(char *) "margin", NULL
19765 };
19766
19767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19769 if (!SWIG_IsOK(res1)) {
19770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19771 }
19772 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19773 ecode2 = SWIG_AsVal_int(obj1, &val2);
19774 if (!SWIG_IsOK(ecode2)) {
19775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19776 }
19777 arg2 = static_cast< int >(val2);
19778 {
19779 PyThreadState* __tstate = wxPyBeginAllowThreads();
19780 (arg1)->SetControlMargin(arg2);
19781 wxPyEndAllowThreads(__tstate);
19782 if (PyErr_Occurred()) SWIG_fail;
19783 }
19784 resultobj = SWIG_Py_Void();
19785 return resultobj;
19786 fail:
19787 return NULL;
19788 }
19789
19790
19791 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19792 PyObject *resultobj = 0;
19793 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19794 int result;
19795 void *argp1 = 0 ;
19796 int res1 = 0 ;
19797 PyObject *swig_obj[1] ;
19798
19799 if (!args) SWIG_fail;
19800 swig_obj[0] = args;
19801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19802 if (!SWIG_IsOK(res1)) {
19803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19804 }
19805 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19806 {
19807 PyThreadState* __tstate = wxPyBeginAllowThreads();
19808 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19809 wxPyEndAllowThreads(__tstate);
19810 if (PyErr_Occurred()) SWIG_fail;
19811 }
19812 resultobj = SWIG_From_int(static_cast< int >(result));
19813 return resultobj;
19814 fail:
19815 return NULL;
19816 }
19817
19818
19819 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19820 PyObject *resultobj = 0;
19821 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19822 bool arg2 ;
19823 void *argp1 = 0 ;
19824 int res1 = 0 ;
19825 bool val2 ;
19826 int ecode2 = 0 ;
19827 PyObject * obj0 = 0 ;
19828 PyObject * obj1 = 0 ;
19829 char * kwnames[] = {
19830 (char *) "self",(char *) "fit", NULL
19831 };
19832
19833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19835 if (!SWIG_IsOK(res1)) {
19836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19837 }
19838 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19839 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19840 if (!SWIG_IsOK(ecode2)) {
19841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19842 }
19843 arg2 = static_cast< bool >(val2);
19844 {
19845 PyThreadState* __tstate = wxPyBeginAllowThreads();
19846 (arg1)->SetFitToCurrentPage(arg2);
19847 wxPyEndAllowThreads(__tstate);
19848 if (PyErr_Occurred()) SWIG_fail;
19849 }
19850 resultobj = SWIG_Py_Void();
19851 return resultobj;
19852 fail:
19853 return NULL;
19854 }
19855
19856
19857 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19858 PyObject *resultobj = 0;
19859 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19860 bool result;
19861 void *argp1 = 0 ;
19862 int res1 = 0 ;
19863 PyObject *swig_obj[1] ;
19864
19865 if (!args) SWIG_fail;
19866 swig_obj[0] = args;
19867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19868 if (!SWIG_IsOK(res1)) {
19869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19870 }
19871 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19872 {
19873 PyThreadState* __tstate = wxPyBeginAllowThreads();
19874 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19875 wxPyEndAllowThreads(__tstate);
19876 if (PyErr_Occurred()) SWIG_fail;
19877 }
19878 {
19879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19880 }
19881 return resultobj;
19882 fail:
19883 return NULL;
19884 }
19885
19886
19887 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19888 PyObject *resultobj = 0;
19889 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19890 wxSizer *result = 0 ;
19891 void *argp1 = 0 ;
19892 int res1 = 0 ;
19893 PyObject *swig_obj[1] ;
19894
19895 if (!args) SWIG_fail;
19896 swig_obj[0] = args;
19897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19898 if (!SWIG_IsOK(res1)) {
19899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19900 }
19901 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19902 {
19903 PyThreadState* __tstate = wxPyBeginAllowThreads();
19904 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19905 wxPyEndAllowThreads(__tstate);
19906 if (PyErr_Occurred()) SWIG_fail;
19907 }
19908 {
19909 resultobj = wxPyMake_wxObject(result, (bool)0);
19910 }
19911 return resultobj;
19912 fail:
19913 return NULL;
19914 }
19915
19916
19917 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19918 PyObject *resultobj = 0;
19919 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19920 size_t arg2 ;
19921 bool result;
19922 void *argp1 = 0 ;
19923 int res1 = 0 ;
19924 size_t val2 ;
19925 int ecode2 = 0 ;
19926 PyObject * obj0 = 0 ;
19927 PyObject * obj1 = 0 ;
19928 char * kwnames[] = {
19929 (char *) "self",(char *) "n", NULL
19930 };
19931
19932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19934 if (!SWIG_IsOK(res1)) {
19935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19936 }
19937 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19938 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19939 if (!SWIG_IsOK(ecode2)) {
19940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19941 }
19942 arg2 = static_cast< size_t >(val2);
19943 {
19944 PyThreadState* __tstate = wxPyBeginAllowThreads();
19945 result = (bool)(arg1)->DeletePage(arg2);
19946 wxPyEndAllowThreads(__tstate);
19947 if (PyErr_Occurred()) SWIG_fail;
19948 }
19949 {
19950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19951 }
19952 return resultobj;
19953 fail:
19954 return NULL;
19955 }
19956
19957
19958 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19959 PyObject *resultobj = 0;
19960 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19961 size_t arg2 ;
19962 bool result;
19963 void *argp1 = 0 ;
19964 int res1 = 0 ;
19965 size_t val2 ;
19966 int ecode2 = 0 ;
19967 PyObject * obj0 = 0 ;
19968 PyObject * obj1 = 0 ;
19969 char * kwnames[] = {
19970 (char *) "self",(char *) "n", NULL
19971 };
19972
19973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19975 if (!SWIG_IsOK(res1)) {
19976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19977 }
19978 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19979 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19980 if (!SWIG_IsOK(ecode2)) {
19981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19982 }
19983 arg2 = static_cast< size_t >(val2);
19984 {
19985 PyThreadState* __tstate = wxPyBeginAllowThreads();
19986 result = (bool)(arg1)->RemovePage(arg2);
19987 wxPyEndAllowThreads(__tstate);
19988 if (PyErr_Occurred()) SWIG_fail;
19989 }
19990 {
19991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19992 }
19993 return resultobj;
19994 fail:
19995 return NULL;
19996 }
19997
19998
19999 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20000 PyObject *resultobj = 0;
20001 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20002 bool result;
20003 void *argp1 = 0 ;
20004 int res1 = 0 ;
20005 PyObject *swig_obj[1] ;
20006
20007 if (!args) SWIG_fail;
20008 swig_obj[0] = args;
20009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20010 if (!SWIG_IsOK(res1)) {
20011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20012 }
20013 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20014 {
20015 PyThreadState* __tstate = wxPyBeginAllowThreads();
20016 result = (bool)(arg1)->DeleteAllPages();
20017 wxPyEndAllowThreads(__tstate);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 {
20021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20022 }
20023 return resultobj;
20024 fail:
20025 return NULL;
20026 }
20027
20028
20029 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20030 PyObject *resultobj = 0;
20031 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20032 wxWindow *arg2 = (wxWindow *) 0 ;
20033 wxString *arg3 = 0 ;
20034 bool arg4 = (bool) false ;
20035 int arg5 = (int) -1 ;
20036 bool result;
20037 void *argp1 = 0 ;
20038 int res1 = 0 ;
20039 void *argp2 = 0 ;
20040 int res2 = 0 ;
20041 bool temp3 = false ;
20042 bool val4 ;
20043 int ecode4 = 0 ;
20044 int val5 ;
20045 int ecode5 = 0 ;
20046 PyObject * obj0 = 0 ;
20047 PyObject * obj1 = 0 ;
20048 PyObject * obj2 = 0 ;
20049 PyObject * obj3 = 0 ;
20050 PyObject * obj4 = 0 ;
20051 char * kwnames[] = {
20052 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20053 };
20054
20055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20057 if (!SWIG_IsOK(res1)) {
20058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20059 }
20060 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20061 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20062 if (!SWIG_IsOK(res2)) {
20063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20064 }
20065 arg2 = reinterpret_cast< wxWindow * >(argp2);
20066 {
20067 arg3 = wxString_in_helper(obj2);
20068 if (arg3 == NULL) SWIG_fail;
20069 temp3 = true;
20070 }
20071 if (obj3) {
20072 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20073 if (!SWIG_IsOK(ecode4)) {
20074 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20075 }
20076 arg4 = static_cast< bool >(val4);
20077 }
20078 if (obj4) {
20079 ecode5 = SWIG_AsVal_int(obj4, &val5);
20080 if (!SWIG_IsOK(ecode5)) {
20081 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20082 }
20083 arg5 = static_cast< int >(val5);
20084 }
20085 {
20086 PyThreadState* __tstate = wxPyBeginAllowThreads();
20087 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20088 wxPyEndAllowThreads(__tstate);
20089 if (PyErr_Occurred()) SWIG_fail;
20090 }
20091 {
20092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20093 }
20094 {
20095 if (temp3)
20096 delete arg3;
20097 }
20098 return resultobj;
20099 fail:
20100 {
20101 if (temp3)
20102 delete arg3;
20103 }
20104 return NULL;
20105 }
20106
20107
20108 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20109 PyObject *resultobj = 0;
20110 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20111 size_t arg2 ;
20112 wxWindow *arg3 = (wxWindow *) 0 ;
20113 wxString *arg4 = 0 ;
20114 bool arg5 = (bool) false ;
20115 int arg6 = (int) -1 ;
20116 bool result;
20117 void *argp1 = 0 ;
20118 int res1 = 0 ;
20119 size_t val2 ;
20120 int ecode2 = 0 ;
20121 void *argp3 = 0 ;
20122 int res3 = 0 ;
20123 bool temp4 = false ;
20124 bool val5 ;
20125 int ecode5 = 0 ;
20126 int val6 ;
20127 int ecode6 = 0 ;
20128 PyObject * obj0 = 0 ;
20129 PyObject * obj1 = 0 ;
20130 PyObject * obj2 = 0 ;
20131 PyObject * obj3 = 0 ;
20132 PyObject * obj4 = 0 ;
20133 PyObject * obj5 = 0 ;
20134 char * kwnames[] = {
20135 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20136 };
20137
20138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20140 if (!SWIG_IsOK(res1)) {
20141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20142 }
20143 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20144 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20145 if (!SWIG_IsOK(ecode2)) {
20146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20147 }
20148 arg2 = static_cast< size_t >(val2);
20149 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20150 if (!SWIG_IsOK(res3)) {
20151 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20152 }
20153 arg3 = reinterpret_cast< wxWindow * >(argp3);
20154 {
20155 arg4 = wxString_in_helper(obj3);
20156 if (arg4 == NULL) SWIG_fail;
20157 temp4 = true;
20158 }
20159 if (obj4) {
20160 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20161 if (!SWIG_IsOK(ecode5)) {
20162 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20163 }
20164 arg5 = static_cast< bool >(val5);
20165 }
20166 if (obj5) {
20167 ecode6 = SWIG_AsVal_int(obj5, &val6);
20168 if (!SWIG_IsOK(ecode6)) {
20169 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20170 }
20171 arg6 = static_cast< int >(val6);
20172 }
20173 {
20174 PyThreadState* __tstate = wxPyBeginAllowThreads();
20175 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20176 wxPyEndAllowThreads(__tstate);
20177 if (PyErr_Occurred()) SWIG_fail;
20178 }
20179 {
20180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20181 }
20182 {
20183 if (temp4)
20184 delete arg4;
20185 }
20186 return resultobj;
20187 fail:
20188 {
20189 if (temp4)
20190 delete arg4;
20191 }
20192 return NULL;
20193 }
20194
20195
20196 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20197 PyObject *resultobj = 0;
20198 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20199 size_t arg2 ;
20200 int result;
20201 void *argp1 = 0 ;
20202 int res1 = 0 ;
20203 size_t val2 ;
20204 int ecode2 = 0 ;
20205 PyObject * obj0 = 0 ;
20206 PyObject * obj1 = 0 ;
20207 char * kwnames[] = {
20208 (char *) "self",(char *) "n", NULL
20209 };
20210
20211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20213 if (!SWIG_IsOK(res1)) {
20214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20215 }
20216 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20217 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20218 if (!SWIG_IsOK(ecode2)) {
20219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20220 }
20221 arg2 = static_cast< size_t >(val2);
20222 {
20223 PyThreadState* __tstate = wxPyBeginAllowThreads();
20224 result = (int)(arg1)->SetSelection(arg2);
20225 wxPyEndAllowThreads(__tstate);
20226 if (PyErr_Occurred()) SWIG_fail;
20227 }
20228 resultobj = SWIG_From_int(static_cast< int >(result));
20229 return resultobj;
20230 fail:
20231 return NULL;
20232 }
20233
20234
20235 SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20236 PyObject *resultobj = 0;
20237 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20238 size_t arg2 ;
20239 int result;
20240 void *argp1 = 0 ;
20241 int res1 = 0 ;
20242 size_t val2 ;
20243 int ecode2 = 0 ;
20244 PyObject * obj0 = 0 ;
20245 PyObject * obj1 = 0 ;
20246 char * kwnames[] = {
20247 (char *) "self",(char *) "n", NULL
20248 };
20249
20250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20252 if (!SWIG_IsOK(res1)) {
20253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20254 }
20255 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20256 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20257 if (!SWIG_IsOK(ecode2)) {
20258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20259 }
20260 arg2 = static_cast< size_t >(val2);
20261 {
20262 PyThreadState* __tstate = wxPyBeginAllowThreads();
20263 result = (int)(arg1)->ChangeSelection(arg2);
20264 wxPyEndAllowThreads(__tstate);
20265 if (PyErr_Occurred()) SWIG_fail;
20266 }
20267 resultobj = SWIG_From_int(static_cast< int >(result));
20268 return resultobj;
20269 fail:
20270 return NULL;
20271 }
20272
20273
20274 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20275 PyObject *resultobj = 0;
20276 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20277 bool arg2 = (bool) true ;
20278 void *argp1 = 0 ;
20279 int res1 = 0 ;
20280 bool val2 ;
20281 int ecode2 = 0 ;
20282 PyObject * obj0 = 0 ;
20283 PyObject * obj1 = 0 ;
20284 char * kwnames[] = {
20285 (char *) "self",(char *) "forward", NULL
20286 };
20287
20288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20290 if (!SWIG_IsOK(res1)) {
20291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20292 }
20293 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20294 if (obj1) {
20295 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20296 if (!SWIG_IsOK(ecode2)) {
20297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20298 }
20299 arg2 = static_cast< bool >(val2);
20300 }
20301 {
20302 PyThreadState* __tstate = wxPyBeginAllowThreads();
20303 (arg1)->AdvanceSelection(arg2);
20304 wxPyEndAllowThreads(__tstate);
20305 if (PyErr_Occurred()) SWIG_fail;
20306 }
20307 resultobj = SWIG_Py_Void();
20308 return resultobj;
20309 fail:
20310 return NULL;
20311 }
20312
20313
20314 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20315 PyObject *resultobj = 0;
20316 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20317 wxPoint *arg2 = 0 ;
20318 long *arg3 = (long *) 0 ;
20319 int result;
20320 void *argp1 = 0 ;
20321 int res1 = 0 ;
20322 wxPoint temp2 ;
20323 long temp3 ;
20324 int res3 = SWIG_TMPOBJ ;
20325 PyObject * obj0 = 0 ;
20326 PyObject * obj1 = 0 ;
20327 char * kwnames[] = {
20328 (char *) "self",(char *) "pt", NULL
20329 };
20330
20331 arg3 = &temp3;
20332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20334 if (!SWIG_IsOK(res1)) {
20335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20336 }
20337 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20338 {
20339 arg2 = &temp2;
20340 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20341 }
20342 {
20343 PyThreadState* __tstate = wxPyBeginAllowThreads();
20344 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20345 wxPyEndAllowThreads(__tstate);
20346 if (PyErr_Occurred()) SWIG_fail;
20347 }
20348 resultobj = SWIG_From_int(static_cast< int >(result));
20349 if (SWIG_IsTmpObj(res3)) {
20350 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20351 } else {
20352 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20353 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20354 }
20355 return resultobj;
20356 fail:
20357 return NULL;
20358 }
20359
20360
20361 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20362 PyObject *resultobj = 0;
20363 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20364 SwigValueWrapper<wxVisualAttributes > result;
20365 int val1 ;
20366 int ecode1 = 0 ;
20367 PyObject * obj0 = 0 ;
20368 char * kwnames[] = {
20369 (char *) "variant", NULL
20370 };
20371
20372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20373 if (obj0) {
20374 ecode1 = SWIG_AsVal_int(obj0, &val1);
20375 if (!SWIG_IsOK(ecode1)) {
20376 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20377 }
20378 arg1 = static_cast< wxWindowVariant >(val1);
20379 }
20380 {
20381 if (!wxPyCheckForApp()) SWIG_fail;
20382 PyThreadState* __tstate = wxPyBeginAllowThreads();
20383 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20384 wxPyEndAllowThreads(__tstate);
20385 if (PyErr_Occurred()) SWIG_fail;
20386 }
20387 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20388 return resultobj;
20389 fail:
20390 return NULL;
20391 }
20392
20393
20394 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20395 PyObject *obj;
20396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20397 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20398 return SWIG_Py_Void();
20399 }
20400
20401 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20402 PyObject *resultobj = 0;
20403 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20404 int arg2 = (int) 0 ;
20405 int arg3 = (int) -1 ;
20406 int arg4 = (int) -1 ;
20407 wxBookCtrlBaseEvent *result = 0 ;
20408 int val1 ;
20409 int ecode1 = 0 ;
20410 int val2 ;
20411 int ecode2 = 0 ;
20412 int val3 ;
20413 int ecode3 = 0 ;
20414 int val4 ;
20415 int ecode4 = 0 ;
20416 PyObject * obj0 = 0 ;
20417 PyObject * obj1 = 0 ;
20418 PyObject * obj2 = 0 ;
20419 PyObject * obj3 = 0 ;
20420 char * kwnames[] = {
20421 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20422 };
20423
20424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20425 if (obj0) {
20426 ecode1 = SWIG_AsVal_int(obj0, &val1);
20427 if (!SWIG_IsOK(ecode1)) {
20428 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20429 }
20430 arg1 = static_cast< wxEventType >(val1);
20431 }
20432 if (obj1) {
20433 ecode2 = SWIG_AsVal_int(obj1, &val2);
20434 if (!SWIG_IsOK(ecode2)) {
20435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20436 }
20437 arg2 = static_cast< int >(val2);
20438 }
20439 if (obj2) {
20440 ecode3 = SWIG_AsVal_int(obj2, &val3);
20441 if (!SWIG_IsOK(ecode3)) {
20442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20443 }
20444 arg3 = static_cast< int >(val3);
20445 }
20446 if (obj3) {
20447 ecode4 = SWIG_AsVal_int(obj3, &val4);
20448 if (!SWIG_IsOK(ecode4)) {
20449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20450 }
20451 arg4 = static_cast< int >(val4);
20452 }
20453 {
20454 PyThreadState* __tstate = wxPyBeginAllowThreads();
20455 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20456 wxPyEndAllowThreads(__tstate);
20457 if (PyErr_Occurred()) SWIG_fail;
20458 }
20459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20460 return resultobj;
20461 fail:
20462 return NULL;
20463 }
20464
20465
20466 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20467 PyObject *resultobj = 0;
20468 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20469 int result;
20470 void *argp1 = 0 ;
20471 int res1 = 0 ;
20472 PyObject *swig_obj[1] ;
20473
20474 if (!args) SWIG_fail;
20475 swig_obj[0] = args;
20476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20477 if (!SWIG_IsOK(res1)) {
20478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20479 }
20480 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20481 {
20482 PyThreadState* __tstate = wxPyBeginAllowThreads();
20483 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20484 wxPyEndAllowThreads(__tstate);
20485 if (PyErr_Occurred()) SWIG_fail;
20486 }
20487 resultobj = SWIG_From_int(static_cast< int >(result));
20488 return resultobj;
20489 fail:
20490 return NULL;
20491 }
20492
20493
20494 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20495 PyObject *resultobj = 0;
20496 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20497 int arg2 ;
20498 void *argp1 = 0 ;
20499 int res1 = 0 ;
20500 int val2 ;
20501 int ecode2 = 0 ;
20502 PyObject * obj0 = 0 ;
20503 PyObject * obj1 = 0 ;
20504 char * kwnames[] = {
20505 (char *) "self",(char *) "nSel", NULL
20506 };
20507
20508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20510 if (!SWIG_IsOK(res1)) {
20511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20512 }
20513 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20514 ecode2 = SWIG_AsVal_int(obj1, &val2);
20515 if (!SWIG_IsOK(ecode2)) {
20516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20517 }
20518 arg2 = static_cast< int >(val2);
20519 {
20520 PyThreadState* __tstate = wxPyBeginAllowThreads();
20521 (arg1)->SetSelection(arg2);
20522 wxPyEndAllowThreads(__tstate);
20523 if (PyErr_Occurred()) SWIG_fail;
20524 }
20525 resultobj = SWIG_Py_Void();
20526 return resultobj;
20527 fail:
20528 return NULL;
20529 }
20530
20531
20532 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20533 PyObject *resultobj = 0;
20534 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20535 int result;
20536 void *argp1 = 0 ;
20537 int res1 = 0 ;
20538 PyObject *swig_obj[1] ;
20539
20540 if (!args) SWIG_fail;
20541 swig_obj[0] = args;
20542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20543 if (!SWIG_IsOK(res1)) {
20544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20545 }
20546 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20547 {
20548 PyThreadState* __tstate = wxPyBeginAllowThreads();
20549 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20550 wxPyEndAllowThreads(__tstate);
20551 if (PyErr_Occurred()) SWIG_fail;
20552 }
20553 resultobj = SWIG_From_int(static_cast< int >(result));
20554 return resultobj;
20555 fail:
20556 return NULL;
20557 }
20558
20559
20560 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20561 PyObject *resultobj = 0;
20562 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20563 int arg2 ;
20564 void *argp1 = 0 ;
20565 int res1 = 0 ;
20566 int val2 ;
20567 int ecode2 = 0 ;
20568 PyObject * obj0 = 0 ;
20569 PyObject * obj1 = 0 ;
20570 char * kwnames[] = {
20571 (char *) "self",(char *) "nOldSel", NULL
20572 };
20573
20574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20576 if (!SWIG_IsOK(res1)) {
20577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20578 }
20579 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20580 ecode2 = SWIG_AsVal_int(obj1, &val2);
20581 if (!SWIG_IsOK(ecode2)) {
20582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20583 }
20584 arg2 = static_cast< int >(val2);
20585 {
20586 PyThreadState* __tstate = wxPyBeginAllowThreads();
20587 (arg1)->SetOldSelection(arg2);
20588 wxPyEndAllowThreads(__tstate);
20589 if (PyErr_Occurred()) SWIG_fail;
20590 }
20591 resultobj = SWIG_Py_Void();
20592 return resultobj;
20593 fail:
20594 return NULL;
20595 }
20596
20597
20598 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20599 PyObject *obj;
20600 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20601 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20602 return SWIG_Py_Void();
20603 }
20604
20605 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20606 return SWIG_Python_InitShadowInstance(args);
20607 }
20608
20609 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20610 PyObject *resultobj = 0;
20611 wxWindow *arg1 = (wxWindow *) 0 ;
20612 int arg2 = (int) -1 ;
20613 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20614 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20615 wxSize const &arg4_defvalue = wxDefaultSize ;
20616 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20617 long arg5 = (long) 0 ;
20618 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20619 wxString *arg6 = (wxString *) &arg6_defvalue ;
20620 wxNotebook *result = 0 ;
20621 void *argp1 = 0 ;
20622 int res1 = 0 ;
20623 int val2 ;
20624 int ecode2 = 0 ;
20625 wxPoint temp3 ;
20626 wxSize temp4 ;
20627 long val5 ;
20628 int ecode5 = 0 ;
20629 bool temp6 = false ;
20630 PyObject * obj0 = 0 ;
20631 PyObject * obj1 = 0 ;
20632 PyObject * obj2 = 0 ;
20633 PyObject * obj3 = 0 ;
20634 PyObject * obj4 = 0 ;
20635 PyObject * obj5 = 0 ;
20636 char * kwnames[] = {
20637 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20638 };
20639
20640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20642 if (!SWIG_IsOK(res1)) {
20643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20644 }
20645 arg1 = reinterpret_cast< wxWindow * >(argp1);
20646 if (obj1) {
20647 ecode2 = SWIG_AsVal_int(obj1, &val2);
20648 if (!SWIG_IsOK(ecode2)) {
20649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20650 }
20651 arg2 = static_cast< int >(val2);
20652 }
20653 if (obj2) {
20654 {
20655 arg3 = &temp3;
20656 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20657 }
20658 }
20659 if (obj3) {
20660 {
20661 arg4 = &temp4;
20662 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20663 }
20664 }
20665 if (obj4) {
20666 ecode5 = SWIG_AsVal_long(obj4, &val5);
20667 if (!SWIG_IsOK(ecode5)) {
20668 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20669 }
20670 arg5 = static_cast< long >(val5);
20671 }
20672 if (obj5) {
20673 {
20674 arg6 = wxString_in_helper(obj5);
20675 if (arg6 == NULL) SWIG_fail;
20676 temp6 = true;
20677 }
20678 }
20679 {
20680 if (!wxPyCheckForApp()) SWIG_fail;
20681 PyThreadState* __tstate = wxPyBeginAllowThreads();
20682 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20683 wxPyEndAllowThreads(__tstate);
20684 if (PyErr_Occurred()) SWIG_fail;
20685 }
20686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20687 {
20688 if (temp6)
20689 delete arg6;
20690 }
20691 return resultobj;
20692 fail:
20693 {
20694 if (temp6)
20695 delete arg6;
20696 }
20697 return NULL;
20698 }
20699
20700
20701 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20702 PyObject *resultobj = 0;
20703 wxNotebook *result = 0 ;
20704
20705 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20706 {
20707 if (!wxPyCheckForApp()) SWIG_fail;
20708 PyThreadState* __tstate = wxPyBeginAllowThreads();
20709 result = (wxNotebook *)new wxNotebook();
20710 wxPyEndAllowThreads(__tstate);
20711 if (PyErr_Occurred()) SWIG_fail;
20712 }
20713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20714 return resultobj;
20715 fail:
20716 return NULL;
20717 }
20718
20719
20720 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20721 PyObject *resultobj = 0;
20722 wxNotebook *arg1 = (wxNotebook *) 0 ;
20723 wxWindow *arg2 = (wxWindow *) 0 ;
20724 int arg3 = (int) -1 ;
20725 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20726 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20727 wxSize const &arg5_defvalue = wxDefaultSize ;
20728 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20729 long arg6 = (long) 0 ;
20730 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20731 wxString *arg7 = (wxString *) &arg7_defvalue ;
20732 bool result;
20733 void *argp1 = 0 ;
20734 int res1 = 0 ;
20735 void *argp2 = 0 ;
20736 int res2 = 0 ;
20737 int val3 ;
20738 int ecode3 = 0 ;
20739 wxPoint temp4 ;
20740 wxSize temp5 ;
20741 long val6 ;
20742 int ecode6 = 0 ;
20743 bool temp7 = false ;
20744 PyObject * obj0 = 0 ;
20745 PyObject * obj1 = 0 ;
20746 PyObject * obj2 = 0 ;
20747 PyObject * obj3 = 0 ;
20748 PyObject * obj4 = 0 ;
20749 PyObject * obj5 = 0 ;
20750 PyObject * obj6 = 0 ;
20751 char * kwnames[] = {
20752 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20753 };
20754
20755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20757 if (!SWIG_IsOK(res1)) {
20758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20759 }
20760 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20761 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20762 if (!SWIG_IsOK(res2)) {
20763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20764 }
20765 arg2 = reinterpret_cast< wxWindow * >(argp2);
20766 if (obj2) {
20767 ecode3 = SWIG_AsVal_int(obj2, &val3);
20768 if (!SWIG_IsOK(ecode3)) {
20769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20770 }
20771 arg3 = static_cast< int >(val3);
20772 }
20773 if (obj3) {
20774 {
20775 arg4 = &temp4;
20776 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20777 }
20778 }
20779 if (obj4) {
20780 {
20781 arg5 = &temp5;
20782 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20783 }
20784 }
20785 if (obj5) {
20786 ecode6 = SWIG_AsVal_long(obj5, &val6);
20787 if (!SWIG_IsOK(ecode6)) {
20788 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20789 }
20790 arg6 = static_cast< long >(val6);
20791 }
20792 if (obj6) {
20793 {
20794 arg7 = wxString_in_helper(obj6);
20795 if (arg7 == NULL) SWIG_fail;
20796 temp7 = true;
20797 }
20798 }
20799 {
20800 PyThreadState* __tstate = wxPyBeginAllowThreads();
20801 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20802 wxPyEndAllowThreads(__tstate);
20803 if (PyErr_Occurred()) SWIG_fail;
20804 }
20805 {
20806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20807 }
20808 {
20809 if (temp7)
20810 delete arg7;
20811 }
20812 return resultobj;
20813 fail:
20814 {
20815 if (temp7)
20816 delete arg7;
20817 }
20818 return NULL;
20819 }
20820
20821
20822 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20823 PyObject *resultobj = 0;
20824 wxNotebook *arg1 = (wxNotebook *) 0 ;
20825 int result;
20826 void *argp1 = 0 ;
20827 int res1 = 0 ;
20828 PyObject *swig_obj[1] ;
20829
20830 if (!args) SWIG_fail;
20831 swig_obj[0] = args;
20832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20833 if (!SWIG_IsOK(res1)) {
20834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20835 }
20836 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20837 {
20838 PyThreadState* __tstate = wxPyBeginAllowThreads();
20839 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20840 wxPyEndAllowThreads(__tstate);
20841 if (PyErr_Occurred()) SWIG_fail;
20842 }
20843 resultobj = SWIG_From_int(static_cast< int >(result));
20844 return resultobj;
20845 fail:
20846 return NULL;
20847 }
20848
20849
20850 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20851 PyObject *resultobj = 0;
20852 wxNotebook *arg1 = (wxNotebook *) 0 ;
20853 wxSize *arg2 = 0 ;
20854 void *argp1 = 0 ;
20855 int res1 = 0 ;
20856 wxSize temp2 ;
20857 PyObject * obj0 = 0 ;
20858 PyObject * obj1 = 0 ;
20859 char * kwnames[] = {
20860 (char *) "self",(char *) "padding", NULL
20861 };
20862
20863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20865 if (!SWIG_IsOK(res1)) {
20866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20867 }
20868 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20869 {
20870 arg2 = &temp2;
20871 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20872 }
20873 {
20874 PyThreadState* __tstate = wxPyBeginAllowThreads();
20875 (arg1)->SetPadding((wxSize const &)*arg2);
20876 wxPyEndAllowThreads(__tstate);
20877 if (PyErr_Occurred()) SWIG_fail;
20878 }
20879 resultobj = SWIG_Py_Void();
20880 return resultobj;
20881 fail:
20882 return NULL;
20883 }
20884
20885
20886 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20887 PyObject *resultobj = 0;
20888 wxNotebook *arg1 = (wxNotebook *) 0 ;
20889 wxSize *arg2 = 0 ;
20890 void *argp1 = 0 ;
20891 int res1 = 0 ;
20892 wxSize temp2 ;
20893 PyObject * obj0 = 0 ;
20894 PyObject * obj1 = 0 ;
20895 char * kwnames[] = {
20896 (char *) "self",(char *) "sz", NULL
20897 };
20898
20899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20901 if (!SWIG_IsOK(res1)) {
20902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20903 }
20904 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20905 {
20906 arg2 = &temp2;
20907 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20908 }
20909 {
20910 PyThreadState* __tstate = wxPyBeginAllowThreads();
20911 (arg1)->SetTabSize((wxSize const &)*arg2);
20912 wxPyEndAllowThreads(__tstate);
20913 if (PyErr_Occurred()) SWIG_fail;
20914 }
20915 resultobj = SWIG_Py_Void();
20916 return resultobj;
20917 fail:
20918 return NULL;
20919 }
20920
20921
20922 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20923 PyObject *resultobj = 0;
20924 wxNotebook *arg1 = (wxNotebook *) 0 ;
20925 wxColour result;
20926 void *argp1 = 0 ;
20927 int res1 = 0 ;
20928 PyObject *swig_obj[1] ;
20929
20930 if (!args) SWIG_fail;
20931 swig_obj[0] = args;
20932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20933 if (!SWIG_IsOK(res1)) {
20934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20935 }
20936 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20937 {
20938 PyThreadState* __tstate = wxPyBeginAllowThreads();
20939 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20940 wxPyEndAllowThreads(__tstate);
20941 if (PyErr_Occurred()) SWIG_fail;
20942 }
20943 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20944 return resultobj;
20945 fail:
20946 return NULL;
20947 }
20948
20949
20950 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20951 PyObject *resultobj = 0;
20952 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20953 SwigValueWrapper<wxVisualAttributes > result;
20954 int val1 ;
20955 int ecode1 = 0 ;
20956 PyObject * obj0 = 0 ;
20957 char * kwnames[] = {
20958 (char *) "variant", NULL
20959 };
20960
20961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20962 if (obj0) {
20963 ecode1 = SWIG_AsVal_int(obj0, &val1);
20964 if (!SWIG_IsOK(ecode1)) {
20965 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20966 }
20967 arg1 = static_cast< wxWindowVariant >(val1);
20968 }
20969 {
20970 if (!wxPyCheckForApp()) SWIG_fail;
20971 PyThreadState* __tstate = wxPyBeginAllowThreads();
20972 result = wxNotebook::GetClassDefaultAttributes(arg1);
20973 wxPyEndAllowThreads(__tstate);
20974 if (PyErr_Occurred()) SWIG_fail;
20975 }
20976 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20977 return resultobj;
20978 fail:
20979 return NULL;
20980 }
20981
20982
20983 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20984 PyObject *resultobj = 0;
20985 wxNotebook *arg1 = (wxNotebook *) 0 ;
20986 int arg2 ;
20987 bool result;
20988 void *argp1 = 0 ;
20989 int res1 = 0 ;
20990 int val2 ;
20991 int ecode2 = 0 ;
20992 PyObject * obj0 = 0 ;
20993 PyObject * obj1 = 0 ;
20994 char * kwnames[] = {
20995 (char *) "self",(char *) "nPage", NULL
20996 };
20997
20998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
20999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21000 if (!SWIG_IsOK(res1)) {
21001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21002 }
21003 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21004 ecode2 = SWIG_AsVal_int(obj1, &val2);
21005 if (!SWIG_IsOK(ecode2)) {
21006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21007 }
21008 arg2 = static_cast< int >(val2);
21009 {
21010 PyThreadState* __tstate = wxPyBeginAllowThreads();
21011 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21012 wxPyEndAllowThreads(__tstate);
21013 if (PyErr_Occurred()) SWIG_fail;
21014 }
21015 {
21016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21017 }
21018 return resultobj;
21019 fail:
21020 return NULL;
21021 }
21022
21023
21024 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21025 PyObject *resultobj = 0;
21026 wxNotebook *arg1 = (wxNotebook *) 0 ;
21027 int arg2 ;
21028 int arg3 = (int) -1 ;
21029 void *argp1 = 0 ;
21030 int res1 = 0 ;
21031 int val2 ;
21032 int ecode2 = 0 ;
21033 int val3 ;
21034 int ecode3 = 0 ;
21035 PyObject * obj0 = 0 ;
21036 PyObject * obj1 = 0 ;
21037 PyObject * obj2 = 0 ;
21038 char * kwnames[] = {
21039 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21040 };
21041
21042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21044 if (!SWIG_IsOK(res1)) {
21045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21046 }
21047 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21048 ecode2 = SWIG_AsVal_int(obj1, &val2);
21049 if (!SWIG_IsOK(ecode2)) {
21050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21051 }
21052 arg2 = static_cast< int >(val2);
21053 if (obj2) {
21054 ecode3 = SWIG_AsVal_int(obj2, &val3);
21055 if (!SWIG_IsOK(ecode3)) {
21056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21057 }
21058 arg3 = static_cast< int >(val3);
21059 }
21060 {
21061 PyThreadState* __tstate = wxPyBeginAllowThreads();
21062 (arg1)->SendPageChangedEvent(arg2,arg3);
21063 wxPyEndAllowThreads(__tstate);
21064 if (PyErr_Occurred()) SWIG_fail;
21065 }
21066 resultobj = SWIG_Py_Void();
21067 return resultobj;
21068 fail:
21069 return NULL;
21070 }
21071
21072
21073 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21074 PyObject *obj;
21075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21076 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21077 return SWIG_Py_Void();
21078 }
21079
21080 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21081 return SWIG_Python_InitShadowInstance(args);
21082 }
21083
21084 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21085 PyObject *resultobj = 0;
21086 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21087 int arg2 = (int) 0 ;
21088 int arg3 = (int) -1 ;
21089 int arg4 = (int) -1 ;
21090 wxNotebookEvent *result = 0 ;
21091 int val1 ;
21092 int ecode1 = 0 ;
21093 int val2 ;
21094 int ecode2 = 0 ;
21095 int val3 ;
21096 int ecode3 = 0 ;
21097 int val4 ;
21098 int ecode4 = 0 ;
21099 PyObject * obj0 = 0 ;
21100 PyObject * obj1 = 0 ;
21101 PyObject * obj2 = 0 ;
21102 PyObject * obj3 = 0 ;
21103 char * kwnames[] = {
21104 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21105 };
21106
21107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21108 if (obj0) {
21109 ecode1 = SWIG_AsVal_int(obj0, &val1);
21110 if (!SWIG_IsOK(ecode1)) {
21111 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21112 }
21113 arg1 = static_cast< wxEventType >(val1);
21114 }
21115 if (obj1) {
21116 ecode2 = SWIG_AsVal_int(obj1, &val2);
21117 if (!SWIG_IsOK(ecode2)) {
21118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21119 }
21120 arg2 = static_cast< int >(val2);
21121 }
21122 if (obj2) {
21123 ecode3 = SWIG_AsVal_int(obj2, &val3);
21124 if (!SWIG_IsOK(ecode3)) {
21125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21126 }
21127 arg3 = static_cast< int >(val3);
21128 }
21129 if (obj3) {
21130 ecode4 = SWIG_AsVal_int(obj3, &val4);
21131 if (!SWIG_IsOK(ecode4)) {
21132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21133 }
21134 arg4 = static_cast< int >(val4);
21135 }
21136 {
21137 PyThreadState* __tstate = wxPyBeginAllowThreads();
21138 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21139 wxPyEndAllowThreads(__tstate);
21140 if (PyErr_Occurred()) SWIG_fail;
21141 }
21142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21143 return resultobj;
21144 fail:
21145 return NULL;
21146 }
21147
21148
21149 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21150 PyObject *obj;
21151 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21152 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21153 return SWIG_Py_Void();
21154 }
21155
21156 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21157 return SWIG_Python_InitShadowInstance(args);
21158 }
21159
21160 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21161 PyObject *resultobj = 0;
21162 wxWindow *arg1 = (wxWindow *) 0 ;
21163 int arg2 = (int) -1 ;
21164 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21165 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21166 wxSize const &arg4_defvalue = wxDefaultSize ;
21167 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21168 long arg5 = (long) 0 ;
21169 wxString const &arg6_defvalue = wxPyEmptyString ;
21170 wxString *arg6 = (wxString *) &arg6_defvalue ;
21171 wxListbook *result = 0 ;
21172 void *argp1 = 0 ;
21173 int res1 = 0 ;
21174 int val2 ;
21175 int ecode2 = 0 ;
21176 wxPoint temp3 ;
21177 wxSize temp4 ;
21178 long val5 ;
21179 int ecode5 = 0 ;
21180 bool temp6 = false ;
21181 PyObject * obj0 = 0 ;
21182 PyObject * obj1 = 0 ;
21183 PyObject * obj2 = 0 ;
21184 PyObject * obj3 = 0 ;
21185 PyObject * obj4 = 0 ;
21186 PyObject * obj5 = 0 ;
21187 char * kwnames[] = {
21188 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21189 };
21190
21191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21193 if (!SWIG_IsOK(res1)) {
21194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21195 }
21196 arg1 = reinterpret_cast< wxWindow * >(argp1);
21197 if (obj1) {
21198 ecode2 = SWIG_AsVal_int(obj1, &val2);
21199 if (!SWIG_IsOK(ecode2)) {
21200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21201 }
21202 arg2 = static_cast< int >(val2);
21203 }
21204 if (obj2) {
21205 {
21206 arg3 = &temp3;
21207 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21208 }
21209 }
21210 if (obj3) {
21211 {
21212 arg4 = &temp4;
21213 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21214 }
21215 }
21216 if (obj4) {
21217 ecode5 = SWIG_AsVal_long(obj4, &val5);
21218 if (!SWIG_IsOK(ecode5)) {
21219 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21220 }
21221 arg5 = static_cast< long >(val5);
21222 }
21223 if (obj5) {
21224 {
21225 arg6 = wxString_in_helper(obj5);
21226 if (arg6 == NULL) SWIG_fail;
21227 temp6 = true;
21228 }
21229 }
21230 {
21231 if (!wxPyCheckForApp()) SWIG_fail;
21232 PyThreadState* __tstate = wxPyBeginAllowThreads();
21233 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21234 wxPyEndAllowThreads(__tstate);
21235 if (PyErr_Occurred()) SWIG_fail;
21236 }
21237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21238 {
21239 if (temp6)
21240 delete arg6;
21241 }
21242 return resultobj;
21243 fail:
21244 {
21245 if (temp6)
21246 delete arg6;
21247 }
21248 return NULL;
21249 }
21250
21251
21252 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21253 PyObject *resultobj = 0;
21254 wxListbook *result = 0 ;
21255
21256 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21257 {
21258 if (!wxPyCheckForApp()) SWIG_fail;
21259 PyThreadState* __tstate = wxPyBeginAllowThreads();
21260 result = (wxListbook *)new wxListbook();
21261 wxPyEndAllowThreads(__tstate);
21262 if (PyErr_Occurred()) SWIG_fail;
21263 }
21264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21265 return resultobj;
21266 fail:
21267 return NULL;
21268 }
21269
21270
21271 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21272 PyObject *resultobj = 0;
21273 wxListbook *arg1 = (wxListbook *) 0 ;
21274 wxWindow *arg2 = (wxWindow *) 0 ;
21275 int arg3 = (int) -1 ;
21276 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21277 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21278 wxSize const &arg5_defvalue = wxDefaultSize ;
21279 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21280 long arg6 = (long) 0 ;
21281 wxString const &arg7_defvalue = wxPyEmptyString ;
21282 wxString *arg7 = (wxString *) &arg7_defvalue ;
21283 bool result;
21284 void *argp1 = 0 ;
21285 int res1 = 0 ;
21286 void *argp2 = 0 ;
21287 int res2 = 0 ;
21288 int val3 ;
21289 int ecode3 = 0 ;
21290 wxPoint temp4 ;
21291 wxSize temp5 ;
21292 long val6 ;
21293 int ecode6 = 0 ;
21294 bool temp7 = false ;
21295 PyObject * obj0 = 0 ;
21296 PyObject * obj1 = 0 ;
21297 PyObject * obj2 = 0 ;
21298 PyObject * obj3 = 0 ;
21299 PyObject * obj4 = 0 ;
21300 PyObject * obj5 = 0 ;
21301 PyObject * obj6 = 0 ;
21302 char * kwnames[] = {
21303 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21304 };
21305
21306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21308 if (!SWIG_IsOK(res1)) {
21309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21310 }
21311 arg1 = reinterpret_cast< wxListbook * >(argp1);
21312 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21313 if (!SWIG_IsOK(res2)) {
21314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21315 }
21316 arg2 = reinterpret_cast< wxWindow * >(argp2);
21317 if (obj2) {
21318 ecode3 = SWIG_AsVal_int(obj2, &val3);
21319 if (!SWIG_IsOK(ecode3)) {
21320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21321 }
21322 arg3 = static_cast< int >(val3);
21323 }
21324 if (obj3) {
21325 {
21326 arg4 = &temp4;
21327 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21328 }
21329 }
21330 if (obj4) {
21331 {
21332 arg5 = &temp5;
21333 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21334 }
21335 }
21336 if (obj5) {
21337 ecode6 = SWIG_AsVal_long(obj5, &val6);
21338 if (!SWIG_IsOK(ecode6)) {
21339 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21340 }
21341 arg6 = static_cast< long >(val6);
21342 }
21343 if (obj6) {
21344 {
21345 arg7 = wxString_in_helper(obj6);
21346 if (arg7 == NULL) SWIG_fail;
21347 temp7 = true;
21348 }
21349 }
21350 {
21351 PyThreadState* __tstate = wxPyBeginAllowThreads();
21352 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21353 wxPyEndAllowThreads(__tstate);
21354 if (PyErr_Occurred()) SWIG_fail;
21355 }
21356 {
21357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21358 }
21359 {
21360 if (temp7)
21361 delete arg7;
21362 }
21363 return resultobj;
21364 fail:
21365 {
21366 if (temp7)
21367 delete arg7;
21368 }
21369 return NULL;
21370 }
21371
21372
21373 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21374 PyObject *resultobj = 0;
21375 wxListbook *arg1 = (wxListbook *) 0 ;
21376 wxListView *result = 0 ;
21377 void *argp1 = 0 ;
21378 int res1 = 0 ;
21379 PyObject *swig_obj[1] ;
21380
21381 if (!args) SWIG_fail;
21382 swig_obj[0] = args;
21383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21384 if (!SWIG_IsOK(res1)) {
21385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21386 }
21387 arg1 = reinterpret_cast< wxListbook * >(argp1);
21388 {
21389 PyThreadState* __tstate = wxPyBeginAllowThreads();
21390 result = (wxListView *)(arg1)->GetListView();
21391 wxPyEndAllowThreads(__tstate);
21392 if (PyErr_Occurred()) SWIG_fail;
21393 }
21394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21395 return resultobj;
21396 fail:
21397 return NULL;
21398 }
21399
21400
21401 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21402 PyObject *obj;
21403 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21404 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21405 return SWIG_Py_Void();
21406 }
21407
21408 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21409 return SWIG_Python_InitShadowInstance(args);
21410 }
21411
21412 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21413 PyObject *resultobj = 0;
21414 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21415 int arg2 = (int) 0 ;
21416 int arg3 = (int) -1 ;
21417 int arg4 = (int) -1 ;
21418 wxListbookEvent *result = 0 ;
21419 int val1 ;
21420 int ecode1 = 0 ;
21421 int val2 ;
21422 int ecode2 = 0 ;
21423 int val3 ;
21424 int ecode3 = 0 ;
21425 int val4 ;
21426 int ecode4 = 0 ;
21427 PyObject * obj0 = 0 ;
21428 PyObject * obj1 = 0 ;
21429 PyObject * obj2 = 0 ;
21430 PyObject * obj3 = 0 ;
21431 char * kwnames[] = {
21432 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21433 };
21434
21435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21436 if (obj0) {
21437 ecode1 = SWIG_AsVal_int(obj0, &val1);
21438 if (!SWIG_IsOK(ecode1)) {
21439 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21440 }
21441 arg1 = static_cast< wxEventType >(val1);
21442 }
21443 if (obj1) {
21444 ecode2 = SWIG_AsVal_int(obj1, &val2);
21445 if (!SWIG_IsOK(ecode2)) {
21446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21447 }
21448 arg2 = static_cast< int >(val2);
21449 }
21450 if (obj2) {
21451 ecode3 = SWIG_AsVal_int(obj2, &val3);
21452 if (!SWIG_IsOK(ecode3)) {
21453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21454 }
21455 arg3 = static_cast< int >(val3);
21456 }
21457 if (obj3) {
21458 ecode4 = SWIG_AsVal_int(obj3, &val4);
21459 if (!SWIG_IsOK(ecode4)) {
21460 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21461 }
21462 arg4 = static_cast< int >(val4);
21463 }
21464 {
21465 PyThreadState* __tstate = wxPyBeginAllowThreads();
21466 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21467 wxPyEndAllowThreads(__tstate);
21468 if (PyErr_Occurred()) SWIG_fail;
21469 }
21470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21471 return resultobj;
21472 fail:
21473 return NULL;
21474 }
21475
21476
21477 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21478 PyObject *obj;
21479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21480 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21481 return SWIG_Py_Void();
21482 }
21483
21484 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21485 return SWIG_Python_InitShadowInstance(args);
21486 }
21487
21488 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21489 PyObject *resultobj = 0;
21490 wxWindow *arg1 = (wxWindow *) 0 ;
21491 int arg2 ;
21492 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21493 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21494 wxSize const &arg4_defvalue = wxDefaultSize ;
21495 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21496 long arg5 = (long) 0 ;
21497 wxString const &arg6_defvalue = wxPyEmptyString ;
21498 wxString *arg6 = (wxString *) &arg6_defvalue ;
21499 wxChoicebook *result = 0 ;
21500 void *argp1 = 0 ;
21501 int res1 = 0 ;
21502 int val2 ;
21503 int ecode2 = 0 ;
21504 wxPoint temp3 ;
21505 wxSize temp4 ;
21506 long val5 ;
21507 int ecode5 = 0 ;
21508 bool temp6 = false ;
21509 PyObject * obj0 = 0 ;
21510 PyObject * obj1 = 0 ;
21511 PyObject * obj2 = 0 ;
21512 PyObject * obj3 = 0 ;
21513 PyObject * obj4 = 0 ;
21514 PyObject * obj5 = 0 ;
21515 char * kwnames[] = {
21516 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21517 };
21518
21519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21521 if (!SWIG_IsOK(res1)) {
21522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21523 }
21524 arg1 = reinterpret_cast< wxWindow * >(argp1);
21525 ecode2 = SWIG_AsVal_int(obj1, &val2);
21526 if (!SWIG_IsOK(ecode2)) {
21527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21528 }
21529 arg2 = static_cast< int >(val2);
21530 if (obj2) {
21531 {
21532 arg3 = &temp3;
21533 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21534 }
21535 }
21536 if (obj3) {
21537 {
21538 arg4 = &temp4;
21539 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21540 }
21541 }
21542 if (obj4) {
21543 ecode5 = SWIG_AsVal_long(obj4, &val5);
21544 if (!SWIG_IsOK(ecode5)) {
21545 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21546 }
21547 arg5 = static_cast< long >(val5);
21548 }
21549 if (obj5) {
21550 {
21551 arg6 = wxString_in_helper(obj5);
21552 if (arg6 == NULL) SWIG_fail;
21553 temp6 = true;
21554 }
21555 }
21556 {
21557 if (!wxPyCheckForApp()) SWIG_fail;
21558 PyThreadState* __tstate = wxPyBeginAllowThreads();
21559 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21560 wxPyEndAllowThreads(__tstate);
21561 if (PyErr_Occurred()) SWIG_fail;
21562 }
21563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21564 {
21565 if (temp6)
21566 delete arg6;
21567 }
21568 return resultobj;
21569 fail:
21570 {
21571 if (temp6)
21572 delete arg6;
21573 }
21574 return NULL;
21575 }
21576
21577
21578 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21579 PyObject *resultobj = 0;
21580 wxChoicebook *result = 0 ;
21581
21582 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21583 {
21584 if (!wxPyCheckForApp()) SWIG_fail;
21585 PyThreadState* __tstate = wxPyBeginAllowThreads();
21586 result = (wxChoicebook *)new wxChoicebook();
21587 wxPyEndAllowThreads(__tstate);
21588 if (PyErr_Occurred()) SWIG_fail;
21589 }
21590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21591 return resultobj;
21592 fail:
21593 return NULL;
21594 }
21595
21596
21597 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21598 PyObject *resultobj = 0;
21599 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21600 wxWindow *arg2 = (wxWindow *) 0 ;
21601 int arg3 ;
21602 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21603 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21604 wxSize const &arg5_defvalue = wxDefaultSize ;
21605 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21606 long arg6 = (long) 0 ;
21607 wxString const &arg7_defvalue = wxPyEmptyString ;
21608 wxString *arg7 = (wxString *) &arg7_defvalue ;
21609 bool result;
21610 void *argp1 = 0 ;
21611 int res1 = 0 ;
21612 void *argp2 = 0 ;
21613 int res2 = 0 ;
21614 int val3 ;
21615 int ecode3 = 0 ;
21616 wxPoint temp4 ;
21617 wxSize temp5 ;
21618 long val6 ;
21619 int ecode6 = 0 ;
21620 bool temp7 = false ;
21621 PyObject * obj0 = 0 ;
21622 PyObject * obj1 = 0 ;
21623 PyObject * obj2 = 0 ;
21624 PyObject * obj3 = 0 ;
21625 PyObject * obj4 = 0 ;
21626 PyObject * obj5 = 0 ;
21627 PyObject * obj6 = 0 ;
21628 char * kwnames[] = {
21629 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21630 };
21631
21632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21634 if (!SWIG_IsOK(res1)) {
21635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21636 }
21637 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21638 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21639 if (!SWIG_IsOK(res2)) {
21640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21641 }
21642 arg2 = reinterpret_cast< wxWindow * >(argp2);
21643 ecode3 = SWIG_AsVal_int(obj2, &val3);
21644 if (!SWIG_IsOK(ecode3)) {
21645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21646 }
21647 arg3 = static_cast< int >(val3);
21648 if (obj3) {
21649 {
21650 arg4 = &temp4;
21651 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21652 }
21653 }
21654 if (obj4) {
21655 {
21656 arg5 = &temp5;
21657 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21658 }
21659 }
21660 if (obj5) {
21661 ecode6 = SWIG_AsVal_long(obj5, &val6);
21662 if (!SWIG_IsOK(ecode6)) {
21663 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21664 }
21665 arg6 = static_cast< long >(val6);
21666 }
21667 if (obj6) {
21668 {
21669 arg7 = wxString_in_helper(obj6);
21670 if (arg7 == NULL) SWIG_fail;
21671 temp7 = true;
21672 }
21673 }
21674 {
21675 PyThreadState* __tstate = wxPyBeginAllowThreads();
21676 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21677 wxPyEndAllowThreads(__tstate);
21678 if (PyErr_Occurred()) SWIG_fail;
21679 }
21680 {
21681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21682 }
21683 {
21684 if (temp7)
21685 delete arg7;
21686 }
21687 return resultobj;
21688 fail:
21689 {
21690 if (temp7)
21691 delete arg7;
21692 }
21693 return NULL;
21694 }
21695
21696
21697 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21698 PyObject *resultobj = 0;
21699 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21700 wxChoice *result = 0 ;
21701 void *argp1 = 0 ;
21702 int res1 = 0 ;
21703 PyObject *swig_obj[1] ;
21704
21705 if (!args) SWIG_fail;
21706 swig_obj[0] = args;
21707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21708 if (!SWIG_IsOK(res1)) {
21709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21710 }
21711 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21712 {
21713 PyThreadState* __tstate = wxPyBeginAllowThreads();
21714 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21715 wxPyEndAllowThreads(__tstate);
21716 if (PyErr_Occurred()) SWIG_fail;
21717 }
21718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21719 return resultobj;
21720 fail:
21721 return NULL;
21722 }
21723
21724
21725 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21726 PyObject *obj;
21727 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21728 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21729 return SWIG_Py_Void();
21730 }
21731
21732 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21733 return SWIG_Python_InitShadowInstance(args);
21734 }
21735
21736 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21737 PyObject *resultobj = 0;
21738 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21739 int arg2 = (int) 0 ;
21740 int arg3 = (int) -1 ;
21741 int arg4 = (int) -1 ;
21742 wxChoicebookEvent *result = 0 ;
21743 int val1 ;
21744 int ecode1 = 0 ;
21745 int val2 ;
21746 int ecode2 = 0 ;
21747 int val3 ;
21748 int ecode3 = 0 ;
21749 int val4 ;
21750 int ecode4 = 0 ;
21751 PyObject * obj0 = 0 ;
21752 PyObject * obj1 = 0 ;
21753 PyObject * obj2 = 0 ;
21754 PyObject * obj3 = 0 ;
21755 char * kwnames[] = {
21756 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21757 };
21758
21759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21760 if (obj0) {
21761 ecode1 = SWIG_AsVal_int(obj0, &val1);
21762 if (!SWIG_IsOK(ecode1)) {
21763 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21764 }
21765 arg1 = static_cast< wxEventType >(val1);
21766 }
21767 if (obj1) {
21768 ecode2 = SWIG_AsVal_int(obj1, &val2);
21769 if (!SWIG_IsOK(ecode2)) {
21770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21771 }
21772 arg2 = static_cast< int >(val2);
21773 }
21774 if (obj2) {
21775 ecode3 = SWIG_AsVal_int(obj2, &val3);
21776 if (!SWIG_IsOK(ecode3)) {
21777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21778 }
21779 arg3 = static_cast< int >(val3);
21780 }
21781 if (obj3) {
21782 ecode4 = SWIG_AsVal_int(obj3, &val4);
21783 if (!SWIG_IsOK(ecode4)) {
21784 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21785 }
21786 arg4 = static_cast< int >(val4);
21787 }
21788 {
21789 PyThreadState* __tstate = wxPyBeginAllowThreads();
21790 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21791 wxPyEndAllowThreads(__tstate);
21792 if (PyErr_Occurred()) SWIG_fail;
21793 }
21794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21795 return resultobj;
21796 fail:
21797 return NULL;
21798 }
21799
21800
21801 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21802 PyObject *obj;
21803 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21804 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21805 return SWIG_Py_Void();
21806 }
21807
21808 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21809 return SWIG_Python_InitShadowInstance(args);
21810 }
21811
21812 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21813 PyObject *resultobj = 0;
21814 wxWindow *arg1 = (wxWindow *) 0 ;
21815 int arg2 ;
21816 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21817 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21818 wxSize const &arg4_defvalue = wxDefaultSize ;
21819 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21820 long arg5 = (long) wxBK_DEFAULT ;
21821 wxString const &arg6_defvalue = wxPyEmptyString ;
21822 wxString *arg6 = (wxString *) &arg6_defvalue ;
21823 wxTreebook *result = 0 ;
21824 void *argp1 = 0 ;
21825 int res1 = 0 ;
21826 int val2 ;
21827 int ecode2 = 0 ;
21828 wxPoint temp3 ;
21829 wxSize temp4 ;
21830 long val5 ;
21831 int ecode5 = 0 ;
21832 bool temp6 = false ;
21833 PyObject * obj0 = 0 ;
21834 PyObject * obj1 = 0 ;
21835 PyObject * obj2 = 0 ;
21836 PyObject * obj3 = 0 ;
21837 PyObject * obj4 = 0 ;
21838 PyObject * obj5 = 0 ;
21839 char * kwnames[] = {
21840 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21841 };
21842
21843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21845 if (!SWIG_IsOK(res1)) {
21846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21847 }
21848 arg1 = reinterpret_cast< wxWindow * >(argp1);
21849 ecode2 = SWIG_AsVal_int(obj1, &val2);
21850 if (!SWIG_IsOK(ecode2)) {
21851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21852 }
21853 arg2 = static_cast< int >(val2);
21854 if (obj2) {
21855 {
21856 arg3 = &temp3;
21857 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21858 }
21859 }
21860 if (obj3) {
21861 {
21862 arg4 = &temp4;
21863 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21864 }
21865 }
21866 if (obj4) {
21867 ecode5 = SWIG_AsVal_long(obj4, &val5);
21868 if (!SWIG_IsOK(ecode5)) {
21869 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21870 }
21871 arg5 = static_cast< long >(val5);
21872 }
21873 if (obj5) {
21874 {
21875 arg6 = wxString_in_helper(obj5);
21876 if (arg6 == NULL) SWIG_fail;
21877 temp6 = true;
21878 }
21879 }
21880 {
21881 if (!wxPyCheckForApp()) SWIG_fail;
21882 PyThreadState* __tstate = wxPyBeginAllowThreads();
21883 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21884 wxPyEndAllowThreads(__tstate);
21885 if (PyErr_Occurred()) SWIG_fail;
21886 }
21887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21888 {
21889 if (temp6)
21890 delete arg6;
21891 }
21892 return resultobj;
21893 fail:
21894 {
21895 if (temp6)
21896 delete arg6;
21897 }
21898 return NULL;
21899 }
21900
21901
21902 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21903 PyObject *resultobj = 0;
21904 wxTreebook *result = 0 ;
21905
21906 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21907 {
21908 if (!wxPyCheckForApp()) SWIG_fail;
21909 PyThreadState* __tstate = wxPyBeginAllowThreads();
21910 result = (wxTreebook *)new wxTreebook();
21911 wxPyEndAllowThreads(__tstate);
21912 if (PyErr_Occurred()) SWIG_fail;
21913 }
21914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21915 return resultobj;
21916 fail:
21917 return NULL;
21918 }
21919
21920
21921 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21922 PyObject *resultobj = 0;
21923 wxTreebook *arg1 = (wxTreebook *) 0 ;
21924 wxWindow *arg2 = (wxWindow *) 0 ;
21925 int arg3 ;
21926 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21927 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21928 wxSize const &arg5_defvalue = wxDefaultSize ;
21929 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21930 long arg6 = (long) wxBK_DEFAULT ;
21931 wxString const &arg7_defvalue = wxPyEmptyString ;
21932 wxString *arg7 = (wxString *) &arg7_defvalue ;
21933 bool result;
21934 void *argp1 = 0 ;
21935 int res1 = 0 ;
21936 void *argp2 = 0 ;
21937 int res2 = 0 ;
21938 int val3 ;
21939 int ecode3 = 0 ;
21940 wxPoint temp4 ;
21941 wxSize temp5 ;
21942 long val6 ;
21943 int ecode6 = 0 ;
21944 bool temp7 = false ;
21945 PyObject * obj0 = 0 ;
21946 PyObject * obj1 = 0 ;
21947 PyObject * obj2 = 0 ;
21948 PyObject * obj3 = 0 ;
21949 PyObject * obj4 = 0 ;
21950 PyObject * obj5 = 0 ;
21951 PyObject * obj6 = 0 ;
21952 char * kwnames[] = {
21953 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21954 };
21955
21956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21958 if (!SWIG_IsOK(res1)) {
21959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21960 }
21961 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21962 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21963 if (!SWIG_IsOK(res2)) {
21964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21965 }
21966 arg2 = reinterpret_cast< wxWindow * >(argp2);
21967 ecode3 = SWIG_AsVal_int(obj2, &val3);
21968 if (!SWIG_IsOK(ecode3)) {
21969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21970 }
21971 arg3 = static_cast< int >(val3);
21972 if (obj3) {
21973 {
21974 arg4 = &temp4;
21975 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21976 }
21977 }
21978 if (obj4) {
21979 {
21980 arg5 = &temp5;
21981 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21982 }
21983 }
21984 if (obj5) {
21985 ecode6 = SWIG_AsVal_long(obj5, &val6);
21986 if (!SWIG_IsOK(ecode6)) {
21987 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21988 }
21989 arg6 = static_cast< long >(val6);
21990 }
21991 if (obj6) {
21992 {
21993 arg7 = wxString_in_helper(obj6);
21994 if (arg7 == NULL) SWIG_fail;
21995 temp7 = true;
21996 }
21997 }
21998 {
21999 PyThreadState* __tstate = wxPyBeginAllowThreads();
22000 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22001 wxPyEndAllowThreads(__tstate);
22002 if (PyErr_Occurred()) SWIG_fail;
22003 }
22004 {
22005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22006 }
22007 {
22008 if (temp7)
22009 delete arg7;
22010 }
22011 return resultobj;
22012 fail:
22013 {
22014 if (temp7)
22015 delete arg7;
22016 }
22017 return NULL;
22018 }
22019
22020
22021 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22022 PyObject *resultobj = 0;
22023 wxTreebook *arg1 = (wxTreebook *) 0 ;
22024 size_t arg2 ;
22025 wxWindow *arg3 = (wxWindow *) 0 ;
22026 wxString *arg4 = 0 ;
22027 bool arg5 = (bool) false ;
22028 int arg6 = (int) wxNOT_FOUND ;
22029 bool result;
22030 void *argp1 = 0 ;
22031 int res1 = 0 ;
22032 size_t val2 ;
22033 int ecode2 = 0 ;
22034 void *argp3 = 0 ;
22035 int res3 = 0 ;
22036 bool temp4 = false ;
22037 bool val5 ;
22038 int ecode5 = 0 ;
22039 int val6 ;
22040 int ecode6 = 0 ;
22041 PyObject * obj0 = 0 ;
22042 PyObject * obj1 = 0 ;
22043 PyObject * obj2 = 0 ;
22044 PyObject * obj3 = 0 ;
22045 PyObject * obj4 = 0 ;
22046 PyObject * obj5 = 0 ;
22047 char * kwnames[] = {
22048 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22049 };
22050
22051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22053 if (!SWIG_IsOK(res1)) {
22054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22055 }
22056 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22057 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22058 if (!SWIG_IsOK(ecode2)) {
22059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22060 }
22061 arg2 = static_cast< size_t >(val2);
22062 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22063 if (!SWIG_IsOK(res3)) {
22064 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22065 }
22066 arg3 = reinterpret_cast< wxWindow * >(argp3);
22067 {
22068 arg4 = wxString_in_helper(obj3);
22069 if (arg4 == NULL) SWIG_fail;
22070 temp4 = true;
22071 }
22072 if (obj4) {
22073 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22074 if (!SWIG_IsOK(ecode5)) {
22075 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22076 }
22077 arg5 = static_cast< bool >(val5);
22078 }
22079 if (obj5) {
22080 ecode6 = SWIG_AsVal_int(obj5, &val6);
22081 if (!SWIG_IsOK(ecode6)) {
22082 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22083 }
22084 arg6 = static_cast< int >(val6);
22085 }
22086 {
22087 PyThreadState* __tstate = wxPyBeginAllowThreads();
22088 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22089 wxPyEndAllowThreads(__tstate);
22090 if (PyErr_Occurred()) SWIG_fail;
22091 }
22092 {
22093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22094 }
22095 {
22096 if (temp4)
22097 delete arg4;
22098 }
22099 return resultobj;
22100 fail:
22101 {
22102 if (temp4)
22103 delete arg4;
22104 }
22105 return NULL;
22106 }
22107
22108
22109 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22110 PyObject *resultobj = 0;
22111 wxTreebook *arg1 = (wxTreebook *) 0 ;
22112 wxWindow *arg2 = (wxWindow *) 0 ;
22113 wxString *arg3 = 0 ;
22114 bool arg4 = (bool) false ;
22115 int arg5 = (int) wxNOT_FOUND ;
22116 bool result;
22117 void *argp1 = 0 ;
22118 int res1 = 0 ;
22119 void *argp2 = 0 ;
22120 int res2 = 0 ;
22121 bool temp3 = false ;
22122 bool val4 ;
22123 int ecode4 = 0 ;
22124 int val5 ;
22125 int ecode5 = 0 ;
22126 PyObject * obj0 = 0 ;
22127 PyObject * obj1 = 0 ;
22128 PyObject * obj2 = 0 ;
22129 PyObject * obj3 = 0 ;
22130 PyObject * obj4 = 0 ;
22131 char * kwnames[] = {
22132 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22133 };
22134
22135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22137 if (!SWIG_IsOK(res1)) {
22138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22139 }
22140 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22141 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22142 if (!SWIG_IsOK(res2)) {
22143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22144 }
22145 arg2 = reinterpret_cast< wxWindow * >(argp2);
22146 {
22147 arg3 = wxString_in_helper(obj2);
22148 if (arg3 == NULL) SWIG_fail;
22149 temp3 = true;
22150 }
22151 if (obj3) {
22152 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22153 if (!SWIG_IsOK(ecode4)) {
22154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22155 }
22156 arg4 = static_cast< bool >(val4);
22157 }
22158 if (obj4) {
22159 ecode5 = SWIG_AsVal_int(obj4, &val5);
22160 if (!SWIG_IsOK(ecode5)) {
22161 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22162 }
22163 arg5 = static_cast< int >(val5);
22164 }
22165 {
22166 PyThreadState* __tstate = wxPyBeginAllowThreads();
22167 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22168 wxPyEndAllowThreads(__tstate);
22169 if (PyErr_Occurred()) SWIG_fail;
22170 }
22171 {
22172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22173 }
22174 {
22175 if (temp3)
22176 delete arg3;
22177 }
22178 return resultobj;
22179 fail:
22180 {
22181 if (temp3)
22182 delete arg3;
22183 }
22184 return NULL;
22185 }
22186
22187
22188 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22189 PyObject *resultobj = 0;
22190 wxTreebook *arg1 = (wxTreebook *) 0 ;
22191 size_t arg2 ;
22192 bool result;
22193 void *argp1 = 0 ;
22194 int res1 = 0 ;
22195 size_t val2 ;
22196 int ecode2 = 0 ;
22197 PyObject * obj0 = 0 ;
22198 PyObject * obj1 = 0 ;
22199 char * kwnames[] = {
22200 (char *) "self",(char *) "pos", NULL
22201 };
22202
22203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22205 if (!SWIG_IsOK(res1)) {
22206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22207 }
22208 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22209 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22210 if (!SWIG_IsOK(ecode2)) {
22211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22212 }
22213 arg2 = static_cast< size_t >(val2);
22214 {
22215 PyThreadState* __tstate = wxPyBeginAllowThreads();
22216 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22217 wxPyEndAllowThreads(__tstate);
22218 if (PyErr_Occurred()) SWIG_fail;
22219 }
22220 {
22221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22222 }
22223 return resultobj;
22224 fail:
22225 return NULL;
22226 }
22227
22228
22229 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22230 PyObject *resultobj = 0;
22231 wxTreebook *arg1 = (wxTreebook *) 0 ;
22232 size_t arg2 ;
22233 bool arg3 = (bool) true ;
22234 bool result;
22235 void *argp1 = 0 ;
22236 int res1 = 0 ;
22237 size_t val2 ;
22238 int ecode2 = 0 ;
22239 bool val3 ;
22240 int ecode3 = 0 ;
22241 PyObject * obj0 = 0 ;
22242 PyObject * obj1 = 0 ;
22243 PyObject * obj2 = 0 ;
22244 char * kwnames[] = {
22245 (char *) "self",(char *) "pos",(char *) "expand", NULL
22246 };
22247
22248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22250 if (!SWIG_IsOK(res1)) {
22251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22252 }
22253 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22254 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22255 if (!SWIG_IsOK(ecode2)) {
22256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22257 }
22258 arg2 = static_cast< size_t >(val2);
22259 if (obj2) {
22260 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22261 if (!SWIG_IsOK(ecode3)) {
22262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22263 }
22264 arg3 = static_cast< bool >(val3);
22265 }
22266 {
22267 PyThreadState* __tstate = wxPyBeginAllowThreads();
22268 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22269 wxPyEndAllowThreads(__tstate);
22270 if (PyErr_Occurred()) SWIG_fail;
22271 }
22272 {
22273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22274 }
22275 return resultobj;
22276 fail:
22277 return NULL;
22278 }
22279
22280
22281 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22282 PyObject *resultobj = 0;
22283 wxTreebook *arg1 = (wxTreebook *) 0 ;
22284 size_t arg2 ;
22285 bool result;
22286 void *argp1 = 0 ;
22287 int res1 = 0 ;
22288 size_t val2 ;
22289 int ecode2 = 0 ;
22290 PyObject * obj0 = 0 ;
22291 PyObject * obj1 = 0 ;
22292 char * kwnames[] = {
22293 (char *) "self",(char *) "pos", NULL
22294 };
22295
22296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22298 if (!SWIG_IsOK(res1)) {
22299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22300 }
22301 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22302 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22303 if (!SWIG_IsOK(ecode2)) {
22304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22305 }
22306 arg2 = static_cast< size_t >(val2);
22307 {
22308 PyThreadState* __tstate = wxPyBeginAllowThreads();
22309 result = (bool)(arg1)->CollapseNode(arg2);
22310 wxPyEndAllowThreads(__tstate);
22311 if (PyErr_Occurred()) SWIG_fail;
22312 }
22313 {
22314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22315 }
22316 return resultobj;
22317 fail:
22318 return NULL;
22319 }
22320
22321
22322 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22323 PyObject *resultobj = 0;
22324 wxTreebook *arg1 = (wxTreebook *) 0 ;
22325 size_t arg2 ;
22326 int result;
22327 void *argp1 = 0 ;
22328 int res1 = 0 ;
22329 size_t val2 ;
22330 int ecode2 = 0 ;
22331 PyObject * obj0 = 0 ;
22332 PyObject * obj1 = 0 ;
22333 char * kwnames[] = {
22334 (char *) "self",(char *) "pos", NULL
22335 };
22336
22337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22339 if (!SWIG_IsOK(res1)) {
22340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22341 }
22342 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22343 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22344 if (!SWIG_IsOK(ecode2)) {
22345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22346 }
22347 arg2 = static_cast< size_t >(val2);
22348 {
22349 PyThreadState* __tstate = wxPyBeginAllowThreads();
22350 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22351 wxPyEndAllowThreads(__tstate);
22352 if (PyErr_Occurred()) SWIG_fail;
22353 }
22354 resultobj = SWIG_From_int(static_cast< int >(result));
22355 return resultobj;
22356 fail:
22357 return NULL;
22358 }
22359
22360
22361 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22362 PyObject *resultobj = 0;
22363 wxTreebook *arg1 = (wxTreebook *) 0 ;
22364 wxPyTreeCtrl *result = 0 ;
22365 void *argp1 = 0 ;
22366 int res1 = 0 ;
22367 PyObject *swig_obj[1] ;
22368
22369 if (!args) SWIG_fail;
22370 swig_obj[0] = args;
22371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22372 if (!SWIG_IsOK(res1)) {
22373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22374 }
22375 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22376 {
22377 PyThreadState* __tstate = wxPyBeginAllowThreads();
22378 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22379 wxPyEndAllowThreads(__tstate);
22380 if (PyErr_Occurred()) SWIG_fail;
22381 }
22382 {
22383 resultobj = wxPyMake_wxObject(result, (bool)0);
22384 }
22385 return resultobj;
22386 fail:
22387 return NULL;
22388 }
22389
22390
22391 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22392 PyObject *obj;
22393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22394 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22395 return SWIG_Py_Void();
22396 }
22397
22398 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22399 return SWIG_Python_InitShadowInstance(args);
22400 }
22401
22402 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22403 PyObject *resultobj = 0;
22404 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22405 int arg2 = (int) 0 ;
22406 int arg3 = (int) wxNOT_FOUND ;
22407 int arg4 = (int) wxNOT_FOUND ;
22408 wxTreebookEvent *result = 0 ;
22409 int val1 ;
22410 int ecode1 = 0 ;
22411 int val2 ;
22412 int ecode2 = 0 ;
22413 int val3 ;
22414 int ecode3 = 0 ;
22415 int val4 ;
22416 int ecode4 = 0 ;
22417 PyObject * obj0 = 0 ;
22418 PyObject * obj1 = 0 ;
22419 PyObject * obj2 = 0 ;
22420 PyObject * obj3 = 0 ;
22421 char * kwnames[] = {
22422 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22423 };
22424
22425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22426 if (obj0) {
22427 ecode1 = SWIG_AsVal_int(obj0, &val1);
22428 if (!SWIG_IsOK(ecode1)) {
22429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22430 }
22431 arg1 = static_cast< wxEventType >(val1);
22432 }
22433 if (obj1) {
22434 ecode2 = SWIG_AsVal_int(obj1, &val2);
22435 if (!SWIG_IsOK(ecode2)) {
22436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22437 }
22438 arg2 = static_cast< int >(val2);
22439 }
22440 if (obj2) {
22441 ecode3 = SWIG_AsVal_int(obj2, &val3);
22442 if (!SWIG_IsOK(ecode3)) {
22443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22444 }
22445 arg3 = static_cast< int >(val3);
22446 }
22447 if (obj3) {
22448 ecode4 = SWIG_AsVal_int(obj3, &val4);
22449 if (!SWIG_IsOK(ecode4)) {
22450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22451 }
22452 arg4 = static_cast< int >(val4);
22453 }
22454 {
22455 PyThreadState* __tstate = wxPyBeginAllowThreads();
22456 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22457 wxPyEndAllowThreads(__tstate);
22458 if (PyErr_Occurred()) SWIG_fail;
22459 }
22460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22461 return resultobj;
22462 fail:
22463 return NULL;
22464 }
22465
22466
22467 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22468 PyObject *obj;
22469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22470 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22471 return SWIG_Py_Void();
22472 }
22473
22474 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22475 return SWIG_Python_InitShadowInstance(args);
22476 }
22477
22478 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22479 PyObject *resultobj = 0;
22480 wxWindow *arg1 = (wxWindow *) 0 ;
22481 int arg2 ;
22482 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22483 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22484 wxSize const &arg4_defvalue = wxDefaultSize ;
22485 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22486 long arg5 = (long) wxBK_DEFAULT ;
22487 wxString const &arg6_defvalue = wxPyEmptyString ;
22488 wxString *arg6 = (wxString *) &arg6_defvalue ;
22489 wxToolbook *result = 0 ;
22490 void *argp1 = 0 ;
22491 int res1 = 0 ;
22492 int val2 ;
22493 int ecode2 = 0 ;
22494 wxPoint temp3 ;
22495 wxSize temp4 ;
22496 long val5 ;
22497 int ecode5 = 0 ;
22498 bool temp6 = false ;
22499 PyObject * obj0 = 0 ;
22500 PyObject * obj1 = 0 ;
22501 PyObject * obj2 = 0 ;
22502 PyObject * obj3 = 0 ;
22503 PyObject * obj4 = 0 ;
22504 PyObject * obj5 = 0 ;
22505 char * kwnames[] = {
22506 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22507 };
22508
22509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22511 if (!SWIG_IsOK(res1)) {
22512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22513 }
22514 arg1 = reinterpret_cast< wxWindow * >(argp1);
22515 ecode2 = SWIG_AsVal_int(obj1, &val2);
22516 if (!SWIG_IsOK(ecode2)) {
22517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22518 }
22519 arg2 = static_cast< int >(val2);
22520 if (obj2) {
22521 {
22522 arg3 = &temp3;
22523 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22524 }
22525 }
22526 if (obj3) {
22527 {
22528 arg4 = &temp4;
22529 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22530 }
22531 }
22532 if (obj4) {
22533 ecode5 = SWIG_AsVal_long(obj4, &val5);
22534 if (!SWIG_IsOK(ecode5)) {
22535 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22536 }
22537 arg5 = static_cast< long >(val5);
22538 }
22539 if (obj5) {
22540 {
22541 arg6 = wxString_in_helper(obj5);
22542 if (arg6 == NULL) SWIG_fail;
22543 temp6 = true;
22544 }
22545 }
22546 {
22547 PyThreadState* __tstate = wxPyBeginAllowThreads();
22548 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22549 wxPyEndAllowThreads(__tstate);
22550 if (PyErr_Occurred()) SWIG_fail;
22551 }
22552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22553 {
22554 if (temp6)
22555 delete arg6;
22556 }
22557 return resultobj;
22558 fail:
22559 {
22560 if (temp6)
22561 delete arg6;
22562 }
22563 return NULL;
22564 }
22565
22566
22567 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22568 PyObject *resultobj = 0;
22569 wxToolbook *result = 0 ;
22570
22571 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22572 {
22573 PyThreadState* __tstate = wxPyBeginAllowThreads();
22574 result = (wxToolbook *)new wxToolbook();
22575 wxPyEndAllowThreads(__tstate);
22576 if (PyErr_Occurred()) SWIG_fail;
22577 }
22578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22579 return resultobj;
22580 fail:
22581 return NULL;
22582 }
22583
22584
22585 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22586 PyObject *resultobj = 0;
22587 wxToolbook *arg1 = (wxToolbook *) 0 ;
22588 wxWindow *arg2 = (wxWindow *) 0 ;
22589 int arg3 ;
22590 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22591 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22592 wxSize const &arg5_defvalue = wxDefaultSize ;
22593 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22594 long arg6 = (long) 0 ;
22595 wxString const &arg7_defvalue = wxEmptyString ;
22596 wxString *arg7 = (wxString *) &arg7_defvalue ;
22597 bool result;
22598 void *argp1 = 0 ;
22599 int res1 = 0 ;
22600 void *argp2 = 0 ;
22601 int res2 = 0 ;
22602 int val3 ;
22603 int ecode3 = 0 ;
22604 wxPoint temp4 ;
22605 wxSize temp5 ;
22606 long val6 ;
22607 int ecode6 = 0 ;
22608 bool temp7 = false ;
22609 PyObject * obj0 = 0 ;
22610 PyObject * obj1 = 0 ;
22611 PyObject * obj2 = 0 ;
22612 PyObject * obj3 = 0 ;
22613 PyObject * obj4 = 0 ;
22614 PyObject * obj5 = 0 ;
22615 PyObject * obj6 = 0 ;
22616 char * kwnames[] = {
22617 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22618 };
22619
22620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22622 if (!SWIG_IsOK(res1)) {
22623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22624 }
22625 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22626 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22627 if (!SWIG_IsOK(res2)) {
22628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22629 }
22630 arg2 = reinterpret_cast< wxWindow * >(argp2);
22631 ecode3 = SWIG_AsVal_int(obj2, &val3);
22632 if (!SWIG_IsOK(ecode3)) {
22633 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22634 }
22635 arg3 = static_cast< int >(val3);
22636 if (obj3) {
22637 {
22638 arg4 = &temp4;
22639 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22640 }
22641 }
22642 if (obj4) {
22643 {
22644 arg5 = &temp5;
22645 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22646 }
22647 }
22648 if (obj5) {
22649 ecode6 = SWIG_AsVal_long(obj5, &val6);
22650 if (!SWIG_IsOK(ecode6)) {
22651 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22652 }
22653 arg6 = static_cast< long >(val6);
22654 }
22655 if (obj6) {
22656 {
22657 arg7 = wxString_in_helper(obj6);
22658 if (arg7 == NULL) SWIG_fail;
22659 temp7 = true;
22660 }
22661 }
22662 {
22663 PyThreadState* __tstate = wxPyBeginAllowThreads();
22664 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22665 wxPyEndAllowThreads(__tstate);
22666 if (PyErr_Occurred()) SWIG_fail;
22667 }
22668 {
22669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22670 }
22671 {
22672 if (temp7)
22673 delete arg7;
22674 }
22675 return resultobj;
22676 fail:
22677 {
22678 if (temp7)
22679 delete arg7;
22680 }
22681 return NULL;
22682 }
22683
22684
22685 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22686 PyObject *resultobj = 0;
22687 wxToolbook *arg1 = (wxToolbook *) 0 ;
22688 wxToolBarBase *result = 0 ;
22689 void *argp1 = 0 ;
22690 int res1 = 0 ;
22691 PyObject *swig_obj[1] ;
22692
22693 if (!args) SWIG_fail;
22694 swig_obj[0] = args;
22695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22696 if (!SWIG_IsOK(res1)) {
22697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22698 }
22699 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22700 {
22701 PyThreadState* __tstate = wxPyBeginAllowThreads();
22702 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22703 wxPyEndAllowThreads(__tstate);
22704 if (PyErr_Occurred()) SWIG_fail;
22705 }
22706 {
22707 resultobj = wxPyMake_wxObject(result, (bool)0);
22708 }
22709 return resultobj;
22710 fail:
22711 return NULL;
22712 }
22713
22714
22715 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22716 PyObject *resultobj = 0;
22717 wxToolbook *arg1 = (wxToolbook *) 0 ;
22718 void *argp1 = 0 ;
22719 int res1 = 0 ;
22720 PyObject *swig_obj[1] ;
22721
22722 if (!args) SWIG_fail;
22723 swig_obj[0] = args;
22724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22725 if (!SWIG_IsOK(res1)) {
22726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22727 }
22728 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22729 {
22730 PyThreadState* __tstate = wxPyBeginAllowThreads();
22731 (arg1)->Realize();
22732 wxPyEndAllowThreads(__tstate);
22733 if (PyErr_Occurred()) SWIG_fail;
22734 }
22735 resultobj = SWIG_Py_Void();
22736 return resultobj;
22737 fail:
22738 return NULL;
22739 }
22740
22741
22742 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22743 PyObject *obj;
22744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22745 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22746 return SWIG_Py_Void();
22747 }
22748
22749 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22750 return SWIG_Python_InitShadowInstance(args);
22751 }
22752
22753 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22754 PyObject *resultobj = 0;
22755 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22756 int arg2 = (int) 0 ;
22757 int arg3 = (int) wxNOT_FOUND ;
22758 int arg4 = (int) wxNOT_FOUND ;
22759 wxToolbookEvent *result = 0 ;
22760 int val1 ;
22761 int ecode1 = 0 ;
22762 int val2 ;
22763 int ecode2 = 0 ;
22764 int val3 ;
22765 int ecode3 = 0 ;
22766 int val4 ;
22767 int ecode4 = 0 ;
22768 PyObject * obj0 = 0 ;
22769 PyObject * obj1 = 0 ;
22770 PyObject * obj2 = 0 ;
22771 PyObject * obj3 = 0 ;
22772 char * kwnames[] = {
22773 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22774 };
22775
22776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22777 if (obj0) {
22778 ecode1 = SWIG_AsVal_int(obj0, &val1);
22779 if (!SWIG_IsOK(ecode1)) {
22780 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22781 }
22782 arg1 = static_cast< wxEventType >(val1);
22783 }
22784 if (obj1) {
22785 ecode2 = SWIG_AsVal_int(obj1, &val2);
22786 if (!SWIG_IsOK(ecode2)) {
22787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22788 }
22789 arg2 = static_cast< int >(val2);
22790 }
22791 if (obj2) {
22792 ecode3 = SWIG_AsVal_int(obj2, &val3);
22793 if (!SWIG_IsOK(ecode3)) {
22794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22795 }
22796 arg3 = static_cast< int >(val3);
22797 }
22798 if (obj3) {
22799 ecode4 = SWIG_AsVal_int(obj3, &val4);
22800 if (!SWIG_IsOK(ecode4)) {
22801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22802 }
22803 arg4 = static_cast< int >(val4);
22804 }
22805 {
22806 PyThreadState* __tstate = wxPyBeginAllowThreads();
22807 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22808 wxPyEndAllowThreads(__tstate);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 }
22811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22812 return resultobj;
22813 fail:
22814 return NULL;
22815 }
22816
22817
22818 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22819 PyObject *obj;
22820 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22821 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22822 return SWIG_Py_Void();
22823 }
22824
22825 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22826 return SWIG_Python_InitShadowInstance(args);
22827 }
22828
22829 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22830 PyObject *resultobj = 0;
22831 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22832 int result;
22833 void *argp1 = 0 ;
22834 int res1 = 0 ;
22835 PyObject *swig_obj[1] ;
22836
22837 if (!args) SWIG_fail;
22838 swig_obj[0] = args;
22839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22840 if (!SWIG_IsOK(res1)) {
22841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22842 }
22843 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22844 {
22845 PyThreadState* __tstate = wxPyBeginAllowThreads();
22846 result = (int)(arg1)->GetId();
22847 wxPyEndAllowThreads(__tstate);
22848 if (PyErr_Occurred()) SWIG_fail;
22849 }
22850 resultobj = SWIG_From_int(static_cast< int >(result));
22851 return resultobj;
22852 fail:
22853 return NULL;
22854 }
22855
22856
22857 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22858 PyObject *resultobj = 0;
22859 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22860 wxControl *result = 0 ;
22861 void *argp1 = 0 ;
22862 int res1 = 0 ;
22863 PyObject *swig_obj[1] ;
22864
22865 if (!args) SWIG_fail;
22866 swig_obj[0] = args;
22867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22868 if (!SWIG_IsOK(res1)) {
22869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22870 }
22871 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22872 {
22873 PyThreadState* __tstate = wxPyBeginAllowThreads();
22874 result = (wxControl *)(arg1)->GetControl();
22875 wxPyEndAllowThreads(__tstate);
22876 if (PyErr_Occurred()) SWIG_fail;
22877 }
22878 {
22879 resultobj = wxPyMake_wxObject(result, 0);
22880 }
22881 return resultobj;
22882 fail:
22883 return NULL;
22884 }
22885
22886
22887 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22888 PyObject *resultobj = 0;
22889 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22890 wxToolBarBase *result = 0 ;
22891 void *argp1 = 0 ;
22892 int res1 = 0 ;
22893 PyObject *swig_obj[1] ;
22894
22895 if (!args) SWIG_fail;
22896 swig_obj[0] = args;
22897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22898 if (!SWIG_IsOK(res1)) {
22899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22900 }
22901 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22902 {
22903 PyThreadState* __tstate = wxPyBeginAllowThreads();
22904 result = (wxToolBarBase *)(arg1)->GetToolBar();
22905 wxPyEndAllowThreads(__tstate);
22906 if (PyErr_Occurred()) SWIG_fail;
22907 }
22908 {
22909 resultobj = wxPyMake_wxObject(result, (bool)0);
22910 }
22911 return resultobj;
22912 fail:
22913 return NULL;
22914 }
22915
22916
22917 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22918 PyObject *resultobj = 0;
22919 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22920 int result;
22921 void *argp1 = 0 ;
22922 int res1 = 0 ;
22923 PyObject *swig_obj[1] ;
22924
22925 if (!args) SWIG_fail;
22926 swig_obj[0] = args;
22927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22928 if (!SWIG_IsOK(res1)) {
22929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22930 }
22931 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22932 {
22933 PyThreadState* __tstate = wxPyBeginAllowThreads();
22934 result = (int)(arg1)->IsButton();
22935 wxPyEndAllowThreads(__tstate);
22936 if (PyErr_Occurred()) SWIG_fail;
22937 }
22938 resultobj = SWIG_From_int(static_cast< int >(result));
22939 return resultobj;
22940 fail:
22941 return NULL;
22942 }
22943
22944
22945 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22946 PyObject *resultobj = 0;
22947 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22948 int result;
22949 void *argp1 = 0 ;
22950 int res1 = 0 ;
22951 PyObject *swig_obj[1] ;
22952
22953 if (!args) SWIG_fail;
22954 swig_obj[0] = args;
22955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22956 if (!SWIG_IsOK(res1)) {
22957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22958 }
22959 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22960 {
22961 PyThreadState* __tstate = wxPyBeginAllowThreads();
22962 result = (int)(arg1)->IsControl();
22963 wxPyEndAllowThreads(__tstate);
22964 if (PyErr_Occurred()) SWIG_fail;
22965 }
22966 resultobj = SWIG_From_int(static_cast< int >(result));
22967 return resultobj;
22968 fail:
22969 return NULL;
22970 }
22971
22972
22973 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22974 PyObject *resultobj = 0;
22975 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22976 int result;
22977 void *argp1 = 0 ;
22978 int res1 = 0 ;
22979 PyObject *swig_obj[1] ;
22980
22981 if (!args) SWIG_fail;
22982 swig_obj[0] = args;
22983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22984 if (!SWIG_IsOK(res1)) {
22985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22986 }
22987 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22988 {
22989 PyThreadState* __tstate = wxPyBeginAllowThreads();
22990 result = (int)(arg1)->IsSeparator();
22991 wxPyEndAllowThreads(__tstate);
22992 if (PyErr_Occurred()) SWIG_fail;
22993 }
22994 resultobj = SWIG_From_int(static_cast< int >(result));
22995 return resultobj;
22996 fail:
22997 return NULL;
22998 }
22999
23000
23001 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23002 PyObject *resultobj = 0;
23003 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23004 int result;
23005 void *argp1 = 0 ;
23006 int res1 = 0 ;
23007 PyObject *swig_obj[1] ;
23008
23009 if (!args) SWIG_fail;
23010 swig_obj[0] = args;
23011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23012 if (!SWIG_IsOK(res1)) {
23013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23014 }
23015 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23016 {
23017 PyThreadState* __tstate = wxPyBeginAllowThreads();
23018 result = (int)(arg1)->GetStyle();
23019 wxPyEndAllowThreads(__tstate);
23020 if (PyErr_Occurred()) SWIG_fail;
23021 }
23022 resultobj = SWIG_From_int(static_cast< int >(result));
23023 return resultobj;
23024 fail:
23025 return NULL;
23026 }
23027
23028
23029 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23030 PyObject *resultobj = 0;
23031 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23032 wxItemKind result;
23033 void *argp1 = 0 ;
23034 int res1 = 0 ;
23035 PyObject *swig_obj[1] ;
23036
23037 if (!args) SWIG_fail;
23038 swig_obj[0] = args;
23039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23040 if (!SWIG_IsOK(res1)) {
23041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23042 }
23043 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23044 {
23045 PyThreadState* __tstate = wxPyBeginAllowThreads();
23046 result = (wxItemKind)(arg1)->GetKind();
23047 wxPyEndAllowThreads(__tstate);
23048 if (PyErr_Occurred()) SWIG_fail;
23049 }
23050 resultobj = SWIG_From_int(static_cast< int >(result));
23051 return resultobj;
23052 fail:
23053 return NULL;
23054 }
23055
23056
23057 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23058 PyObject *resultobj = 0;
23059 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23060 bool result;
23061 void *argp1 = 0 ;
23062 int res1 = 0 ;
23063 PyObject *swig_obj[1] ;
23064
23065 if (!args) SWIG_fail;
23066 swig_obj[0] = args;
23067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23068 if (!SWIG_IsOK(res1)) {
23069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23070 }
23071 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23072 {
23073 PyThreadState* __tstate = wxPyBeginAllowThreads();
23074 result = (bool)(arg1)->IsEnabled();
23075 wxPyEndAllowThreads(__tstate);
23076 if (PyErr_Occurred()) SWIG_fail;
23077 }
23078 {
23079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23080 }
23081 return resultobj;
23082 fail:
23083 return NULL;
23084 }
23085
23086
23087 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23088 PyObject *resultobj = 0;
23089 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23090 bool result;
23091 void *argp1 = 0 ;
23092 int res1 = 0 ;
23093 PyObject *swig_obj[1] ;
23094
23095 if (!args) SWIG_fail;
23096 swig_obj[0] = args;
23097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23098 if (!SWIG_IsOK(res1)) {
23099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23100 }
23101 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23102 {
23103 PyThreadState* __tstate = wxPyBeginAllowThreads();
23104 result = (bool)(arg1)->IsToggled();
23105 wxPyEndAllowThreads(__tstate);
23106 if (PyErr_Occurred()) SWIG_fail;
23107 }
23108 {
23109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23110 }
23111 return resultobj;
23112 fail:
23113 return NULL;
23114 }
23115
23116
23117 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23118 PyObject *resultobj = 0;
23119 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23120 bool result;
23121 void *argp1 = 0 ;
23122 int res1 = 0 ;
23123 PyObject *swig_obj[1] ;
23124
23125 if (!args) SWIG_fail;
23126 swig_obj[0] = args;
23127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23128 if (!SWIG_IsOK(res1)) {
23129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23130 }
23131 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23132 {
23133 PyThreadState* __tstate = wxPyBeginAllowThreads();
23134 result = (bool)(arg1)->CanBeToggled();
23135 wxPyEndAllowThreads(__tstate);
23136 if (PyErr_Occurred()) SWIG_fail;
23137 }
23138 {
23139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23140 }
23141 return resultobj;
23142 fail:
23143 return NULL;
23144 }
23145
23146
23147 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23148 PyObject *resultobj = 0;
23149 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23150 wxBitmap *result = 0 ;
23151 void *argp1 = 0 ;
23152 int res1 = 0 ;
23153 PyObject *swig_obj[1] ;
23154
23155 if (!args) SWIG_fail;
23156 swig_obj[0] = args;
23157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23158 if (!SWIG_IsOK(res1)) {
23159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23160 }
23161 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23162 {
23163 PyThreadState* __tstate = wxPyBeginAllowThreads();
23164 {
23165 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23166 result = (wxBitmap *) &_result_ref;
23167 }
23168 wxPyEndAllowThreads(__tstate);
23169 if (PyErr_Occurred()) SWIG_fail;
23170 }
23171 {
23172 wxBitmap* resultptr = new wxBitmap(*result);
23173 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23174 }
23175 return resultobj;
23176 fail:
23177 return NULL;
23178 }
23179
23180
23181 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23182 PyObject *resultobj = 0;
23183 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23184 wxBitmap *result = 0 ;
23185 void *argp1 = 0 ;
23186 int res1 = 0 ;
23187 PyObject *swig_obj[1] ;
23188
23189 if (!args) SWIG_fail;
23190 swig_obj[0] = args;
23191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23192 if (!SWIG_IsOK(res1)) {
23193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23194 }
23195 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23196 {
23197 PyThreadState* __tstate = wxPyBeginAllowThreads();
23198 {
23199 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23200 result = (wxBitmap *) &_result_ref;
23201 }
23202 wxPyEndAllowThreads(__tstate);
23203 if (PyErr_Occurred()) SWIG_fail;
23204 }
23205 {
23206 wxBitmap* resultptr = new wxBitmap(*result);
23207 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23208 }
23209 return resultobj;
23210 fail:
23211 return NULL;
23212 }
23213
23214
23215 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23216 PyObject *resultobj = 0;
23217 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23218 wxBitmap result;
23219 void *argp1 = 0 ;
23220 int res1 = 0 ;
23221 PyObject *swig_obj[1] ;
23222
23223 if (!args) SWIG_fail;
23224 swig_obj[0] = args;
23225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23226 if (!SWIG_IsOK(res1)) {
23227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23228 }
23229 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23230 {
23231 PyThreadState* __tstate = wxPyBeginAllowThreads();
23232 result = (arg1)->GetBitmap();
23233 wxPyEndAllowThreads(__tstate);
23234 if (PyErr_Occurred()) SWIG_fail;
23235 }
23236 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23237 return resultobj;
23238 fail:
23239 return NULL;
23240 }
23241
23242
23243 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23244 PyObject *resultobj = 0;
23245 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23246 wxString result;
23247 void *argp1 = 0 ;
23248 int res1 = 0 ;
23249 PyObject *swig_obj[1] ;
23250
23251 if (!args) SWIG_fail;
23252 swig_obj[0] = args;
23253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23254 if (!SWIG_IsOK(res1)) {
23255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23256 }
23257 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23258 {
23259 PyThreadState* __tstate = wxPyBeginAllowThreads();
23260 result = (arg1)->GetLabel();
23261 wxPyEndAllowThreads(__tstate);
23262 if (PyErr_Occurred()) SWIG_fail;
23263 }
23264 {
23265 #if wxUSE_UNICODE
23266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23267 #else
23268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23269 #endif
23270 }
23271 return resultobj;
23272 fail:
23273 return NULL;
23274 }
23275
23276
23277 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23278 PyObject *resultobj = 0;
23279 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23280 wxString result;
23281 void *argp1 = 0 ;
23282 int res1 = 0 ;
23283 PyObject *swig_obj[1] ;
23284
23285 if (!args) SWIG_fail;
23286 swig_obj[0] = args;
23287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23288 if (!SWIG_IsOK(res1)) {
23289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23290 }
23291 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23292 {
23293 PyThreadState* __tstate = wxPyBeginAllowThreads();
23294 result = (arg1)->GetShortHelp();
23295 wxPyEndAllowThreads(__tstate);
23296 if (PyErr_Occurred()) SWIG_fail;
23297 }
23298 {
23299 #if wxUSE_UNICODE
23300 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23301 #else
23302 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23303 #endif
23304 }
23305 return resultobj;
23306 fail:
23307 return NULL;
23308 }
23309
23310
23311 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23312 PyObject *resultobj = 0;
23313 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23314 wxString result;
23315 void *argp1 = 0 ;
23316 int res1 = 0 ;
23317 PyObject *swig_obj[1] ;
23318
23319 if (!args) SWIG_fail;
23320 swig_obj[0] = args;
23321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23322 if (!SWIG_IsOK(res1)) {
23323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23324 }
23325 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23326 {
23327 PyThreadState* __tstate = wxPyBeginAllowThreads();
23328 result = (arg1)->GetLongHelp();
23329 wxPyEndAllowThreads(__tstate);
23330 if (PyErr_Occurred()) SWIG_fail;
23331 }
23332 {
23333 #if wxUSE_UNICODE
23334 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23335 #else
23336 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23337 #endif
23338 }
23339 return resultobj;
23340 fail:
23341 return NULL;
23342 }
23343
23344
23345 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23346 PyObject *resultobj = 0;
23347 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23348 bool arg2 ;
23349 bool result;
23350 void *argp1 = 0 ;
23351 int res1 = 0 ;
23352 bool val2 ;
23353 int ecode2 = 0 ;
23354 PyObject * obj0 = 0 ;
23355 PyObject * obj1 = 0 ;
23356 char * kwnames[] = {
23357 (char *) "self",(char *) "enable", NULL
23358 };
23359
23360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23362 if (!SWIG_IsOK(res1)) {
23363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23364 }
23365 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23366 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23367 if (!SWIG_IsOK(ecode2)) {
23368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23369 }
23370 arg2 = static_cast< bool >(val2);
23371 {
23372 PyThreadState* __tstate = wxPyBeginAllowThreads();
23373 result = (bool)(arg1)->Enable(arg2);
23374 wxPyEndAllowThreads(__tstate);
23375 if (PyErr_Occurred()) SWIG_fail;
23376 }
23377 {
23378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23379 }
23380 return resultobj;
23381 fail:
23382 return NULL;
23383 }
23384
23385
23386 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23387 PyObject *resultobj = 0;
23388 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23389 void *argp1 = 0 ;
23390 int res1 = 0 ;
23391 PyObject *swig_obj[1] ;
23392
23393 if (!args) SWIG_fail;
23394 swig_obj[0] = args;
23395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23396 if (!SWIG_IsOK(res1)) {
23397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23398 }
23399 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23400 {
23401 PyThreadState* __tstate = wxPyBeginAllowThreads();
23402 (arg1)->Toggle();
23403 wxPyEndAllowThreads(__tstate);
23404 if (PyErr_Occurred()) SWIG_fail;
23405 }
23406 resultobj = SWIG_Py_Void();
23407 return resultobj;
23408 fail:
23409 return NULL;
23410 }
23411
23412
23413 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23414 PyObject *resultobj = 0;
23415 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23416 bool arg2 ;
23417 bool result;
23418 void *argp1 = 0 ;
23419 int res1 = 0 ;
23420 bool val2 ;
23421 int ecode2 = 0 ;
23422 PyObject * obj0 = 0 ;
23423 PyObject * obj1 = 0 ;
23424 char * kwnames[] = {
23425 (char *) "self",(char *) "toggle", NULL
23426 };
23427
23428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23430 if (!SWIG_IsOK(res1)) {
23431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23432 }
23433 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23434 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23435 if (!SWIG_IsOK(ecode2)) {
23436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23437 }
23438 arg2 = static_cast< bool >(val2);
23439 {
23440 PyThreadState* __tstate = wxPyBeginAllowThreads();
23441 result = (bool)(arg1)->SetToggle(arg2);
23442 wxPyEndAllowThreads(__tstate);
23443 if (PyErr_Occurred()) SWIG_fail;
23444 }
23445 {
23446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23447 }
23448 return resultobj;
23449 fail:
23450 return NULL;
23451 }
23452
23453
23454 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23455 PyObject *resultobj = 0;
23456 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23457 wxString *arg2 = 0 ;
23458 bool result;
23459 void *argp1 = 0 ;
23460 int res1 = 0 ;
23461 bool temp2 = false ;
23462 PyObject * obj0 = 0 ;
23463 PyObject * obj1 = 0 ;
23464 char * kwnames[] = {
23465 (char *) "self",(char *) "help", NULL
23466 };
23467
23468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23470 if (!SWIG_IsOK(res1)) {
23471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23472 }
23473 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23474 {
23475 arg2 = wxString_in_helper(obj1);
23476 if (arg2 == NULL) SWIG_fail;
23477 temp2 = true;
23478 }
23479 {
23480 PyThreadState* __tstate = wxPyBeginAllowThreads();
23481 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23482 wxPyEndAllowThreads(__tstate);
23483 if (PyErr_Occurred()) SWIG_fail;
23484 }
23485 {
23486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23487 }
23488 {
23489 if (temp2)
23490 delete arg2;
23491 }
23492 return resultobj;
23493 fail:
23494 {
23495 if (temp2)
23496 delete arg2;
23497 }
23498 return NULL;
23499 }
23500
23501
23502 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23503 PyObject *resultobj = 0;
23504 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23505 wxString *arg2 = 0 ;
23506 bool result;
23507 void *argp1 = 0 ;
23508 int res1 = 0 ;
23509 bool temp2 = false ;
23510 PyObject * obj0 = 0 ;
23511 PyObject * obj1 = 0 ;
23512 char * kwnames[] = {
23513 (char *) "self",(char *) "help", NULL
23514 };
23515
23516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23518 if (!SWIG_IsOK(res1)) {
23519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23520 }
23521 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23522 {
23523 arg2 = wxString_in_helper(obj1);
23524 if (arg2 == NULL) SWIG_fail;
23525 temp2 = true;
23526 }
23527 {
23528 PyThreadState* __tstate = wxPyBeginAllowThreads();
23529 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23530 wxPyEndAllowThreads(__tstate);
23531 if (PyErr_Occurred()) SWIG_fail;
23532 }
23533 {
23534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23535 }
23536 {
23537 if (temp2)
23538 delete arg2;
23539 }
23540 return resultobj;
23541 fail:
23542 {
23543 if (temp2)
23544 delete arg2;
23545 }
23546 return NULL;
23547 }
23548
23549
23550 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23551 PyObject *resultobj = 0;
23552 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23553 wxBitmap *arg2 = 0 ;
23554 void *argp1 = 0 ;
23555 int res1 = 0 ;
23556 void *argp2 = 0 ;
23557 int res2 = 0 ;
23558 PyObject * obj0 = 0 ;
23559 PyObject * obj1 = 0 ;
23560 char * kwnames[] = {
23561 (char *) "self",(char *) "bmp", NULL
23562 };
23563
23564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23566 if (!SWIG_IsOK(res1)) {
23567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23568 }
23569 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23571 if (!SWIG_IsOK(res2)) {
23572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23573 }
23574 if (!argp2) {
23575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23576 }
23577 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23578 {
23579 PyThreadState* __tstate = wxPyBeginAllowThreads();
23580 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23581 wxPyEndAllowThreads(__tstate);
23582 if (PyErr_Occurred()) SWIG_fail;
23583 }
23584 resultobj = SWIG_Py_Void();
23585 return resultobj;
23586 fail:
23587 return NULL;
23588 }
23589
23590
23591 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23592 PyObject *resultobj = 0;
23593 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23594 wxBitmap *arg2 = 0 ;
23595 void *argp1 = 0 ;
23596 int res1 = 0 ;
23597 void *argp2 = 0 ;
23598 int res2 = 0 ;
23599 PyObject * obj0 = 0 ;
23600 PyObject * obj1 = 0 ;
23601 char * kwnames[] = {
23602 (char *) "self",(char *) "bmp", NULL
23603 };
23604
23605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23607 if (!SWIG_IsOK(res1)) {
23608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23609 }
23610 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23611 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23612 if (!SWIG_IsOK(res2)) {
23613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23614 }
23615 if (!argp2) {
23616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23617 }
23618 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23619 {
23620 PyThreadState* __tstate = wxPyBeginAllowThreads();
23621 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23622 wxPyEndAllowThreads(__tstate);
23623 if (PyErr_Occurred()) SWIG_fail;
23624 }
23625 resultobj = SWIG_Py_Void();
23626 return resultobj;
23627 fail:
23628 return NULL;
23629 }
23630
23631
23632 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23633 PyObject *resultobj = 0;
23634 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23635 wxString *arg2 = 0 ;
23636 void *argp1 = 0 ;
23637 int res1 = 0 ;
23638 bool temp2 = false ;
23639 PyObject * obj0 = 0 ;
23640 PyObject * obj1 = 0 ;
23641 char * kwnames[] = {
23642 (char *) "self",(char *) "label", NULL
23643 };
23644
23645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23647 if (!SWIG_IsOK(res1)) {
23648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23649 }
23650 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23651 {
23652 arg2 = wxString_in_helper(obj1);
23653 if (arg2 == NULL) SWIG_fail;
23654 temp2 = true;
23655 }
23656 {
23657 PyThreadState* __tstate = wxPyBeginAllowThreads();
23658 (arg1)->SetLabel((wxString const &)*arg2);
23659 wxPyEndAllowThreads(__tstate);
23660 if (PyErr_Occurred()) SWIG_fail;
23661 }
23662 resultobj = SWIG_Py_Void();
23663 {
23664 if (temp2)
23665 delete arg2;
23666 }
23667 return resultobj;
23668 fail:
23669 {
23670 if (temp2)
23671 delete arg2;
23672 }
23673 return NULL;
23674 }
23675
23676
23677 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23678 PyObject *resultobj = 0;
23679 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23680 void *argp1 = 0 ;
23681 int res1 = 0 ;
23682 PyObject *swig_obj[1] ;
23683
23684 if (!args) SWIG_fail;
23685 swig_obj[0] = args;
23686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23687 if (!SWIG_IsOK(res1)) {
23688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23689 }
23690 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23691 {
23692 PyThreadState* __tstate = wxPyBeginAllowThreads();
23693 (arg1)->Detach();
23694 wxPyEndAllowThreads(__tstate);
23695 if (PyErr_Occurred()) SWIG_fail;
23696 }
23697 resultobj = SWIG_Py_Void();
23698 return resultobj;
23699 fail:
23700 return NULL;
23701 }
23702
23703
23704 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23705 PyObject *resultobj = 0;
23706 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23707 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23708 void *argp1 = 0 ;
23709 int res1 = 0 ;
23710 void *argp2 = 0 ;
23711 int res2 = 0 ;
23712 PyObject * obj0 = 0 ;
23713 PyObject * obj1 = 0 ;
23714 char * kwnames[] = {
23715 (char *) "self",(char *) "tbar", NULL
23716 };
23717
23718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23720 if (!SWIG_IsOK(res1)) {
23721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23722 }
23723 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23724 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23725 if (!SWIG_IsOK(res2)) {
23726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23727 }
23728 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23729 {
23730 PyThreadState* __tstate = wxPyBeginAllowThreads();
23731 (arg1)->Attach(arg2);
23732 wxPyEndAllowThreads(__tstate);
23733 if (PyErr_Occurred()) SWIG_fail;
23734 }
23735 resultobj = SWIG_Py_Void();
23736 return resultobj;
23737 fail:
23738 return NULL;
23739 }
23740
23741
23742 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23743 PyObject *resultobj = 0;
23744 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23745 PyObject *result = 0 ;
23746 void *argp1 = 0 ;
23747 int res1 = 0 ;
23748 PyObject *swig_obj[1] ;
23749
23750 if (!args) SWIG_fail;
23751 swig_obj[0] = args;
23752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23753 if (!SWIG_IsOK(res1)) {
23754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23755 }
23756 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23757 {
23758 PyThreadState* __tstate = wxPyBeginAllowThreads();
23759 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23760 wxPyEndAllowThreads(__tstate);
23761 if (PyErr_Occurred()) SWIG_fail;
23762 }
23763 resultobj = result;
23764 return resultobj;
23765 fail:
23766 return NULL;
23767 }
23768
23769
23770 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23771 PyObject *resultobj = 0;
23772 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23773 PyObject *arg2 = (PyObject *) 0 ;
23774 void *argp1 = 0 ;
23775 int res1 = 0 ;
23776 PyObject * obj0 = 0 ;
23777 PyObject * obj1 = 0 ;
23778 char * kwnames[] = {
23779 (char *) "self",(char *) "clientData", NULL
23780 };
23781
23782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23784 if (!SWIG_IsOK(res1)) {
23785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23786 }
23787 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23788 arg2 = obj1;
23789 {
23790 PyThreadState* __tstate = wxPyBeginAllowThreads();
23791 wxToolBarToolBase_SetClientData(arg1,arg2);
23792 wxPyEndAllowThreads(__tstate);
23793 if (PyErr_Occurred()) SWIG_fail;
23794 }
23795 resultobj = SWIG_Py_Void();
23796 return resultobj;
23797 fail:
23798 return NULL;
23799 }
23800
23801
23802 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23803 PyObject *obj;
23804 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23805 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23806 return SWIG_Py_Void();
23807 }
23808
23809 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23810 PyObject *resultobj = 0;
23811 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23812 int arg2 ;
23813 wxString *arg3 = 0 ;
23814 wxBitmap *arg4 = 0 ;
23815 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23816 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23817 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23818 wxString const &arg7_defvalue = wxPyEmptyString ;
23819 wxString *arg7 = (wxString *) &arg7_defvalue ;
23820 wxString const &arg8_defvalue = wxPyEmptyString ;
23821 wxString *arg8 = (wxString *) &arg8_defvalue ;
23822 PyObject *arg9 = (PyObject *) NULL ;
23823 wxToolBarToolBase *result = 0 ;
23824 void *argp1 = 0 ;
23825 int res1 = 0 ;
23826 int val2 ;
23827 int ecode2 = 0 ;
23828 bool temp3 = false ;
23829 void *argp4 = 0 ;
23830 int res4 = 0 ;
23831 void *argp5 = 0 ;
23832 int res5 = 0 ;
23833 int val6 ;
23834 int ecode6 = 0 ;
23835 bool temp7 = false ;
23836 bool temp8 = false ;
23837 PyObject * obj0 = 0 ;
23838 PyObject * obj1 = 0 ;
23839 PyObject * obj2 = 0 ;
23840 PyObject * obj3 = 0 ;
23841 PyObject * obj4 = 0 ;
23842 PyObject * obj5 = 0 ;
23843 PyObject * obj6 = 0 ;
23844 PyObject * obj7 = 0 ;
23845 PyObject * obj8 = 0 ;
23846 char * kwnames[] = {
23847 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23848 };
23849
23850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23852 if (!SWIG_IsOK(res1)) {
23853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23854 }
23855 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23856 ecode2 = SWIG_AsVal_int(obj1, &val2);
23857 if (!SWIG_IsOK(ecode2)) {
23858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23859 }
23860 arg2 = static_cast< int >(val2);
23861 {
23862 arg3 = wxString_in_helper(obj2);
23863 if (arg3 == NULL) SWIG_fail;
23864 temp3 = true;
23865 }
23866 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23867 if (!SWIG_IsOK(res4)) {
23868 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23869 }
23870 if (!argp4) {
23871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23872 }
23873 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23874 if (obj4) {
23875 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23876 if (!SWIG_IsOK(res5)) {
23877 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23878 }
23879 if (!argp5) {
23880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23881 }
23882 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23883 }
23884 if (obj5) {
23885 ecode6 = SWIG_AsVal_int(obj5, &val6);
23886 if (!SWIG_IsOK(ecode6)) {
23887 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23888 }
23889 arg6 = static_cast< wxItemKind >(val6);
23890 }
23891 if (obj6) {
23892 {
23893 arg7 = wxString_in_helper(obj6);
23894 if (arg7 == NULL) SWIG_fail;
23895 temp7 = true;
23896 }
23897 }
23898 if (obj7) {
23899 {
23900 arg8 = wxString_in_helper(obj7);
23901 if (arg8 == NULL) SWIG_fail;
23902 temp8 = true;
23903 }
23904 }
23905 if (obj8) {
23906 arg9 = obj8;
23907 }
23908 {
23909 PyThreadState* __tstate = wxPyBeginAllowThreads();
23910 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23911 wxPyEndAllowThreads(__tstate);
23912 if (PyErr_Occurred()) SWIG_fail;
23913 }
23914 {
23915 resultobj = wxPyMake_wxObject(result, (bool)0);
23916 }
23917 {
23918 if (temp3)
23919 delete arg3;
23920 }
23921 {
23922 if (temp7)
23923 delete arg7;
23924 }
23925 {
23926 if (temp8)
23927 delete arg8;
23928 }
23929 return resultobj;
23930 fail:
23931 {
23932 if (temp3)
23933 delete arg3;
23934 }
23935 {
23936 if (temp7)
23937 delete arg7;
23938 }
23939 {
23940 if (temp8)
23941 delete arg8;
23942 }
23943 return NULL;
23944 }
23945
23946
23947 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23948 PyObject *resultobj = 0;
23949 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23950 size_t arg2 ;
23951 int arg3 ;
23952 wxString *arg4 = 0 ;
23953 wxBitmap *arg5 = 0 ;
23954 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23955 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23956 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23957 wxString const &arg8_defvalue = wxPyEmptyString ;
23958 wxString *arg8 = (wxString *) &arg8_defvalue ;
23959 wxString const &arg9_defvalue = wxPyEmptyString ;
23960 wxString *arg9 = (wxString *) &arg9_defvalue ;
23961 PyObject *arg10 = (PyObject *) NULL ;
23962 wxToolBarToolBase *result = 0 ;
23963 void *argp1 = 0 ;
23964 int res1 = 0 ;
23965 size_t val2 ;
23966 int ecode2 = 0 ;
23967 int val3 ;
23968 int ecode3 = 0 ;
23969 bool temp4 = false ;
23970 void *argp5 = 0 ;
23971 int res5 = 0 ;
23972 void *argp6 = 0 ;
23973 int res6 = 0 ;
23974 int val7 ;
23975 int ecode7 = 0 ;
23976 bool temp8 = false ;
23977 bool temp9 = false ;
23978 PyObject * obj0 = 0 ;
23979 PyObject * obj1 = 0 ;
23980 PyObject * obj2 = 0 ;
23981 PyObject * obj3 = 0 ;
23982 PyObject * obj4 = 0 ;
23983 PyObject * obj5 = 0 ;
23984 PyObject * obj6 = 0 ;
23985 PyObject * obj7 = 0 ;
23986 PyObject * obj8 = 0 ;
23987 PyObject * obj9 = 0 ;
23988 char * kwnames[] = {
23989 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23990 };
23991
23992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23994 if (!SWIG_IsOK(res1)) {
23995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23996 }
23997 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23998 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23999 if (!SWIG_IsOK(ecode2)) {
24000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24001 }
24002 arg2 = static_cast< size_t >(val2);
24003 ecode3 = SWIG_AsVal_int(obj2, &val3);
24004 if (!SWIG_IsOK(ecode3)) {
24005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24006 }
24007 arg3 = static_cast< int >(val3);
24008 {
24009 arg4 = wxString_in_helper(obj3);
24010 if (arg4 == NULL) SWIG_fail;
24011 temp4 = true;
24012 }
24013 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24014 if (!SWIG_IsOK(res5)) {
24015 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24016 }
24017 if (!argp5) {
24018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24019 }
24020 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24021 if (obj5) {
24022 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24023 if (!SWIG_IsOK(res6)) {
24024 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24025 }
24026 if (!argp6) {
24027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24028 }
24029 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24030 }
24031 if (obj6) {
24032 ecode7 = SWIG_AsVal_int(obj6, &val7);
24033 if (!SWIG_IsOK(ecode7)) {
24034 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24035 }
24036 arg7 = static_cast< wxItemKind >(val7);
24037 }
24038 if (obj7) {
24039 {
24040 arg8 = wxString_in_helper(obj7);
24041 if (arg8 == NULL) SWIG_fail;
24042 temp8 = true;
24043 }
24044 }
24045 if (obj8) {
24046 {
24047 arg9 = wxString_in_helper(obj8);
24048 if (arg9 == NULL) SWIG_fail;
24049 temp9 = true;
24050 }
24051 }
24052 if (obj9) {
24053 arg10 = obj9;
24054 }
24055 {
24056 PyThreadState* __tstate = wxPyBeginAllowThreads();
24057 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24058 wxPyEndAllowThreads(__tstate);
24059 if (PyErr_Occurred()) SWIG_fail;
24060 }
24061 {
24062 resultobj = wxPyMake_wxObject(result, (bool)0);
24063 }
24064 {
24065 if (temp4)
24066 delete arg4;
24067 }
24068 {
24069 if (temp8)
24070 delete arg8;
24071 }
24072 {
24073 if (temp9)
24074 delete arg9;
24075 }
24076 return resultobj;
24077 fail:
24078 {
24079 if (temp4)
24080 delete arg4;
24081 }
24082 {
24083 if (temp8)
24084 delete arg8;
24085 }
24086 {
24087 if (temp9)
24088 delete arg9;
24089 }
24090 return NULL;
24091 }
24092
24093
24094 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24095 PyObject *resultobj = 0;
24096 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24097 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24098 wxToolBarToolBase *result = 0 ;
24099 void *argp1 = 0 ;
24100 int res1 = 0 ;
24101 void *argp2 = 0 ;
24102 int res2 = 0 ;
24103 PyObject * obj0 = 0 ;
24104 PyObject * obj1 = 0 ;
24105 char * kwnames[] = {
24106 (char *) "self",(char *) "tool", NULL
24107 };
24108
24109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24111 if (!SWIG_IsOK(res1)) {
24112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24113 }
24114 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24115 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24116 if (!SWIG_IsOK(res2)) {
24117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24118 }
24119 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24120 {
24121 PyThreadState* __tstate = wxPyBeginAllowThreads();
24122 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24123 wxPyEndAllowThreads(__tstate);
24124 if (PyErr_Occurred()) SWIG_fail;
24125 }
24126 {
24127 resultobj = wxPyMake_wxObject(result, (bool)0);
24128 }
24129 return resultobj;
24130 fail:
24131 return NULL;
24132 }
24133
24134
24135 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24136 PyObject *resultobj = 0;
24137 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24138 size_t arg2 ;
24139 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24140 wxToolBarToolBase *result = 0 ;
24141 void *argp1 = 0 ;
24142 int res1 = 0 ;
24143 size_t val2 ;
24144 int ecode2 = 0 ;
24145 void *argp3 = 0 ;
24146 int res3 = 0 ;
24147 PyObject * obj0 = 0 ;
24148 PyObject * obj1 = 0 ;
24149 PyObject * obj2 = 0 ;
24150 char * kwnames[] = {
24151 (char *) "self",(char *) "pos",(char *) "tool", NULL
24152 };
24153
24154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24156 if (!SWIG_IsOK(res1)) {
24157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24158 }
24159 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24160 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24161 if (!SWIG_IsOK(ecode2)) {
24162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24163 }
24164 arg2 = static_cast< size_t >(val2);
24165 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24166 if (!SWIG_IsOK(res3)) {
24167 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24168 }
24169 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24170 {
24171 PyThreadState* __tstate = wxPyBeginAllowThreads();
24172 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24173 wxPyEndAllowThreads(__tstate);
24174 if (PyErr_Occurred()) SWIG_fail;
24175 }
24176 {
24177 resultobj = wxPyMake_wxObject(result, (bool)0);
24178 }
24179 return resultobj;
24180 fail:
24181 return NULL;
24182 }
24183
24184
24185 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24186 PyObject *resultobj = 0;
24187 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24188 wxControl *arg2 = (wxControl *) 0 ;
24189 wxToolBarToolBase *result = 0 ;
24190 void *argp1 = 0 ;
24191 int res1 = 0 ;
24192 void *argp2 = 0 ;
24193 int res2 = 0 ;
24194 PyObject * obj0 = 0 ;
24195 PyObject * obj1 = 0 ;
24196 char * kwnames[] = {
24197 (char *) "self",(char *) "control", NULL
24198 };
24199
24200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24202 if (!SWIG_IsOK(res1)) {
24203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24204 }
24205 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24207 if (!SWIG_IsOK(res2)) {
24208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24209 }
24210 arg2 = reinterpret_cast< wxControl * >(argp2);
24211 {
24212 PyThreadState* __tstate = wxPyBeginAllowThreads();
24213 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24214 wxPyEndAllowThreads(__tstate);
24215 if (PyErr_Occurred()) SWIG_fail;
24216 }
24217 {
24218 resultobj = wxPyMake_wxObject(result, (bool)0);
24219 }
24220 return resultobj;
24221 fail:
24222 return NULL;
24223 }
24224
24225
24226 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24227 PyObject *resultobj = 0;
24228 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24229 size_t arg2 ;
24230 wxControl *arg3 = (wxControl *) 0 ;
24231 wxToolBarToolBase *result = 0 ;
24232 void *argp1 = 0 ;
24233 int res1 = 0 ;
24234 size_t val2 ;
24235 int ecode2 = 0 ;
24236 void *argp3 = 0 ;
24237 int res3 = 0 ;
24238 PyObject * obj0 = 0 ;
24239 PyObject * obj1 = 0 ;
24240 PyObject * obj2 = 0 ;
24241 char * kwnames[] = {
24242 (char *) "self",(char *) "pos",(char *) "control", NULL
24243 };
24244
24245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24247 if (!SWIG_IsOK(res1)) {
24248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24249 }
24250 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24251 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24252 if (!SWIG_IsOK(ecode2)) {
24253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24254 }
24255 arg2 = static_cast< size_t >(val2);
24256 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24257 if (!SWIG_IsOK(res3)) {
24258 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24259 }
24260 arg3 = reinterpret_cast< wxControl * >(argp3);
24261 {
24262 PyThreadState* __tstate = wxPyBeginAllowThreads();
24263 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24264 wxPyEndAllowThreads(__tstate);
24265 if (PyErr_Occurred()) SWIG_fail;
24266 }
24267 {
24268 resultobj = wxPyMake_wxObject(result, (bool)0);
24269 }
24270 return resultobj;
24271 fail:
24272 return NULL;
24273 }
24274
24275
24276 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24277 PyObject *resultobj = 0;
24278 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24279 int arg2 ;
24280 wxControl *result = 0 ;
24281 void *argp1 = 0 ;
24282 int res1 = 0 ;
24283 int val2 ;
24284 int ecode2 = 0 ;
24285 PyObject * obj0 = 0 ;
24286 PyObject * obj1 = 0 ;
24287 char * kwnames[] = {
24288 (char *) "self",(char *) "id", NULL
24289 };
24290
24291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24293 if (!SWIG_IsOK(res1)) {
24294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24295 }
24296 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24297 ecode2 = SWIG_AsVal_int(obj1, &val2);
24298 if (!SWIG_IsOK(ecode2)) {
24299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24300 }
24301 arg2 = static_cast< int >(val2);
24302 {
24303 PyThreadState* __tstate = wxPyBeginAllowThreads();
24304 result = (wxControl *)(arg1)->FindControl(arg2);
24305 wxPyEndAllowThreads(__tstate);
24306 if (PyErr_Occurred()) SWIG_fail;
24307 }
24308 {
24309 resultobj = wxPyMake_wxObject(result, 0);
24310 }
24311 return resultobj;
24312 fail:
24313 return NULL;
24314 }
24315
24316
24317 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24318 PyObject *resultobj = 0;
24319 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24320 wxToolBarToolBase *result = 0 ;
24321 void *argp1 = 0 ;
24322 int res1 = 0 ;
24323 PyObject *swig_obj[1] ;
24324
24325 if (!args) SWIG_fail;
24326 swig_obj[0] = args;
24327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24328 if (!SWIG_IsOK(res1)) {
24329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24330 }
24331 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24332 {
24333 PyThreadState* __tstate = wxPyBeginAllowThreads();
24334 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24335 wxPyEndAllowThreads(__tstate);
24336 if (PyErr_Occurred()) SWIG_fail;
24337 }
24338 {
24339 resultobj = wxPyMake_wxObject(result, (bool)0);
24340 }
24341 return resultobj;
24342 fail:
24343 return NULL;
24344 }
24345
24346
24347 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24348 PyObject *resultobj = 0;
24349 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24350 size_t arg2 ;
24351 wxToolBarToolBase *result = 0 ;
24352 void *argp1 = 0 ;
24353 int res1 = 0 ;
24354 size_t val2 ;
24355 int ecode2 = 0 ;
24356 PyObject * obj0 = 0 ;
24357 PyObject * obj1 = 0 ;
24358 char * kwnames[] = {
24359 (char *) "self",(char *) "pos", NULL
24360 };
24361
24362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24364 if (!SWIG_IsOK(res1)) {
24365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24366 }
24367 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24368 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24369 if (!SWIG_IsOK(ecode2)) {
24370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24371 }
24372 arg2 = static_cast< size_t >(val2);
24373 {
24374 PyThreadState* __tstate = wxPyBeginAllowThreads();
24375 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24376 wxPyEndAllowThreads(__tstate);
24377 if (PyErr_Occurred()) SWIG_fail;
24378 }
24379 {
24380 resultobj = wxPyMake_wxObject(result, (bool)0);
24381 }
24382 return resultobj;
24383 fail:
24384 return NULL;
24385 }
24386
24387
24388 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24389 PyObject *resultobj = 0;
24390 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24391 int arg2 ;
24392 wxToolBarToolBase *result = 0 ;
24393 void *argp1 = 0 ;
24394 int res1 = 0 ;
24395 int val2 ;
24396 int ecode2 = 0 ;
24397 PyObject * obj0 = 0 ;
24398 PyObject * obj1 = 0 ;
24399 char * kwnames[] = {
24400 (char *) "self",(char *) "id", NULL
24401 };
24402
24403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24405 if (!SWIG_IsOK(res1)) {
24406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24407 }
24408 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24409 ecode2 = SWIG_AsVal_int(obj1, &val2);
24410 if (!SWIG_IsOK(ecode2)) {
24411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24412 }
24413 arg2 = static_cast< int >(val2);
24414 {
24415 PyThreadState* __tstate = wxPyBeginAllowThreads();
24416 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24417 wxPyEndAllowThreads(__tstate);
24418 if (PyErr_Occurred()) SWIG_fail;
24419 }
24420 {
24421 resultobj = wxPyMake_wxObject(result, (bool)0);
24422 }
24423 return resultobj;
24424 fail:
24425 return NULL;
24426 }
24427
24428
24429 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24430 PyObject *resultobj = 0;
24431 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24432 size_t arg2 ;
24433 bool result;
24434 void *argp1 = 0 ;
24435 int res1 = 0 ;
24436 size_t val2 ;
24437 int ecode2 = 0 ;
24438 PyObject * obj0 = 0 ;
24439 PyObject * obj1 = 0 ;
24440 char * kwnames[] = {
24441 (char *) "self",(char *) "pos", NULL
24442 };
24443
24444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24446 if (!SWIG_IsOK(res1)) {
24447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24448 }
24449 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24450 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24451 if (!SWIG_IsOK(ecode2)) {
24452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24453 }
24454 arg2 = static_cast< size_t >(val2);
24455 {
24456 PyThreadState* __tstate = wxPyBeginAllowThreads();
24457 result = (bool)(arg1)->DeleteToolByPos(arg2);
24458 wxPyEndAllowThreads(__tstate);
24459 if (PyErr_Occurred()) SWIG_fail;
24460 }
24461 {
24462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24463 }
24464 return resultobj;
24465 fail:
24466 return NULL;
24467 }
24468
24469
24470 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24471 PyObject *resultobj = 0;
24472 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24473 int arg2 ;
24474 bool result;
24475 void *argp1 = 0 ;
24476 int res1 = 0 ;
24477 int val2 ;
24478 int ecode2 = 0 ;
24479 PyObject * obj0 = 0 ;
24480 PyObject * obj1 = 0 ;
24481 char * kwnames[] = {
24482 (char *) "self",(char *) "id", NULL
24483 };
24484
24485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24487 if (!SWIG_IsOK(res1)) {
24488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24489 }
24490 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24491 ecode2 = SWIG_AsVal_int(obj1, &val2);
24492 if (!SWIG_IsOK(ecode2)) {
24493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24494 }
24495 arg2 = static_cast< int >(val2);
24496 {
24497 PyThreadState* __tstate = wxPyBeginAllowThreads();
24498 result = (bool)(arg1)->DeleteTool(arg2);
24499 wxPyEndAllowThreads(__tstate);
24500 if (PyErr_Occurred()) SWIG_fail;
24501 }
24502 {
24503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24504 }
24505 return resultobj;
24506 fail:
24507 return NULL;
24508 }
24509
24510
24511 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24512 PyObject *resultobj = 0;
24513 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24514 void *argp1 = 0 ;
24515 int res1 = 0 ;
24516 PyObject *swig_obj[1] ;
24517
24518 if (!args) SWIG_fail;
24519 swig_obj[0] = args;
24520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24521 if (!SWIG_IsOK(res1)) {
24522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24523 }
24524 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24525 {
24526 PyThreadState* __tstate = wxPyBeginAllowThreads();
24527 (arg1)->ClearTools();
24528 wxPyEndAllowThreads(__tstate);
24529 if (PyErr_Occurred()) SWIG_fail;
24530 }
24531 resultobj = SWIG_Py_Void();
24532 return resultobj;
24533 fail:
24534 return NULL;
24535 }
24536
24537
24538 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24539 PyObject *resultobj = 0;
24540 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24541 bool result;
24542 void *argp1 = 0 ;
24543 int res1 = 0 ;
24544 PyObject *swig_obj[1] ;
24545
24546 if (!args) SWIG_fail;
24547 swig_obj[0] = args;
24548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24549 if (!SWIG_IsOK(res1)) {
24550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24551 }
24552 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24553 {
24554 PyThreadState* __tstate = wxPyBeginAllowThreads();
24555 result = (bool)(arg1)->Realize();
24556 wxPyEndAllowThreads(__tstate);
24557 if (PyErr_Occurred()) SWIG_fail;
24558 }
24559 {
24560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24561 }
24562 return resultobj;
24563 fail:
24564 return NULL;
24565 }
24566
24567
24568 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24569 PyObject *resultobj = 0;
24570 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24571 int arg2 ;
24572 bool arg3 ;
24573 void *argp1 = 0 ;
24574 int res1 = 0 ;
24575 int val2 ;
24576 int ecode2 = 0 ;
24577 bool val3 ;
24578 int ecode3 = 0 ;
24579 PyObject * obj0 = 0 ;
24580 PyObject * obj1 = 0 ;
24581 PyObject * obj2 = 0 ;
24582 char * kwnames[] = {
24583 (char *) "self",(char *) "id",(char *) "enable", NULL
24584 };
24585
24586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24588 if (!SWIG_IsOK(res1)) {
24589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24590 }
24591 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24592 ecode2 = SWIG_AsVal_int(obj1, &val2);
24593 if (!SWIG_IsOK(ecode2)) {
24594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24595 }
24596 arg2 = static_cast< int >(val2);
24597 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24598 if (!SWIG_IsOK(ecode3)) {
24599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24600 }
24601 arg3 = static_cast< bool >(val3);
24602 {
24603 PyThreadState* __tstate = wxPyBeginAllowThreads();
24604 (arg1)->EnableTool(arg2,arg3);
24605 wxPyEndAllowThreads(__tstate);
24606 if (PyErr_Occurred()) SWIG_fail;
24607 }
24608 resultobj = SWIG_Py_Void();
24609 return resultobj;
24610 fail:
24611 return NULL;
24612 }
24613
24614
24615 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24616 PyObject *resultobj = 0;
24617 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24618 int arg2 ;
24619 bool arg3 ;
24620 void *argp1 = 0 ;
24621 int res1 = 0 ;
24622 int val2 ;
24623 int ecode2 = 0 ;
24624 bool val3 ;
24625 int ecode3 = 0 ;
24626 PyObject * obj0 = 0 ;
24627 PyObject * obj1 = 0 ;
24628 PyObject * obj2 = 0 ;
24629 char * kwnames[] = {
24630 (char *) "self",(char *) "id",(char *) "toggle", NULL
24631 };
24632
24633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24635 if (!SWIG_IsOK(res1)) {
24636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24637 }
24638 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24639 ecode2 = SWIG_AsVal_int(obj1, &val2);
24640 if (!SWIG_IsOK(ecode2)) {
24641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24642 }
24643 arg2 = static_cast< int >(val2);
24644 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24645 if (!SWIG_IsOK(ecode3)) {
24646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24647 }
24648 arg3 = static_cast< bool >(val3);
24649 {
24650 PyThreadState* __tstate = wxPyBeginAllowThreads();
24651 (arg1)->ToggleTool(arg2,arg3);
24652 wxPyEndAllowThreads(__tstate);
24653 if (PyErr_Occurred()) SWIG_fail;
24654 }
24655 resultobj = SWIG_Py_Void();
24656 return resultobj;
24657 fail:
24658 return NULL;
24659 }
24660
24661
24662 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24663 PyObject *resultobj = 0;
24664 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24665 int arg2 ;
24666 bool arg3 ;
24667 void *argp1 = 0 ;
24668 int res1 = 0 ;
24669 int val2 ;
24670 int ecode2 = 0 ;
24671 bool val3 ;
24672 int ecode3 = 0 ;
24673 PyObject * obj0 = 0 ;
24674 PyObject * obj1 = 0 ;
24675 PyObject * obj2 = 0 ;
24676 char * kwnames[] = {
24677 (char *) "self",(char *) "id",(char *) "toggle", NULL
24678 };
24679
24680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24682 if (!SWIG_IsOK(res1)) {
24683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24684 }
24685 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24686 ecode2 = SWIG_AsVal_int(obj1, &val2);
24687 if (!SWIG_IsOK(ecode2)) {
24688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24689 }
24690 arg2 = static_cast< int >(val2);
24691 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24692 if (!SWIG_IsOK(ecode3)) {
24693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24694 }
24695 arg3 = static_cast< bool >(val3);
24696 {
24697 PyThreadState* __tstate = wxPyBeginAllowThreads();
24698 (arg1)->SetToggle(arg2,arg3);
24699 wxPyEndAllowThreads(__tstate);
24700 if (PyErr_Occurred()) SWIG_fail;
24701 }
24702 resultobj = SWIG_Py_Void();
24703 return resultobj;
24704 fail:
24705 return NULL;
24706 }
24707
24708
24709 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24710 PyObject *resultobj = 0;
24711 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24712 int arg2 ;
24713 PyObject *result = 0 ;
24714 void *argp1 = 0 ;
24715 int res1 = 0 ;
24716 int val2 ;
24717 int ecode2 = 0 ;
24718 PyObject * obj0 = 0 ;
24719 PyObject * obj1 = 0 ;
24720 char * kwnames[] = {
24721 (char *) "self",(char *) "id", NULL
24722 };
24723
24724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24726 if (!SWIG_IsOK(res1)) {
24727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24728 }
24729 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24730 ecode2 = SWIG_AsVal_int(obj1, &val2);
24731 if (!SWIG_IsOK(ecode2)) {
24732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24733 }
24734 arg2 = static_cast< int >(val2);
24735 {
24736 PyThreadState* __tstate = wxPyBeginAllowThreads();
24737 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24738 wxPyEndAllowThreads(__tstate);
24739 if (PyErr_Occurred()) SWIG_fail;
24740 }
24741 resultobj = result;
24742 return resultobj;
24743 fail:
24744 return NULL;
24745 }
24746
24747
24748 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24749 PyObject *resultobj = 0;
24750 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24751 int arg2 ;
24752 PyObject *arg3 = (PyObject *) 0 ;
24753 void *argp1 = 0 ;
24754 int res1 = 0 ;
24755 int val2 ;
24756 int ecode2 = 0 ;
24757 PyObject * obj0 = 0 ;
24758 PyObject * obj1 = 0 ;
24759 PyObject * obj2 = 0 ;
24760 char * kwnames[] = {
24761 (char *) "self",(char *) "id",(char *) "clientData", NULL
24762 };
24763
24764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24766 if (!SWIG_IsOK(res1)) {
24767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24768 }
24769 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24770 ecode2 = SWIG_AsVal_int(obj1, &val2);
24771 if (!SWIG_IsOK(ecode2)) {
24772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24773 }
24774 arg2 = static_cast< int >(val2);
24775 arg3 = obj2;
24776 {
24777 PyThreadState* __tstate = wxPyBeginAllowThreads();
24778 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24779 wxPyEndAllowThreads(__tstate);
24780 if (PyErr_Occurred()) SWIG_fail;
24781 }
24782 resultobj = SWIG_Py_Void();
24783 return resultobj;
24784 fail:
24785 return NULL;
24786 }
24787
24788
24789 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24790 PyObject *resultobj = 0;
24791 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24792 int arg2 ;
24793 int result;
24794 void *argp1 = 0 ;
24795 int res1 = 0 ;
24796 int val2 ;
24797 int ecode2 = 0 ;
24798 PyObject * obj0 = 0 ;
24799 PyObject * obj1 = 0 ;
24800 char * kwnames[] = {
24801 (char *) "self",(char *) "id", NULL
24802 };
24803
24804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24806 if (!SWIG_IsOK(res1)) {
24807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24808 }
24809 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24810 ecode2 = SWIG_AsVal_int(obj1, &val2);
24811 if (!SWIG_IsOK(ecode2)) {
24812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24813 }
24814 arg2 = static_cast< int >(val2);
24815 {
24816 PyThreadState* __tstate = wxPyBeginAllowThreads();
24817 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24818 wxPyEndAllowThreads(__tstate);
24819 if (PyErr_Occurred()) SWIG_fail;
24820 }
24821 resultobj = SWIG_From_int(static_cast< int >(result));
24822 return resultobj;
24823 fail:
24824 return NULL;
24825 }
24826
24827
24828 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24829 PyObject *resultobj = 0;
24830 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24831 int arg2 ;
24832 bool result;
24833 void *argp1 = 0 ;
24834 int res1 = 0 ;
24835 int val2 ;
24836 int ecode2 = 0 ;
24837 PyObject * obj0 = 0 ;
24838 PyObject * obj1 = 0 ;
24839 char * kwnames[] = {
24840 (char *) "self",(char *) "id", NULL
24841 };
24842
24843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24845 if (!SWIG_IsOK(res1)) {
24846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24847 }
24848 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24849 ecode2 = SWIG_AsVal_int(obj1, &val2);
24850 if (!SWIG_IsOK(ecode2)) {
24851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24852 }
24853 arg2 = static_cast< int >(val2);
24854 {
24855 PyThreadState* __tstate = wxPyBeginAllowThreads();
24856 result = (bool)(arg1)->GetToolState(arg2);
24857 wxPyEndAllowThreads(__tstate);
24858 if (PyErr_Occurred()) SWIG_fail;
24859 }
24860 {
24861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24862 }
24863 return resultobj;
24864 fail:
24865 return NULL;
24866 }
24867
24868
24869 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24870 PyObject *resultobj = 0;
24871 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24872 int arg2 ;
24873 bool result;
24874 void *argp1 = 0 ;
24875 int res1 = 0 ;
24876 int val2 ;
24877 int ecode2 = 0 ;
24878 PyObject * obj0 = 0 ;
24879 PyObject * obj1 = 0 ;
24880 char * kwnames[] = {
24881 (char *) "self",(char *) "id", NULL
24882 };
24883
24884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24886 if (!SWIG_IsOK(res1)) {
24887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24888 }
24889 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24890 ecode2 = SWIG_AsVal_int(obj1, &val2);
24891 if (!SWIG_IsOK(ecode2)) {
24892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24893 }
24894 arg2 = static_cast< int >(val2);
24895 {
24896 PyThreadState* __tstate = wxPyBeginAllowThreads();
24897 result = (bool)(arg1)->GetToolEnabled(arg2);
24898 wxPyEndAllowThreads(__tstate);
24899 if (PyErr_Occurred()) SWIG_fail;
24900 }
24901 {
24902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24903 }
24904 return resultobj;
24905 fail:
24906 return NULL;
24907 }
24908
24909
24910 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24911 PyObject *resultobj = 0;
24912 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24913 int arg2 ;
24914 wxString *arg3 = 0 ;
24915 void *argp1 = 0 ;
24916 int res1 = 0 ;
24917 int val2 ;
24918 int ecode2 = 0 ;
24919 bool temp3 = false ;
24920 PyObject * obj0 = 0 ;
24921 PyObject * obj1 = 0 ;
24922 PyObject * obj2 = 0 ;
24923 char * kwnames[] = {
24924 (char *) "self",(char *) "id",(char *) "helpString", NULL
24925 };
24926
24927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24929 if (!SWIG_IsOK(res1)) {
24930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24931 }
24932 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24933 ecode2 = SWIG_AsVal_int(obj1, &val2);
24934 if (!SWIG_IsOK(ecode2)) {
24935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24936 }
24937 arg2 = static_cast< int >(val2);
24938 {
24939 arg3 = wxString_in_helper(obj2);
24940 if (arg3 == NULL) SWIG_fail;
24941 temp3 = true;
24942 }
24943 {
24944 PyThreadState* __tstate = wxPyBeginAllowThreads();
24945 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24946 wxPyEndAllowThreads(__tstate);
24947 if (PyErr_Occurred()) SWIG_fail;
24948 }
24949 resultobj = SWIG_Py_Void();
24950 {
24951 if (temp3)
24952 delete arg3;
24953 }
24954 return resultobj;
24955 fail:
24956 {
24957 if (temp3)
24958 delete arg3;
24959 }
24960 return NULL;
24961 }
24962
24963
24964 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24965 PyObject *resultobj = 0;
24966 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24967 int arg2 ;
24968 wxString result;
24969 void *argp1 = 0 ;
24970 int res1 = 0 ;
24971 int val2 ;
24972 int ecode2 = 0 ;
24973 PyObject * obj0 = 0 ;
24974 PyObject * obj1 = 0 ;
24975 char * kwnames[] = {
24976 (char *) "self",(char *) "id", NULL
24977 };
24978
24979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24981 if (!SWIG_IsOK(res1)) {
24982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24983 }
24984 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24985 ecode2 = SWIG_AsVal_int(obj1, &val2);
24986 if (!SWIG_IsOK(ecode2)) {
24987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24988 }
24989 arg2 = static_cast< int >(val2);
24990 {
24991 PyThreadState* __tstate = wxPyBeginAllowThreads();
24992 result = (arg1)->GetToolShortHelp(arg2);
24993 wxPyEndAllowThreads(__tstate);
24994 if (PyErr_Occurred()) SWIG_fail;
24995 }
24996 {
24997 #if wxUSE_UNICODE
24998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24999 #else
25000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25001 #endif
25002 }
25003 return resultobj;
25004 fail:
25005 return NULL;
25006 }
25007
25008
25009 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25010 PyObject *resultobj = 0;
25011 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25012 int arg2 ;
25013 wxString *arg3 = 0 ;
25014 void *argp1 = 0 ;
25015 int res1 = 0 ;
25016 int val2 ;
25017 int ecode2 = 0 ;
25018 bool temp3 = false ;
25019 PyObject * obj0 = 0 ;
25020 PyObject * obj1 = 0 ;
25021 PyObject * obj2 = 0 ;
25022 char * kwnames[] = {
25023 (char *) "self",(char *) "id",(char *) "helpString", NULL
25024 };
25025
25026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25028 if (!SWIG_IsOK(res1)) {
25029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25030 }
25031 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25032 ecode2 = SWIG_AsVal_int(obj1, &val2);
25033 if (!SWIG_IsOK(ecode2)) {
25034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25035 }
25036 arg2 = static_cast< int >(val2);
25037 {
25038 arg3 = wxString_in_helper(obj2);
25039 if (arg3 == NULL) SWIG_fail;
25040 temp3 = true;
25041 }
25042 {
25043 PyThreadState* __tstate = wxPyBeginAllowThreads();
25044 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25045 wxPyEndAllowThreads(__tstate);
25046 if (PyErr_Occurred()) SWIG_fail;
25047 }
25048 resultobj = SWIG_Py_Void();
25049 {
25050 if (temp3)
25051 delete arg3;
25052 }
25053 return resultobj;
25054 fail:
25055 {
25056 if (temp3)
25057 delete arg3;
25058 }
25059 return NULL;
25060 }
25061
25062
25063 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25064 PyObject *resultobj = 0;
25065 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25066 int arg2 ;
25067 wxString result;
25068 void *argp1 = 0 ;
25069 int res1 = 0 ;
25070 int val2 ;
25071 int ecode2 = 0 ;
25072 PyObject * obj0 = 0 ;
25073 PyObject * obj1 = 0 ;
25074 char * kwnames[] = {
25075 (char *) "self",(char *) "id", NULL
25076 };
25077
25078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25080 if (!SWIG_IsOK(res1)) {
25081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25082 }
25083 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25084 ecode2 = SWIG_AsVal_int(obj1, &val2);
25085 if (!SWIG_IsOK(ecode2)) {
25086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25087 }
25088 arg2 = static_cast< int >(val2);
25089 {
25090 PyThreadState* __tstate = wxPyBeginAllowThreads();
25091 result = (arg1)->GetToolLongHelp(arg2);
25092 wxPyEndAllowThreads(__tstate);
25093 if (PyErr_Occurred()) SWIG_fail;
25094 }
25095 {
25096 #if wxUSE_UNICODE
25097 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25098 #else
25099 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25100 #endif
25101 }
25102 return resultobj;
25103 fail:
25104 return NULL;
25105 }
25106
25107
25108 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25109 PyObject *resultobj = 0;
25110 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25111 int arg2 ;
25112 int arg3 ;
25113 void *argp1 = 0 ;
25114 int res1 = 0 ;
25115 int val2 ;
25116 int ecode2 = 0 ;
25117 int val3 ;
25118 int ecode3 = 0 ;
25119 PyObject * obj0 = 0 ;
25120 PyObject * obj1 = 0 ;
25121 PyObject * obj2 = 0 ;
25122 char * kwnames[] = {
25123 (char *) "self",(char *) "x",(char *) "y", NULL
25124 };
25125
25126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25128 if (!SWIG_IsOK(res1)) {
25129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25130 }
25131 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25132 ecode2 = SWIG_AsVal_int(obj1, &val2);
25133 if (!SWIG_IsOK(ecode2)) {
25134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25135 }
25136 arg2 = static_cast< int >(val2);
25137 ecode3 = SWIG_AsVal_int(obj2, &val3);
25138 if (!SWIG_IsOK(ecode3)) {
25139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25140 }
25141 arg3 = static_cast< int >(val3);
25142 {
25143 PyThreadState* __tstate = wxPyBeginAllowThreads();
25144 (arg1)->SetMargins(arg2,arg3);
25145 wxPyEndAllowThreads(__tstate);
25146 if (PyErr_Occurred()) SWIG_fail;
25147 }
25148 resultobj = SWIG_Py_Void();
25149 return resultobj;
25150 fail:
25151 return NULL;
25152 }
25153
25154
25155 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25156 PyObject *resultobj = 0;
25157 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25158 wxSize *arg2 = 0 ;
25159 void *argp1 = 0 ;
25160 int res1 = 0 ;
25161 wxSize temp2 ;
25162 PyObject * obj0 = 0 ;
25163 PyObject * obj1 = 0 ;
25164 char * kwnames[] = {
25165 (char *) "self",(char *) "size", NULL
25166 };
25167
25168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25170 if (!SWIG_IsOK(res1)) {
25171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25172 }
25173 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25174 {
25175 arg2 = &temp2;
25176 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25177 }
25178 {
25179 PyThreadState* __tstate = wxPyBeginAllowThreads();
25180 (arg1)->SetMargins((wxSize const &)*arg2);
25181 wxPyEndAllowThreads(__tstate);
25182 if (PyErr_Occurred()) SWIG_fail;
25183 }
25184 resultobj = SWIG_Py_Void();
25185 return resultobj;
25186 fail:
25187 return NULL;
25188 }
25189
25190
25191 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25192 PyObject *resultobj = 0;
25193 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25194 int arg2 ;
25195 void *argp1 = 0 ;
25196 int res1 = 0 ;
25197 int val2 ;
25198 int ecode2 = 0 ;
25199 PyObject * obj0 = 0 ;
25200 PyObject * obj1 = 0 ;
25201 char * kwnames[] = {
25202 (char *) "self",(char *) "packing", NULL
25203 };
25204
25205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25207 if (!SWIG_IsOK(res1)) {
25208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25209 }
25210 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25211 ecode2 = SWIG_AsVal_int(obj1, &val2);
25212 if (!SWIG_IsOK(ecode2)) {
25213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25214 }
25215 arg2 = static_cast< int >(val2);
25216 {
25217 PyThreadState* __tstate = wxPyBeginAllowThreads();
25218 (arg1)->SetToolPacking(arg2);
25219 wxPyEndAllowThreads(__tstate);
25220 if (PyErr_Occurred()) SWIG_fail;
25221 }
25222 resultobj = SWIG_Py_Void();
25223 return resultobj;
25224 fail:
25225 return NULL;
25226 }
25227
25228
25229 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25230 PyObject *resultobj = 0;
25231 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25232 int arg2 ;
25233 void *argp1 = 0 ;
25234 int res1 = 0 ;
25235 int val2 ;
25236 int ecode2 = 0 ;
25237 PyObject * obj0 = 0 ;
25238 PyObject * obj1 = 0 ;
25239 char * kwnames[] = {
25240 (char *) "self",(char *) "separation", NULL
25241 };
25242
25243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25245 if (!SWIG_IsOK(res1)) {
25246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25247 }
25248 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25249 ecode2 = SWIG_AsVal_int(obj1, &val2);
25250 if (!SWIG_IsOK(ecode2)) {
25251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25252 }
25253 arg2 = static_cast< int >(val2);
25254 {
25255 PyThreadState* __tstate = wxPyBeginAllowThreads();
25256 (arg1)->SetToolSeparation(arg2);
25257 wxPyEndAllowThreads(__tstate);
25258 if (PyErr_Occurred()) SWIG_fail;
25259 }
25260 resultobj = SWIG_Py_Void();
25261 return resultobj;
25262 fail:
25263 return NULL;
25264 }
25265
25266
25267 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25268 PyObject *resultobj = 0;
25269 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25270 wxSize result;
25271 void *argp1 = 0 ;
25272 int res1 = 0 ;
25273 PyObject *swig_obj[1] ;
25274
25275 if (!args) SWIG_fail;
25276 swig_obj[0] = args;
25277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25278 if (!SWIG_IsOK(res1)) {
25279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25280 }
25281 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25282 {
25283 PyThreadState* __tstate = wxPyBeginAllowThreads();
25284 result = (arg1)->GetToolMargins();
25285 wxPyEndAllowThreads(__tstate);
25286 if (PyErr_Occurred()) SWIG_fail;
25287 }
25288 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25289 return resultobj;
25290 fail:
25291 return NULL;
25292 }
25293
25294
25295 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25296 PyObject *resultobj = 0;
25297 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25298 wxSize result;
25299 void *argp1 = 0 ;
25300 int res1 = 0 ;
25301 PyObject *swig_obj[1] ;
25302
25303 if (!args) SWIG_fail;
25304 swig_obj[0] = args;
25305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25306 if (!SWIG_IsOK(res1)) {
25307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25308 }
25309 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25310 {
25311 PyThreadState* __tstate = wxPyBeginAllowThreads();
25312 result = (arg1)->GetMargins();
25313 wxPyEndAllowThreads(__tstate);
25314 if (PyErr_Occurred()) SWIG_fail;
25315 }
25316 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25317 return resultobj;
25318 fail:
25319 return NULL;
25320 }
25321
25322
25323 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25324 PyObject *resultobj = 0;
25325 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25326 int result;
25327 void *argp1 = 0 ;
25328 int res1 = 0 ;
25329 PyObject *swig_obj[1] ;
25330
25331 if (!args) SWIG_fail;
25332 swig_obj[0] = args;
25333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25334 if (!SWIG_IsOK(res1)) {
25335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25336 }
25337 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25338 {
25339 PyThreadState* __tstate = wxPyBeginAllowThreads();
25340 result = (int)(arg1)->GetToolPacking();
25341 wxPyEndAllowThreads(__tstate);
25342 if (PyErr_Occurred()) SWIG_fail;
25343 }
25344 resultobj = SWIG_From_int(static_cast< int >(result));
25345 return resultobj;
25346 fail:
25347 return NULL;
25348 }
25349
25350
25351 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25352 PyObject *resultobj = 0;
25353 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25354 int result;
25355 void *argp1 = 0 ;
25356 int res1 = 0 ;
25357 PyObject *swig_obj[1] ;
25358
25359 if (!args) SWIG_fail;
25360 swig_obj[0] = args;
25361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25362 if (!SWIG_IsOK(res1)) {
25363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25364 }
25365 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25366 {
25367 PyThreadState* __tstate = wxPyBeginAllowThreads();
25368 result = (int)(arg1)->GetToolSeparation();
25369 wxPyEndAllowThreads(__tstate);
25370 if (PyErr_Occurred()) SWIG_fail;
25371 }
25372 resultobj = SWIG_From_int(static_cast< int >(result));
25373 return resultobj;
25374 fail:
25375 return NULL;
25376 }
25377
25378
25379 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25380 PyObject *resultobj = 0;
25381 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25382 int arg2 ;
25383 void *argp1 = 0 ;
25384 int res1 = 0 ;
25385 int val2 ;
25386 int ecode2 = 0 ;
25387 PyObject * obj0 = 0 ;
25388 PyObject * obj1 = 0 ;
25389 char * kwnames[] = {
25390 (char *) "self",(char *) "nRows", NULL
25391 };
25392
25393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25395 if (!SWIG_IsOK(res1)) {
25396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25397 }
25398 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25399 ecode2 = SWIG_AsVal_int(obj1, &val2);
25400 if (!SWIG_IsOK(ecode2)) {
25401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25402 }
25403 arg2 = static_cast< int >(val2);
25404 {
25405 PyThreadState* __tstate = wxPyBeginAllowThreads();
25406 (arg1)->SetRows(arg2);
25407 wxPyEndAllowThreads(__tstate);
25408 if (PyErr_Occurred()) SWIG_fail;
25409 }
25410 resultobj = SWIG_Py_Void();
25411 return resultobj;
25412 fail:
25413 return NULL;
25414 }
25415
25416
25417 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25418 PyObject *resultobj = 0;
25419 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25420 int arg2 ;
25421 int arg3 ;
25422 void *argp1 = 0 ;
25423 int res1 = 0 ;
25424 int val2 ;
25425 int ecode2 = 0 ;
25426 int val3 ;
25427 int ecode3 = 0 ;
25428 PyObject * obj0 = 0 ;
25429 PyObject * obj1 = 0 ;
25430 PyObject * obj2 = 0 ;
25431 char * kwnames[] = {
25432 (char *) "self",(char *) "rows",(char *) "cols", NULL
25433 };
25434
25435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25437 if (!SWIG_IsOK(res1)) {
25438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25439 }
25440 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25441 ecode2 = SWIG_AsVal_int(obj1, &val2);
25442 if (!SWIG_IsOK(ecode2)) {
25443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25444 }
25445 arg2 = static_cast< int >(val2);
25446 ecode3 = SWIG_AsVal_int(obj2, &val3);
25447 if (!SWIG_IsOK(ecode3)) {
25448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25449 }
25450 arg3 = static_cast< int >(val3);
25451 {
25452 PyThreadState* __tstate = wxPyBeginAllowThreads();
25453 (arg1)->SetMaxRowsCols(arg2,arg3);
25454 wxPyEndAllowThreads(__tstate);
25455 if (PyErr_Occurred()) SWIG_fail;
25456 }
25457 resultobj = SWIG_Py_Void();
25458 return resultobj;
25459 fail:
25460 return NULL;
25461 }
25462
25463
25464 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25465 PyObject *resultobj = 0;
25466 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25467 int result;
25468 void *argp1 = 0 ;
25469 int res1 = 0 ;
25470 PyObject *swig_obj[1] ;
25471
25472 if (!args) SWIG_fail;
25473 swig_obj[0] = args;
25474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25475 if (!SWIG_IsOK(res1)) {
25476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25477 }
25478 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25479 {
25480 PyThreadState* __tstate = wxPyBeginAllowThreads();
25481 result = (int)(arg1)->GetMaxRows();
25482 wxPyEndAllowThreads(__tstate);
25483 if (PyErr_Occurred()) SWIG_fail;
25484 }
25485 resultobj = SWIG_From_int(static_cast< int >(result));
25486 return resultobj;
25487 fail:
25488 return NULL;
25489 }
25490
25491
25492 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25493 PyObject *resultobj = 0;
25494 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25495 int result;
25496 void *argp1 = 0 ;
25497 int res1 = 0 ;
25498 PyObject *swig_obj[1] ;
25499
25500 if (!args) SWIG_fail;
25501 swig_obj[0] = args;
25502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25503 if (!SWIG_IsOK(res1)) {
25504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25505 }
25506 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25507 {
25508 PyThreadState* __tstate = wxPyBeginAllowThreads();
25509 result = (int)(arg1)->GetMaxCols();
25510 wxPyEndAllowThreads(__tstate);
25511 if (PyErr_Occurred()) SWIG_fail;
25512 }
25513 resultobj = SWIG_From_int(static_cast< int >(result));
25514 return resultobj;
25515 fail:
25516 return NULL;
25517 }
25518
25519
25520 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25521 PyObject *resultobj = 0;
25522 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25523 wxSize *arg2 = 0 ;
25524 void *argp1 = 0 ;
25525 int res1 = 0 ;
25526 wxSize temp2 ;
25527 PyObject * obj0 = 0 ;
25528 PyObject * obj1 = 0 ;
25529 char * kwnames[] = {
25530 (char *) "self",(char *) "size", NULL
25531 };
25532
25533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25535 if (!SWIG_IsOK(res1)) {
25536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25537 }
25538 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25539 {
25540 arg2 = &temp2;
25541 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25542 }
25543 {
25544 PyThreadState* __tstate = wxPyBeginAllowThreads();
25545 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25546 wxPyEndAllowThreads(__tstate);
25547 if (PyErr_Occurred()) SWIG_fail;
25548 }
25549 resultobj = SWIG_Py_Void();
25550 return resultobj;
25551 fail:
25552 return NULL;
25553 }
25554
25555
25556 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25557 PyObject *resultobj = 0;
25558 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25559 wxSize result;
25560 void *argp1 = 0 ;
25561 int res1 = 0 ;
25562 PyObject *swig_obj[1] ;
25563
25564 if (!args) SWIG_fail;
25565 swig_obj[0] = args;
25566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25567 if (!SWIG_IsOK(res1)) {
25568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25569 }
25570 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25571 {
25572 PyThreadState* __tstate = wxPyBeginAllowThreads();
25573 result = (arg1)->GetToolBitmapSize();
25574 wxPyEndAllowThreads(__tstate);
25575 if (PyErr_Occurred()) SWIG_fail;
25576 }
25577 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25578 return resultobj;
25579 fail:
25580 return NULL;
25581 }
25582
25583
25584 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25585 PyObject *resultobj = 0;
25586 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25587 wxSize result;
25588 void *argp1 = 0 ;
25589 int res1 = 0 ;
25590 PyObject *swig_obj[1] ;
25591
25592 if (!args) SWIG_fail;
25593 swig_obj[0] = args;
25594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25595 if (!SWIG_IsOK(res1)) {
25596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25597 }
25598 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25599 {
25600 PyThreadState* __tstate = wxPyBeginAllowThreads();
25601 result = (arg1)->GetToolSize();
25602 wxPyEndAllowThreads(__tstate);
25603 if (PyErr_Occurred()) SWIG_fail;
25604 }
25605 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25606 return resultobj;
25607 fail:
25608 return NULL;
25609 }
25610
25611
25612 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25613 PyObject *resultobj = 0;
25614 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25615 int arg2 ;
25616 int arg3 ;
25617 wxToolBarToolBase *result = 0 ;
25618 void *argp1 = 0 ;
25619 int res1 = 0 ;
25620 int val2 ;
25621 int ecode2 = 0 ;
25622 int val3 ;
25623 int ecode3 = 0 ;
25624 PyObject * obj0 = 0 ;
25625 PyObject * obj1 = 0 ;
25626 PyObject * obj2 = 0 ;
25627 char * kwnames[] = {
25628 (char *) "self",(char *) "x",(char *) "y", NULL
25629 };
25630
25631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25633 if (!SWIG_IsOK(res1)) {
25634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25635 }
25636 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25637 ecode2 = SWIG_AsVal_int(obj1, &val2);
25638 if (!SWIG_IsOK(ecode2)) {
25639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25640 }
25641 arg2 = static_cast< int >(val2);
25642 ecode3 = SWIG_AsVal_int(obj2, &val3);
25643 if (!SWIG_IsOK(ecode3)) {
25644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25645 }
25646 arg3 = static_cast< int >(val3);
25647 {
25648 PyThreadState* __tstate = wxPyBeginAllowThreads();
25649 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25650 wxPyEndAllowThreads(__tstate);
25651 if (PyErr_Occurred()) SWIG_fail;
25652 }
25653 {
25654 resultobj = wxPyMake_wxObject(result, (bool)0);
25655 }
25656 return resultobj;
25657 fail:
25658 return NULL;
25659 }
25660
25661
25662 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25663 PyObject *resultobj = 0;
25664 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25665 int arg2 ;
25666 wxToolBarToolBase *result = 0 ;
25667 void *argp1 = 0 ;
25668 int res1 = 0 ;
25669 int val2 ;
25670 int ecode2 = 0 ;
25671 PyObject * obj0 = 0 ;
25672 PyObject * obj1 = 0 ;
25673 char * kwnames[] = {
25674 (char *) "self",(char *) "toolid", NULL
25675 };
25676
25677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25679 if (!SWIG_IsOK(res1)) {
25680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25681 }
25682 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25683 ecode2 = SWIG_AsVal_int(obj1, &val2);
25684 if (!SWIG_IsOK(ecode2)) {
25685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25686 }
25687 arg2 = static_cast< int >(val2);
25688 {
25689 PyThreadState* __tstate = wxPyBeginAllowThreads();
25690 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25691 wxPyEndAllowThreads(__tstate);
25692 if (PyErr_Occurred()) SWIG_fail;
25693 }
25694 {
25695 resultobj = wxPyMake_wxObject(result, (bool)0);
25696 }
25697 return resultobj;
25698 fail:
25699 return NULL;
25700 }
25701
25702
25703 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25704 PyObject *resultobj = 0;
25705 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25706 bool result;
25707 void *argp1 = 0 ;
25708 int res1 = 0 ;
25709 PyObject *swig_obj[1] ;
25710
25711 if (!args) SWIG_fail;
25712 swig_obj[0] = args;
25713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25714 if (!SWIG_IsOK(res1)) {
25715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25716 }
25717 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25718 {
25719 PyThreadState* __tstate = wxPyBeginAllowThreads();
25720 result = (bool)(arg1)->IsVertical();
25721 wxPyEndAllowThreads(__tstate);
25722 if (PyErr_Occurred()) SWIG_fail;
25723 }
25724 {
25725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25726 }
25727 return resultobj;
25728 fail:
25729 return NULL;
25730 }
25731
25732
25733 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25734 PyObject *resultobj = 0;
25735 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25736 size_t result;
25737 void *argp1 = 0 ;
25738 int res1 = 0 ;
25739 PyObject *swig_obj[1] ;
25740
25741 if (!args) SWIG_fail;
25742 swig_obj[0] = args;
25743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25744 if (!SWIG_IsOK(res1)) {
25745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25746 }
25747 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25748 {
25749 PyThreadState* __tstate = wxPyBeginAllowThreads();
25750 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25751 wxPyEndAllowThreads(__tstate);
25752 if (PyErr_Occurred()) SWIG_fail;
25753 }
25754 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25755 return resultobj;
25756 fail:
25757 return NULL;
25758 }
25759
25760
25761 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25762 PyObject *obj;
25763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25764 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25765 return SWIG_Py_Void();
25766 }
25767
25768 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25769 PyObject *resultobj = 0;
25770 wxWindow *arg1 = (wxWindow *) 0 ;
25771 int arg2 = (int) -1 ;
25772 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25773 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25774 wxSize const &arg4_defvalue = wxDefaultSize ;
25775 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25776 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25777 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25778 wxString *arg6 = (wxString *) &arg6_defvalue ;
25779 wxToolBar *result = 0 ;
25780 void *argp1 = 0 ;
25781 int res1 = 0 ;
25782 int val2 ;
25783 int ecode2 = 0 ;
25784 wxPoint temp3 ;
25785 wxSize temp4 ;
25786 long val5 ;
25787 int ecode5 = 0 ;
25788 bool temp6 = false ;
25789 PyObject * obj0 = 0 ;
25790 PyObject * obj1 = 0 ;
25791 PyObject * obj2 = 0 ;
25792 PyObject * obj3 = 0 ;
25793 PyObject * obj4 = 0 ;
25794 PyObject * obj5 = 0 ;
25795 char * kwnames[] = {
25796 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25797 };
25798
25799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25801 if (!SWIG_IsOK(res1)) {
25802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25803 }
25804 arg1 = reinterpret_cast< wxWindow * >(argp1);
25805 if (obj1) {
25806 ecode2 = SWIG_AsVal_int(obj1, &val2);
25807 if (!SWIG_IsOK(ecode2)) {
25808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25809 }
25810 arg2 = static_cast< int >(val2);
25811 }
25812 if (obj2) {
25813 {
25814 arg3 = &temp3;
25815 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25816 }
25817 }
25818 if (obj3) {
25819 {
25820 arg4 = &temp4;
25821 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25822 }
25823 }
25824 if (obj4) {
25825 ecode5 = SWIG_AsVal_long(obj4, &val5);
25826 if (!SWIG_IsOK(ecode5)) {
25827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25828 }
25829 arg5 = static_cast< long >(val5);
25830 }
25831 if (obj5) {
25832 {
25833 arg6 = wxString_in_helper(obj5);
25834 if (arg6 == NULL) SWIG_fail;
25835 temp6 = true;
25836 }
25837 }
25838 {
25839 if (!wxPyCheckForApp()) SWIG_fail;
25840 PyThreadState* __tstate = wxPyBeginAllowThreads();
25841 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25842 wxPyEndAllowThreads(__tstate);
25843 if (PyErr_Occurred()) SWIG_fail;
25844 }
25845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25846 {
25847 if (temp6)
25848 delete arg6;
25849 }
25850 return resultobj;
25851 fail:
25852 {
25853 if (temp6)
25854 delete arg6;
25855 }
25856 return NULL;
25857 }
25858
25859
25860 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25861 PyObject *resultobj = 0;
25862 wxToolBar *result = 0 ;
25863
25864 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25865 {
25866 if (!wxPyCheckForApp()) SWIG_fail;
25867 PyThreadState* __tstate = wxPyBeginAllowThreads();
25868 result = (wxToolBar *)new wxToolBar();
25869 wxPyEndAllowThreads(__tstate);
25870 if (PyErr_Occurred()) SWIG_fail;
25871 }
25872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25873 return resultobj;
25874 fail:
25875 return NULL;
25876 }
25877
25878
25879 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25880 PyObject *resultobj = 0;
25881 wxToolBar *arg1 = (wxToolBar *) 0 ;
25882 wxWindow *arg2 = (wxWindow *) 0 ;
25883 int arg3 = (int) -1 ;
25884 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25885 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25886 wxSize const &arg5_defvalue = wxDefaultSize ;
25887 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25888 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25889 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25890 wxString *arg7 = (wxString *) &arg7_defvalue ;
25891 bool result;
25892 void *argp1 = 0 ;
25893 int res1 = 0 ;
25894 void *argp2 = 0 ;
25895 int res2 = 0 ;
25896 int val3 ;
25897 int ecode3 = 0 ;
25898 wxPoint temp4 ;
25899 wxSize temp5 ;
25900 long val6 ;
25901 int ecode6 = 0 ;
25902 bool temp7 = false ;
25903 PyObject * obj0 = 0 ;
25904 PyObject * obj1 = 0 ;
25905 PyObject * obj2 = 0 ;
25906 PyObject * obj3 = 0 ;
25907 PyObject * obj4 = 0 ;
25908 PyObject * obj5 = 0 ;
25909 PyObject * obj6 = 0 ;
25910 char * kwnames[] = {
25911 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25912 };
25913
25914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25916 if (!SWIG_IsOK(res1)) {
25917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25918 }
25919 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25920 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25921 if (!SWIG_IsOK(res2)) {
25922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25923 }
25924 arg2 = reinterpret_cast< wxWindow * >(argp2);
25925 if (obj2) {
25926 ecode3 = SWIG_AsVal_int(obj2, &val3);
25927 if (!SWIG_IsOK(ecode3)) {
25928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25929 }
25930 arg3 = static_cast< int >(val3);
25931 }
25932 if (obj3) {
25933 {
25934 arg4 = &temp4;
25935 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25936 }
25937 }
25938 if (obj4) {
25939 {
25940 arg5 = &temp5;
25941 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25942 }
25943 }
25944 if (obj5) {
25945 ecode6 = SWIG_AsVal_long(obj5, &val6);
25946 if (!SWIG_IsOK(ecode6)) {
25947 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25948 }
25949 arg6 = static_cast< long >(val6);
25950 }
25951 if (obj6) {
25952 {
25953 arg7 = wxString_in_helper(obj6);
25954 if (arg7 == NULL) SWIG_fail;
25955 temp7 = true;
25956 }
25957 }
25958 {
25959 PyThreadState* __tstate = wxPyBeginAllowThreads();
25960 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25961 wxPyEndAllowThreads(__tstate);
25962 if (PyErr_Occurred()) SWIG_fail;
25963 }
25964 {
25965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25966 }
25967 {
25968 if (temp7)
25969 delete arg7;
25970 }
25971 return resultobj;
25972 fail:
25973 {
25974 if (temp7)
25975 delete arg7;
25976 }
25977 return NULL;
25978 }
25979
25980
25981 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25982 PyObject *resultobj = 0;
25983 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25984 SwigValueWrapper<wxVisualAttributes > result;
25985 int val1 ;
25986 int ecode1 = 0 ;
25987 PyObject * obj0 = 0 ;
25988 char * kwnames[] = {
25989 (char *) "variant", NULL
25990 };
25991
25992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25993 if (obj0) {
25994 ecode1 = SWIG_AsVal_int(obj0, &val1);
25995 if (!SWIG_IsOK(ecode1)) {
25996 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25997 }
25998 arg1 = static_cast< wxWindowVariant >(val1);
25999 }
26000 {
26001 if (!wxPyCheckForApp()) SWIG_fail;
26002 PyThreadState* __tstate = wxPyBeginAllowThreads();
26003 result = wxToolBar::GetClassDefaultAttributes(arg1);
26004 wxPyEndAllowThreads(__tstate);
26005 if (PyErr_Occurred()) SWIG_fail;
26006 }
26007 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26008 return resultobj;
26009 fail:
26010 return NULL;
26011 }
26012
26013
26014 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26015 PyObject *obj;
26016 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26017 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26018 return SWIG_Py_Void();
26019 }
26020
26021 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26022 return SWIG_Python_InitShadowInstance(args);
26023 }
26024
26025 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26026 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26027 return 1;
26028 }
26029
26030
26031 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26032 PyObject *pyobj = 0;
26033
26034 {
26035 #if wxUSE_UNICODE
26036 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26037 #else
26038 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26039 #endif
26040 }
26041 return pyobj;
26042 }
26043
26044
26045 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26046 PyObject *resultobj = 0;
26047 wxColour const &arg1_defvalue = wxNullColour ;
26048 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26049 wxColour const &arg2_defvalue = wxNullColour ;
26050 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26051 wxFont const &arg3_defvalue = wxNullFont ;
26052 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26053 wxListItemAttr *result = 0 ;
26054 wxColour temp1 ;
26055 wxColour temp2 ;
26056 void *argp3 = 0 ;
26057 int res3 = 0 ;
26058 PyObject * obj0 = 0 ;
26059 PyObject * obj1 = 0 ;
26060 PyObject * obj2 = 0 ;
26061 char * kwnames[] = {
26062 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26063 };
26064
26065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26066 if (obj0) {
26067 {
26068 arg1 = &temp1;
26069 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
26070 }
26071 }
26072 if (obj1) {
26073 {
26074 arg2 = &temp2;
26075 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26076 }
26077 }
26078 if (obj2) {
26079 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26080 if (!SWIG_IsOK(res3)) {
26081 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26082 }
26083 if (!argp3) {
26084 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26085 }
26086 arg3 = reinterpret_cast< wxFont * >(argp3);
26087 }
26088 {
26089 PyThreadState* __tstate = wxPyBeginAllowThreads();
26090 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26091 wxPyEndAllowThreads(__tstate);
26092 if (PyErr_Occurred()) SWIG_fail;
26093 }
26094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26095 return resultobj;
26096 fail:
26097 return NULL;
26098 }
26099
26100
26101 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26102 PyObject *resultobj = 0;
26103 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26104 void *argp1 = 0 ;
26105 int res1 = 0 ;
26106 PyObject *swig_obj[1] ;
26107
26108 if (!args) SWIG_fail;
26109 swig_obj[0] = args;
26110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26111 if (!SWIG_IsOK(res1)) {
26112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26113 }
26114 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26115 {
26116 PyThreadState* __tstate = wxPyBeginAllowThreads();
26117 delete arg1;
26118
26119 wxPyEndAllowThreads(__tstate);
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 resultobj = SWIG_Py_Void();
26123 return resultobj;
26124 fail:
26125 return NULL;
26126 }
26127
26128
26129 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26130 PyObject *resultobj = 0;
26131 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26132 wxColour *arg2 = 0 ;
26133 void *argp1 = 0 ;
26134 int res1 = 0 ;
26135 wxColour temp2 ;
26136 PyObject * obj0 = 0 ;
26137 PyObject * obj1 = 0 ;
26138 char * kwnames[] = {
26139 (char *) "self",(char *) "colText", NULL
26140 };
26141
26142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26144 if (!SWIG_IsOK(res1)) {
26145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26146 }
26147 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26148 {
26149 arg2 = &temp2;
26150 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26151 }
26152 {
26153 PyThreadState* __tstate = wxPyBeginAllowThreads();
26154 (arg1)->SetTextColour((wxColour const &)*arg2);
26155 wxPyEndAllowThreads(__tstate);
26156 if (PyErr_Occurred()) SWIG_fail;
26157 }
26158 resultobj = SWIG_Py_Void();
26159 return resultobj;
26160 fail:
26161 return NULL;
26162 }
26163
26164
26165 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26166 PyObject *resultobj = 0;
26167 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26168 wxColour *arg2 = 0 ;
26169 void *argp1 = 0 ;
26170 int res1 = 0 ;
26171 wxColour temp2 ;
26172 PyObject * obj0 = 0 ;
26173 PyObject * obj1 = 0 ;
26174 char * kwnames[] = {
26175 (char *) "self",(char *) "colBack", NULL
26176 };
26177
26178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26180 if (!SWIG_IsOK(res1)) {
26181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26182 }
26183 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26184 {
26185 arg2 = &temp2;
26186 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26187 }
26188 {
26189 PyThreadState* __tstate = wxPyBeginAllowThreads();
26190 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26191 wxPyEndAllowThreads(__tstate);
26192 if (PyErr_Occurred()) SWIG_fail;
26193 }
26194 resultobj = SWIG_Py_Void();
26195 return resultobj;
26196 fail:
26197 return NULL;
26198 }
26199
26200
26201 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26202 PyObject *resultobj = 0;
26203 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26204 wxFont *arg2 = 0 ;
26205 void *argp1 = 0 ;
26206 int res1 = 0 ;
26207 void *argp2 = 0 ;
26208 int res2 = 0 ;
26209 PyObject * obj0 = 0 ;
26210 PyObject * obj1 = 0 ;
26211 char * kwnames[] = {
26212 (char *) "self",(char *) "font", NULL
26213 };
26214
26215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26217 if (!SWIG_IsOK(res1)) {
26218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26219 }
26220 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26221 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26222 if (!SWIG_IsOK(res2)) {
26223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26224 }
26225 if (!argp2) {
26226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26227 }
26228 arg2 = reinterpret_cast< wxFont * >(argp2);
26229 {
26230 PyThreadState* __tstate = wxPyBeginAllowThreads();
26231 (arg1)->SetFont((wxFont const &)*arg2);
26232 wxPyEndAllowThreads(__tstate);
26233 if (PyErr_Occurred()) SWIG_fail;
26234 }
26235 resultobj = SWIG_Py_Void();
26236 return resultobj;
26237 fail:
26238 return NULL;
26239 }
26240
26241
26242 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26243 PyObject *resultobj = 0;
26244 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26245 bool result;
26246 void *argp1 = 0 ;
26247 int res1 = 0 ;
26248 PyObject *swig_obj[1] ;
26249
26250 if (!args) SWIG_fail;
26251 swig_obj[0] = args;
26252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26253 if (!SWIG_IsOK(res1)) {
26254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26255 }
26256 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26257 {
26258 PyThreadState* __tstate = wxPyBeginAllowThreads();
26259 result = (bool)(arg1)->HasTextColour();
26260 wxPyEndAllowThreads(__tstate);
26261 if (PyErr_Occurred()) SWIG_fail;
26262 }
26263 {
26264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26265 }
26266 return resultobj;
26267 fail:
26268 return NULL;
26269 }
26270
26271
26272 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26273 PyObject *resultobj = 0;
26274 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26275 bool result;
26276 void *argp1 = 0 ;
26277 int res1 = 0 ;
26278 PyObject *swig_obj[1] ;
26279
26280 if (!args) SWIG_fail;
26281 swig_obj[0] = args;
26282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26283 if (!SWIG_IsOK(res1)) {
26284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26285 }
26286 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26287 {
26288 PyThreadState* __tstate = wxPyBeginAllowThreads();
26289 result = (bool)(arg1)->HasBackgroundColour();
26290 wxPyEndAllowThreads(__tstate);
26291 if (PyErr_Occurred()) SWIG_fail;
26292 }
26293 {
26294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26295 }
26296 return resultobj;
26297 fail:
26298 return NULL;
26299 }
26300
26301
26302 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26303 PyObject *resultobj = 0;
26304 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26305 bool result;
26306 void *argp1 = 0 ;
26307 int res1 = 0 ;
26308 PyObject *swig_obj[1] ;
26309
26310 if (!args) SWIG_fail;
26311 swig_obj[0] = args;
26312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26313 if (!SWIG_IsOK(res1)) {
26314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26315 }
26316 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26317 {
26318 PyThreadState* __tstate = wxPyBeginAllowThreads();
26319 result = (bool)(arg1)->HasFont();
26320 wxPyEndAllowThreads(__tstate);
26321 if (PyErr_Occurred()) SWIG_fail;
26322 }
26323 {
26324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26325 }
26326 return resultobj;
26327 fail:
26328 return NULL;
26329 }
26330
26331
26332 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26333 PyObject *resultobj = 0;
26334 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26335 wxColour result;
26336 void *argp1 = 0 ;
26337 int res1 = 0 ;
26338 PyObject *swig_obj[1] ;
26339
26340 if (!args) SWIG_fail;
26341 swig_obj[0] = args;
26342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26343 if (!SWIG_IsOK(res1)) {
26344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26345 }
26346 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26347 {
26348 PyThreadState* __tstate = wxPyBeginAllowThreads();
26349 result = (arg1)->GetTextColour();
26350 wxPyEndAllowThreads(__tstate);
26351 if (PyErr_Occurred()) SWIG_fail;
26352 }
26353 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26354 return resultobj;
26355 fail:
26356 return NULL;
26357 }
26358
26359
26360 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26361 PyObject *resultobj = 0;
26362 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26363 wxColour result;
26364 void *argp1 = 0 ;
26365 int res1 = 0 ;
26366 PyObject *swig_obj[1] ;
26367
26368 if (!args) SWIG_fail;
26369 swig_obj[0] = args;
26370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26371 if (!SWIG_IsOK(res1)) {
26372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26373 }
26374 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26375 {
26376 PyThreadState* __tstate = wxPyBeginAllowThreads();
26377 result = (arg1)->GetBackgroundColour();
26378 wxPyEndAllowThreads(__tstate);
26379 if (PyErr_Occurred()) SWIG_fail;
26380 }
26381 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26382 return resultobj;
26383 fail:
26384 return NULL;
26385 }
26386
26387
26388 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26389 PyObject *resultobj = 0;
26390 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26391 wxFont result;
26392 void *argp1 = 0 ;
26393 int res1 = 0 ;
26394 PyObject *swig_obj[1] ;
26395
26396 if (!args) SWIG_fail;
26397 swig_obj[0] = args;
26398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26399 if (!SWIG_IsOK(res1)) {
26400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26401 }
26402 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26403 {
26404 PyThreadState* __tstate = wxPyBeginAllowThreads();
26405 result = (arg1)->GetFont();
26406 wxPyEndAllowThreads(__tstate);
26407 if (PyErr_Occurred()) SWIG_fail;
26408 }
26409 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26410 return resultobj;
26411 fail:
26412 return NULL;
26413 }
26414
26415
26416 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26417 PyObject *resultobj = 0;
26418 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26419 wxListItemAttr *arg2 = 0 ;
26420 void *argp1 = 0 ;
26421 int res1 = 0 ;
26422 void *argp2 = 0 ;
26423 int res2 = 0 ;
26424 PyObject * obj0 = 0 ;
26425 PyObject * obj1 = 0 ;
26426 char * kwnames[] = {
26427 (char *) "self",(char *) "source", NULL
26428 };
26429
26430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26432 if (!SWIG_IsOK(res1)) {
26433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26434 }
26435 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26436 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26437 if (!SWIG_IsOK(res2)) {
26438 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26439 }
26440 if (!argp2) {
26441 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26442 }
26443 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26444 {
26445 PyThreadState* __tstate = wxPyBeginAllowThreads();
26446 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26447 wxPyEndAllowThreads(__tstate);
26448 if (PyErr_Occurred()) SWIG_fail;
26449 }
26450 resultobj = SWIG_Py_Void();
26451 return resultobj;
26452 fail:
26453 return NULL;
26454 }
26455
26456
26457 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26458 PyObject *resultobj = 0;
26459 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26460 void *argp1 = 0 ;
26461 int res1 = 0 ;
26462 PyObject *swig_obj[1] ;
26463
26464 if (!args) SWIG_fail;
26465 swig_obj[0] = args;
26466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26467 if (!SWIG_IsOK(res1)) {
26468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26469 }
26470 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26471 {
26472 PyThreadState* __tstate = wxPyBeginAllowThreads();
26473 wxListItemAttr_Destroy(arg1);
26474 wxPyEndAllowThreads(__tstate);
26475 if (PyErr_Occurred()) SWIG_fail;
26476 }
26477 resultobj = SWIG_Py_Void();
26478 return resultobj;
26479 fail:
26480 return NULL;
26481 }
26482
26483
26484 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26485 PyObject *obj;
26486 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26487 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26488 return SWIG_Py_Void();
26489 }
26490
26491 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26492 return SWIG_Python_InitShadowInstance(args);
26493 }
26494
26495 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26496 PyObject *resultobj = 0;
26497 wxListItem *result = 0 ;
26498
26499 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26500 {
26501 PyThreadState* __tstate = wxPyBeginAllowThreads();
26502 result = (wxListItem *)new wxListItem();
26503 wxPyEndAllowThreads(__tstate);
26504 if (PyErr_Occurred()) SWIG_fail;
26505 }
26506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
26507 return resultobj;
26508 fail:
26509 return NULL;
26510 }
26511
26512
26513 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26514 PyObject *resultobj = 0;
26515 wxListItem *arg1 = (wxListItem *) 0 ;
26516 void *argp1 = 0 ;
26517 int res1 = 0 ;
26518 PyObject *swig_obj[1] ;
26519
26520 if (!args) SWIG_fail;
26521 swig_obj[0] = args;
26522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26523 if (!SWIG_IsOK(res1)) {
26524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26525 }
26526 arg1 = reinterpret_cast< wxListItem * >(argp1);
26527 {
26528 PyThreadState* __tstate = wxPyBeginAllowThreads();
26529 delete arg1;
26530
26531 wxPyEndAllowThreads(__tstate);
26532 if (PyErr_Occurred()) SWIG_fail;
26533 }
26534 resultobj = SWIG_Py_Void();
26535 return resultobj;
26536 fail:
26537 return NULL;
26538 }
26539
26540
26541 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26542 PyObject *resultobj = 0;
26543 wxListItem *arg1 = (wxListItem *) 0 ;
26544 void *argp1 = 0 ;
26545 int res1 = 0 ;
26546 PyObject *swig_obj[1] ;
26547
26548 if (!args) SWIG_fail;
26549 swig_obj[0] = args;
26550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26551 if (!SWIG_IsOK(res1)) {
26552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26553 }
26554 arg1 = reinterpret_cast< wxListItem * >(argp1);
26555 {
26556 PyThreadState* __tstate = wxPyBeginAllowThreads();
26557 (arg1)->Clear();
26558 wxPyEndAllowThreads(__tstate);
26559 if (PyErr_Occurred()) SWIG_fail;
26560 }
26561 resultobj = SWIG_Py_Void();
26562 return resultobj;
26563 fail:
26564 return NULL;
26565 }
26566
26567
26568 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26569 PyObject *resultobj = 0;
26570 wxListItem *arg1 = (wxListItem *) 0 ;
26571 void *argp1 = 0 ;
26572 int res1 = 0 ;
26573 PyObject *swig_obj[1] ;
26574
26575 if (!args) SWIG_fail;
26576 swig_obj[0] = args;
26577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26578 if (!SWIG_IsOK(res1)) {
26579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26580 }
26581 arg1 = reinterpret_cast< wxListItem * >(argp1);
26582 {
26583 PyThreadState* __tstate = wxPyBeginAllowThreads();
26584 (arg1)->ClearAttributes();
26585 wxPyEndAllowThreads(__tstate);
26586 if (PyErr_Occurred()) SWIG_fail;
26587 }
26588 resultobj = SWIG_Py_Void();
26589 return resultobj;
26590 fail:
26591 return NULL;
26592 }
26593
26594
26595 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26596 PyObject *resultobj = 0;
26597 wxListItem *arg1 = (wxListItem *) 0 ;
26598 long arg2 ;
26599 void *argp1 = 0 ;
26600 int res1 = 0 ;
26601 long val2 ;
26602 int ecode2 = 0 ;
26603 PyObject * obj0 = 0 ;
26604 PyObject * obj1 = 0 ;
26605 char * kwnames[] = {
26606 (char *) "self",(char *) "mask", NULL
26607 };
26608
26609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26611 if (!SWIG_IsOK(res1)) {
26612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26613 }
26614 arg1 = reinterpret_cast< wxListItem * >(argp1);
26615 ecode2 = SWIG_AsVal_long(obj1, &val2);
26616 if (!SWIG_IsOK(ecode2)) {
26617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26618 }
26619 arg2 = static_cast< long >(val2);
26620 {
26621 PyThreadState* __tstate = wxPyBeginAllowThreads();
26622 (arg1)->SetMask(arg2);
26623 wxPyEndAllowThreads(__tstate);
26624 if (PyErr_Occurred()) SWIG_fail;
26625 }
26626 resultobj = SWIG_Py_Void();
26627 return resultobj;
26628 fail:
26629 return NULL;
26630 }
26631
26632
26633 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26634 PyObject *resultobj = 0;
26635 wxListItem *arg1 = (wxListItem *) 0 ;
26636 long arg2 ;
26637 void *argp1 = 0 ;
26638 int res1 = 0 ;
26639 long val2 ;
26640 int ecode2 = 0 ;
26641 PyObject * obj0 = 0 ;
26642 PyObject * obj1 = 0 ;
26643 char * kwnames[] = {
26644 (char *) "self",(char *) "id", NULL
26645 };
26646
26647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26649 if (!SWIG_IsOK(res1)) {
26650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26651 }
26652 arg1 = reinterpret_cast< wxListItem * >(argp1);
26653 ecode2 = SWIG_AsVal_long(obj1, &val2);
26654 if (!SWIG_IsOK(ecode2)) {
26655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26656 }
26657 arg2 = static_cast< long >(val2);
26658 {
26659 PyThreadState* __tstate = wxPyBeginAllowThreads();
26660 (arg1)->SetId(arg2);
26661 wxPyEndAllowThreads(__tstate);
26662 if (PyErr_Occurred()) SWIG_fail;
26663 }
26664 resultobj = SWIG_Py_Void();
26665 return resultobj;
26666 fail:
26667 return NULL;
26668 }
26669
26670
26671 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26672 PyObject *resultobj = 0;
26673 wxListItem *arg1 = (wxListItem *) 0 ;
26674 int arg2 ;
26675 void *argp1 = 0 ;
26676 int res1 = 0 ;
26677 int val2 ;
26678 int ecode2 = 0 ;
26679 PyObject * obj0 = 0 ;
26680 PyObject * obj1 = 0 ;
26681 char * kwnames[] = {
26682 (char *) "self",(char *) "col", NULL
26683 };
26684
26685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26687 if (!SWIG_IsOK(res1)) {
26688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26689 }
26690 arg1 = reinterpret_cast< wxListItem * >(argp1);
26691 ecode2 = SWIG_AsVal_int(obj1, &val2);
26692 if (!SWIG_IsOK(ecode2)) {
26693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26694 }
26695 arg2 = static_cast< int >(val2);
26696 {
26697 PyThreadState* __tstate = wxPyBeginAllowThreads();
26698 (arg1)->SetColumn(arg2);
26699 wxPyEndAllowThreads(__tstate);
26700 if (PyErr_Occurred()) SWIG_fail;
26701 }
26702 resultobj = SWIG_Py_Void();
26703 return resultobj;
26704 fail:
26705 return NULL;
26706 }
26707
26708
26709 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26710 PyObject *resultobj = 0;
26711 wxListItem *arg1 = (wxListItem *) 0 ;
26712 long arg2 ;
26713 void *argp1 = 0 ;
26714 int res1 = 0 ;
26715 long val2 ;
26716 int ecode2 = 0 ;
26717 PyObject * obj0 = 0 ;
26718 PyObject * obj1 = 0 ;
26719 char * kwnames[] = {
26720 (char *) "self",(char *) "state", NULL
26721 };
26722
26723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26725 if (!SWIG_IsOK(res1)) {
26726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26727 }
26728 arg1 = reinterpret_cast< wxListItem * >(argp1);
26729 ecode2 = SWIG_AsVal_long(obj1, &val2);
26730 if (!SWIG_IsOK(ecode2)) {
26731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26732 }
26733 arg2 = static_cast< long >(val2);
26734 {
26735 PyThreadState* __tstate = wxPyBeginAllowThreads();
26736 (arg1)->SetState(arg2);
26737 wxPyEndAllowThreads(__tstate);
26738 if (PyErr_Occurred()) SWIG_fail;
26739 }
26740 resultobj = SWIG_Py_Void();
26741 return resultobj;
26742 fail:
26743 return NULL;
26744 }
26745
26746
26747 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26748 PyObject *resultobj = 0;
26749 wxListItem *arg1 = (wxListItem *) 0 ;
26750 long arg2 ;
26751 void *argp1 = 0 ;
26752 int res1 = 0 ;
26753 long val2 ;
26754 int ecode2 = 0 ;
26755 PyObject * obj0 = 0 ;
26756 PyObject * obj1 = 0 ;
26757 char * kwnames[] = {
26758 (char *) "self",(char *) "stateMask", NULL
26759 };
26760
26761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26763 if (!SWIG_IsOK(res1)) {
26764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26765 }
26766 arg1 = reinterpret_cast< wxListItem * >(argp1);
26767 ecode2 = SWIG_AsVal_long(obj1, &val2);
26768 if (!SWIG_IsOK(ecode2)) {
26769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26770 }
26771 arg2 = static_cast< long >(val2);
26772 {
26773 PyThreadState* __tstate = wxPyBeginAllowThreads();
26774 (arg1)->SetStateMask(arg2);
26775 wxPyEndAllowThreads(__tstate);
26776 if (PyErr_Occurred()) SWIG_fail;
26777 }
26778 resultobj = SWIG_Py_Void();
26779 return resultobj;
26780 fail:
26781 return NULL;
26782 }
26783
26784
26785 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26786 PyObject *resultobj = 0;
26787 wxListItem *arg1 = (wxListItem *) 0 ;
26788 wxString *arg2 = 0 ;
26789 void *argp1 = 0 ;
26790 int res1 = 0 ;
26791 bool temp2 = false ;
26792 PyObject * obj0 = 0 ;
26793 PyObject * obj1 = 0 ;
26794 char * kwnames[] = {
26795 (char *) "self",(char *) "text", NULL
26796 };
26797
26798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26800 if (!SWIG_IsOK(res1)) {
26801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26802 }
26803 arg1 = reinterpret_cast< wxListItem * >(argp1);
26804 {
26805 arg2 = wxString_in_helper(obj1);
26806 if (arg2 == NULL) SWIG_fail;
26807 temp2 = true;
26808 }
26809 {
26810 PyThreadState* __tstate = wxPyBeginAllowThreads();
26811 (arg1)->SetText((wxString const &)*arg2);
26812 wxPyEndAllowThreads(__tstate);
26813 if (PyErr_Occurred()) SWIG_fail;
26814 }
26815 resultobj = SWIG_Py_Void();
26816 {
26817 if (temp2)
26818 delete arg2;
26819 }
26820 return resultobj;
26821 fail:
26822 {
26823 if (temp2)
26824 delete arg2;
26825 }
26826 return NULL;
26827 }
26828
26829
26830 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26831 PyObject *resultobj = 0;
26832 wxListItem *arg1 = (wxListItem *) 0 ;
26833 int arg2 ;
26834 void *argp1 = 0 ;
26835 int res1 = 0 ;
26836 int val2 ;
26837 int ecode2 = 0 ;
26838 PyObject * obj0 = 0 ;
26839 PyObject * obj1 = 0 ;
26840 char * kwnames[] = {
26841 (char *) "self",(char *) "image", NULL
26842 };
26843
26844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26846 if (!SWIG_IsOK(res1)) {
26847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26848 }
26849 arg1 = reinterpret_cast< wxListItem * >(argp1);
26850 ecode2 = SWIG_AsVal_int(obj1, &val2);
26851 if (!SWIG_IsOK(ecode2)) {
26852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26853 }
26854 arg2 = static_cast< int >(val2);
26855 {
26856 PyThreadState* __tstate = wxPyBeginAllowThreads();
26857 (arg1)->SetImage(arg2);
26858 wxPyEndAllowThreads(__tstate);
26859 if (PyErr_Occurred()) SWIG_fail;
26860 }
26861 resultobj = SWIG_Py_Void();
26862 return resultobj;
26863 fail:
26864 return NULL;
26865 }
26866
26867
26868 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26869 PyObject *resultobj = 0;
26870 wxListItem *arg1 = (wxListItem *) 0 ;
26871 long arg2 ;
26872 void *argp1 = 0 ;
26873 int res1 = 0 ;
26874 long val2 ;
26875 int ecode2 = 0 ;
26876 PyObject * obj0 = 0 ;
26877 PyObject * obj1 = 0 ;
26878 char * kwnames[] = {
26879 (char *) "self",(char *) "data", NULL
26880 };
26881
26882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26884 if (!SWIG_IsOK(res1)) {
26885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26886 }
26887 arg1 = reinterpret_cast< wxListItem * >(argp1);
26888 ecode2 = SWIG_AsVal_long(obj1, &val2);
26889 if (!SWIG_IsOK(ecode2)) {
26890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26891 }
26892 arg2 = static_cast< long >(val2);
26893 {
26894 PyThreadState* __tstate = wxPyBeginAllowThreads();
26895 (arg1)->SetData(arg2);
26896 wxPyEndAllowThreads(__tstate);
26897 if (PyErr_Occurred()) SWIG_fail;
26898 }
26899 resultobj = SWIG_Py_Void();
26900 return resultobj;
26901 fail:
26902 return NULL;
26903 }
26904
26905
26906 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26907 PyObject *resultobj = 0;
26908 wxListItem *arg1 = (wxListItem *) 0 ;
26909 int arg2 ;
26910 void *argp1 = 0 ;
26911 int res1 = 0 ;
26912 int val2 ;
26913 int ecode2 = 0 ;
26914 PyObject * obj0 = 0 ;
26915 PyObject * obj1 = 0 ;
26916 char * kwnames[] = {
26917 (char *) "self",(char *) "width", NULL
26918 };
26919
26920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26922 if (!SWIG_IsOK(res1)) {
26923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26924 }
26925 arg1 = reinterpret_cast< wxListItem * >(argp1);
26926 ecode2 = SWIG_AsVal_int(obj1, &val2);
26927 if (!SWIG_IsOK(ecode2)) {
26928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26929 }
26930 arg2 = static_cast< int >(val2);
26931 {
26932 PyThreadState* __tstate = wxPyBeginAllowThreads();
26933 (arg1)->SetWidth(arg2);
26934 wxPyEndAllowThreads(__tstate);
26935 if (PyErr_Occurred()) SWIG_fail;
26936 }
26937 resultobj = SWIG_Py_Void();
26938 return resultobj;
26939 fail:
26940 return NULL;
26941 }
26942
26943
26944 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26945 PyObject *resultobj = 0;
26946 wxListItem *arg1 = (wxListItem *) 0 ;
26947 wxListColumnFormat arg2 ;
26948 void *argp1 = 0 ;
26949 int res1 = 0 ;
26950 int val2 ;
26951 int ecode2 = 0 ;
26952 PyObject * obj0 = 0 ;
26953 PyObject * obj1 = 0 ;
26954 char * kwnames[] = {
26955 (char *) "self",(char *) "align", NULL
26956 };
26957
26958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26960 if (!SWIG_IsOK(res1)) {
26961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26962 }
26963 arg1 = reinterpret_cast< wxListItem * >(argp1);
26964 ecode2 = SWIG_AsVal_int(obj1, &val2);
26965 if (!SWIG_IsOK(ecode2)) {
26966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26967 }
26968 arg2 = static_cast< wxListColumnFormat >(val2);
26969 {
26970 PyThreadState* __tstate = wxPyBeginAllowThreads();
26971 (arg1)->SetAlign(arg2);
26972 wxPyEndAllowThreads(__tstate);
26973 if (PyErr_Occurred()) SWIG_fail;
26974 }
26975 resultobj = SWIG_Py_Void();
26976 return resultobj;
26977 fail:
26978 return NULL;
26979 }
26980
26981
26982 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26983 PyObject *resultobj = 0;
26984 wxListItem *arg1 = (wxListItem *) 0 ;
26985 wxColour *arg2 = 0 ;
26986 void *argp1 = 0 ;
26987 int res1 = 0 ;
26988 wxColour temp2 ;
26989 PyObject * obj0 = 0 ;
26990 PyObject * obj1 = 0 ;
26991 char * kwnames[] = {
26992 (char *) "self",(char *) "colText", NULL
26993 };
26994
26995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26997 if (!SWIG_IsOK(res1)) {
26998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26999 }
27000 arg1 = reinterpret_cast< wxListItem * >(argp1);
27001 {
27002 arg2 = &temp2;
27003 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27004 }
27005 {
27006 PyThreadState* __tstate = wxPyBeginAllowThreads();
27007 (arg1)->SetTextColour((wxColour const &)*arg2);
27008 wxPyEndAllowThreads(__tstate);
27009 if (PyErr_Occurred()) SWIG_fail;
27010 }
27011 resultobj = SWIG_Py_Void();
27012 return resultobj;
27013 fail:
27014 return NULL;
27015 }
27016
27017
27018 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27019 PyObject *resultobj = 0;
27020 wxListItem *arg1 = (wxListItem *) 0 ;
27021 wxColour *arg2 = 0 ;
27022 void *argp1 = 0 ;
27023 int res1 = 0 ;
27024 wxColour temp2 ;
27025 PyObject * obj0 = 0 ;
27026 PyObject * obj1 = 0 ;
27027 char * kwnames[] = {
27028 (char *) "self",(char *) "colBack", NULL
27029 };
27030
27031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27033 if (!SWIG_IsOK(res1)) {
27034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27035 }
27036 arg1 = reinterpret_cast< wxListItem * >(argp1);
27037 {
27038 arg2 = &temp2;
27039 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27040 }
27041 {
27042 PyThreadState* __tstate = wxPyBeginAllowThreads();
27043 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27044 wxPyEndAllowThreads(__tstate);
27045 if (PyErr_Occurred()) SWIG_fail;
27046 }
27047 resultobj = SWIG_Py_Void();
27048 return resultobj;
27049 fail:
27050 return NULL;
27051 }
27052
27053
27054 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27055 PyObject *resultobj = 0;
27056 wxListItem *arg1 = (wxListItem *) 0 ;
27057 wxFont *arg2 = 0 ;
27058 void *argp1 = 0 ;
27059 int res1 = 0 ;
27060 void *argp2 = 0 ;
27061 int res2 = 0 ;
27062 PyObject * obj0 = 0 ;
27063 PyObject * obj1 = 0 ;
27064 char * kwnames[] = {
27065 (char *) "self",(char *) "font", NULL
27066 };
27067
27068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27070 if (!SWIG_IsOK(res1)) {
27071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27072 }
27073 arg1 = reinterpret_cast< wxListItem * >(argp1);
27074 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27075 if (!SWIG_IsOK(res2)) {
27076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27077 }
27078 if (!argp2) {
27079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27080 }
27081 arg2 = reinterpret_cast< wxFont * >(argp2);
27082 {
27083 PyThreadState* __tstate = wxPyBeginAllowThreads();
27084 (arg1)->SetFont((wxFont const &)*arg2);
27085 wxPyEndAllowThreads(__tstate);
27086 if (PyErr_Occurred()) SWIG_fail;
27087 }
27088 resultobj = SWIG_Py_Void();
27089 return resultobj;
27090 fail:
27091 return NULL;
27092 }
27093
27094
27095 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27096 PyObject *resultobj = 0;
27097 wxListItem *arg1 = (wxListItem *) 0 ;
27098 long result;
27099 void *argp1 = 0 ;
27100 int res1 = 0 ;
27101 PyObject *swig_obj[1] ;
27102
27103 if (!args) SWIG_fail;
27104 swig_obj[0] = args;
27105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27106 if (!SWIG_IsOK(res1)) {
27107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27108 }
27109 arg1 = reinterpret_cast< wxListItem * >(argp1);
27110 {
27111 PyThreadState* __tstate = wxPyBeginAllowThreads();
27112 result = (long)(arg1)->GetMask();
27113 wxPyEndAllowThreads(__tstate);
27114 if (PyErr_Occurred()) SWIG_fail;
27115 }
27116 resultobj = SWIG_From_long(static_cast< long >(result));
27117 return resultobj;
27118 fail:
27119 return NULL;
27120 }
27121
27122
27123 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27124 PyObject *resultobj = 0;
27125 wxListItem *arg1 = (wxListItem *) 0 ;
27126 long result;
27127 void *argp1 = 0 ;
27128 int res1 = 0 ;
27129 PyObject *swig_obj[1] ;
27130
27131 if (!args) SWIG_fail;
27132 swig_obj[0] = args;
27133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27134 if (!SWIG_IsOK(res1)) {
27135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27136 }
27137 arg1 = reinterpret_cast< wxListItem * >(argp1);
27138 {
27139 PyThreadState* __tstate = wxPyBeginAllowThreads();
27140 result = (long)(arg1)->GetId();
27141 wxPyEndAllowThreads(__tstate);
27142 if (PyErr_Occurred()) SWIG_fail;
27143 }
27144 resultobj = SWIG_From_long(static_cast< long >(result));
27145 return resultobj;
27146 fail:
27147 return NULL;
27148 }
27149
27150
27151 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27152 PyObject *resultobj = 0;
27153 wxListItem *arg1 = (wxListItem *) 0 ;
27154 int result;
27155 void *argp1 = 0 ;
27156 int res1 = 0 ;
27157 PyObject *swig_obj[1] ;
27158
27159 if (!args) SWIG_fail;
27160 swig_obj[0] = args;
27161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27162 if (!SWIG_IsOK(res1)) {
27163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27164 }
27165 arg1 = reinterpret_cast< wxListItem * >(argp1);
27166 {
27167 PyThreadState* __tstate = wxPyBeginAllowThreads();
27168 result = (int)(arg1)->GetColumn();
27169 wxPyEndAllowThreads(__tstate);
27170 if (PyErr_Occurred()) SWIG_fail;
27171 }
27172 resultobj = SWIG_From_int(static_cast< int >(result));
27173 return resultobj;
27174 fail:
27175 return NULL;
27176 }
27177
27178
27179 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27180 PyObject *resultobj = 0;
27181 wxListItem *arg1 = (wxListItem *) 0 ;
27182 long result;
27183 void *argp1 = 0 ;
27184 int res1 = 0 ;
27185 PyObject *swig_obj[1] ;
27186
27187 if (!args) SWIG_fail;
27188 swig_obj[0] = args;
27189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27190 if (!SWIG_IsOK(res1)) {
27191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27192 }
27193 arg1 = reinterpret_cast< wxListItem * >(argp1);
27194 {
27195 PyThreadState* __tstate = wxPyBeginAllowThreads();
27196 result = (long)(arg1)->GetState();
27197 wxPyEndAllowThreads(__tstate);
27198 if (PyErr_Occurred()) SWIG_fail;
27199 }
27200 resultobj = SWIG_From_long(static_cast< long >(result));
27201 return resultobj;
27202 fail:
27203 return NULL;
27204 }
27205
27206
27207 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27208 PyObject *resultobj = 0;
27209 wxListItem *arg1 = (wxListItem *) 0 ;
27210 wxString *result = 0 ;
27211 void *argp1 = 0 ;
27212 int res1 = 0 ;
27213 PyObject *swig_obj[1] ;
27214
27215 if (!args) SWIG_fail;
27216 swig_obj[0] = args;
27217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27218 if (!SWIG_IsOK(res1)) {
27219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27220 }
27221 arg1 = reinterpret_cast< wxListItem * >(argp1);
27222 {
27223 PyThreadState* __tstate = wxPyBeginAllowThreads();
27224 {
27225 wxString const &_result_ref = (arg1)->GetText();
27226 result = (wxString *) &_result_ref;
27227 }
27228 wxPyEndAllowThreads(__tstate);
27229 if (PyErr_Occurred()) SWIG_fail;
27230 }
27231 {
27232 #if wxUSE_UNICODE
27233 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27234 #else
27235 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27236 #endif
27237 }
27238 return resultobj;
27239 fail:
27240 return NULL;
27241 }
27242
27243
27244 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27245 PyObject *resultobj = 0;
27246 wxListItem *arg1 = (wxListItem *) 0 ;
27247 int result;
27248 void *argp1 = 0 ;
27249 int res1 = 0 ;
27250 PyObject *swig_obj[1] ;
27251
27252 if (!args) SWIG_fail;
27253 swig_obj[0] = args;
27254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27255 if (!SWIG_IsOK(res1)) {
27256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27257 }
27258 arg1 = reinterpret_cast< wxListItem * >(argp1);
27259 {
27260 PyThreadState* __tstate = wxPyBeginAllowThreads();
27261 result = (int)(arg1)->GetImage();
27262 wxPyEndAllowThreads(__tstate);
27263 if (PyErr_Occurred()) SWIG_fail;
27264 }
27265 resultobj = SWIG_From_int(static_cast< int >(result));
27266 return resultobj;
27267 fail:
27268 return NULL;
27269 }
27270
27271
27272 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27273 PyObject *resultobj = 0;
27274 wxListItem *arg1 = (wxListItem *) 0 ;
27275 long result;
27276 void *argp1 = 0 ;
27277 int res1 = 0 ;
27278 PyObject *swig_obj[1] ;
27279
27280 if (!args) SWIG_fail;
27281 swig_obj[0] = args;
27282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27283 if (!SWIG_IsOK(res1)) {
27284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27285 }
27286 arg1 = reinterpret_cast< wxListItem * >(argp1);
27287 {
27288 PyThreadState* __tstate = wxPyBeginAllowThreads();
27289 result = (long)(arg1)->GetData();
27290 wxPyEndAllowThreads(__tstate);
27291 if (PyErr_Occurred()) SWIG_fail;
27292 }
27293 resultobj = SWIG_From_long(static_cast< long >(result));
27294 return resultobj;
27295 fail:
27296 return NULL;
27297 }
27298
27299
27300 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27301 PyObject *resultobj = 0;
27302 wxListItem *arg1 = (wxListItem *) 0 ;
27303 int result;
27304 void *argp1 = 0 ;
27305 int res1 = 0 ;
27306 PyObject *swig_obj[1] ;
27307
27308 if (!args) SWIG_fail;
27309 swig_obj[0] = args;
27310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27311 if (!SWIG_IsOK(res1)) {
27312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27313 }
27314 arg1 = reinterpret_cast< wxListItem * >(argp1);
27315 {
27316 PyThreadState* __tstate = wxPyBeginAllowThreads();
27317 result = (int)(arg1)->GetWidth();
27318 wxPyEndAllowThreads(__tstate);
27319 if (PyErr_Occurred()) SWIG_fail;
27320 }
27321 resultobj = SWIG_From_int(static_cast< int >(result));
27322 return resultobj;
27323 fail:
27324 return NULL;
27325 }
27326
27327
27328 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27329 PyObject *resultobj = 0;
27330 wxListItem *arg1 = (wxListItem *) 0 ;
27331 wxListColumnFormat result;
27332 void *argp1 = 0 ;
27333 int res1 = 0 ;
27334 PyObject *swig_obj[1] ;
27335
27336 if (!args) SWIG_fail;
27337 swig_obj[0] = args;
27338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27339 if (!SWIG_IsOK(res1)) {
27340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27341 }
27342 arg1 = reinterpret_cast< wxListItem * >(argp1);
27343 {
27344 PyThreadState* __tstate = wxPyBeginAllowThreads();
27345 result = (wxListColumnFormat)(arg1)->GetAlign();
27346 wxPyEndAllowThreads(__tstate);
27347 if (PyErr_Occurred()) SWIG_fail;
27348 }
27349 resultobj = SWIG_From_int(static_cast< int >(result));
27350 return resultobj;
27351 fail:
27352 return NULL;
27353 }
27354
27355
27356 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27357 PyObject *resultobj = 0;
27358 wxListItem *arg1 = (wxListItem *) 0 ;
27359 wxListItemAttr *result = 0 ;
27360 void *argp1 = 0 ;
27361 int res1 = 0 ;
27362 PyObject *swig_obj[1] ;
27363
27364 if (!args) SWIG_fail;
27365 swig_obj[0] = args;
27366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27367 if (!SWIG_IsOK(res1)) {
27368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27369 }
27370 arg1 = reinterpret_cast< wxListItem * >(argp1);
27371 {
27372 PyThreadState* __tstate = wxPyBeginAllowThreads();
27373 result = (wxListItemAttr *)(arg1)->GetAttributes();
27374 wxPyEndAllowThreads(__tstate);
27375 if (PyErr_Occurred()) SWIG_fail;
27376 }
27377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27378 return resultobj;
27379 fail:
27380 return NULL;
27381 }
27382
27383
27384 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27385 PyObject *resultobj = 0;
27386 wxListItem *arg1 = (wxListItem *) 0 ;
27387 bool result;
27388 void *argp1 = 0 ;
27389 int res1 = 0 ;
27390 PyObject *swig_obj[1] ;
27391
27392 if (!args) SWIG_fail;
27393 swig_obj[0] = args;
27394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27395 if (!SWIG_IsOK(res1)) {
27396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27397 }
27398 arg1 = reinterpret_cast< wxListItem * >(argp1);
27399 {
27400 PyThreadState* __tstate = wxPyBeginAllowThreads();
27401 result = (bool)(arg1)->HasAttributes();
27402 wxPyEndAllowThreads(__tstate);
27403 if (PyErr_Occurred()) SWIG_fail;
27404 }
27405 {
27406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27407 }
27408 return resultobj;
27409 fail:
27410 return NULL;
27411 }
27412
27413
27414 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27415 PyObject *resultobj = 0;
27416 wxListItem *arg1 = (wxListItem *) 0 ;
27417 wxColour result;
27418 void *argp1 = 0 ;
27419 int res1 = 0 ;
27420 PyObject *swig_obj[1] ;
27421
27422 if (!args) SWIG_fail;
27423 swig_obj[0] = args;
27424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27425 if (!SWIG_IsOK(res1)) {
27426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27427 }
27428 arg1 = reinterpret_cast< wxListItem * >(argp1);
27429 {
27430 PyThreadState* __tstate = wxPyBeginAllowThreads();
27431 result = ((wxListItem const *)arg1)->GetTextColour();
27432 wxPyEndAllowThreads(__tstate);
27433 if (PyErr_Occurred()) SWIG_fail;
27434 }
27435 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27436 return resultobj;
27437 fail:
27438 return NULL;
27439 }
27440
27441
27442 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27443 PyObject *resultobj = 0;
27444 wxListItem *arg1 = (wxListItem *) 0 ;
27445 wxColour result;
27446 void *argp1 = 0 ;
27447 int res1 = 0 ;
27448 PyObject *swig_obj[1] ;
27449
27450 if (!args) SWIG_fail;
27451 swig_obj[0] = args;
27452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27453 if (!SWIG_IsOK(res1)) {
27454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27455 }
27456 arg1 = reinterpret_cast< wxListItem * >(argp1);
27457 {
27458 PyThreadState* __tstate = wxPyBeginAllowThreads();
27459 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27460 wxPyEndAllowThreads(__tstate);
27461 if (PyErr_Occurred()) SWIG_fail;
27462 }
27463 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27464 return resultobj;
27465 fail:
27466 return NULL;
27467 }
27468
27469
27470 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27471 PyObject *resultobj = 0;
27472 wxListItem *arg1 = (wxListItem *) 0 ;
27473 wxFont result;
27474 void *argp1 = 0 ;
27475 int res1 = 0 ;
27476 PyObject *swig_obj[1] ;
27477
27478 if (!args) SWIG_fail;
27479 swig_obj[0] = args;
27480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27481 if (!SWIG_IsOK(res1)) {
27482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27483 }
27484 arg1 = reinterpret_cast< wxListItem * >(argp1);
27485 {
27486 PyThreadState* __tstate = wxPyBeginAllowThreads();
27487 result = ((wxListItem const *)arg1)->GetFont();
27488 wxPyEndAllowThreads(__tstate);
27489 if (PyErr_Occurred()) SWIG_fail;
27490 }
27491 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27492 return resultobj;
27493 fail:
27494 return NULL;
27495 }
27496
27497
27498 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27499 PyObject *resultobj = 0;
27500 wxListItem *arg1 = (wxListItem *) 0 ;
27501 long arg2 ;
27502 void *argp1 = 0 ;
27503 int res1 = 0 ;
27504 long val2 ;
27505 int ecode2 = 0 ;
27506 PyObject *swig_obj[2] ;
27507
27508 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27510 if (!SWIG_IsOK(res1)) {
27511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27512 }
27513 arg1 = reinterpret_cast< wxListItem * >(argp1);
27514 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27515 if (!SWIG_IsOK(ecode2)) {
27516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27517 }
27518 arg2 = static_cast< long >(val2);
27519 if (arg1) (arg1)->m_mask = arg2;
27520
27521 resultobj = SWIG_Py_Void();
27522 return resultobj;
27523 fail:
27524 return NULL;
27525 }
27526
27527
27528 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27529 PyObject *resultobj = 0;
27530 wxListItem *arg1 = (wxListItem *) 0 ;
27531 long result;
27532 void *argp1 = 0 ;
27533 int res1 = 0 ;
27534 PyObject *swig_obj[1] ;
27535
27536 if (!args) SWIG_fail;
27537 swig_obj[0] = args;
27538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27539 if (!SWIG_IsOK(res1)) {
27540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27541 }
27542 arg1 = reinterpret_cast< wxListItem * >(argp1);
27543 result = (long) ((arg1)->m_mask);
27544 resultobj = SWIG_From_long(static_cast< long >(result));
27545 return resultobj;
27546 fail:
27547 return NULL;
27548 }
27549
27550
27551 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27552 PyObject *resultobj = 0;
27553 wxListItem *arg1 = (wxListItem *) 0 ;
27554 long arg2 ;
27555 void *argp1 = 0 ;
27556 int res1 = 0 ;
27557 long val2 ;
27558 int ecode2 = 0 ;
27559 PyObject *swig_obj[2] ;
27560
27561 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27563 if (!SWIG_IsOK(res1)) {
27564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27565 }
27566 arg1 = reinterpret_cast< wxListItem * >(argp1);
27567 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27568 if (!SWIG_IsOK(ecode2)) {
27569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27570 }
27571 arg2 = static_cast< long >(val2);
27572 if (arg1) (arg1)->m_itemId = arg2;
27573
27574 resultobj = SWIG_Py_Void();
27575 return resultobj;
27576 fail:
27577 return NULL;
27578 }
27579
27580
27581 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27582 PyObject *resultobj = 0;
27583 wxListItem *arg1 = (wxListItem *) 0 ;
27584 long result;
27585 void *argp1 = 0 ;
27586 int res1 = 0 ;
27587 PyObject *swig_obj[1] ;
27588
27589 if (!args) SWIG_fail;
27590 swig_obj[0] = args;
27591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27592 if (!SWIG_IsOK(res1)) {
27593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27594 }
27595 arg1 = reinterpret_cast< wxListItem * >(argp1);
27596 result = (long) ((arg1)->m_itemId);
27597 resultobj = SWIG_From_long(static_cast< long >(result));
27598 return resultobj;
27599 fail:
27600 return NULL;
27601 }
27602
27603
27604 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27605 PyObject *resultobj = 0;
27606 wxListItem *arg1 = (wxListItem *) 0 ;
27607 int arg2 ;
27608 void *argp1 = 0 ;
27609 int res1 = 0 ;
27610 int val2 ;
27611 int ecode2 = 0 ;
27612 PyObject *swig_obj[2] ;
27613
27614 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27616 if (!SWIG_IsOK(res1)) {
27617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27618 }
27619 arg1 = reinterpret_cast< wxListItem * >(argp1);
27620 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27621 if (!SWIG_IsOK(ecode2)) {
27622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27623 }
27624 arg2 = static_cast< int >(val2);
27625 if (arg1) (arg1)->m_col = arg2;
27626
27627 resultobj = SWIG_Py_Void();
27628 return resultobj;
27629 fail:
27630 return NULL;
27631 }
27632
27633
27634 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27635 PyObject *resultobj = 0;
27636 wxListItem *arg1 = (wxListItem *) 0 ;
27637 int result;
27638 void *argp1 = 0 ;
27639 int res1 = 0 ;
27640 PyObject *swig_obj[1] ;
27641
27642 if (!args) SWIG_fail;
27643 swig_obj[0] = args;
27644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27645 if (!SWIG_IsOK(res1)) {
27646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27647 }
27648 arg1 = reinterpret_cast< wxListItem * >(argp1);
27649 result = (int) ((arg1)->m_col);
27650 resultobj = SWIG_From_int(static_cast< int >(result));
27651 return resultobj;
27652 fail:
27653 return NULL;
27654 }
27655
27656
27657 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27658 PyObject *resultobj = 0;
27659 wxListItem *arg1 = (wxListItem *) 0 ;
27660 long arg2 ;
27661 void *argp1 = 0 ;
27662 int res1 = 0 ;
27663 long val2 ;
27664 int ecode2 = 0 ;
27665 PyObject *swig_obj[2] ;
27666
27667 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27669 if (!SWIG_IsOK(res1)) {
27670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27671 }
27672 arg1 = reinterpret_cast< wxListItem * >(argp1);
27673 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27674 if (!SWIG_IsOK(ecode2)) {
27675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27676 }
27677 arg2 = static_cast< long >(val2);
27678 if (arg1) (arg1)->m_state = arg2;
27679
27680 resultobj = SWIG_Py_Void();
27681 return resultobj;
27682 fail:
27683 return NULL;
27684 }
27685
27686
27687 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27688 PyObject *resultobj = 0;
27689 wxListItem *arg1 = (wxListItem *) 0 ;
27690 long result;
27691 void *argp1 = 0 ;
27692 int res1 = 0 ;
27693 PyObject *swig_obj[1] ;
27694
27695 if (!args) SWIG_fail;
27696 swig_obj[0] = args;
27697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27698 if (!SWIG_IsOK(res1)) {
27699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27700 }
27701 arg1 = reinterpret_cast< wxListItem * >(argp1);
27702 result = (long) ((arg1)->m_state);
27703 resultobj = SWIG_From_long(static_cast< long >(result));
27704 return resultobj;
27705 fail:
27706 return NULL;
27707 }
27708
27709
27710 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27711 PyObject *resultobj = 0;
27712 wxListItem *arg1 = (wxListItem *) 0 ;
27713 long arg2 ;
27714 void *argp1 = 0 ;
27715 int res1 = 0 ;
27716 long val2 ;
27717 int ecode2 = 0 ;
27718 PyObject *swig_obj[2] ;
27719
27720 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27722 if (!SWIG_IsOK(res1)) {
27723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27724 }
27725 arg1 = reinterpret_cast< wxListItem * >(argp1);
27726 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27727 if (!SWIG_IsOK(ecode2)) {
27728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27729 }
27730 arg2 = static_cast< long >(val2);
27731 if (arg1) (arg1)->m_stateMask = arg2;
27732
27733 resultobj = SWIG_Py_Void();
27734 return resultobj;
27735 fail:
27736 return NULL;
27737 }
27738
27739
27740 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27741 PyObject *resultobj = 0;
27742 wxListItem *arg1 = (wxListItem *) 0 ;
27743 long result;
27744 void *argp1 = 0 ;
27745 int res1 = 0 ;
27746 PyObject *swig_obj[1] ;
27747
27748 if (!args) SWIG_fail;
27749 swig_obj[0] = args;
27750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27751 if (!SWIG_IsOK(res1)) {
27752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27753 }
27754 arg1 = reinterpret_cast< wxListItem * >(argp1);
27755 result = (long) ((arg1)->m_stateMask);
27756 resultobj = SWIG_From_long(static_cast< long >(result));
27757 return resultobj;
27758 fail:
27759 return NULL;
27760 }
27761
27762
27763 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27764 PyObject *resultobj = 0;
27765 wxListItem *arg1 = (wxListItem *) 0 ;
27766 wxString *arg2 = (wxString *) 0 ;
27767 void *argp1 = 0 ;
27768 int res1 = 0 ;
27769 bool temp2 = false ;
27770 PyObject *swig_obj[2] ;
27771
27772 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27774 if (!SWIG_IsOK(res1)) {
27775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27776 }
27777 arg1 = reinterpret_cast< wxListItem * >(argp1);
27778 {
27779 arg2 = wxString_in_helper(swig_obj[1]);
27780 if (arg2 == NULL) SWIG_fail;
27781 temp2 = true;
27782 }
27783 if (arg1) (arg1)->m_text = *arg2;
27784
27785 resultobj = SWIG_Py_Void();
27786 {
27787 if (temp2)
27788 delete arg2;
27789 }
27790 return resultobj;
27791 fail:
27792 {
27793 if (temp2)
27794 delete arg2;
27795 }
27796 return NULL;
27797 }
27798
27799
27800 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27801 PyObject *resultobj = 0;
27802 wxListItem *arg1 = (wxListItem *) 0 ;
27803 wxString *result = 0 ;
27804 void *argp1 = 0 ;
27805 int res1 = 0 ;
27806 PyObject *swig_obj[1] ;
27807
27808 if (!args) SWIG_fail;
27809 swig_obj[0] = args;
27810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27811 if (!SWIG_IsOK(res1)) {
27812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27813 }
27814 arg1 = reinterpret_cast< wxListItem * >(argp1);
27815 result = (wxString *)& ((arg1)->m_text);
27816 {
27817 #if wxUSE_UNICODE
27818 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27819 #else
27820 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27821 #endif
27822 }
27823 return resultobj;
27824 fail:
27825 return NULL;
27826 }
27827
27828
27829 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27830 PyObject *resultobj = 0;
27831 wxListItem *arg1 = (wxListItem *) 0 ;
27832 int arg2 ;
27833 void *argp1 = 0 ;
27834 int res1 = 0 ;
27835 int val2 ;
27836 int ecode2 = 0 ;
27837 PyObject *swig_obj[2] ;
27838
27839 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27841 if (!SWIG_IsOK(res1)) {
27842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27843 }
27844 arg1 = reinterpret_cast< wxListItem * >(argp1);
27845 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27846 if (!SWIG_IsOK(ecode2)) {
27847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27848 }
27849 arg2 = static_cast< int >(val2);
27850 if (arg1) (arg1)->m_image = arg2;
27851
27852 resultobj = SWIG_Py_Void();
27853 return resultobj;
27854 fail:
27855 return NULL;
27856 }
27857
27858
27859 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27860 PyObject *resultobj = 0;
27861 wxListItem *arg1 = (wxListItem *) 0 ;
27862 int result;
27863 void *argp1 = 0 ;
27864 int res1 = 0 ;
27865 PyObject *swig_obj[1] ;
27866
27867 if (!args) SWIG_fail;
27868 swig_obj[0] = args;
27869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27870 if (!SWIG_IsOK(res1)) {
27871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27872 }
27873 arg1 = reinterpret_cast< wxListItem * >(argp1);
27874 result = (int) ((arg1)->m_image);
27875 resultobj = SWIG_From_int(static_cast< int >(result));
27876 return resultobj;
27877 fail:
27878 return NULL;
27879 }
27880
27881
27882 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27883 PyObject *resultobj = 0;
27884 wxListItem *arg1 = (wxListItem *) 0 ;
27885 long arg2 ;
27886 void *argp1 = 0 ;
27887 int res1 = 0 ;
27888 long val2 ;
27889 int ecode2 = 0 ;
27890 PyObject *swig_obj[2] ;
27891
27892 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27894 if (!SWIG_IsOK(res1)) {
27895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27896 }
27897 arg1 = reinterpret_cast< wxListItem * >(argp1);
27898 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27899 if (!SWIG_IsOK(ecode2)) {
27900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27901 }
27902 arg2 = static_cast< long >(val2);
27903 if (arg1) (arg1)->m_data = arg2;
27904
27905 resultobj = SWIG_Py_Void();
27906 return resultobj;
27907 fail:
27908 return NULL;
27909 }
27910
27911
27912 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27913 PyObject *resultobj = 0;
27914 wxListItem *arg1 = (wxListItem *) 0 ;
27915 long result;
27916 void *argp1 = 0 ;
27917 int res1 = 0 ;
27918 PyObject *swig_obj[1] ;
27919
27920 if (!args) SWIG_fail;
27921 swig_obj[0] = args;
27922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27923 if (!SWIG_IsOK(res1)) {
27924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27925 }
27926 arg1 = reinterpret_cast< wxListItem * >(argp1);
27927 result = (long) ((arg1)->m_data);
27928 resultobj = SWIG_From_long(static_cast< long >(result));
27929 return resultobj;
27930 fail:
27931 return NULL;
27932 }
27933
27934
27935 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27936 PyObject *resultobj = 0;
27937 wxListItem *arg1 = (wxListItem *) 0 ;
27938 int arg2 ;
27939 void *argp1 = 0 ;
27940 int res1 = 0 ;
27941 int val2 ;
27942 int ecode2 = 0 ;
27943 PyObject *swig_obj[2] ;
27944
27945 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27947 if (!SWIG_IsOK(res1)) {
27948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27949 }
27950 arg1 = reinterpret_cast< wxListItem * >(argp1);
27951 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27952 if (!SWIG_IsOK(ecode2)) {
27953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27954 }
27955 arg2 = static_cast< int >(val2);
27956 if (arg1) (arg1)->m_format = arg2;
27957
27958 resultobj = SWIG_Py_Void();
27959 return resultobj;
27960 fail:
27961 return NULL;
27962 }
27963
27964
27965 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27966 PyObject *resultobj = 0;
27967 wxListItem *arg1 = (wxListItem *) 0 ;
27968 int result;
27969 void *argp1 = 0 ;
27970 int res1 = 0 ;
27971 PyObject *swig_obj[1] ;
27972
27973 if (!args) SWIG_fail;
27974 swig_obj[0] = args;
27975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27976 if (!SWIG_IsOK(res1)) {
27977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27978 }
27979 arg1 = reinterpret_cast< wxListItem * >(argp1);
27980 result = (int) ((arg1)->m_format);
27981 resultobj = SWIG_From_int(static_cast< int >(result));
27982 return resultobj;
27983 fail:
27984 return NULL;
27985 }
27986
27987
27988 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27989 PyObject *resultobj = 0;
27990 wxListItem *arg1 = (wxListItem *) 0 ;
27991 int arg2 ;
27992 void *argp1 = 0 ;
27993 int res1 = 0 ;
27994 int val2 ;
27995 int ecode2 = 0 ;
27996 PyObject *swig_obj[2] ;
27997
27998 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28000 if (!SWIG_IsOK(res1)) {
28001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28002 }
28003 arg1 = reinterpret_cast< wxListItem * >(argp1);
28004 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28005 if (!SWIG_IsOK(ecode2)) {
28006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28007 }
28008 arg2 = static_cast< int >(val2);
28009 if (arg1) (arg1)->m_width = arg2;
28010
28011 resultobj = SWIG_Py_Void();
28012 return resultobj;
28013 fail:
28014 return NULL;
28015 }
28016
28017
28018 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28019 PyObject *resultobj = 0;
28020 wxListItem *arg1 = (wxListItem *) 0 ;
28021 int result;
28022 void *argp1 = 0 ;
28023 int res1 = 0 ;
28024 PyObject *swig_obj[1] ;
28025
28026 if (!args) SWIG_fail;
28027 swig_obj[0] = args;
28028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28029 if (!SWIG_IsOK(res1)) {
28030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28031 }
28032 arg1 = reinterpret_cast< wxListItem * >(argp1);
28033 result = (int) ((arg1)->m_width);
28034 resultobj = SWIG_From_int(static_cast< int >(result));
28035 return resultobj;
28036 fail:
28037 return NULL;
28038 }
28039
28040
28041 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28042 PyObject *obj;
28043 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28044 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28045 return SWIG_Py_Void();
28046 }
28047
28048 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28049 return SWIG_Python_InitShadowInstance(args);
28050 }
28051
28052 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28053 PyObject *resultobj = 0;
28054 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28055 int arg2 = (int) 0 ;
28056 wxListEvent *result = 0 ;
28057 int val1 ;
28058 int ecode1 = 0 ;
28059 int val2 ;
28060 int ecode2 = 0 ;
28061 PyObject * obj0 = 0 ;
28062 PyObject * obj1 = 0 ;
28063 char * kwnames[] = {
28064 (char *) "commandType",(char *) "id", NULL
28065 };
28066
28067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28068 if (obj0) {
28069 ecode1 = SWIG_AsVal_int(obj0, &val1);
28070 if (!SWIG_IsOK(ecode1)) {
28071 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28072 }
28073 arg1 = static_cast< wxEventType >(val1);
28074 }
28075 if (obj1) {
28076 ecode2 = SWIG_AsVal_int(obj1, &val2);
28077 if (!SWIG_IsOK(ecode2)) {
28078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28079 }
28080 arg2 = static_cast< int >(val2);
28081 }
28082 {
28083 PyThreadState* __tstate = wxPyBeginAllowThreads();
28084 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28085 wxPyEndAllowThreads(__tstate);
28086 if (PyErr_Occurred()) SWIG_fail;
28087 }
28088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28089 return resultobj;
28090 fail:
28091 return NULL;
28092 }
28093
28094
28095 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28096 PyObject *resultobj = 0;
28097 wxListEvent *arg1 = (wxListEvent *) 0 ;
28098 int arg2 ;
28099 void *argp1 = 0 ;
28100 int res1 = 0 ;
28101 int val2 ;
28102 int ecode2 = 0 ;
28103 PyObject *swig_obj[2] ;
28104
28105 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28107 if (!SWIG_IsOK(res1)) {
28108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28109 }
28110 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28111 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28112 if (!SWIG_IsOK(ecode2)) {
28113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28114 }
28115 arg2 = static_cast< int >(val2);
28116 if (arg1) (arg1)->m_code = arg2;
28117
28118 resultobj = SWIG_Py_Void();
28119 return resultobj;
28120 fail:
28121 return NULL;
28122 }
28123
28124
28125 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28126 PyObject *resultobj = 0;
28127 wxListEvent *arg1 = (wxListEvent *) 0 ;
28128 int result;
28129 void *argp1 = 0 ;
28130 int res1 = 0 ;
28131 PyObject *swig_obj[1] ;
28132
28133 if (!args) SWIG_fail;
28134 swig_obj[0] = args;
28135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28136 if (!SWIG_IsOK(res1)) {
28137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28138 }
28139 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28140 result = (int) ((arg1)->m_code);
28141 resultobj = SWIG_From_int(static_cast< int >(result));
28142 return resultobj;
28143 fail:
28144 return NULL;
28145 }
28146
28147
28148 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28149 PyObject *resultobj = 0;
28150 wxListEvent *arg1 = (wxListEvent *) 0 ;
28151 long arg2 ;
28152 void *argp1 = 0 ;
28153 int res1 = 0 ;
28154 long val2 ;
28155 int ecode2 = 0 ;
28156 PyObject *swig_obj[2] ;
28157
28158 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28160 if (!SWIG_IsOK(res1)) {
28161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28162 }
28163 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28164 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28165 if (!SWIG_IsOK(ecode2)) {
28166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28167 }
28168 arg2 = static_cast< long >(val2);
28169 if (arg1) (arg1)->m_oldItemIndex = arg2;
28170
28171 resultobj = SWIG_Py_Void();
28172 return resultobj;
28173 fail:
28174 return NULL;
28175 }
28176
28177
28178 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28179 PyObject *resultobj = 0;
28180 wxListEvent *arg1 = (wxListEvent *) 0 ;
28181 long result;
28182 void *argp1 = 0 ;
28183 int res1 = 0 ;
28184 PyObject *swig_obj[1] ;
28185
28186 if (!args) SWIG_fail;
28187 swig_obj[0] = args;
28188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28189 if (!SWIG_IsOK(res1)) {
28190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28191 }
28192 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28193 result = (long) ((arg1)->m_oldItemIndex);
28194 resultobj = SWIG_From_long(static_cast< long >(result));
28195 return resultobj;
28196 fail:
28197 return NULL;
28198 }
28199
28200
28201 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28202 PyObject *resultobj = 0;
28203 wxListEvent *arg1 = (wxListEvent *) 0 ;
28204 long arg2 ;
28205 void *argp1 = 0 ;
28206 int res1 = 0 ;
28207 long val2 ;
28208 int ecode2 = 0 ;
28209 PyObject *swig_obj[2] ;
28210
28211 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28213 if (!SWIG_IsOK(res1)) {
28214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28215 }
28216 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28217 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28218 if (!SWIG_IsOK(ecode2)) {
28219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28220 }
28221 arg2 = static_cast< long >(val2);
28222 if (arg1) (arg1)->m_itemIndex = arg2;
28223
28224 resultobj = SWIG_Py_Void();
28225 return resultobj;
28226 fail:
28227 return NULL;
28228 }
28229
28230
28231 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28232 PyObject *resultobj = 0;
28233 wxListEvent *arg1 = (wxListEvent *) 0 ;
28234 long result;
28235 void *argp1 = 0 ;
28236 int res1 = 0 ;
28237 PyObject *swig_obj[1] ;
28238
28239 if (!args) SWIG_fail;
28240 swig_obj[0] = args;
28241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28242 if (!SWIG_IsOK(res1)) {
28243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28244 }
28245 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28246 result = (long) ((arg1)->m_itemIndex);
28247 resultobj = SWIG_From_long(static_cast< long >(result));
28248 return resultobj;
28249 fail:
28250 return NULL;
28251 }
28252
28253
28254 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28255 PyObject *resultobj = 0;
28256 wxListEvent *arg1 = (wxListEvent *) 0 ;
28257 int arg2 ;
28258 void *argp1 = 0 ;
28259 int res1 = 0 ;
28260 int val2 ;
28261 int ecode2 = 0 ;
28262 PyObject *swig_obj[2] ;
28263
28264 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28266 if (!SWIG_IsOK(res1)) {
28267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28268 }
28269 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28270 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28271 if (!SWIG_IsOK(ecode2)) {
28272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28273 }
28274 arg2 = static_cast< int >(val2);
28275 if (arg1) (arg1)->m_col = arg2;
28276
28277 resultobj = SWIG_Py_Void();
28278 return resultobj;
28279 fail:
28280 return NULL;
28281 }
28282
28283
28284 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28285 PyObject *resultobj = 0;
28286 wxListEvent *arg1 = (wxListEvent *) 0 ;
28287 int result;
28288 void *argp1 = 0 ;
28289 int res1 = 0 ;
28290 PyObject *swig_obj[1] ;
28291
28292 if (!args) SWIG_fail;
28293 swig_obj[0] = args;
28294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28295 if (!SWIG_IsOK(res1)) {
28296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28297 }
28298 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28299 result = (int) ((arg1)->m_col);
28300 resultobj = SWIG_From_int(static_cast< int >(result));
28301 return resultobj;
28302 fail:
28303 return NULL;
28304 }
28305
28306
28307 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28308 PyObject *resultobj = 0;
28309 wxListEvent *arg1 = (wxListEvent *) 0 ;
28310 wxPoint *arg2 = (wxPoint *) 0 ;
28311 void *argp1 = 0 ;
28312 int res1 = 0 ;
28313 void *argp2 = 0 ;
28314 int res2 = 0 ;
28315 PyObject *swig_obj[2] ;
28316
28317 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28319 if (!SWIG_IsOK(res1)) {
28320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28321 }
28322 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28323 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28324 if (!SWIG_IsOK(res2)) {
28325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28326 }
28327 arg2 = reinterpret_cast< wxPoint * >(argp2);
28328 if (arg1) (arg1)->m_pointDrag = *arg2;
28329
28330 resultobj = SWIG_Py_Void();
28331 return resultobj;
28332 fail:
28333 return NULL;
28334 }
28335
28336
28337 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28338 PyObject *resultobj = 0;
28339 wxListEvent *arg1 = (wxListEvent *) 0 ;
28340 wxPoint *result = 0 ;
28341 void *argp1 = 0 ;
28342 int res1 = 0 ;
28343 PyObject *swig_obj[1] ;
28344
28345 if (!args) SWIG_fail;
28346 swig_obj[0] = args;
28347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28348 if (!SWIG_IsOK(res1)) {
28349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28350 }
28351 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28352 result = (wxPoint *)& ((arg1)->m_pointDrag);
28353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28354 return resultobj;
28355 fail:
28356 return NULL;
28357 }
28358
28359
28360 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28361 PyObject *resultobj = 0;
28362 wxListEvent *arg1 = (wxListEvent *) 0 ;
28363 wxListItem *result = 0 ;
28364 void *argp1 = 0 ;
28365 int res1 = 0 ;
28366 PyObject *swig_obj[1] ;
28367
28368 if (!args) SWIG_fail;
28369 swig_obj[0] = args;
28370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28371 if (!SWIG_IsOK(res1)) {
28372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28373 }
28374 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28375 result = (wxListItem *)& ((arg1)->m_item);
28376 {
28377 resultobj = wxPyMake_wxObject(result, 0);
28378 }
28379 return resultobj;
28380 fail:
28381 return NULL;
28382 }
28383
28384
28385 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28386 PyObject *resultobj = 0;
28387 wxListEvent *arg1 = (wxListEvent *) 0 ;
28388 int result;
28389 void *argp1 = 0 ;
28390 int res1 = 0 ;
28391 PyObject *swig_obj[1] ;
28392
28393 if (!args) SWIG_fail;
28394 swig_obj[0] = args;
28395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28396 if (!SWIG_IsOK(res1)) {
28397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28398 }
28399 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28400 {
28401 PyThreadState* __tstate = wxPyBeginAllowThreads();
28402 result = (int)(arg1)->GetKeyCode();
28403 wxPyEndAllowThreads(__tstate);
28404 if (PyErr_Occurred()) SWIG_fail;
28405 }
28406 resultobj = SWIG_From_int(static_cast< int >(result));
28407 return resultobj;
28408 fail:
28409 return NULL;
28410 }
28411
28412
28413 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28414 PyObject *resultobj = 0;
28415 wxListEvent *arg1 = (wxListEvent *) 0 ;
28416 long result;
28417 void *argp1 = 0 ;
28418 int res1 = 0 ;
28419 PyObject *swig_obj[1] ;
28420
28421 if (!args) SWIG_fail;
28422 swig_obj[0] = args;
28423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28424 if (!SWIG_IsOK(res1)) {
28425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28426 }
28427 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28428 {
28429 PyThreadState* __tstate = wxPyBeginAllowThreads();
28430 result = (long)(arg1)->GetIndex();
28431 wxPyEndAllowThreads(__tstate);
28432 if (PyErr_Occurred()) SWIG_fail;
28433 }
28434 resultobj = SWIG_From_long(static_cast< long >(result));
28435 return resultobj;
28436 fail:
28437 return NULL;
28438 }
28439
28440
28441 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28442 PyObject *resultobj = 0;
28443 wxListEvent *arg1 = (wxListEvent *) 0 ;
28444 int result;
28445 void *argp1 = 0 ;
28446 int res1 = 0 ;
28447 PyObject *swig_obj[1] ;
28448
28449 if (!args) SWIG_fail;
28450 swig_obj[0] = args;
28451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28452 if (!SWIG_IsOK(res1)) {
28453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28454 }
28455 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28456 {
28457 PyThreadState* __tstate = wxPyBeginAllowThreads();
28458 result = (int)(arg1)->GetColumn();
28459 wxPyEndAllowThreads(__tstate);
28460 if (PyErr_Occurred()) SWIG_fail;
28461 }
28462 resultobj = SWIG_From_int(static_cast< int >(result));
28463 return resultobj;
28464 fail:
28465 return NULL;
28466 }
28467
28468
28469 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28470 PyObject *resultobj = 0;
28471 wxListEvent *arg1 = (wxListEvent *) 0 ;
28472 wxPoint result;
28473 void *argp1 = 0 ;
28474 int res1 = 0 ;
28475 PyObject *swig_obj[1] ;
28476
28477 if (!args) SWIG_fail;
28478 swig_obj[0] = args;
28479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28480 if (!SWIG_IsOK(res1)) {
28481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28482 }
28483 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28484 {
28485 PyThreadState* __tstate = wxPyBeginAllowThreads();
28486 result = (arg1)->GetPoint();
28487 wxPyEndAllowThreads(__tstate);
28488 if (PyErr_Occurred()) SWIG_fail;
28489 }
28490 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28491 return resultobj;
28492 fail:
28493 return NULL;
28494 }
28495
28496
28497 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28498 PyObject *resultobj = 0;
28499 wxListEvent *arg1 = (wxListEvent *) 0 ;
28500 wxString *result = 0 ;
28501 void *argp1 = 0 ;
28502 int res1 = 0 ;
28503 PyObject *swig_obj[1] ;
28504
28505 if (!args) SWIG_fail;
28506 swig_obj[0] = args;
28507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28508 if (!SWIG_IsOK(res1)) {
28509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28510 }
28511 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28512 {
28513 PyThreadState* __tstate = wxPyBeginAllowThreads();
28514 {
28515 wxString const &_result_ref = (arg1)->GetLabel();
28516 result = (wxString *) &_result_ref;
28517 }
28518 wxPyEndAllowThreads(__tstate);
28519 if (PyErr_Occurred()) SWIG_fail;
28520 }
28521 {
28522 #if wxUSE_UNICODE
28523 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28524 #else
28525 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28526 #endif
28527 }
28528 return resultobj;
28529 fail:
28530 return NULL;
28531 }
28532
28533
28534 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28535 PyObject *resultobj = 0;
28536 wxListEvent *arg1 = (wxListEvent *) 0 ;
28537 wxString *result = 0 ;
28538 void *argp1 = 0 ;
28539 int res1 = 0 ;
28540 PyObject *swig_obj[1] ;
28541
28542 if (!args) SWIG_fail;
28543 swig_obj[0] = args;
28544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28545 if (!SWIG_IsOK(res1)) {
28546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28547 }
28548 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28549 {
28550 PyThreadState* __tstate = wxPyBeginAllowThreads();
28551 {
28552 wxString const &_result_ref = (arg1)->GetText();
28553 result = (wxString *) &_result_ref;
28554 }
28555 wxPyEndAllowThreads(__tstate);
28556 if (PyErr_Occurred()) SWIG_fail;
28557 }
28558 {
28559 #if wxUSE_UNICODE
28560 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28561 #else
28562 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28563 #endif
28564 }
28565 return resultobj;
28566 fail:
28567 return NULL;
28568 }
28569
28570
28571 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28572 PyObject *resultobj = 0;
28573 wxListEvent *arg1 = (wxListEvent *) 0 ;
28574 int result;
28575 void *argp1 = 0 ;
28576 int res1 = 0 ;
28577 PyObject *swig_obj[1] ;
28578
28579 if (!args) SWIG_fail;
28580 swig_obj[0] = args;
28581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28582 if (!SWIG_IsOK(res1)) {
28583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28584 }
28585 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28586 {
28587 PyThreadState* __tstate = wxPyBeginAllowThreads();
28588 result = (int)(arg1)->GetImage();
28589 wxPyEndAllowThreads(__tstate);
28590 if (PyErr_Occurred()) SWIG_fail;
28591 }
28592 resultobj = SWIG_From_int(static_cast< int >(result));
28593 return resultobj;
28594 fail:
28595 return NULL;
28596 }
28597
28598
28599 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28600 PyObject *resultobj = 0;
28601 wxListEvent *arg1 = (wxListEvent *) 0 ;
28602 long result;
28603 void *argp1 = 0 ;
28604 int res1 = 0 ;
28605 PyObject *swig_obj[1] ;
28606
28607 if (!args) SWIG_fail;
28608 swig_obj[0] = args;
28609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28610 if (!SWIG_IsOK(res1)) {
28611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28612 }
28613 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28614 {
28615 PyThreadState* __tstate = wxPyBeginAllowThreads();
28616 result = (long)(arg1)->GetData();
28617 wxPyEndAllowThreads(__tstate);
28618 if (PyErr_Occurred()) SWIG_fail;
28619 }
28620 resultobj = SWIG_From_long(static_cast< long >(result));
28621 return resultobj;
28622 fail:
28623 return NULL;
28624 }
28625
28626
28627 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28628 PyObject *resultobj = 0;
28629 wxListEvent *arg1 = (wxListEvent *) 0 ;
28630 long result;
28631 void *argp1 = 0 ;
28632 int res1 = 0 ;
28633 PyObject *swig_obj[1] ;
28634
28635 if (!args) SWIG_fail;
28636 swig_obj[0] = args;
28637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28638 if (!SWIG_IsOK(res1)) {
28639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28640 }
28641 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28642 {
28643 PyThreadState* __tstate = wxPyBeginAllowThreads();
28644 result = (long)(arg1)->GetMask();
28645 wxPyEndAllowThreads(__tstate);
28646 if (PyErr_Occurred()) SWIG_fail;
28647 }
28648 resultobj = SWIG_From_long(static_cast< long >(result));
28649 return resultobj;
28650 fail:
28651 return NULL;
28652 }
28653
28654
28655 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28656 PyObject *resultobj = 0;
28657 wxListEvent *arg1 = (wxListEvent *) 0 ;
28658 wxListItem *result = 0 ;
28659 void *argp1 = 0 ;
28660 int res1 = 0 ;
28661 PyObject *swig_obj[1] ;
28662
28663 if (!args) SWIG_fail;
28664 swig_obj[0] = args;
28665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28666 if (!SWIG_IsOK(res1)) {
28667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28668 }
28669 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28670 {
28671 PyThreadState* __tstate = wxPyBeginAllowThreads();
28672 {
28673 wxListItem const &_result_ref = (arg1)->GetItem();
28674 result = (wxListItem *) &_result_ref;
28675 }
28676 wxPyEndAllowThreads(__tstate);
28677 if (PyErr_Occurred()) SWIG_fail;
28678 }
28679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28680 return resultobj;
28681 fail:
28682 return NULL;
28683 }
28684
28685
28686 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28687 PyObject *resultobj = 0;
28688 wxListEvent *arg1 = (wxListEvent *) 0 ;
28689 long result;
28690 void *argp1 = 0 ;
28691 int res1 = 0 ;
28692 PyObject *swig_obj[1] ;
28693
28694 if (!args) SWIG_fail;
28695 swig_obj[0] = args;
28696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28697 if (!SWIG_IsOK(res1)) {
28698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28699 }
28700 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28701 {
28702 PyThreadState* __tstate = wxPyBeginAllowThreads();
28703 result = (long)(arg1)->GetCacheFrom();
28704 wxPyEndAllowThreads(__tstate);
28705 if (PyErr_Occurred()) SWIG_fail;
28706 }
28707 resultobj = SWIG_From_long(static_cast< long >(result));
28708 return resultobj;
28709 fail:
28710 return NULL;
28711 }
28712
28713
28714 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28715 PyObject *resultobj = 0;
28716 wxListEvent *arg1 = (wxListEvent *) 0 ;
28717 long result;
28718 void *argp1 = 0 ;
28719 int res1 = 0 ;
28720 PyObject *swig_obj[1] ;
28721
28722 if (!args) SWIG_fail;
28723 swig_obj[0] = args;
28724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28725 if (!SWIG_IsOK(res1)) {
28726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28727 }
28728 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28729 {
28730 PyThreadState* __tstate = wxPyBeginAllowThreads();
28731 result = (long)(arg1)->GetCacheTo();
28732 wxPyEndAllowThreads(__tstate);
28733 if (PyErr_Occurred()) SWIG_fail;
28734 }
28735 resultobj = SWIG_From_long(static_cast< long >(result));
28736 return resultobj;
28737 fail:
28738 return NULL;
28739 }
28740
28741
28742 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28743 PyObject *resultobj = 0;
28744 wxListEvent *arg1 = (wxListEvent *) 0 ;
28745 bool result;
28746 void *argp1 = 0 ;
28747 int res1 = 0 ;
28748 PyObject *swig_obj[1] ;
28749
28750 if (!args) SWIG_fail;
28751 swig_obj[0] = args;
28752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28753 if (!SWIG_IsOK(res1)) {
28754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28755 }
28756 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28757 {
28758 PyThreadState* __tstate = wxPyBeginAllowThreads();
28759 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28760 wxPyEndAllowThreads(__tstate);
28761 if (PyErr_Occurred()) SWIG_fail;
28762 }
28763 {
28764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28765 }
28766 return resultobj;
28767 fail:
28768 return NULL;
28769 }
28770
28771
28772 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28773 PyObject *resultobj = 0;
28774 wxListEvent *arg1 = (wxListEvent *) 0 ;
28775 bool arg2 ;
28776 void *argp1 = 0 ;
28777 int res1 = 0 ;
28778 bool val2 ;
28779 int ecode2 = 0 ;
28780 PyObject * obj0 = 0 ;
28781 PyObject * obj1 = 0 ;
28782 char * kwnames[] = {
28783 (char *) "self",(char *) "editCancelled", NULL
28784 };
28785
28786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28788 if (!SWIG_IsOK(res1)) {
28789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28790 }
28791 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28792 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28793 if (!SWIG_IsOK(ecode2)) {
28794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28795 }
28796 arg2 = static_cast< bool >(val2);
28797 {
28798 PyThreadState* __tstate = wxPyBeginAllowThreads();
28799 (arg1)->SetEditCanceled(arg2);
28800 wxPyEndAllowThreads(__tstate);
28801 if (PyErr_Occurred()) SWIG_fail;
28802 }
28803 resultobj = SWIG_Py_Void();
28804 return resultobj;
28805 fail:
28806 return NULL;
28807 }
28808
28809
28810 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28811 PyObject *obj;
28812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28813 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28814 return SWIG_Py_Void();
28815 }
28816
28817 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28818 return SWIG_Python_InitShadowInstance(args);
28819 }
28820
28821 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28822 PyObject *resultobj = 0;
28823 wxWindow *arg1 = (wxWindow *) 0 ;
28824 int arg2 = (int) -1 ;
28825 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28826 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28827 wxSize const &arg4_defvalue = wxDefaultSize ;
28828 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28829 long arg5 = (long) wxLC_ICON ;
28830 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28831 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28832 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28833 wxString *arg7 = (wxString *) &arg7_defvalue ;
28834 wxPyListCtrl *result = 0 ;
28835 void *argp1 = 0 ;
28836 int res1 = 0 ;
28837 int val2 ;
28838 int ecode2 = 0 ;
28839 wxPoint temp3 ;
28840 wxSize temp4 ;
28841 long val5 ;
28842 int ecode5 = 0 ;
28843 void *argp6 = 0 ;
28844 int res6 = 0 ;
28845 bool temp7 = false ;
28846 PyObject * obj0 = 0 ;
28847 PyObject * obj1 = 0 ;
28848 PyObject * obj2 = 0 ;
28849 PyObject * obj3 = 0 ;
28850 PyObject * obj4 = 0 ;
28851 PyObject * obj5 = 0 ;
28852 PyObject * obj6 = 0 ;
28853 char * kwnames[] = {
28854 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28855 };
28856
28857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28859 if (!SWIG_IsOK(res1)) {
28860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28861 }
28862 arg1 = reinterpret_cast< wxWindow * >(argp1);
28863 if (obj1) {
28864 ecode2 = SWIG_AsVal_int(obj1, &val2);
28865 if (!SWIG_IsOK(ecode2)) {
28866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28867 }
28868 arg2 = static_cast< int >(val2);
28869 }
28870 if (obj2) {
28871 {
28872 arg3 = &temp3;
28873 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28874 }
28875 }
28876 if (obj3) {
28877 {
28878 arg4 = &temp4;
28879 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28880 }
28881 }
28882 if (obj4) {
28883 ecode5 = SWIG_AsVal_long(obj4, &val5);
28884 if (!SWIG_IsOK(ecode5)) {
28885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28886 }
28887 arg5 = static_cast< long >(val5);
28888 }
28889 if (obj5) {
28890 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28891 if (!SWIG_IsOK(res6)) {
28892 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28893 }
28894 if (!argp6) {
28895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28896 }
28897 arg6 = reinterpret_cast< wxValidator * >(argp6);
28898 }
28899 if (obj6) {
28900 {
28901 arg7 = wxString_in_helper(obj6);
28902 if (arg7 == NULL) SWIG_fail;
28903 temp7 = true;
28904 }
28905 }
28906 {
28907 if (!wxPyCheckForApp()) SWIG_fail;
28908 PyThreadState* __tstate = wxPyBeginAllowThreads();
28909 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28910 wxPyEndAllowThreads(__tstate);
28911 if (PyErr_Occurred()) SWIG_fail;
28912 }
28913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28914 {
28915 if (temp7)
28916 delete arg7;
28917 }
28918 return resultobj;
28919 fail:
28920 {
28921 if (temp7)
28922 delete arg7;
28923 }
28924 return NULL;
28925 }
28926
28927
28928 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28929 PyObject *resultobj = 0;
28930 wxPyListCtrl *result = 0 ;
28931
28932 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28933 {
28934 if (!wxPyCheckForApp()) SWIG_fail;
28935 PyThreadState* __tstate = wxPyBeginAllowThreads();
28936 result = (wxPyListCtrl *)new wxPyListCtrl();
28937 wxPyEndAllowThreads(__tstate);
28938 if (PyErr_Occurred()) SWIG_fail;
28939 }
28940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28941 return resultobj;
28942 fail:
28943 return NULL;
28944 }
28945
28946
28947 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28948 PyObject *resultobj = 0;
28949 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28950 wxWindow *arg2 = (wxWindow *) 0 ;
28951 int arg3 = (int) -1 ;
28952 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28953 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28954 wxSize const &arg5_defvalue = wxDefaultSize ;
28955 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28956 long arg6 = (long) wxLC_ICON ;
28957 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28958 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28959 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28960 wxString *arg8 = (wxString *) &arg8_defvalue ;
28961 bool result;
28962 void *argp1 = 0 ;
28963 int res1 = 0 ;
28964 void *argp2 = 0 ;
28965 int res2 = 0 ;
28966 int val3 ;
28967 int ecode3 = 0 ;
28968 wxPoint temp4 ;
28969 wxSize temp5 ;
28970 long val6 ;
28971 int ecode6 = 0 ;
28972 void *argp7 = 0 ;
28973 int res7 = 0 ;
28974 bool temp8 = false ;
28975 PyObject * obj0 = 0 ;
28976 PyObject * obj1 = 0 ;
28977 PyObject * obj2 = 0 ;
28978 PyObject * obj3 = 0 ;
28979 PyObject * obj4 = 0 ;
28980 PyObject * obj5 = 0 ;
28981 PyObject * obj6 = 0 ;
28982 PyObject * obj7 = 0 ;
28983 char * kwnames[] = {
28984 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28985 };
28986
28987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28989 if (!SWIG_IsOK(res1)) {
28990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28991 }
28992 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28994 if (!SWIG_IsOK(res2)) {
28995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28996 }
28997 arg2 = reinterpret_cast< wxWindow * >(argp2);
28998 if (obj2) {
28999 ecode3 = SWIG_AsVal_int(obj2, &val3);
29000 if (!SWIG_IsOK(ecode3)) {
29001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29002 }
29003 arg3 = static_cast< int >(val3);
29004 }
29005 if (obj3) {
29006 {
29007 arg4 = &temp4;
29008 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29009 }
29010 }
29011 if (obj4) {
29012 {
29013 arg5 = &temp5;
29014 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29015 }
29016 }
29017 if (obj5) {
29018 ecode6 = SWIG_AsVal_long(obj5, &val6);
29019 if (!SWIG_IsOK(ecode6)) {
29020 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29021 }
29022 arg6 = static_cast< long >(val6);
29023 }
29024 if (obj6) {
29025 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29026 if (!SWIG_IsOK(res7)) {
29027 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29028 }
29029 if (!argp7) {
29030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29031 }
29032 arg7 = reinterpret_cast< wxValidator * >(argp7);
29033 }
29034 if (obj7) {
29035 {
29036 arg8 = wxString_in_helper(obj7);
29037 if (arg8 == NULL) SWIG_fail;
29038 temp8 = true;
29039 }
29040 }
29041 {
29042 PyThreadState* __tstate = wxPyBeginAllowThreads();
29043 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29044 wxPyEndAllowThreads(__tstate);
29045 if (PyErr_Occurred()) SWIG_fail;
29046 }
29047 {
29048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29049 }
29050 {
29051 if (temp8)
29052 delete arg8;
29053 }
29054 return resultobj;
29055 fail:
29056 {
29057 if (temp8)
29058 delete arg8;
29059 }
29060 return NULL;
29061 }
29062
29063
29064 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29065 PyObject *resultobj = 0;
29066 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29067 PyObject *arg2 = (PyObject *) 0 ;
29068 PyObject *arg3 = (PyObject *) 0 ;
29069 void *argp1 = 0 ;
29070 int res1 = 0 ;
29071 PyObject * obj0 = 0 ;
29072 PyObject * obj1 = 0 ;
29073 PyObject * obj2 = 0 ;
29074 char * kwnames[] = {
29075 (char *) "self",(char *) "self",(char *) "_class", NULL
29076 };
29077
29078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29080 if (!SWIG_IsOK(res1)) {
29081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29082 }
29083 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29084 arg2 = obj1;
29085 arg3 = obj2;
29086 {
29087 PyThreadState* __tstate = wxPyBeginAllowThreads();
29088 (arg1)->_setCallbackInfo(arg2,arg3);
29089 wxPyEndAllowThreads(__tstate);
29090 if (PyErr_Occurred()) SWIG_fail;
29091 }
29092 resultobj = SWIG_Py_Void();
29093 return resultobj;
29094 fail:
29095 return NULL;
29096 }
29097
29098
29099 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29100 PyObject *resultobj = 0;
29101 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29102 int arg2 ;
29103 wxListItem *result = 0 ;
29104 void *argp1 = 0 ;
29105 int res1 = 0 ;
29106 int val2 ;
29107 int ecode2 = 0 ;
29108 PyObject * obj0 = 0 ;
29109 PyObject * obj1 = 0 ;
29110 char * kwnames[] = {
29111 (char *) "self",(char *) "col", NULL
29112 };
29113
29114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29116 if (!SWIG_IsOK(res1)) {
29117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29118 }
29119 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29120 ecode2 = SWIG_AsVal_int(obj1, &val2);
29121 if (!SWIG_IsOK(ecode2)) {
29122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29123 }
29124 arg2 = static_cast< int >(val2);
29125 {
29126 PyThreadState* __tstate = wxPyBeginAllowThreads();
29127 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29128 wxPyEndAllowThreads(__tstate);
29129 if (PyErr_Occurred()) SWIG_fail;
29130 }
29131 {
29132 resultobj = wxPyMake_wxObject(result, 0);
29133 }
29134 return resultobj;
29135 fail:
29136 return NULL;
29137 }
29138
29139
29140 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29141 PyObject *resultobj = 0;
29142 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29143 int arg2 ;
29144 wxListItem *arg3 = 0 ;
29145 bool result;
29146 void *argp1 = 0 ;
29147 int res1 = 0 ;
29148 int val2 ;
29149 int ecode2 = 0 ;
29150 void *argp3 = 0 ;
29151 int res3 = 0 ;
29152 PyObject * obj0 = 0 ;
29153 PyObject * obj1 = 0 ;
29154 PyObject * obj2 = 0 ;
29155 char * kwnames[] = {
29156 (char *) "self",(char *) "col",(char *) "item", NULL
29157 };
29158
29159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29161 if (!SWIG_IsOK(res1)) {
29162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29163 }
29164 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29165 ecode2 = SWIG_AsVal_int(obj1, &val2);
29166 if (!SWIG_IsOK(ecode2)) {
29167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29168 }
29169 arg2 = static_cast< int >(val2);
29170 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29171 if (!SWIG_IsOK(res3)) {
29172 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29173 }
29174 if (!argp3) {
29175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29176 }
29177 arg3 = reinterpret_cast< wxListItem * >(argp3);
29178 {
29179 PyThreadState* __tstate = wxPyBeginAllowThreads();
29180 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29181 wxPyEndAllowThreads(__tstate);
29182 if (PyErr_Occurred()) SWIG_fail;
29183 }
29184 {
29185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29186 }
29187 return resultobj;
29188 fail:
29189 return NULL;
29190 }
29191
29192
29193 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29194 PyObject *resultobj = 0;
29195 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29196 int arg2 ;
29197 int result;
29198 void *argp1 = 0 ;
29199 int res1 = 0 ;
29200 int val2 ;
29201 int ecode2 = 0 ;
29202 PyObject * obj0 = 0 ;
29203 PyObject * obj1 = 0 ;
29204 char * kwnames[] = {
29205 (char *) "self",(char *) "col", NULL
29206 };
29207
29208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29210 if (!SWIG_IsOK(res1)) {
29211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29212 }
29213 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29214 ecode2 = SWIG_AsVal_int(obj1, &val2);
29215 if (!SWIG_IsOK(ecode2)) {
29216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29217 }
29218 arg2 = static_cast< int >(val2);
29219 {
29220 PyThreadState* __tstate = wxPyBeginAllowThreads();
29221 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29222 wxPyEndAllowThreads(__tstate);
29223 if (PyErr_Occurred()) SWIG_fail;
29224 }
29225 resultobj = SWIG_From_int(static_cast< int >(result));
29226 return resultobj;
29227 fail:
29228 return NULL;
29229 }
29230
29231
29232 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29233 PyObject *resultobj = 0;
29234 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29235 int arg2 ;
29236 int arg3 ;
29237 bool result;
29238 void *argp1 = 0 ;
29239 int res1 = 0 ;
29240 int val2 ;
29241 int ecode2 = 0 ;
29242 int val3 ;
29243 int ecode3 = 0 ;
29244 PyObject * obj0 = 0 ;
29245 PyObject * obj1 = 0 ;
29246 PyObject * obj2 = 0 ;
29247 char * kwnames[] = {
29248 (char *) "self",(char *) "col",(char *) "width", NULL
29249 };
29250
29251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29253 if (!SWIG_IsOK(res1)) {
29254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29255 }
29256 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29257 ecode2 = SWIG_AsVal_int(obj1, &val2);
29258 if (!SWIG_IsOK(ecode2)) {
29259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29260 }
29261 arg2 = static_cast< int >(val2);
29262 ecode3 = SWIG_AsVal_int(obj2, &val3);
29263 if (!SWIG_IsOK(ecode3)) {
29264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29265 }
29266 arg3 = static_cast< int >(val3);
29267 {
29268 PyThreadState* __tstate = wxPyBeginAllowThreads();
29269 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29270 wxPyEndAllowThreads(__tstate);
29271 if (PyErr_Occurred()) SWIG_fail;
29272 }
29273 {
29274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29275 }
29276 return resultobj;
29277 fail:
29278 return NULL;
29279 }
29280
29281
29282 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29283 PyObject *resultobj = 0;
29284 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29285 int result;
29286 void *argp1 = 0 ;
29287 int res1 = 0 ;
29288 PyObject *swig_obj[1] ;
29289
29290 if (!args) SWIG_fail;
29291 swig_obj[0] = args;
29292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29293 if (!SWIG_IsOK(res1)) {
29294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29295 }
29296 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29297 {
29298 PyThreadState* __tstate = wxPyBeginAllowThreads();
29299 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29300 wxPyEndAllowThreads(__tstate);
29301 if (PyErr_Occurred()) SWIG_fail;
29302 }
29303 resultobj = SWIG_From_int(static_cast< int >(result));
29304 return resultobj;
29305 fail:
29306 return NULL;
29307 }
29308
29309
29310 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29311 PyObject *resultobj = 0;
29312 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29313 wxRect result;
29314 void *argp1 = 0 ;
29315 int res1 = 0 ;
29316 PyObject *swig_obj[1] ;
29317
29318 if (!args) SWIG_fail;
29319 swig_obj[0] = args;
29320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29321 if (!SWIG_IsOK(res1)) {
29322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29323 }
29324 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29325 {
29326 PyThreadState* __tstate = wxPyBeginAllowThreads();
29327 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29328 wxPyEndAllowThreads(__tstate);
29329 if (PyErr_Occurred()) SWIG_fail;
29330 }
29331 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29332 return resultobj;
29333 fail:
29334 return NULL;
29335 }
29336
29337
29338 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29339 PyObject *resultobj = 0;
29340 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29341 wxTextCtrl *result = 0 ;
29342 void *argp1 = 0 ;
29343 int res1 = 0 ;
29344 PyObject *swig_obj[1] ;
29345
29346 if (!args) SWIG_fail;
29347 swig_obj[0] = args;
29348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29349 if (!SWIG_IsOK(res1)) {
29350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29351 }
29352 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29353 {
29354 PyThreadState* __tstate = wxPyBeginAllowThreads();
29355 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29356 wxPyEndAllowThreads(__tstate);
29357 if (PyErr_Occurred()) SWIG_fail;
29358 }
29359 {
29360 resultobj = wxPyMake_wxObject(result, 0);
29361 }
29362 return resultobj;
29363 fail:
29364 return NULL;
29365 }
29366
29367
29368 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29369 PyObject *resultobj = 0;
29370 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29371 long arg2 ;
29372 int arg3 = (int) 0 ;
29373 wxListItem *result = 0 ;
29374 void *argp1 = 0 ;
29375 int res1 = 0 ;
29376 long val2 ;
29377 int ecode2 = 0 ;
29378 int val3 ;
29379 int ecode3 = 0 ;
29380 PyObject * obj0 = 0 ;
29381 PyObject * obj1 = 0 ;
29382 PyObject * obj2 = 0 ;
29383 char * kwnames[] = {
29384 (char *) "self",(char *) "itemId",(char *) "col", NULL
29385 };
29386
29387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29389 if (!SWIG_IsOK(res1)) {
29390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29391 }
29392 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29393 ecode2 = SWIG_AsVal_long(obj1, &val2);
29394 if (!SWIG_IsOK(ecode2)) {
29395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29396 }
29397 arg2 = static_cast< long >(val2);
29398 if (obj2) {
29399 ecode3 = SWIG_AsVal_int(obj2, &val3);
29400 if (!SWIG_IsOK(ecode3)) {
29401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29402 }
29403 arg3 = static_cast< int >(val3);
29404 }
29405 {
29406 PyThreadState* __tstate = wxPyBeginAllowThreads();
29407 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29408 wxPyEndAllowThreads(__tstate);
29409 if (PyErr_Occurred()) SWIG_fail;
29410 }
29411 {
29412 resultobj = wxPyMake_wxObject(result, 0);
29413 }
29414 return resultobj;
29415 fail:
29416 return NULL;
29417 }
29418
29419
29420 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29421 PyObject *resultobj = 0;
29422 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29423 wxListItem *arg2 = 0 ;
29424 bool result;
29425 void *argp1 = 0 ;
29426 int res1 = 0 ;
29427 void *argp2 = 0 ;
29428 int res2 = 0 ;
29429 PyObject * obj0 = 0 ;
29430 PyObject * obj1 = 0 ;
29431 char * kwnames[] = {
29432 (char *) "self",(char *) "info", NULL
29433 };
29434
29435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29437 if (!SWIG_IsOK(res1)) {
29438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29439 }
29440 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29442 if (!SWIG_IsOK(res2)) {
29443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29444 }
29445 if (!argp2) {
29446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29447 }
29448 arg2 = reinterpret_cast< wxListItem * >(argp2);
29449 {
29450 PyThreadState* __tstate = wxPyBeginAllowThreads();
29451 result = (bool)(arg1)->SetItem(*arg2);
29452 wxPyEndAllowThreads(__tstate);
29453 if (PyErr_Occurred()) SWIG_fail;
29454 }
29455 {
29456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29457 }
29458 return resultobj;
29459 fail:
29460 return NULL;
29461 }
29462
29463
29464 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29465 PyObject *resultobj = 0;
29466 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29467 long arg2 ;
29468 int arg3 ;
29469 wxString *arg4 = 0 ;
29470 int arg5 = (int) -1 ;
29471 long result;
29472 void *argp1 = 0 ;
29473 int res1 = 0 ;
29474 long val2 ;
29475 int ecode2 = 0 ;
29476 int val3 ;
29477 int ecode3 = 0 ;
29478 bool temp4 = false ;
29479 int val5 ;
29480 int ecode5 = 0 ;
29481 PyObject * obj0 = 0 ;
29482 PyObject * obj1 = 0 ;
29483 PyObject * obj2 = 0 ;
29484 PyObject * obj3 = 0 ;
29485 PyObject * obj4 = 0 ;
29486 char * kwnames[] = {
29487 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29488 };
29489
29490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29492 if (!SWIG_IsOK(res1)) {
29493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29494 }
29495 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29496 ecode2 = SWIG_AsVal_long(obj1, &val2);
29497 if (!SWIG_IsOK(ecode2)) {
29498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29499 }
29500 arg2 = static_cast< long >(val2);
29501 ecode3 = SWIG_AsVal_int(obj2, &val3);
29502 if (!SWIG_IsOK(ecode3)) {
29503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29504 }
29505 arg3 = static_cast< int >(val3);
29506 {
29507 arg4 = wxString_in_helper(obj3);
29508 if (arg4 == NULL) SWIG_fail;
29509 temp4 = true;
29510 }
29511 if (obj4) {
29512 ecode5 = SWIG_AsVal_int(obj4, &val5);
29513 if (!SWIG_IsOK(ecode5)) {
29514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29515 }
29516 arg5 = static_cast< int >(val5);
29517 }
29518 {
29519 PyThreadState* __tstate = wxPyBeginAllowThreads();
29520 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29521 wxPyEndAllowThreads(__tstate);
29522 if (PyErr_Occurred()) SWIG_fail;
29523 }
29524 resultobj = SWIG_From_long(static_cast< long >(result));
29525 {
29526 if (temp4)
29527 delete arg4;
29528 }
29529 return resultobj;
29530 fail:
29531 {
29532 if (temp4)
29533 delete arg4;
29534 }
29535 return NULL;
29536 }
29537
29538
29539 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29540 PyObject *resultobj = 0;
29541 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29542 long arg2 ;
29543 long arg3 ;
29544 int result;
29545 void *argp1 = 0 ;
29546 int res1 = 0 ;
29547 long val2 ;
29548 int ecode2 = 0 ;
29549 long val3 ;
29550 int ecode3 = 0 ;
29551 PyObject * obj0 = 0 ;
29552 PyObject * obj1 = 0 ;
29553 PyObject * obj2 = 0 ;
29554 char * kwnames[] = {
29555 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29556 };
29557
29558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29560 if (!SWIG_IsOK(res1)) {
29561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29562 }
29563 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29564 ecode2 = SWIG_AsVal_long(obj1, &val2);
29565 if (!SWIG_IsOK(ecode2)) {
29566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29567 }
29568 arg2 = static_cast< long >(val2);
29569 ecode3 = SWIG_AsVal_long(obj2, &val3);
29570 if (!SWIG_IsOK(ecode3)) {
29571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29572 }
29573 arg3 = static_cast< long >(val3);
29574 {
29575 PyThreadState* __tstate = wxPyBeginAllowThreads();
29576 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29577 wxPyEndAllowThreads(__tstate);
29578 if (PyErr_Occurred()) SWIG_fail;
29579 }
29580 resultobj = SWIG_From_int(static_cast< int >(result));
29581 return resultobj;
29582 fail:
29583 return NULL;
29584 }
29585
29586
29587 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29588 PyObject *resultobj = 0;
29589 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29590 long arg2 ;
29591 long arg3 ;
29592 long arg4 ;
29593 bool result;
29594 void *argp1 = 0 ;
29595 int res1 = 0 ;
29596 long val2 ;
29597 int ecode2 = 0 ;
29598 long val3 ;
29599 int ecode3 = 0 ;
29600 long val4 ;
29601 int ecode4 = 0 ;
29602 PyObject * obj0 = 0 ;
29603 PyObject * obj1 = 0 ;
29604 PyObject * obj2 = 0 ;
29605 PyObject * obj3 = 0 ;
29606 char * kwnames[] = {
29607 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29608 };
29609
29610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29612 if (!SWIG_IsOK(res1)) {
29613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29614 }
29615 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29616 ecode2 = SWIG_AsVal_long(obj1, &val2);
29617 if (!SWIG_IsOK(ecode2)) {
29618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29619 }
29620 arg2 = static_cast< long >(val2);
29621 ecode3 = SWIG_AsVal_long(obj2, &val3);
29622 if (!SWIG_IsOK(ecode3)) {
29623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29624 }
29625 arg3 = static_cast< long >(val3);
29626 ecode4 = SWIG_AsVal_long(obj3, &val4);
29627 if (!SWIG_IsOK(ecode4)) {
29628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29629 }
29630 arg4 = static_cast< long >(val4);
29631 {
29632 PyThreadState* __tstate = wxPyBeginAllowThreads();
29633 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29634 wxPyEndAllowThreads(__tstate);
29635 if (PyErr_Occurred()) SWIG_fail;
29636 }
29637 {
29638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29639 }
29640 return resultobj;
29641 fail:
29642 return NULL;
29643 }
29644
29645
29646 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29647 PyObject *resultobj = 0;
29648 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29649 long arg2 ;
29650 int arg3 ;
29651 int arg4 = (int) -1 ;
29652 bool result;
29653 void *argp1 = 0 ;
29654 int res1 = 0 ;
29655 long val2 ;
29656 int ecode2 = 0 ;
29657 int val3 ;
29658 int ecode3 = 0 ;
29659 int val4 ;
29660 int ecode4 = 0 ;
29661 PyObject * obj0 = 0 ;
29662 PyObject * obj1 = 0 ;
29663 PyObject * obj2 = 0 ;
29664 PyObject * obj3 = 0 ;
29665 char * kwnames[] = {
29666 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29667 };
29668
29669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29671 if (!SWIG_IsOK(res1)) {
29672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29673 }
29674 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29675 ecode2 = SWIG_AsVal_long(obj1, &val2);
29676 if (!SWIG_IsOK(ecode2)) {
29677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29678 }
29679 arg2 = static_cast< long >(val2);
29680 ecode3 = SWIG_AsVal_int(obj2, &val3);
29681 if (!SWIG_IsOK(ecode3)) {
29682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29683 }
29684 arg3 = static_cast< int >(val3);
29685 if (obj3) {
29686 ecode4 = SWIG_AsVal_int(obj3, &val4);
29687 if (!SWIG_IsOK(ecode4)) {
29688 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29689 }
29690 arg4 = static_cast< int >(val4);
29691 }
29692 {
29693 PyThreadState* __tstate = wxPyBeginAllowThreads();
29694 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29695 wxPyEndAllowThreads(__tstate);
29696 if (PyErr_Occurred()) SWIG_fail;
29697 }
29698 {
29699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29700 }
29701 return resultobj;
29702 fail:
29703 return NULL;
29704 }
29705
29706
29707 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29708 PyObject *resultobj = 0;
29709 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29710 long arg2 ;
29711 long arg3 ;
29712 int arg4 ;
29713 bool result;
29714 void *argp1 = 0 ;
29715 int res1 = 0 ;
29716 long val2 ;
29717 int ecode2 = 0 ;
29718 long val3 ;
29719 int ecode3 = 0 ;
29720 int val4 ;
29721 int ecode4 = 0 ;
29722 PyObject * obj0 = 0 ;
29723 PyObject * obj1 = 0 ;
29724 PyObject * obj2 = 0 ;
29725 PyObject * obj3 = 0 ;
29726 char * kwnames[] = {
29727 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29728 };
29729
29730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29732 if (!SWIG_IsOK(res1)) {
29733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29734 }
29735 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29736 ecode2 = SWIG_AsVal_long(obj1, &val2);
29737 if (!SWIG_IsOK(ecode2)) {
29738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29739 }
29740 arg2 = static_cast< long >(val2);
29741 ecode3 = SWIG_AsVal_long(obj2, &val3);
29742 if (!SWIG_IsOK(ecode3)) {
29743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29744 }
29745 arg3 = static_cast< long >(val3);
29746 ecode4 = SWIG_AsVal_int(obj3, &val4);
29747 if (!SWIG_IsOK(ecode4)) {
29748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29749 }
29750 arg4 = static_cast< int >(val4);
29751 {
29752 PyThreadState* __tstate = wxPyBeginAllowThreads();
29753 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29754 wxPyEndAllowThreads(__tstate);
29755 if (PyErr_Occurred()) SWIG_fail;
29756 }
29757 {
29758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29759 }
29760 return resultobj;
29761 fail:
29762 return NULL;
29763 }
29764
29765
29766 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29767 PyObject *resultobj = 0;
29768 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29769 long arg2 ;
29770 wxString result;
29771 void *argp1 = 0 ;
29772 int res1 = 0 ;
29773 long val2 ;
29774 int ecode2 = 0 ;
29775 PyObject * obj0 = 0 ;
29776 PyObject * obj1 = 0 ;
29777 char * kwnames[] = {
29778 (char *) "self",(char *) "item", NULL
29779 };
29780
29781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29783 if (!SWIG_IsOK(res1)) {
29784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29785 }
29786 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29787 ecode2 = SWIG_AsVal_long(obj1, &val2);
29788 if (!SWIG_IsOK(ecode2)) {
29789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29790 }
29791 arg2 = static_cast< long >(val2);
29792 {
29793 PyThreadState* __tstate = wxPyBeginAllowThreads();
29794 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29795 wxPyEndAllowThreads(__tstate);
29796 if (PyErr_Occurred()) SWIG_fail;
29797 }
29798 {
29799 #if wxUSE_UNICODE
29800 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29801 #else
29802 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29803 #endif
29804 }
29805 return resultobj;
29806 fail:
29807 return NULL;
29808 }
29809
29810
29811 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29812 PyObject *resultobj = 0;
29813 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29814 long arg2 ;
29815 wxString *arg3 = 0 ;
29816 void *argp1 = 0 ;
29817 int res1 = 0 ;
29818 long val2 ;
29819 int ecode2 = 0 ;
29820 bool temp3 = false ;
29821 PyObject * obj0 = 0 ;
29822 PyObject * obj1 = 0 ;
29823 PyObject * obj2 = 0 ;
29824 char * kwnames[] = {
29825 (char *) "self",(char *) "item",(char *) "str", NULL
29826 };
29827
29828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29830 if (!SWIG_IsOK(res1)) {
29831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29832 }
29833 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29834 ecode2 = SWIG_AsVal_long(obj1, &val2);
29835 if (!SWIG_IsOK(ecode2)) {
29836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29837 }
29838 arg2 = static_cast< long >(val2);
29839 {
29840 arg3 = wxString_in_helper(obj2);
29841 if (arg3 == NULL) SWIG_fail;
29842 temp3 = true;
29843 }
29844 {
29845 PyThreadState* __tstate = wxPyBeginAllowThreads();
29846 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29847 wxPyEndAllowThreads(__tstate);
29848 if (PyErr_Occurred()) SWIG_fail;
29849 }
29850 resultobj = SWIG_Py_Void();
29851 {
29852 if (temp3)
29853 delete arg3;
29854 }
29855 return resultobj;
29856 fail:
29857 {
29858 if (temp3)
29859 delete arg3;
29860 }
29861 return NULL;
29862 }
29863
29864
29865 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29866 PyObject *resultobj = 0;
29867 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29868 long arg2 ;
29869 long result;
29870 void *argp1 = 0 ;
29871 int res1 = 0 ;
29872 long val2 ;
29873 int ecode2 = 0 ;
29874 PyObject * obj0 = 0 ;
29875 PyObject * obj1 = 0 ;
29876 char * kwnames[] = {
29877 (char *) "self",(char *) "item", NULL
29878 };
29879
29880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29882 if (!SWIG_IsOK(res1)) {
29883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29884 }
29885 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29886 ecode2 = SWIG_AsVal_long(obj1, &val2);
29887 if (!SWIG_IsOK(ecode2)) {
29888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29889 }
29890 arg2 = static_cast< long >(val2);
29891 {
29892 PyThreadState* __tstate = wxPyBeginAllowThreads();
29893 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29894 wxPyEndAllowThreads(__tstate);
29895 if (PyErr_Occurred()) SWIG_fail;
29896 }
29897 resultobj = SWIG_From_long(static_cast< long >(result));
29898 return resultobj;
29899 fail:
29900 return NULL;
29901 }
29902
29903
29904 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29905 PyObject *resultobj = 0;
29906 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29907 long arg2 ;
29908 long arg3 ;
29909 bool result;
29910 void *argp1 = 0 ;
29911 int res1 = 0 ;
29912 long val2 ;
29913 int ecode2 = 0 ;
29914 long val3 ;
29915 int ecode3 = 0 ;
29916 PyObject * obj0 = 0 ;
29917 PyObject * obj1 = 0 ;
29918 PyObject * obj2 = 0 ;
29919 char * kwnames[] = {
29920 (char *) "self",(char *) "item",(char *) "data", NULL
29921 };
29922
29923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29925 if (!SWIG_IsOK(res1)) {
29926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29927 }
29928 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29929 ecode2 = SWIG_AsVal_long(obj1, &val2);
29930 if (!SWIG_IsOK(ecode2)) {
29931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29932 }
29933 arg2 = static_cast< long >(val2);
29934 ecode3 = SWIG_AsVal_long(obj2, &val3);
29935 if (!SWIG_IsOK(ecode3)) {
29936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29937 }
29938 arg3 = static_cast< long >(val3);
29939 {
29940 PyThreadState* __tstate = wxPyBeginAllowThreads();
29941 result = (bool)(arg1)->SetItemData(arg2,arg3);
29942 wxPyEndAllowThreads(__tstate);
29943 if (PyErr_Occurred()) SWIG_fail;
29944 }
29945 {
29946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29947 }
29948 return resultobj;
29949 fail:
29950 return NULL;
29951 }
29952
29953
29954 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29955 PyObject *resultobj = 0;
29956 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29957 long arg2 ;
29958 wxPoint result;
29959 void *argp1 = 0 ;
29960 int res1 = 0 ;
29961 long val2 ;
29962 int ecode2 = 0 ;
29963 PyObject * obj0 = 0 ;
29964 PyObject * obj1 = 0 ;
29965 char * kwnames[] = {
29966 (char *) "self",(char *) "item", NULL
29967 };
29968
29969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29971 if (!SWIG_IsOK(res1)) {
29972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29973 }
29974 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29975 ecode2 = SWIG_AsVal_long(obj1, &val2);
29976 if (!SWIG_IsOK(ecode2)) {
29977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29978 }
29979 arg2 = static_cast< long >(val2);
29980 {
29981 PyThreadState* __tstate = wxPyBeginAllowThreads();
29982 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29983 wxPyEndAllowThreads(__tstate);
29984 if (PyErr_Occurred()) SWIG_fail;
29985 }
29986 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29987 return resultobj;
29988 fail:
29989 return NULL;
29990 }
29991
29992
29993 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29994 PyObject *resultobj = 0;
29995 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29996 long arg2 ;
29997 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29998 wxRect result;
29999 void *argp1 = 0 ;
30000 int res1 = 0 ;
30001 long val2 ;
30002 int ecode2 = 0 ;
30003 int val3 ;
30004 int ecode3 = 0 ;
30005 PyObject * obj0 = 0 ;
30006 PyObject * obj1 = 0 ;
30007 PyObject * obj2 = 0 ;
30008 char * kwnames[] = {
30009 (char *) "self",(char *) "item",(char *) "code", NULL
30010 };
30011
30012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30014 if (!SWIG_IsOK(res1)) {
30015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30016 }
30017 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30018 ecode2 = SWIG_AsVal_long(obj1, &val2);
30019 if (!SWIG_IsOK(ecode2)) {
30020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
30021 }
30022 arg2 = static_cast< long >(val2);
30023 if (obj2) {
30024 ecode3 = SWIG_AsVal_int(obj2, &val3);
30025 if (!SWIG_IsOK(ecode3)) {
30026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30027 }
30028 arg3 = static_cast< int >(val3);
30029 }
30030 {
30031 PyThreadState* __tstate = wxPyBeginAllowThreads();
30032 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30033 wxPyEndAllowThreads(__tstate);
30034 if (PyErr_Occurred()) SWIG_fail;
30035 }
30036 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30037 return resultobj;
30038 fail:
30039 return NULL;
30040 }
30041
30042
30043 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30044 PyObject *resultobj = 0;
30045 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30046 long arg2 ;
30047 wxPoint *arg3 = 0 ;
30048 bool result;
30049 void *argp1 = 0 ;
30050 int res1 = 0 ;
30051 long val2 ;
30052 int ecode2 = 0 ;
30053 wxPoint temp3 ;
30054 PyObject * obj0 = 0 ;
30055 PyObject * obj1 = 0 ;
30056 PyObject * obj2 = 0 ;
30057 char * kwnames[] = {
30058 (char *) "self",(char *) "item",(char *) "pos", NULL
30059 };
30060
30061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30063 if (!SWIG_IsOK(res1)) {
30064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30065 }
30066 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30067 ecode2 = SWIG_AsVal_long(obj1, &val2);
30068 if (!SWIG_IsOK(ecode2)) {
30069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30070 }
30071 arg2 = static_cast< long >(val2);
30072 {
30073 arg3 = &temp3;
30074 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30075 }
30076 {
30077 PyThreadState* __tstate = wxPyBeginAllowThreads();
30078 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30079 wxPyEndAllowThreads(__tstate);
30080 if (PyErr_Occurred()) SWIG_fail;
30081 }
30082 {
30083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30084 }
30085 return resultobj;
30086 fail:
30087 return NULL;
30088 }
30089
30090
30091 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30092 PyObject *resultobj = 0;
30093 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30094 int result;
30095 void *argp1 = 0 ;
30096 int res1 = 0 ;
30097 PyObject *swig_obj[1] ;
30098
30099 if (!args) SWIG_fail;
30100 swig_obj[0] = args;
30101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30102 if (!SWIG_IsOK(res1)) {
30103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30104 }
30105 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30106 {
30107 PyThreadState* __tstate = wxPyBeginAllowThreads();
30108 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30109 wxPyEndAllowThreads(__tstate);
30110 if (PyErr_Occurred()) SWIG_fail;
30111 }
30112 resultobj = SWIG_From_int(static_cast< int >(result));
30113 return resultobj;
30114 fail:
30115 return NULL;
30116 }
30117
30118
30119 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30120 PyObject *resultobj = 0;
30121 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30122 int result;
30123 void *argp1 = 0 ;
30124 int res1 = 0 ;
30125 PyObject *swig_obj[1] ;
30126
30127 if (!args) SWIG_fail;
30128 swig_obj[0] = args;
30129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30130 if (!SWIG_IsOK(res1)) {
30131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30132 }
30133 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30134 {
30135 PyThreadState* __tstate = wxPyBeginAllowThreads();
30136 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30137 wxPyEndAllowThreads(__tstate);
30138 if (PyErr_Occurred()) SWIG_fail;
30139 }
30140 resultobj = SWIG_From_int(static_cast< int >(result));
30141 return resultobj;
30142 fail:
30143 return NULL;
30144 }
30145
30146
30147 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30148 PyObject *resultobj = 0;
30149 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30150 wxSize result;
30151 void *argp1 = 0 ;
30152 int res1 = 0 ;
30153 PyObject *swig_obj[1] ;
30154
30155 if (!args) SWIG_fail;
30156 swig_obj[0] = args;
30157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30158 if (!SWIG_IsOK(res1)) {
30159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30160 }
30161 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30162 {
30163 PyThreadState* __tstate = wxPyBeginAllowThreads();
30164 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30165 wxPyEndAllowThreads(__tstate);
30166 if (PyErr_Occurred()) SWIG_fail;
30167 }
30168 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30169 return resultobj;
30170 fail:
30171 return NULL;
30172 }
30173
30174
30175 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30176 PyObject *resultobj = 0;
30177 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30178 int arg2 ;
30179 bool arg3 = (bool) false ;
30180 void *argp1 = 0 ;
30181 int res1 = 0 ;
30182 int val2 ;
30183 int ecode2 = 0 ;
30184 bool val3 ;
30185 int ecode3 = 0 ;
30186 PyObject * obj0 = 0 ;
30187 PyObject * obj1 = 0 ;
30188 PyObject * obj2 = 0 ;
30189 char * kwnames[] = {
30190 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30191 };
30192
30193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30195 if (!SWIG_IsOK(res1)) {
30196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30197 }
30198 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30199 ecode2 = SWIG_AsVal_int(obj1, &val2);
30200 if (!SWIG_IsOK(ecode2)) {
30201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30202 }
30203 arg2 = static_cast< int >(val2);
30204 if (obj2) {
30205 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30206 if (!SWIG_IsOK(ecode3)) {
30207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30208 }
30209 arg3 = static_cast< bool >(val3);
30210 }
30211 {
30212 PyThreadState* __tstate = wxPyBeginAllowThreads();
30213 (arg1)->SetItemSpacing(arg2,arg3);
30214 wxPyEndAllowThreads(__tstate);
30215 if (PyErr_Occurred()) SWIG_fail;
30216 }
30217 resultobj = SWIG_Py_Void();
30218 return resultobj;
30219 fail:
30220 return NULL;
30221 }
30222
30223
30224 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30225 PyObject *resultobj = 0;
30226 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30227 int result;
30228 void *argp1 = 0 ;
30229 int res1 = 0 ;
30230 PyObject *swig_obj[1] ;
30231
30232 if (!args) SWIG_fail;
30233 swig_obj[0] = args;
30234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30235 if (!SWIG_IsOK(res1)) {
30236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30237 }
30238 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30239 {
30240 PyThreadState* __tstate = wxPyBeginAllowThreads();
30241 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30242 wxPyEndAllowThreads(__tstate);
30243 if (PyErr_Occurred()) SWIG_fail;
30244 }
30245 resultobj = SWIG_From_int(static_cast< int >(result));
30246 return resultobj;
30247 fail:
30248 return NULL;
30249 }
30250
30251
30252 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30253 PyObject *resultobj = 0;
30254 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30255 wxColour result;
30256 void *argp1 = 0 ;
30257 int res1 = 0 ;
30258 PyObject *swig_obj[1] ;
30259
30260 if (!args) SWIG_fail;
30261 swig_obj[0] = args;
30262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30263 if (!SWIG_IsOK(res1)) {
30264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30265 }
30266 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30267 {
30268 PyThreadState* __tstate = wxPyBeginAllowThreads();
30269 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30270 wxPyEndAllowThreads(__tstate);
30271 if (PyErr_Occurred()) SWIG_fail;
30272 }
30273 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30274 return resultobj;
30275 fail:
30276 return NULL;
30277 }
30278
30279
30280 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30281 PyObject *resultobj = 0;
30282 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30283 wxColour *arg2 = 0 ;
30284 void *argp1 = 0 ;
30285 int res1 = 0 ;
30286 wxColour temp2 ;
30287 PyObject * obj0 = 0 ;
30288 PyObject * obj1 = 0 ;
30289 char * kwnames[] = {
30290 (char *) "self",(char *) "col", NULL
30291 };
30292
30293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30295 if (!SWIG_IsOK(res1)) {
30296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30297 }
30298 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30299 {
30300 arg2 = &temp2;
30301 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30302 }
30303 {
30304 PyThreadState* __tstate = wxPyBeginAllowThreads();
30305 (arg1)->SetTextColour((wxColour const &)*arg2);
30306 wxPyEndAllowThreads(__tstate);
30307 if (PyErr_Occurred()) SWIG_fail;
30308 }
30309 resultobj = SWIG_Py_Void();
30310 return resultobj;
30311 fail:
30312 return NULL;
30313 }
30314
30315
30316 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30317 PyObject *resultobj = 0;
30318 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30319 long result;
30320 void *argp1 = 0 ;
30321 int res1 = 0 ;
30322 PyObject *swig_obj[1] ;
30323
30324 if (!args) SWIG_fail;
30325 swig_obj[0] = args;
30326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30327 if (!SWIG_IsOK(res1)) {
30328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30329 }
30330 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30331 {
30332 PyThreadState* __tstate = wxPyBeginAllowThreads();
30333 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30334 wxPyEndAllowThreads(__tstate);
30335 if (PyErr_Occurred()) SWIG_fail;
30336 }
30337 resultobj = SWIG_From_long(static_cast< long >(result));
30338 return resultobj;
30339 fail:
30340 return NULL;
30341 }
30342
30343
30344 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30345 PyObject *resultobj = 0;
30346 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30347 long arg2 ;
30348 bool arg3 = (bool) true ;
30349 void *argp1 = 0 ;
30350 int res1 = 0 ;
30351 long val2 ;
30352 int ecode2 = 0 ;
30353 bool val3 ;
30354 int ecode3 = 0 ;
30355 PyObject * obj0 = 0 ;
30356 PyObject * obj1 = 0 ;
30357 PyObject * obj2 = 0 ;
30358 char * kwnames[] = {
30359 (char *) "self",(char *) "style",(char *) "add", NULL
30360 };
30361
30362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30364 if (!SWIG_IsOK(res1)) {
30365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30366 }
30367 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30368 ecode2 = SWIG_AsVal_long(obj1, &val2);
30369 if (!SWIG_IsOK(ecode2)) {
30370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30371 }
30372 arg2 = static_cast< long >(val2);
30373 if (obj2) {
30374 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30375 if (!SWIG_IsOK(ecode3)) {
30376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30377 }
30378 arg3 = static_cast< bool >(val3);
30379 }
30380 {
30381 PyThreadState* __tstate = wxPyBeginAllowThreads();
30382 (arg1)->SetSingleStyle(arg2,arg3);
30383 wxPyEndAllowThreads(__tstate);
30384 if (PyErr_Occurred()) SWIG_fail;
30385 }
30386 resultobj = SWIG_Py_Void();
30387 return resultobj;
30388 fail:
30389 return NULL;
30390 }
30391
30392
30393 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30394 PyObject *resultobj = 0;
30395 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30396 long arg2 ;
30397 int arg3 = (int) wxLIST_NEXT_ALL ;
30398 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30399 long result;
30400 void *argp1 = 0 ;
30401 int res1 = 0 ;
30402 long val2 ;
30403 int ecode2 = 0 ;
30404 int val3 ;
30405 int ecode3 = 0 ;
30406 int val4 ;
30407 int ecode4 = 0 ;
30408 PyObject * obj0 = 0 ;
30409 PyObject * obj1 = 0 ;
30410 PyObject * obj2 = 0 ;
30411 PyObject * obj3 = 0 ;
30412 char * kwnames[] = {
30413 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30414 };
30415
30416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30418 if (!SWIG_IsOK(res1)) {
30419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30420 }
30421 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30422 ecode2 = SWIG_AsVal_long(obj1, &val2);
30423 if (!SWIG_IsOK(ecode2)) {
30424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30425 }
30426 arg2 = static_cast< long >(val2);
30427 if (obj2) {
30428 ecode3 = SWIG_AsVal_int(obj2, &val3);
30429 if (!SWIG_IsOK(ecode3)) {
30430 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30431 }
30432 arg3 = static_cast< int >(val3);
30433 }
30434 if (obj3) {
30435 ecode4 = SWIG_AsVal_int(obj3, &val4);
30436 if (!SWIG_IsOK(ecode4)) {
30437 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30438 }
30439 arg4 = static_cast< int >(val4);
30440 }
30441 {
30442 PyThreadState* __tstate = wxPyBeginAllowThreads();
30443 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30444 wxPyEndAllowThreads(__tstate);
30445 if (PyErr_Occurred()) SWIG_fail;
30446 }
30447 resultobj = SWIG_From_long(static_cast< long >(result));
30448 return resultobj;
30449 fail:
30450 return NULL;
30451 }
30452
30453
30454 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30455 PyObject *resultobj = 0;
30456 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30457 int arg2 ;
30458 wxImageList *result = 0 ;
30459 void *argp1 = 0 ;
30460 int res1 = 0 ;
30461 int val2 ;
30462 int ecode2 = 0 ;
30463 PyObject * obj0 = 0 ;
30464 PyObject * obj1 = 0 ;
30465 char * kwnames[] = {
30466 (char *) "self",(char *) "which", NULL
30467 };
30468
30469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30471 if (!SWIG_IsOK(res1)) {
30472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30473 }
30474 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30475 ecode2 = SWIG_AsVal_int(obj1, &val2);
30476 if (!SWIG_IsOK(ecode2)) {
30477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30478 }
30479 arg2 = static_cast< int >(val2);
30480 {
30481 PyThreadState* __tstate = wxPyBeginAllowThreads();
30482 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30483 wxPyEndAllowThreads(__tstate);
30484 if (PyErr_Occurred()) SWIG_fail;
30485 }
30486 {
30487 resultobj = wxPyMake_wxObject(result, (bool)0);
30488 }
30489 return resultobj;
30490 fail:
30491 return NULL;
30492 }
30493
30494
30495 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30496 PyObject *resultobj = 0;
30497 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30498 wxImageList *arg2 = (wxImageList *) 0 ;
30499 int arg3 ;
30500 void *argp1 = 0 ;
30501 int res1 = 0 ;
30502 void *argp2 = 0 ;
30503 int res2 = 0 ;
30504 int val3 ;
30505 int ecode3 = 0 ;
30506 PyObject * obj0 = 0 ;
30507 PyObject * obj1 = 0 ;
30508 PyObject * obj2 = 0 ;
30509 char * kwnames[] = {
30510 (char *) "self",(char *) "imageList",(char *) "which", NULL
30511 };
30512
30513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30515 if (!SWIG_IsOK(res1)) {
30516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30517 }
30518 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30519 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30520 if (!SWIG_IsOK(res2)) {
30521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30522 }
30523 arg2 = reinterpret_cast< wxImageList * >(argp2);
30524 ecode3 = SWIG_AsVal_int(obj2, &val3);
30525 if (!SWIG_IsOK(ecode3)) {
30526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30527 }
30528 arg3 = static_cast< int >(val3);
30529 {
30530 PyThreadState* __tstate = wxPyBeginAllowThreads();
30531 (arg1)->SetImageList(arg2,arg3);
30532 wxPyEndAllowThreads(__tstate);
30533 if (PyErr_Occurred()) SWIG_fail;
30534 }
30535 resultobj = SWIG_Py_Void();
30536 return resultobj;
30537 fail:
30538 return NULL;
30539 }
30540
30541
30542 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30543 PyObject *resultobj = 0;
30544 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30545 wxImageList *arg2 = (wxImageList *) 0 ;
30546 int arg3 ;
30547 void *argp1 = 0 ;
30548 int res1 = 0 ;
30549 int res2 = 0 ;
30550 int val3 ;
30551 int ecode3 = 0 ;
30552 PyObject * obj0 = 0 ;
30553 PyObject * obj1 = 0 ;
30554 PyObject * obj2 = 0 ;
30555 char * kwnames[] = {
30556 (char *) "self",(char *) "imageList",(char *) "which", NULL
30557 };
30558
30559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30561 if (!SWIG_IsOK(res1)) {
30562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30563 }
30564 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30565 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30566 if (!SWIG_IsOK(res2)) {
30567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30568 }
30569 ecode3 = SWIG_AsVal_int(obj2, &val3);
30570 if (!SWIG_IsOK(ecode3)) {
30571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30572 }
30573 arg3 = static_cast< int >(val3);
30574 {
30575 PyThreadState* __tstate = wxPyBeginAllowThreads();
30576 (arg1)->AssignImageList(arg2,arg3);
30577 wxPyEndAllowThreads(__tstate);
30578 if (PyErr_Occurred()) SWIG_fail;
30579 }
30580 resultobj = SWIG_Py_Void();
30581 return resultobj;
30582 fail:
30583 return NULL;
30584 }
30585
30586
30587 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30588 PyObject *resultobj = 0;
30589 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30590 bool result;
30591 void *argp1 = 0 ;
30592 int res1 = 0 ;
30593 PyObject *swig_obj[1] ;
30594
30595 if (!args) SWIG_fail;
30596 swig_obj[0] = args;
30597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30598 if (!SWIG_IsOK(res1)) {
30599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30600 }
30601 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30602 {
30603 PyThreadState* __tstate = wxPyBeginAllowThreads();
30604 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30605 wxPyEndAllowThreads(__tstate);
30606 if (PyErr_Occurred()) SWIG_fail;
30607 }
30608 {
30609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30610 }
30611 return resultobj;
30612 fail:
30613 return NULL;
30614 }
30615
30616
30617 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30618 PyObject *resultobj = 0;
30619 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30620 bool result;
30621 void *argp1 = 0 ;
30622 int res1 = 0 ;
30623 PyObject *swig_obj[1] ;
30624
30625 if (!args) SWIG_fail;
30626 swig_obj[0] = args;
30627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30628 if (!SWIG_IsOK(res1)) {
30629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30630 }
30631 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30632 {
30633 PyThreadState* __tstate = wxPyBeginAllowThreads();
30634 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30635 wxPyEndAllowThreads(__tstate);
30636 if (PyErr_Occurred()) SWIG_fail;
30637 }
30638 {
30639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30640 }
30641 return resultobj;
30642 fail:
30643 return NULL;
30644 }
30645
30646
30647 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30648 PyObject *resultobj = 0;
30649 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30650 long arg2 ;
30651 void *argp1 = 0 ;
30652 int res1 = 0 ;
30653 long val2 ;
30654 int ecode2 = 0 ;
30655 PyObject * obj0 = 0 ;
30656 PyObject * obj1 = 0 ;
30657 char * kwnames[] = {
30658 (char *) "self",(char *) "item", NULL
30659 };
30660
30661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30663 if (!SWIG_IsOK(res1)) {
30664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30665 }
30666 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30667 ecode2 = SWIG_AsVal_long(obj1, &val2);
30668 if (!SWIG_IsOK(ecode2)) {
30669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30670 }
30671 arg2 = static_cast< long >(val2);
30672 {
30673 PyThreadState* __tstate = wxPyBeginAllowThreads();
30674 (arg1)->RefreshItem(arg2);
30675 wxPyEndAllowThreads(__tstate);
30676 if (PyErr_Occurred()) SWIG_fail;
30677 }
30678 resultobj = SWIG_Py_Void();
30679 return resultobj;
30680 fail:
30681 return NULL;
30682 }
30683
30684
30685 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30686 PyObject *resultobj = 0;
30687 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30688 long arg2 ;
30689 long arg3 ;
30690 void *argp1 = 0 ;
30691 int res1 = 0 ;
30692 long val2 ;
30693 int ecode2 = 0 ;
30694 long val3 ;
30695 int ecode3 = 0 ;
30696 PyObject * obj0 = 0 ;
30697 PyObject * obj1 = 0 ;
30698 PyObject * obj2 = 0 ;
30699 char * kwnames[] = {
30700 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30701 };
30702
30703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30705 if (!SWIG_IsOK(res1)) {
30706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30707 }
30708 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30709 ecode2 = SWIG_AsVal_long(obj1, &val2);
30710 if (!SWIG_IsOK(ecode2)) {
30711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30712 }
30713 arg2 = static_cast< long >(val2);
30714 ecode3 = SWIG_AsVal_long(obj2, &val3);
30715 if (!SWIG_IsOK(ecode3)) {
30716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30717 }
30718 arg3 = static_cast< long >(val3);
30719 {
30720 PyThreadState* __tstate = wxPyBeginAllowThreads();
30721 (arg1)->RefreshItems(arg2,arg3);
30722 wxPyEndAllowThreads(__tstate);
30723 if (PyErr_Occurred()) SWIG_fail;
30724 }
30725 resultobj = SWIG_Py_Void();
30726 return resultobj;
30727 fail:
30728 return NULL;
30729 }
30730
30731
30732 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30733 PyObject *resultobj = 0;
30734 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30735 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30736 bool result;
30737 void *argp1 = 0 ;
30738 int res1 = 0 ;
30739 int val2 ;
30740 int ecode2 = 0 ;
30741 PyObject * obj0 = 0 ;
30742 PyObject * obj1 = 0 ;
30743 char * kwnames[] = {
30744 (char *) "self",(char *) "flag", NULL
30745 };
30746
30747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30749 if (!SWIG_IsOK(res1)) {
30750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30751 }
30752 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30753 if (obj1) {
30754 ecode2 = SWIG_AsVal_int(obj1, &val2);
30755 if (!SWIG_IsOK(ecode2)) {
30756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30757 }
30758 arg2 = static_cast< int >(val2);
30759 }
30760 {
30761 PyThreadState* __tstate = wxPyBeginAllowThreads();
30762 result = (bool)(arg1)->Arrange(arg2);
30763 wxPyEndAllowThreads(__tstate);
30764 if (PyErr_Occurred()) SWIG_fail;
30765 }
30766 {
30767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30768 }
30769 return resultobj;
30770 fail:
30771 return NULL;
30772 }
30773
30774
30775 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30776 PyObject *resultobj = 0;
30777 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30778 long arg2 ;
30779 bool result;
30780 void *argp1 = 0 ;
30781 int res1 = 0 ;
30782 long val2 ;
30783 int ecode2 = 0 ;
30784 PyObject * obj0 = 0 ;
30785 PyObject * obj1 = 0 ;
30786 char * kwnames[] = {
30787 (char *) "self",(char *) "item", NULL
30788 };
30789
30790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30792 if (!SWIG_IsOK(res1)) {
30793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30794 }
30795 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30796 ecode2 = SWIG_AsVal_long(obj1, &val2);
30797 if (!SWIG_IsOK(ecode2)) {
30798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30799 }
30800 arg2 = static_cast< long >(val2);
30801 {
30802 PyThreadState* __tstate = wxPyBeginAllowThreads();
30803 result = (bool)(arg1)->DeleteItem(arg2);
30804 wxPyEndAllowThreads(__tstate);
30805 if (PyErr_Occurred()) SWIG_fail;
30806 }
30807 {
30808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30809 }
30810 return resultobj;
30811 fail:
30812 return NULL;
30813 }
30814
30815
30816 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30817 PyObject *resultobj = 0;
30818 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30819 bool result;
30820 void *argp1 = 0 ;
30821 int res1 = 0 ;
30822 PyObject *swig_obj[1] ;
30823
30824 if (!args) SWIG_fail;
30825 swig_obj[0] = args;
30826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30827 if (!SWIG_IsOK(res1)) {
30828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30829 }
30830 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30831 {
30832 PyThreadState* __tstate = wxPyBeginAllowThreads();
30833 result = (bool)(arg1)->DeleteAllItems();
30834 wxPyEndAllowThreads(__tstate);
30835 if (PyErr_Occurred()) SWIG_fail;
30836 }
30837 {
30838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30839 }
30840 return resultobj;
30841 fail:
30842 return NULL;
30843 }
30844
30845
30846 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30847 PyObject *resultobj = 0;
30848 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30849 int arg2 ;
30850 bool result;
30851 void *argp1 = 0 ;
30852 int res1 = 0 ;
30853 int val2 ;
30854 int ecode2 = 0 ;
30855 PyObject * obj0 = 0 ;
30856 PyObject * obj1 = 0 ;
30857 char * kwnames[] = {
30858 (char *) "self",(char *) "col", NULL
30859 };
30860
30861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30863 if (!SWIG_IsOK(res1)) {
30864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30865 }
30866 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30867 ecode2 = SWIG_AsVal_int(obj1, &val2);
30868 if (!SWIG_IsOK(ecode2)) {
30869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30870 }
30871 arg2 = static_cast< int >(val2);
30872 {
30873 PyThreadState* __tstate = wxPyBeginAllowThreads();
30874 result = (bool)(arg1)->DeleteColumn(arg2);
30875 wxPyEndAllowThreads(__tstate);
30876 if (PyErr_Occurred()) SWIG_fail;
30877 }
30878 {
30879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30880 }
30881 return resultobj;
30882 fail:
30883 return NULL;
30884 }
30885
30886
30887 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30888 PyObject *resultobj = 0;
30889 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30890 bool result;
30891 void *argp1 = 0 ;
30892 int res1 = 0 ;
30893 PyObject *swig_obj[1] ;
30894
30895 if (!args) SWIG_fail;
30896 swig_obj[0] = args;
30897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30898 if (!SWIG_IsOK(res1)) {
30899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30900 }
30901 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30902 {
30903 PyThreadState* __tstate = wxPyBeginAllowThreads();
30904 result = (bool)(arg1)->DeleteAllColumns();
30905 wxPyEndAllowThreads(__tstate);
30906 if (PyErr_Occurred()) SWIG_fail;
30907 }
30908 {
30909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30910 }
30911 return resultobj;
30912 fail:
30913 return NULL;
30914 }
30915
30916
30917 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30918 PyObject *resultobj = 0;
30919 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30920 void *argp1 = 0 ;
30921 int res1 = 0 ;
30922 PyObject *swig_obj[1] ;
30923
30924 if (!args) SWIG_fail;
30925 swig_obj[0] = args;
30926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30927 if (!SWIG_IsOK(res1)) {
30928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30929 }
30930 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30931 {
30932 PyThreadState* __tstate = wxPyBeginAllowThreads();
30933 (arg1)->ClearAll();
30934 wxPyEndAllowThreads(__tstate);
30935 if (PyErr_Occurred()) SWIG_fail;
30936 }
30937 resultobj = SWIG_Py_Void();
30938 return resultobj;
30939 fail:
30940 return NULL;
30941 }
30942
30943
30944 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30945 PyObject *resultobj = 0;
30946 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30947 long arg2 ;
30948 void *argp1 = 0 ;
30949 int res1 = 0 ;
30950 long val2 ;
30951 int ecode2 = 0 ;
30952 PyObject * obj0 = 0 ;
30953 PyObject * obj1 = 0 ;
30954 char * kwnames[] = {
30955 (char *) "self",(char *) "item", NULL
30956 };
30957
30958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30960 if (!SWIG_IsOK(res1)) {
30961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30962 }
30963 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30964 ecode2 = SWIG_AsVal_long(obj1, &val2);
30965 if (!SWIG_IsOK(ecode2)) {
30966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30967 }
30968 arg2 = static_cast< long >(val2);
30969 {
30970 PyThreadState* __tstate = wxPyBeginAllowThreads();
30971 (arg1)->EditLabel(arg2);
30972 wxPyEndAllowThreads(__tstate);
30973 if (PyErr_Occurred()) SWIG_fail;
30974 }
30975 resultobj = SWIG_Py_Void();
30976 return resultobj;
30977 fail:
30978 return NULL;
30979 }
30980
30981
30982 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30983 PyObject *resultobj = 0;
30984 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30985 long arg2 ;
30986 bool result;
30987 void *argp1 = 0 ;
30988 int res1 = 0 ;
30989 long val2 ;
30990 int ecode2 = 0 ;
30991 PyObject * obj0 = 0 ;
30992 PyObject * obj1 = 0 ;
30993 char * kwnames[] = {
30994 (char *) "self",(char *) "item", NULL
30995 };
30996
30997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30999 if (!SWIG_IsOK(res1)) {
31000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31001 }
31002 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31003 ecode2 = SWIG_AsVal_long(obj1, &val2);
31004 if (!SWIG_IsOK(ecode2)) {
31005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31006 }
31007 arg2 = static_cast< long >(val2);
31008 {
31009 PyThreadState* __tstate = wxPyBeginAllowThreads();
31010 result = (bool)(arg1)->EnsureVisible(arg2);
31011 wxPyEndAllowThreads(__tstate);
31012 if (PyErr_Occurred()) SWIG_fail;
31013 }
31014 {
31015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31016 }
31017 return resultobj;
31018 fail:
31019 return NULL;
31020 }
31021
31022
31023 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31024 PyObject *resultobj = 0;
31025 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31026 long arg2 ;
31027 wxString *arg3 = 0 ;
31028 bool arg4 = (bool) false ;
31029 long result;
31030 void *argp1 = 0 ;
31031 int res1 = 0 ;
31032 long val2 ;
31033 int ecode2 = 0 ;
31034 bool temp3 = false ;
31035 bool val4 ;
31036 int ecode4 = 0 ;
31037 PyObject * obj0 = 0 ;
31038 PyObject * obj1 = 0 ;
31039 PyObject * obj2 = 0 ;
31040 PyObject * obj3 = 0 ;
31041 char * kwnames[] = {
31042 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31043 };
31044
31045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31047 if (!SWIG_IsOK(res1)) {
31048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31049 }
31050 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31051 ecode2 = SWIG_AsVal_long(obj1, &val2);
31052 if (!SWIG_IsOK(ecode2)) {
31053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31054 }
31055 arg2 = static_cast< long >(val2);
31056 {
31057 arg3 = wxString_in_helper(obj2);
31058 if (arg3 == NULL) SWIG_fail;
31059 temp3 = true;
31060 }
31061 if (obj3) {
31062 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31063 if (!SWIG_IsOK(ecode4)) {
31064 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31065 }
31066 arg4 = static_cast< bool >(val4);
31067 }
31068 {
31069 PyThreadState* __tstate = wxPyBeginAllowThreads();
31070 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31071 wxPyEndAllowThreads(__tstate);
31072 if (PyErr_Occurred()) SWIG_fail;
31073 }
31074 resultobj = SWIG_From_long(static_cast< long >(result));
31075 {
31076 if (temp3)
31077 delete arg3;
31078 }
31079 return resultobj;
31080 fail:
31081 {
31082 if (temp3)
31083 delete arg3;
31084 }
31085 return NULL;
31086 }
31087
31088
31089 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31090 PyObject *resultobj = 0;
31091 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31092 long arg2 ;
31093 long arg3 ;
31094 long result;
31095 void *argp1 = 0 ;
31096 int res1 = 0 ;
31097 long val2 ;
31098 int ecode2 = 0 ;
31099 long val3 ;
31100 int ecode3 = 0 ;
31101 PyObject * obj0 = 0 ;
31102 PyObject * obj1 = 0 ;
31103 PyObject * obj2 = 0 ;
31104 char * kwnames[] = {
31105 (char *) "self",(char *) "start",(char *) "data", NULL
31106 };
31107
31108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31110 if (!SWIG_IsOK(res1)) {
31111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31112 }
31113 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31114 ecode2 = SWIG_AsVal_long(obj1, &val2);
31115 if (!SWIG_IsOK(ecode2)) {
31116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31117 }
31118 arg2 = static_cast< long >(val2);
31119 ecode3 = SWIG_AsVal_long(obj2, &val3);
31120 if (!SWIG_IsOK(ecode3)) {
31121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31122 }
31123 arg3 = static_cast< long >(val3);
31124 {
31125 PyThreadState* __tstate = wxPyBeginAllowThreads();
31126 result = (long)(arg1)->FindItem(arg2,arg3);
31127 wxPyEndAllowThreads(__tstate);
31128 if (PyErr_Occurred()) SWIG_fail;
31129 }
31130 resultobj = SWIG_From_long(static_cast< long >(result));
31131 return resultobj;
31132 fail:
31133 return NULL;
31134 }
31135
31136
31137 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31138 PyObject *resultobj = 0;
31139 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31140 long arg2 ;
31141 wxPoint *arg3 = 0 ;
31142 int arg4 ;
31143 long result;
31144 void *argp1 = 0 ;
31145 int res1 = 0 ;
31146 long val2 ;
31147 int ecode2 = 0 ;
31148 wxPoint temp3 ;
31149 int val4 ;
31150 int ecode4 = 0 ;
31151 PyObject * obj0 = 0 ;
31152 PyObject * obj1 = 0 ;
31153 PyObject * obj2 = 0 ;
31154 PyObject * obj3 = 0 ;
31155 char * kwnames[] = {
31156 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31157 };
31158
31159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31161 if (!SWIG_IsOK(res1)) {
31162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31163 }
31164 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31165 ecode2 = SWIG_AsVal_long(obj1, &val2);
31166 if (!SWIG_IsOK(ecode2)) {
31167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31168 }
31169 arg2 = static_cast< long >(val2);
31170 {
31171 arg3 = &temp3;
31172 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31173 }
31174 ecode4 = SWIG_AsVal_int(obj3, &val4);
31175 if (!SWIG_IsOK(ecode4)) {
31176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31177 }
31178 arg4 = static_cast< int >(val4);
31179 {
31180 PyThreadState* __tstate = wxPyBeginAllowThreads();
31181 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31182 wxPyEndAllowThreads(__tstate);
31183 if (PyErr_Occurred()) SWIG_fail;
31184 }
31185 resultobj = SWIG_From_long(static_cast< long >(result));
31186 return resultobj;
31187 fail:
31188 return NULL;
31189 }
31190
31191
31192 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31193 PyObject *resultobj = 0;
31194 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31195 wxPoint *arg2 = 0 ;
31196 int *arg3 = 0 ;
31197 long result;
31198 void *argp1 = 0 ;
31199 int res1 = 0 ;
31200 wxPoint temp2 ;
31201 int temp3 ;
31202 int res3 = SWIG_TMPOBJ ;
31203 PyObject * obj0 = 0 ;
31204 PyObject * obj1 = 0 ;
31205 char * kwnames[] = {
31206 (char *) "self",(char *) "point", NULL
31207 };
31208
31209 arg3 = &temp3;
31210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31212 if (!SWIG_IsOK(res1)) {
31213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31214 }
31215 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31216 {
31217 arg2 = &temp2;
31218 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31219 }
31220 {
31221 PyThreadState* __tstate = wxPyBeginAllowThreads();
31222 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31223 wxPyEndAllowThreads(__tstate);
31224 if (PyErr_Occurred()) SWIG_fail;
31225 }
31226 resultobj = SWIG_From_long(static_cast< long >(result));
31227 if (SWIG_IsTmpObj(res3)) {
31228 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31229 } else {
31230 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31231 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31232 }
31233 return resultobj;
31234 fail:
31235 return NULL;
31236 }
31237
31238
31239 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31240 PyObject *resultobj = 0;
31241 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31242 wxPoint *arg2 = 0 ;
31243 int *arg3 = 0 ;
31244 long *arg4 = (long *) 0 ;
31245 long result;
31246 void *argp1 = 0 ;
31247 int res1 = 0 ;
31248 wxPoint temp2 ;
31249 int temp3 ;
31250 int res3 = SWIG_TMPOBJ ;
31251 long temp4 ;
31252 int res4 = SWIG_TMPOBJ ;
31253 PyObject * obj0 = 0 ;
31254 PyObject * obj1 = 0 ;
31255 char * kwnames[] = {
31256 (char *) "self",(char *) "point", NULL
31257 };
31258
31259 arg3 = &temp3;
31260 arg4 = &temp4;
31261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31263 if (!SWIG_IsOK(res1)) {
31264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31265 }
31266 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31267 {
31268 arg2 = &temp2;
31269 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31270 }
31271 {
31272 PyThreadState* __tstate = wxPyBeginAllowThreads();
31273 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31274 wxPyEndAllowThreads(__tstate);
31275 if (PyErr_Occurred()) SWIG_fail;
31276 }
31277 resultobj = SWIG_From_long(static_cast< long >(result));
31278 if (SWIG_IsTmpObj(res3)) {
31279 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31280 } else {
31281 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31282 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31283 }
31284 if (SWIG_IsTmpObj(res4)) {
31285 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31286 } else {
31287 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31288 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31289 }
31290 return resultobj;
31291 fail:
31292 return NULL;
31293 }
31294
31295
31296 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31297 PyObject *resultobj = 0;
31298 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31299 wxListItem *arg2 = 0 ;
31300 long result;
31301 void *argp1 = 0 ;
31302 int res1 = 0 ;
31303 void *argp2 = 0 ;
31304 int res2 = 0 ;
31305 PyObject * obj0 = 0 ;
31306 PyObject * obj1 = 0 ;
31307 char * kwnames[] = {
31308 (char *) "self",(char *) "info", NULL
31309 };
31310
31311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31313 if (!SWIG_IsOK(res1)) {
31314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31315 }
31316 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31317 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31318 if (!SWIG_IsOK(res2)) {
31319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31320 }
31321 if (!argp2) {
31322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31323 }
31324 arg2 = reinterpret_cast< wxListItem * >(argp2);
31325 {
31326 PyThreadState* __tstate = wxPyBeginAllowThreads();
31327 result = (long)(arg1)->InsertItem(*arg2);
31328 wxPyEndAllowThreads(__tstate);
31329 if (PyErr_Occurred()) SWIG_fail;
31330 }
31331 resultobj = SWIG_From_long(static_cast< long >(result));
31332 return resultobj;
31333 fail:
31334 return NULL;
31335 }
31336
31337
31338 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31339 PyObject *resultobj = 0;
31340 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31341 long arg2 ;
31342 wxString *arg3 = 0 ;
31343 int arg4 = (int) -1 ;
31344 long result;
31345 void *argp1 = 0 ;
31346 int res1 = 0 ;
31347 long val2 ;
31348 int ecode2 = 0 ;
31349 bool temp3 = false ;
31350 int val4 ;
31351 int ecode4 = 0 ;
31352 PyObject * obj0 = 0 ;
31353 PyObject * obj1 = 0 ;
31354 PyObject * obj2 = 0 ;
31355 PyObject * obj3 = 0 ;
31356 char * kwnames[] = {
31357 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31358 };
31359
31360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31362 if (!SWIG_IsOK(res1)) {
31363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31364 }
31365 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31366 ecode2 = SWIG_AsVal_long(obj1, &val2);
31367 if (!SWIG_IsOK(ecode2)) {
31368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31369 }
31370 arg2 = static_cast< long >(val2);
31371 {
31372 arg3 = wxString_in_helper(obj2);
31373 if (arg3 == NULL) SWIG_fail;
31374 temp3 = true;
31375 }
31376 if (obj3) {
31377 ecode4 = SWIG_AsVal_int(obj3, &val4);
31378 if (!SWIG_IsOK(ecode4)) {
31379 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31380 }
31381 arg4 = static_cast< int >(val4);
31382 }
31383 {
31384 PyThreadState* __tstate = wxPyBeginAllowThreads();
31385 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31386 wxPyEndAllowThreads(__tstate);
31387 if (PyErr_Occurred()) SWIG_fail;
31388 }
31389 resultobj = SWIG_From_long(static_cast< long >(result));
31390 {
31391 if (temp3)
31392 delete arg3;
31393 }
31394 return resultobj;
31395 fail:
31396 {
31397 if (temp3)
31398 delete arg3;
31399 }
31400 return NULL;
31401 }
31402
31403
31404 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31405 PyObject *resultobj = 0;
31406 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31407 long arg2 ;
31408 int arg3 ;
31409 long result;
31410 void *argp1 = 0 ;
31411 int res1 = 0 ;
31412 long val2 ;
31413 int ecode2 = 0 ;
31414 int val3 ;
31415 int ecode3 = 0 ;
31416 PyObject * obj0 = 0 ;
31417 PyObject * obj1 = 0 ;
31418 PyObject * obj2 = 0 ;
31419 char * kwnames[] = {
31420 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31421 };
31422
31423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31425 if (!SWIG_IsOK(res1)) {
31426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31427 }
31428 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31429 ecode2 = SWIG_AsVal_long(obj1, &val2);
31430 if (!SWIG_IsOK(ecode2)) {
31431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31432 }
31433 arg2 = static_cast< long >(val2);
31434 ecode3 = SWIG_AsVal_int(obj2, &val3);
31435 if (!SWIG_IsOK(ecode3)) {
31436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31437 }
31438 arg3 = static_cast< int >(val3);
31439 {
31440 PyThreadState* __tstate = wxPyBeginAllowThreads();
31441 result = (long)(arg1)->InsertItem(arg2,arg3);
31442 wxPyEndAllowThreads(__tstate);
31443 if (PyErr_Occurred()) SWIG_fail;
31444 }
31445 resultobj = SWIG_From_long(static_cast< long >(result));
31446 return resultobj;
31447 fail:
31448 return NULL;
31449 }
31450
31451
31452 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31453 PyObject *resultobj = 0;
31454 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31455 long arg2 ;
31456 wxString *arg3 = 0 ;
31457 int arg4 ;
31458 long result;
31459 void *argp1 = 0 ;
31460 int res1 = 0 ;
31461 long val2 ;
31462 int ecode2 = 0 ;
31463 bool temp3 = false ;
31464 int val4 ;
31465 int ecode4 = 0 ;
31466 PyObject * obj0 = 0 ;
31467 PyObject * obj1 = 0 ;
31468 PyObject * obj2 = 0 ;
31469 PyObject * obj3 = 0 ;
31470 char * kwnames[] = {
31471 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31472 };
31473
31474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31476 if (!SWIG_IsOK(res1)) {
31477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31478 }
31479 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31480 ecode2 = SWIG_AsVal_long(obj1, &val2);
31481 if (!SWIG_IsOK(ecode2)) {
31482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31483 }
31484 arg2 = static_cast< long >(val2);
31485 {
31486 arg3 = wxString_in_helper(obj2);
31487 if (arg3 == NULL) SWIG_fail;
31488 temp3 = true;
31489 }
31490 ecode4 = SWIG_AsVal_int(obj3, &val4);
31491 if (!SWIG_IsOK(ecode4)) {
31492 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31493 }
31494 arg4 = static_cast< int >(val4);
31495 {
31496 PyThreadState* __tstate = wxPyBeginAllowThreads();
31497 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31498 wxPyEndAllowThreads(__tstate);
31499 if (PyErr_Occurred()) SWIG_fail;
31500 }
31501 resultobj = SWIG_From_long(static_cast< long >(result));
31502 {
31503 if (temp3)
31504 delete arg3;
31505 }
31506 return resultobj;
31507 fail:
31508 {
31509 if (temp3)
31510 delete arg3;
31511 }
31512 return NULL;
31513 }
31514
31515
31516 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31517 PyObject *resultobj = 0;
31518 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31519 long arg2 ;
31520 wxListItem *arg3 = 0 ;
31521 long result;
31522 void *argp1 = 0 ;
31523 int res1 = 0 ;
31524 long val2 ;
31525 int ecode2 = 0 ;
31526 void *argp3 = 0 ;
31527 int res3 = 0 ;
31528 PyObject * obj0 = 0 ;
31529 PyObject * obj1 = 0 ;
31530 PyObject * obj2 = 0 ;
31531 char * kwnames[] = {
31532 (char *) "self",(char *) "col",(char *) "info", NULL
31533 };
31534
31535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31537 if (!SWIG_IsOK(res1)) {
31538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31539 }
31540 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31541 ecode2 = SWIG_AsVal_long(obj1, &val2);
31542 if (!SWIG_IsOK(ecode2)) {
31543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31544 }
31545 arg2 = static_cast< long >(val2);
31546 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31547 if (!SWIG_IsOK(res3)) {
31548 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31549 }
31550 if (!argp3) {
31551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31552 }
31553 arg3 = reinterpret_cast< wxListItem * >(argp3);
31554 {
31555 PyThreadState* __tstate = wxPyBeginAllowThreads();
31556 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31557 wxPyEndAllowThreads(__tstate);
31558 if (PyErr_Occurred()) SWIG_fail;
31559 }
31560 resultobj = SWIG_From_long(static_cast< long >(result));
31561 return resultobj;
31562 fail:
31563 return NULL;
31564 }
31565
31566
31567 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31568 PyObject *resultobj = 0;
31569 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31570 long arg2 ;
31571 wxString *arg3 = 0 ;
31572 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31573 int arg5 = (int) -1 ;
31574 long result;
31575 void *argp1 = 0 ;
31576 int res1 = 0 ;
31577 long val2 ;
31578 int ecode2 = 0 ;
31579 bool temp3 = false ;
31580 int val4 ;
31581 int ecode4 = 0 ;
31582 int val5 ;
31583 int ecode5 = 0 ;
31584 PyObject * obj0 = 0 ;
31585 PyObject * obj1 = 0 ;
31586 PyObject * obj2 = 0 ;
31587 PyObject * obj3 = 0 ;
31588 PyObject * obj4 = 0 ;
31589 char * kwnames[] = {
31590 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31591 };
31592
31593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31595 if (!SWIG_IsOK(res1)) {
31596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31597 }
31598 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31599 ecode2 = SWIG_AsVal_long(obj1, &val2);
31600 if (!SWIG_IsOK(ecode2)) {
31601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31602 }
31603 arg2 = static_cast< long >(val2);
31604 {
31605 arg3 = wxString_in_helper(obj2);
31606 if (arg3 == NULL) SWIG_fail;
31607 temp3 = true;
31608 }
31609 if (obj3) {
31610 ecode4 = SWIG_AsVal_int(obj3, &val4);
31611 if (!SWIG_IsOK(ecode4)) {
31612 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31613 }
31614 arg4 = static_cast< int >(val4);
31615 }
31616 if (obj4) {
31617 ecode5 = SWIG_AsVal_int(obj4, &val5);
31618 if (!SWIG_IsOK(ecode5)) {
31619 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31620 }
31621 arg5 = static_cast< int >(val5);
31622 }
31623 {
31624 PyThreadState* __tstate = wxPyBeginAllowThreads();
31625 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31626 wxPyEndAllowThreads(__tstate);
31627 if (PyErr_Occurred()) SWIG_fail;
31628 }
31629 resultobj = SWIG_From_long(static_cast< long >(result));
31630 {
31631 if (temp3)
31632 delete arg3;
31633 }
31634 return resultobj;
31635 fail:
31636 {
31637 if (temp3)
31638 delete arg3;
31639 }
31640 return NULL;
31641 }
31642
31643
31644 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31645 PyObject *resultobj = 0;
31646 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31647 long arg2 ;
31648 void *argp1 = 0 ;
31649 int res1 = 0 ;
31650 long val2 ;
31651 int ecode2 = 0 ;
31652 PyObject * obj0 = 0 ;
31653 PyObject * obj1 = 0 ;
31654 char * kwnames[] = {
31655 (char *) "self",(char *) "count", NULL
31656 };
31657
31658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31660 if (!SWIG_IsOK(res1)) {
31661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31662 }
31663 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31664 ecode2 = SWIG_AsVal_long(obj1, &val2);
31665 if (!SWIG_IsOK(ecode2)) {
31666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31667 }
31668 arg2 = static_cast< long >(val2);
31669 {
31670 PyThreadState* __tstate = wxPyBeginAllowThreads();
31671 (arg1)->SetItemCount(arg2);
31672 wxPyEndAllowThreads(__tstate);
31673 if (PyErr_Occurred()) SWIG_fail;
31674 }
31675 resultobj = SWIG_Py_Void();
31676 return resultobj;
31677 fail:
31678 return NULL;
31679 }
31680
31681
31682 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31683 PyObject *resultobj = 0;
31684 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31685 int arg2 ;
31686 int arg3 ;
31687 bool result;
31688 void *argp1 = 0 ;
31689 int res1 = 0 ;
31690 int val2 ;
31691 int ecode2 = 0 ;
31692 int val3 ;
31693 int ecode3 = 0 ;
31694 PyObject * obj0 = 0 ;
31695 PyObject * obj1 = 0 ;
31696 PyObject * obj2 = 0 ;
31697 char * kwnames[] = {
31698 (char *) "self",(char *) "dx",(char *) "dy", NULL
31699 };
31700
31701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31703 if (!SWIG_IsOK(res1)) {
31704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31705 }
31706 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31707 ecode2 = SWIG_AsVal_int(obj1, &val2);
31708 if (!SWIG_IsOK(ecode2)) {
31709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31710 }
31711 arg2 = static_cast< int >(val2);
31712 ecode3 = SWIG_AsVal_int(obj2, &val3);
31713 if (!SWIG_IsOK(ecode3)) {
31714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31715 }
31716 arg3 = static_cast< int >(val3);
31717 {
31718 PyThreadState* __tstate = wxPyBeginAllowThreads();
31719 result = (bool)(arg1)->ScrollList(arg2,arg3);
31720 wxPyEndAllowThreads(__tstate);
31721 if (PyErr_Occurred()) SWIG_fail;
31722 }
31723 {
31724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31725 }
31726 return resultobj;
31727 fail:
31728 return NULL;
31729 }
31730
31731
31732 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31733 PyObject *resultobj = 0;
31734 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31735 long arg2 ;
31736 wxColour *arg3 = 0 ;
31737 void *argp1 = 0 ;
31738 int res1 = 0 ;
31739 long val2 ;
31740 int ecode2 = 0 ;
31741 wxColour temp3 ;
31742 PyObject * obj0 = 0 ;
31743 PyObject * obj1 = 0 ;
31744 PyObject * obj2 = 0 ;
31745 char * kwnames[] = {
31746 (char *) "self",(char *) "item",(char *) "col", NULL
31747 };
31748
31749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31751 if (!SWIG_IsOK(res1)) {
31752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31753 }
31754 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31755 ecode2 = SWIG_AsVal_long(obj1, &val2);
31756 if (!SWIG_IsOK(ecode2)) {
31757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31758 }
31759 arg2 = static_cast< long >(val2);
31760 {
31761 arg3 = &temp3;
31762 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31763 }
31764 {
31765 PyThreadState* __tstate = wxPyBeginAllowThreads();
31766 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31767 wxPyEndAllowThreads(__tstate);
31768 if (PyErr_Occurred()) SWIG_fail;
31769 }
31770 resultobj = SWIG_Py_Void();
31771 return resultobj;
31772 fail:
31773 return NULL;
31774 }
31775
31776
31777 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31778 PyObject *resultobj = 0;
31779 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31780 long arg2 ;
31781 wxColour result;
31782 void *argp1 = 0 ;
31783 int res1 = 0 ;
31784 long val2 ;
31785 int ecode2 = 0 ;
31786 PyObject * obj0 = 0 ;
31787 PyObject * obj1 = 0 ;
31788 char * kwnames[] = {
31789 (char *) "self",(char *) "item", NULL
31790 };
31791
31792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31794 if (!SWIG_IsOK(res1)) {
31795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31796 }
31797 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31798 ecode2 = SWIG_AsVal_long(obj1, &val2);
31799 if (!SWIG_IsOK(ecode2)) {
31800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31801 }
31802 arg2 = static_cast< long >(val2);
31803 {
31804 PyThreadState* __tstate = wxPyBeginAllowThreads();
31805 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31806 wxPyEndAllowThreads(__tstate);
31807 if (PyErr_Occurred()) SWIG_fail;
31808 }
31809 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31810 return resultobj;
31811 fail:
31812 return NULL;
31813 }
31814
31815
31816 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31817 PyObject *resultobj = 0;
31818 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31819 long arg2 ;
31820 wxColour *arg3 = 0 ;
31821 void *argp1 = 0 ;
31822 int res1 = 0 ;
31823 long val2 ;
31824 int ecode2 = 0 ;
31825 wxColour temp3 ;
31826 PyObject * obj0 = 0 ;
31827 PyObject * obj1 = 0 ;
31828 PyObject * obj2 = 0 ;
31829 char * kwnames[] = {
31830 (char *) "self",(char *) "item",(char *) "col", NULL
31831 };
31832
31833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31835 if (!SWIG_IsOK(res1)) {
31836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31837 }
31838 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31839 ecode2 = SWIG_AsVal_long(obj1, &val2);
31840 if (!SWIG_IsOK(ecode2)) {
31841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31842 }
31843 arg2 = static_cast< long >(val2);
31844 {
31845 arg3 = &temp3;
31846 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31847 }
31848 {
31849 PyThreadState* __tstate = wxPyBeginAllowThreads();
31850 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31851 wxPyEndAllowThreads(__tstate);
31852 if (PyErr_Occurred()) SWIG_fail;
31853 }
31854 resultobj = SWIG_Py_Void();
31855 return resultobj;
31856 fail:
31857 return NULL;
31858 }
31859
31860
31861 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31862 PyObject *resultobj = 0;
31863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31864 long arg2 ;
31865 wxColour result;
31866 void *argp1 = 0 ;
31867 int res1 = 0 ;
31868 long val2 ;
31869 int ecode2 = 0 ;
31870 PyObject * obj0 = 0 ;
31871 PyObject * obj1 = 0 ;
31872 char * kwnames[] = {
31873 (char *) "self",(char *) "item", NULL
31874 };
31875
31876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31878 if (!SWIG_IsOK(res1)) {
31879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31880 }
31881 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31882 ecode2 = SWIG_AsVal_long(obj1, &val2);
31883 if (!SWIG_IsOK(ecode2)) {
31884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31885 }
31886 arg2 = static_cast< long >(val2);
31887 {
31888 PyThreadState* __tstate = wxPyBeginAllowThreads();
31889 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31890 wxPyEndAllowThreads(__tstate);
31891 if (PyErr_Occurred()) SWIG_fail;
31892 }
31893 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31894 return resultobj;
31895 fail:
31896 return NULL;
31897 }
31898
31899
31900 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31901 PyObject *resultobj = 0;
31902 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31903 long arg2 ;
31904 wxFont *arg3 = 0 ;
31905 void *argp1 = 0 ;
31906 int res1 = 0 ;
31907 long val2 ;
31908 int ecode2 = 0 ;
31909 void *argp3 = 0 ;
31910 int res3 = 0 ;
31911 PyObject * obj0 = 0 ;
31912 PyObject * obj1 = 0 ;
31913 PyObject * obj2 = 0 ;
31914 char * kwnames[] = {
31915 (char *) "self",(char *) "item",(char *) "f", NULL
31916 };
31917
31918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31920 if (!SWIG_IsOK(res1)) {
31921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31922 }
31923 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31924 ecode2 = SWIG_AsVal_long(obj1, &val2);
31925 if (!SWIG_IsOK(ecode2)) {
31926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31927 }
31928 arg2 = static_cast< long >(val2);
31929 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31930 if (!SWIG_IsOK(res3)) {
31931 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31932 }
31933 if (!argp3) {
31934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31935 }
31936 arg3 = reinterpret_cast< wxFont * >(argp3);
31937 {
31938 PyThreadState* __tstate = wxPyBeginAllowThreads();
31939 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31940 wxPyEndAllowThreads(__tstate);
31941 if (PyErr_Occurred()) SWIG_fail;
31942 }
31943 resultobj = SWIG_Py_Void();
31944 return resultobj;
31945 fail:
31946 return NULL;
31947 }
31948
31949
31950 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31951 PyObject *resultobj = 0;
31952 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31953 long arg2 ;
31954 wxFont result;
31955 void *argp1 = 0 ;
31956 int res1 = 0 ;
31957 long val2 ;
31958 int ecode2 = 0 ;
31959 PyObject * obj0 = 0 ;
31960 PyObject * obj1 = 0 ;
31961 char * kwnames[] = {
31962 (char *) "self",(char *) "item", NULL
31963 };
31964
31965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31967 if (!SWIG_IsOK(res1)) {
31968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31969 }
31970 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31971 ecode2 = SWIG_AsVal_long(obj1, &val2);
31972 if (!SWIG_IsOK(ecode2)) {
31973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31974 }
31975 arg2 = static_cast< long >(val2);
31976 {
31977 PyThreadState* __tstate = wxPyBeginAllowThreads();
31978 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31979 wxPyEndAllowThreads(__tstate);
31980 if (PyErr_Occurred()) SWIG_fail;
31981 }
31982 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31983 return resultobj;
31984 fail:
31985 return NULL;
31986 }
31987
31988
31989 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31990 PyObject *resultobj = 0;
31991 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31992 PyObject *arg2 = (PyObject *) 0 ;
31993 bool result;
31994 void *argp1 = 0 ;
31995 int res1 = 0 ;
31996 PyObject * obj0 = 0 ;
31997 PyObject * obj1 = 0 ;
31998 char * kwnames[] = {
31999 (char *) "self",(char *) "func", NULL
32000 };
32001
32002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32004 if (!SWIG_IsOK(res1)) {
32005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32006 }
32007 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32008 arg2 = obj1;
32009 {
32010 PyThreadState* __tstate = wxPyBeginAllowThreads();
32011 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32012 wxPyEndAllowThreads(__tstate);
32013 if (PyErr_Occurred()) SWIG_fail;
32014 }
32015 {
32016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32017 }
32018 return resultobj;
32019 fail:
32020 return NULL;
32021 }
32022
32023
32024 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32025 PyObject *resultobj = 0;
32026 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32027 wxWindow *result = 0 ;
32028 void *argp1 = 0 ;
32029 int res1 = 0 ;
32030 PyObject *swig_obj[1] ;
32031
32032 if (!args) SWIG_fail;
32033 swig_obj[0] = args;
32034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32035 if (!SWIG_IsOK(res1)) {
32036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32037 }
32038 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32039 {
32040 PyThreadState* __tstate = wxPyBeginAllowThreads();
32041 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32042 wxPyEndAllowThreads(__tstate);
32043 if (PyErr_Occurred()) SWIG_fail;
32044 }
32045 {
32046 resultobj = wxPyMake_wxObject(result, 0);
32047 }
32048 return resultobj;
32049 fail:
32050 return NULL;
32051 }
32052
32053
32054 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32055 PyObject *resultobj = 0;
32056 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32057 SwigValueWrapper<wxVisualAttributes > result;
32058 int val1 ;
32059 int ecode1 = 0 ;
32060 PyObject * obj0 = 0 ;
32061 char * kwnames[] = {
32062 (char *) "variant", NULL
32063 };
32064
32065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32066 if (obj0) {
32067 ecode1 = SWIG_AsVal_int(obj0, &val1);
32068 if (!SWIG_IsOK(ecode1)) {
32069 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32070 }
32071 arg1 = static_cast< wxWindowVariant >(val1);
32072 }
32073 {
32074 if (!wxPyCheckForApp()) SWIG_fail;
32075 PyThreadState* __tstate = wxPyBeginAllowThreads();
32076 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32077 wxPyEndAllowThreads(__tstate);
32078 if (PyErr_Occurred()) SWIG_fail;
32079 }
32080 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32081 return resultobj;
32082 fail:
32083 return NULL;
32084 }
32085
32086
32087 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32088 PyObject *obj;
32089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32090 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32091 return SWIG_Py_Void();
32092 }
32093
32094 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32095 return SWIG_Python_InitShadowInstance(args);
32096 }
32097
32098 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32099 PyObject *resultobj = 0;
32100 wxWindow *arg1 = (wxWindow *) 0 ;
32101 int arg2 = (int) -1 ;
32102 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32103 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32104 wxSize const &arg4_defvalue = wxDefaultSize ;
32105 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32106 long arg5 = (long) wxLC_REPORT ;
32107 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32108 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32109 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32110 wxString *arg7 = (wxString *) &arg7_defvalue ;
32111 wxListView *result = 0 ;
32112 void *argp1 = 0 ;
32113 int res1 = 0 ;
32114 int val2 ;
32115 int ecode2 = 0 ;
32116 wxPoint temp3 ;
32117 wxSize temp4 ;
32118 long val5 ;
32119 int ecode5 = 0 ;
32120 void *argp6 = 0 ;
32121 int res6 = 0 ;
32122 bool temp7 = false ;
32123 PyObject * obj0 = 0 ;
32124 PyObject * obj1 = 0 ;
32125 PyObject * obj2 = 0 ;
32126 PyObject * obj3 = 0 ;
32127 PyObject * obj4 = 0 ;
32128 PyObject * obj5 = 0 ;
32129 PyObject * obj6 = 0 ;
32130 char * kwnames[] = {
32131 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32132 };
32133
32134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32136 if (!SWIG_IsOK(res1)) {
32137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32138 }
32139 arg1 = reinterpret_cast< wxWindow * >(argp1);
32140 if (obj1) {
32141 ecode2 = SWIG_AsVal_int(obj1, &val2);
32142 if (!SWIG_IsOK(ecode2)) {
32143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32144 }
32145 arg2 = static_cast< int >(val2);
32146 }
32147 if (obj2) {
32148 {
32149 arg3 = &temp3;
32150 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32151 }
32152 }
32153 if (obj3) {
32154 {
32155 arg4 = &temp4;
32156 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32157 }
32158 }
32159 if (obj4) {
32160 ecode5 = SWIG_AsVal_long(obj4, &val5);
32161 if (!SWIG_IsOK(ecode5)) {
32162 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32163 }
32164 arg5 = static_cast< long >(val5);
32165 }
32166 if (obj5) {
32167 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32168 if (!SWIG_IsOK(res6)) {
32169 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32170 }
32171 if (!argp6) {
32172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32173 }
32174 arg6 = reinterpret_cast< wxValidator * >(argp6);
32175 }
32176 if (obj6) {
32177 {
32178 arg7 = wxString_in_helper(obj6);
32179 if (arg7 == NULL) SWIG_fail;
32180 temp7 = true;
32181 }
32182 }
32183 {
32184 if (!wxPyCheckForApp()) SWIG_fail;
32185 PyThreadState* __tstate = wxPyBeginAllowThreads();
32186 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32187 wxPyEndAllowThreads(__tstate);
32188 if (PyErr_Occurred()) SWIG_fail;
32189 }
32190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32191 {
32192 if (temp7)
32193 delete arg7;
32194 }
32195 return resultobj;
32196 fail:
32197 {
32198 if (temp7)
32199 delete arg7;
32200 }
32201 return NULL;
32202 }
32203
32204
32205 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32206 PyObject *resultobj = 0;
32207 wxListView *result = 0 ;
32208
32209 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32210 {
32211 if (!wxPyCheckForApp()) SWIG_fail;
32212 PyThreadState* __tstate = wxPyBeginAllowThreads();
32213 result = (wxListView *)new wxListView();
32214 wxPyEndAllowThreads(__tstate);
32215 if (PyErr_Occurred()) SWIG_fail;
32216 }
32217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32218 return resultobj;
32219 fail:
32220 return NULL;
32221 }
32222
32223
32224 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32225 PyObject *resultobj = 0;
32226 wxListView *arg1 = (wxListView *) 0 ;
32227 wxWindow *arg2 = (wxWindow *) 0 ;
32228 int arg3 = (int) -1 ;
32229 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32230 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32231 wxSize const &arg5_defvalue = wxDefaultSize ;
32232 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32233 long arg6 = (long) wxLC_REPORT ;
32234 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32235 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32236 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32237 wxString *arg8 = (wxString *) &arg8_defvalue ;
32238 bool result;
32239 void *argp1 = 0 ;
32240 int res1 = 0 ;
32241 void *argp2 = 0 ;
32242 int res2 = 0 ;
32243 int val3 ;
32244 int ecode3 = 0 ;
32245 wxPoint temp4 ;
32246 wxSize temp5 ;
32247 long val6 ;
32248 int ecode6 = 0 ;
32249 void *argp7 = 0 ;
32250 int res7 = 0 ;
32251 bool temp8 = false ;
32252 PyObject * obj0 = 0 ;
32253 PyObject * obj1 = 0 ;
32254 PyObject * obj2 = 0 ;
32255 PyObject * obj3 = 0 ;
32256 PyObject * obj4 = 0 ;
32257 PyObject * obj5 = 0 ;
32258 PyObject * obj6 = 0 ;
32259 PyObject * obj7 = 0 ;
32260 char * kwnames[] = {
32261 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32262 };
32263
32264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32266 if (!SWIG_IsOK(res1)) {
32267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32268 }
32269 arg1 = reinterpret_cast< wxListView * >(argp1);
32270 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32271 if (!SWIG_IsOK(res2)) {
32272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32273 }
32274 arg2 = reinterpret_cast< wxWindow * >(argp2);
32275 if (obj2) {
32276 ecode3 = SWIG_AsVal_int(obj2, &val3);
32277 if (!SWIG_IsOK(ecode3)) {
32278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32279 }
32280 arg3 = static_cast< int >(val3);
32281 }
32282 if (obj3) {
32283 {
32284 arg4 = &temp4;
32285 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32286 }
32287 }
32288 if (obj4) {
32289 {
32290 arg5 = &temp5;
32291 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32292 }
32293 }
32294 if (obj5) {
32295 ecode6 = SWIG_AsVal_long(obj5, &val6);
32296 if (!SWIG_IsOK(ecode6)) {
32297 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32298 }
32299 arg6 = static_cast< long >(val6);
32300 }
32301 if (obj6) {
32302 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32303 if (!SWIG_IsOK(res7)) {
32304 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32305 }
32306 if (!argp7) {
32307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32308 }
32309 arg7 = reinterpret_cast< wxValidator * >(argp7);
32310 }
32311 if (obj7) {
32312 {
32313 arg8 = wxString_in_helper(obj7);
32314 if (arg8 == NULL) SWIG_fail;
32315 temp8 = true;
32316 }
32317 }
32318 {
32319 PyThreadState* __tstate = wxPyBeginAllowThreads();
32320 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32321 wxPyEndAllowThreads(__tstate);
32322 if (PyErr_Occurred()) SWIG_fail;
32323 }
32324 {
32325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32326 }
32327 {
32328 if (temp8)
32329 delete arg8;
32330 }
32331 return resultobj;
32332 fail:
32333 {
32334 if (temp8)
32335 delete arg8;
32336 }
32337 return NULL;
32338 }
32339
32340
32341 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32342 PyObject *resultobj = 0;
32343 wxListView *arg1 = (wxListView *) 0 ;
32344 long arg2 ;
32345 bool arg3 = (bool) true ;
32346 void *argp1 = 0 ;
32347 int res1 = 0 ;
32348 long val2 ;
32349 int ecode2 = 0 ;
32350 bool val3 ;
32351 int ecode3 = 0 ;
32352 PyObject * obj0 = 0 ;
32353 PyObject * obj1 = 0 ;
32354 PyObject * obj2 = 0 ;
32355 char * kwnames[] = {
32356 (char *) "self",(char *) "n",(char *) "on", NULL
32357 };
32358
32359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32361 if (!SWIG_IsOK(res1)) {
32362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32363 }
32364 arg1 = reinterpret_cast< wxListView * >(argp1);
32365 ecode2 = SWIG_AsVal_long(obj1, &val2);
32366 if (!SWIG_IsOK(ecode2)) {
32367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32368 }
32369 arg2 = static_cast< long >(val2);
32370 if (obj2) {
32371 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32372 if (!SWIG_IsOK(ecode3)) {
32373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32374 }
32375 arg3 = static_cast< bool >(val3);
32376 }
32377 {
32378 PyThreadState* __tstate = wxPyBeginAllowThreads();
32379 (arg1)->Select(arg2,arg3);
32380 wxPyEndAllowThreads(__tstate);
32381 if (PyErr_Occurred()) SWIG_fail;
32382 }
32383 resultobj = SWIG_Py_Void();
32384 return resultobj;
32385 fail:
32386 return NULL;
32387 }
32388
32389
32390 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32391 PyObject *resultobj = 0;
32392 wxListView *arg1 = (wxListView *) 0 ;
32393 long arg2 ;
32394 void *argp1 = 0 ;
32395 int res1 = 0 ;
32396 long val2 ;
32397 int ecode2 = 0 ;
32398 PyObject * obj0 = 0 ;
32399 PyObject * obj1 = 0 ;
32400 char * kwnames[] = {
32401 (char *) "self",(char *) "index", NULL
32402 };
32403
32404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32406 if (!SWIG_IsOK(res1)) {
32407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32408 }
32409 arg1 = reinterpret_cast< wxListView * >(argp1);
32410 ecode2 = SWIG_AsVal_long(obj1, &val2);
32411 if (!SWIG_IsOK(ecode2)) {
32412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32413 }
32414 arg2 = static_cast< long >(val2);
32415 {
32416 PyThreadState* __tstate = wxPyBeginAllowThreads();
32417 (arg1)->Focus(arg2);
32418 wxPyEndAllowThreads(__tstate);
32419 if (PyErr_Occurred()) SWIG_fail;
32420 }
32421 resultobj = SWIG_Py_Void();
32422 return resultobj;
32423 fail:
32424 return NULL;
32425 }
32426
32427
32428 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32429 PyObject *resultobj = 0;
32430 wxListView *arg1 = (wxListView *) 0 ;
32431 long result;
32432 void *argp1 = 0 ;
32433 int res1 = 0 ;
32434 PyObject *swig_obj[1] ;
32435
32436 if (!args) SWIG_fail;
32437 swig_obj[0] = args;
32438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32439 if (!SWIG_IsOK(res1)) {
32440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32441 }
32442 arg1 = reinterpret_cast< wxListView * >(argp1);
32443 {
32444 PyThreadState* __tstate = wxPyBeginAllowThreads();
32445 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32446 wxPyEndAllowThreads(__tstate);
32447 if (PyErr_Occurred()) SWIG_fail;
32448 }
32449 resultobj = SWIG_From_long(static_cast< long >(result));
32450 return resultobj;
32451 fail:
32452 return NULL;
32453 }
32454
32455
32456 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32457 PyObject *resultobj = 0;
32458 wxListView *arg1 = (wxListView *) 0 ;
32459 long arg2 ;
32460 long result;
32461 void *argp1 = 0 ;
32462 int res1 = 0 ;
32463 long val2 ;
32464 int ecode2 = 0 ;
32465 PyObject * obj0 = 0 ;
32466 PyObject * obj1 = 0 ;
32467 char * kwnames[] = {
32468 (char *) "self",(char *) "item", NULL
32469 };
32470
32471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32473 if (!SWIG_IsOK(res1)) {
32474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32475 }
32476 arg1 = reinterpret_cast< wxListView * >(argp1);
32477 ecode2 = SWIG_AsVal_long(obj1, &val2);
32478 if (!SWIG_IsOK(ecode2)) {
32479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32480 }
32481 arg2 = static_cast< long >(val2);
32482 {
32483 PyThreadState* __tstate = wxPyBeginAllowThreads();
32484 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32485 wxPyEndAllowThreads(__tstate);
32486 if (PyErr_Occurred()) SWIG_fail;
32487 }
32488 resultobj = SWIG_From_long(static_cast< long >(result));
32489 return resultobj;
32490 fail:
32491 return NULL;
32492 }
32493
32494
32495 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32496 PyObject *resultobj = 0;
32497 wxListView *arg1 = (wxListView *) 0 ;
32498 long result;
32499 void *argp1 = 0 ;
32500 int res1 = 0 ;
32501 PyObject *swig_obj[1] ;
32502
32503 if (!args) SWIG_fail;
32504 swig_obj[0] = args;
32505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32506 if (!SWIG_IsOK(res1)) {
32507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32508 }
32509 arg1 = reinterpret_cast< wxListView * >(argp1);
32510 {
32511 PyThreadState* __tstate = wxPyBeginAllowThreads();
32512 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32513 wxPyEndAllowThreads(__tstate);
32514 if (PyErr_Occurred()) SWIG_fail;
32515 }
32516 resultobj = SWIG_From_long(static_cast< long >(result));
32517 return resultobj;
32518 fail:
32519 return NULL;
32520 }
32521
32522
32523 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32524 PyObject *resultobj = 0;
32525 wxListView *arg1 = (wxListView *) 0 ;
32526 long arg2 ;
32527 bool result;
32528 void *argp1 = 0 ;
32529 int res1 = 0 ;
32530 long val2 ;
32531 int ecode2 = 0 ;
32532 PyObject * obj0 = 0 ;
32533 PyObject * obj1 = 0 ;
32534 char * kwnames[] = {
32535 (char *) "self",(char *) "index", NULL
32536 };
32537
32538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32540 if (!SWIG_IsOK(res1)) {
32541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32542 }
32543 arg1 = reinterpret_cast< wxListView * >(argp1);
32544 ecode2 = SWIG_AsVal_long(obj1, &val2);
32545 if (!SWIG_IsOK(ecode2)) {
32546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32547 }
32548 arg2 = static_cast< long >(val2);
32549 {
32550 PyThreadState* __tstate = wxPyBeginAllowThreads();
32551 result = (bool)(arg1)->IsSelected(arg2);
32552 wxPyEndAllowThreads(__tstate);
32553 if (PyErr_Occurred()) SWIG_fail;
32554 }
32555 {
32556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32557 }
32558 return resultobj;
32559 fail:
32560 return NULL;
32561 }
32562
32563
32564 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32565 PyObject *resultobj = 0;
32566 wxListView *arg1 = (wxListView *) 0 ;
32567 int arg2 ;
32568 int arg3 ;
32569 void *argp1 = 0 ;
32570 int res1 = 0 ;
32571 int val2 ;
32572 int ecode2 = 0 ;
32573 int val3 ;
32574 int ecode3 = 0 ;
32575 PyObject * obj0 = 0 ;
32576 PyObject * obj1 = 0 ;
32577 PyObject * obj2 = 0 ;
32578 char * kwnames[] = {
32579 (char *) "self",(char *) "col",(char *) "image", NULL
32580 };
32581
32582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32584 if (!SWIG_IsOK(res1)) {
32585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32586 }
32587 arg1 = reinterpret_cast< wxListView * >(argp1);
32588 ecode2 = SWIG_AsVal_int(obj1, &val2);
32589 if (!SWIG_IsOK(ecode2)) {
32590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32591 }
32592 arg2 = static_cast< int >(val2);
32593 ecode3 = SWIG_AsVal_int(obj2, &val3);
32594 if (!SWIG_IsOK(ecode3)) {
32595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32596 }
32597 arg3 = static_cast< int >(val3);
32598 {
32599 PyThreadState* __tstate = wxPyBeginAllowThreads();
32600 (arg1)->SetColumnImage(arg2,arg3);
32601 wxPyEndAllowThreads(__tstate);
32602 if (PyErr_Occurred()) SWIG_fail;
32603 }
32604 resultobj = SWIG_Py_Void();
32605 return resultobj;
32606 fail:
32607 return NULL;
32608 }
32609
32610
32611 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32612 PyObject *resultobj = 0;
32613 wxListView *arg1 = (wxListView *) 0 ;
32614 int arg2 ;
32615 void *argp1 = 0 ;
32616 int res1 = 0 ;
32617 int val2 ;
32618 int ecode2 = 0 ;
32619 PyObject * obj0 = 0 ;
32620 PyObject * obj1 = 0 ;
32621 char * kwnames[] = {
32622 (char *) "self",(char *) "col", NULL
32623 };
32624
32625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32627 if (!SWIG_IsOK(res1)) {
32628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32629 }
32630 arg1 = reinterpret_cast< wxListView * >(argp1);
32631 ecode2 = SWIG_AsVal_int(obj1, &val2);
32632 if (!SWIG_IsOK(ecode2)) {
32633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32634 }
32635 arg2 = static_cast< int >(val2);
32636 {
32637 PyThreadState* __tstate = wxPyBeginAllowThreads();
32638 (arg1)->ClearColumnImage(arg2);
32639 wxPyEndAllowThreads(__tstate);
32640 if (PyErr_Occurred()) SWIG_fail;
32641 }
32642 resultobj = SWIG_Py_Void();
32643 return resultobj;
32644 fail:
32645 return NULL;
32646 }
32647
32648
32649 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32650 PyObject *obj;
32651 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32652 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32653 return SWIG_Py_Void();
32654 }
32655
32656 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32657 return SWIG_Python_InitShadowInstance(args);
32658 }
32659
32660 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32661 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32662 return 1;
32663 }
32664
32665
32666 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32667 PyObject *pyobj = 0;
32668
32669 {
32670 #if wxUSE_UNICODE
32671 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32672 #else
32673 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32674 #endif
32675 }
32676 return pyobj;
32677 }
32678
32679
32680 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32681 PyObject *resultobj = 0;
32682 wxTreeItemId *result = 0 ;
32683
32684 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32685 {
32686 PyThreadState* __tstate = wxPyBeginAllowThreads();
32687 result = (wxTreeItemId *)new wxTreeItemId();
32688 wxPyEndAllowThreads(__tstate);
32689 if (PyErr_Occurred()) SWIG_fail;
32690 }
32691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32692 return resultobj;
32693 fail:
32694 return NULL;
32695 }
32696
32697
32698 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32699 PyObject *resultobj = 0;
32700 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32701 void *argp1 = 0 ;
32702 int res1 = 0 ;
32703 PyObject *swig_obj[1] ;
32704
32705 if (!args) SWIG_fail;
32706 swig_obj[0] = args;
32707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32708 if (!SWIG_IsOK(res1)) {
32709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32710 }
32711 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32712 {
32713 PyThreadState* __tstate = wxPyBeginAllowThreads();
32714 delete arg1;
32715
32716 wxPyEndAllowThreads(__tstate);
32717 if (PyErr_Occurred()) SWIG_fail;
32718 }
32719 resultobj = SWIG_Py_Void();
32720 return resultobj;
32721 fail:
32722 return NULL;
32723 }
32724
32725
32726 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32727 PyObject *resultobj = 0;
32728 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32729 bool result;
32730 void *argp1 = 0 ;
32731 int res1 = 0 ;
32732 PyObject *swig_obj[1] ;
32733
32734 if (!args) SWIG_fail;
32735 swig_obj[0] = args;
32736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32737 if (!SWIG_IsOK(res1)) {
32738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32739 }
32740 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32741 {
32742 PyThreadState* __tstate = wxPyBeginAllowThreads();
32743 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32744 wxPyEndAllowThreads(__tstate);
32745 if (PyErr_Occurred()) SWIG_fail;
32746 }
32747 {
32748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32749 }
32750 return resultobj;
32751 fail:
32752 return NULL;
32753 }
32754
32755
32756 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32757 PyObject *resultobj = 0;
32758 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32759 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32760 bool result;
32761 void *argp1 = 0 ;
32762 int res1 = 0 ;
32763 void *argp2 = 0 ;
32764 int res2 = 0 ;
32765 PyObject * obj0 = 0 ;
32766 PyObject * obj1 = 0 ;
32767 char * kwnames[] = {
32768 (char *) "self",(char *) "other", NULL
32769 };
32770
32771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32773 if (!SWIG_IsOK(res1)) {
32774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32775 }
32776 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32777 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32778 if (!SWIG_IsOK(res2)) {
32779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32780 }
32781 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32782 {
32783 PyThreadState* __tstate = wxPyBeginAllowThreads();
32784 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32785 wxPyEndAllowThreads(__tstate);
32786 if (PyErr_Occurred()) SWIG_fail;
32787 }
32788 {
32789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32790 }
32791 return resultobj;
32792 fail:
32793 return NULL;
32794 }
32795
32796
32797 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32798 PyObject *resultobj = 0;
32799 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32800 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32801 bool result;
32802 void *argp1 = 0 ;
32803 int res1 = 0 ;
32804 void *argp2 = 0 ;
32805 int res2 = 0 ;
32806 PyObject * obj0 = 0 ;
32807 PyObject * obj1 = 0 ;
32808 char * kwnames[] = {
32809 (char *) "self",(char *) "other", NULL
32810 };
32811
32812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32814 if (!SWIG_IsOK(res1)) {
32815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32816 }
32817 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32818 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32819 if (!SWIG_IsOK(res2)) {
32820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32821 }
32822 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32823 {
32824 PyThreadState* __tstate = wxPyBeginAllowThreads();
32825 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32826 wxPyEndAllowThreads(__tstate);
32827 if (PyErr_Occurred()) SWIG_fail;
32828 }
32829 {
32830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32831 }
32832 return resultobj;
32833 fail:
32834 return NULL;
32835 }
32836
32837
32838 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32839 PyObject *resultobj = 0;
32840 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32841 void *arg2 = (void *) 0 ;
32842 void *argp1 = 0 ;
32843 int res1 = 0 ;
32844 int res2 ;
32845 PyObject *swig_obj[2] ;
32846
32847 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32849 if (!SWIG_IsOK(res1)) {
32850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32851 }
32852 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32853 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32854 if (!SWIG_IsOK(res2)) {
32855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32856 }
32857 if (arg1) (arg1)->m_pItem = arg2;
32858
32859 resultobj = SWIG_Py_Void();
32860 return resultobj;
32861 fail:
32862 return NULL;
32863 }
32864
32865
32866 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32867 PyObject *resultobj = 0;
32868 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32869 void *result = 0 ;
32870 void *argp1 = 0 ;
32871 int res1 = 0 ;
32872 PyObject *swig_obj[1] ;
32873
32874 if (!args) SWIG_fail;
32875 swig_obj[0] = args;
32876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32877 if (!SWIG_IsOK(res1)) {
32878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32879 }
32880 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32881 result = (void *) ((arg1)->m_pItem);
32882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32883 return resultobj;
32884 fail:
32885 return NULL;
32886 }
32887
32888
32889 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32890 PyObject *obj;
32891 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32892 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32893 return SWIG_Py_Void();
32894 }
32895
32896 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32897 return SWIG_Python_InitShadowInstance(args);
32898 }
32899
32900 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32901 PyObject *resultobj = 0;
32902 PyObject *arg1 = (PyObject *) NULL ;
32903 wxPyTreeItemData *result = 0 ;
32904 PyObject * obj0 = 0 ;
32905 char * kwnames[] = {
32906 (char *) "obj", NULL
32907 };
32908
32909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32910 if (obj0) {
32911 arg1 = obj0;
32912 }
32913 {
32914 PyThreadState* __tstate = wxPyBeginAllowThreads();
32915 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32916 wxPyEndAllowThreads(__tstate);
32917 if (PyErr_Occurred()) SWIG_fail;
32918 }
32919 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32920 return resultobj;
32921 fail:
32922 return NULL;
32923 }
32924
32925
32926 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32927 PyObject *resultobj = 0;
32928 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32929 void *argp1 = 0 ;
32930 int res1 = 0 ;
32931 PyObject *swig_obj[1] ;
32932
32933 if (!args) SWIG_fail;
32934 swig_obj[0] = args;
32935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32936 if (!SWIG_IsOK(res1)) {
32937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32938 }
32939 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32940 {
32941 PyThreadState* __tstate = wxPyBeginAllowThreads();
32942 delete arg1;
32943
32944 wxPyEndAllowThreads(__tstate);
32945 if (PyErr_Occurred()) SWIG_fail;
32946 }
32947 resultobj = SWIG_Py_Void();
32948 return resultobj;
32949 fail:
32950 return NULL;
32951 }
32952
32953
32954 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32955 PyObject *resultobj = 0;
32956 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32957 PyObject *result = 0 ;
32958 void *argp1 = 0 ;
32959 int res1 = 0 ;
32960 PyObject *swig_obj[1] ;
32961
32962 if (!args) SWIG_fail;
32963 swig_obj[0] = args;
32964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32965 if (!SWIG_IsOK(res1)) {
32966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32967 }
32968 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32969 {
32970 PyThreadState* __tstate = wxPyBeginAllowThreads();
32971 result = (PyObject *)(arg1)->GetData();
32972 wxPyEndAllowThreads(__tstate);
32973 if (PyErr_Occurred()) SWIG_fail;
32974 }
32975 resultobj = result;
32976 return resultobj;
32977 fail:
32978 return NULL;
32979 }
32980
32981
32982 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32983 PyObject *resultobj = 0;
32984 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32985 PyObject *arg2 = (PyObject *) 0 ;
32986 void *argp1 = 0 ;
32987 int res1 = 0 ;
32988 PyObject * obj0 = 0 ;
32989 PyObject * obj1 = 0 ;
32990 char * kwnames[] = {
32991 (char *) "self",(char *) "obj", NULL
32992 };
32993
32994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32996 if (!SWIG_IsOK(res1)) {
32997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32998 }
32999 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33000 arg2 = obj1;
33001 {
33002 PyThreadState* __tstate = wxPyBeginAllowThreads();
33003 (arg1)->SetData(arg2);
33004 wxPyEndAllowThreads(__tstate);
33005 if (PyErr_Occurred()) SWIG_fail;
33006 }
33007 resultobj = SWIG_Py_Void();
33008 return resultobj;
33009 fail:
33010 return NULL;
33011 }
33012
33013
33014 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33015 PyObject *resultobj = 0;
33016 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33017 wxTreeItemId *result = 0 ;
33018 void *argp1 = 0 ;
33019 int res1 = 0 ;
33020 PyObject *swig_obj[1] ;
33021
33022 if (!args) SWIG_fail;
33023 swig_obj[0] = args;
33024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33025 if (!SWIG_IsOK(res1)) {
33026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33027 }
33028 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33029 {
33030 PyThreadState* __tstate = wxPyBeginAllowThreads();
33031 {
33032 wxTreeItemId const &_result_ref = (arg1)->GetId();
33033 result = (wxTreeItemId *) &_result_ref;
33034 }
33035 wxPyEndAllowThreads(__tstate);
33036 if (PyErr_Occurred()) SWIG_fail;
33037 }
33038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33039 return resultobj;
33040 fail:
33041 return NULL;
33042 }
33043
33044
33045 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33046 PyObject *resultobj = 0;
33047 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33048 wxTreeItemId *arg2 = 0 ;
33049 void *argp1 = 0 ;
33050 int res1 = 0 ;
33051 void *argp2 = 0 ;
33052 int res2 = 0 ;
33053 PyObject * obj0 = 0 ;
33054 PyObject * obj1 = 0 ;
33055 char * kwnames[] = {
33056 (char *) "self",(char *) "id", NULL
33057 };
33058
33059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33061 if (!SWIG_IsOK(res1)) {
33062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33063 }
33064 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33066 if (!SWIG_IsOK(res2)) {
33067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33068 }
33069 if (!argp2) {
33070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33071 }
33072 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33073 {
33074 PyThreadState* __tstate = wxPyBeginAllowThreads();
33075 (arg1)->SetId((wxTreeItemId const &)*arg2);
33076 wxPyEndAllowThreads(__tstate);
33077 if (PyErr_Occurred()) SWIG_fail;
33078 }
33079 resultobj = SWIG_Py_Void();
33080 return resultobj;
33081 fail:
33082 return NULL;
33083 }
33084
33085
33086 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33087 PyObject *resultobj = 0;
33088 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33089 void *argp1 = 0 ;
33090 int res1 = 0 ;
33091 PyObject *swig_obj[1] ;
33092
33093 if (!args) SWIG_fail;
33094 swig_obj[0] = args;
33095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33096 if (!SWIG_IsOK(res1)) {
33097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33098 }
33099 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33100 {
33101 PyThreadState* __tstate = wxPyBeginAllowThreads();
33102 wxPyTreeItemData_Destroy(arg1);
33103 wxPyEndAllowThreads(__tstate);
33104 if (PyErr_Occurred()) SWIG_fail;
33105 }
33106 resultobj = SWIG_Py_Void();
33107 return resultobj;
33108 fail:
33109 return NULL;
33110 }
33111
33112
33113 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33114 PyObject *obj;
33115 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33116 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33117 return SWIG_Py_Void();
33118 }
33119
33120 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33121 return SWIG_Python_InitShadowInstance(args);
33122 }
33123
33124 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33125 {
33126 void *argp = 0;
33127 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33128 if (!SWIG_IsOK(res)) {
33129 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33130 }
33131 if (!argp) {
33132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33133 } else {
33134 wxTreeItemId * temp;
33135 temp = reinterpret_cast< wxTreeItemId * >(argp);
33136 wxNullTreeItemId = *temp;
33137 if (SWIG_IsNewObj(res)) delete temp;
33138 }
33139 }
33140 return 0;
33141 fail:
33142 return 1;
33143 }
33144
33145
33146 SWIGINTERN PyObject *NullTreeItemId_get(void) {
33147 PyObject *pyobj = 0;
33148
33149 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33150 return pyobj;
33151 }
33152
33153
33154 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33155 PyObject *resultobj = 0;
33156 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33157 int arg2 = (int) 0 ;
33158 wxTreeEvent *result = 0 ;
33159 int val1 ;
33160 int ecode1 = 0 ;
33161 int val2 ;
33162 int ecode2 = 0 ;
33163
33164 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33165 if (swig_obj[0]) {
33166 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33167 if (!SWIG_IsOK(ecode1)) {
33168 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33169 }
33170 arg1 = static_cast< wxEventType >(val1);
33171 }
33172 if (swig_obj[1]) {
33173 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33174 if (!SWIG_IsOK(ecode2)) {
33175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33176 }
33177 arg2 = static_cast< int >(val2);
33178 }
33179 {
33180 PyThreadState* __tstate = wxPyBeginAllowThreads();
33181 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33182 wxPyEndAllowThreads(__tstate);
33183 if (PyErr_Occurred()) SWIG_fail;
33184 }
33185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33186 return resultobj;
33187 fail:
33188 return NULL;
33189 }
33190
33191
33192 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33193 PyObject *resultobj = 0;
33194 wxEventType arg1 ;
33195 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33196 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33197 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33198 wxTreeEvent *result = 0 ;
33199 int val1 ;
33200 int ecode1 = 0 ;
33201 void *argp2 = 0 ;
33202 int res2 = 0 ;
33203 void *argp3 = 0 ;
33204 int res3 = 0 ;
33205
33206 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33207 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33208 if (!SWIG_IsOK(ecode1)) {
33209 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33210 }
33211 arg1 = static_cast< wxEventType >(val1);
33212 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33213 if (!SWIG_IsOK(res2)) {
33214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33215 }
33216 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33217 if (swig_obj[2]) {
33218 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33219 if (!SWIG_IsOK(res3)) {
33220 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33221 }
33222 if (!argp3) {
33223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33224 }
33225 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33226 }
33227 {
33228 PyThreadState* __tstate = wxPyBeginAllowThreads();
33229 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33230 wxPyEndAllowThreads(__tstate);
33231 if (PyErr_Occurred()) SWIG_fail;
33232 }
33233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33234 return resultobj;
33235 fail:
33236 return NULL;
33237 }
33238
33239
33240 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33241 int argc;
33242 PyObject *argv[4];
33243
33244 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33245 --argc;
33246 if ((argc >= 0) && (argc <= 2)) {
33247 int _v = 0;
33248 if (argc > 1) {
33249 {
33250 {
33251 int res = SWIG_AsVal_int(argv[1], NULL);
33252 _v = SWIG_CheckState(res);
33253 }
33254 }
33255 if (!_v) goto check_1;
33256 }
33257 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33258 }
33259 check_1:
33260
33261 if ((argc >= 2) && (argc <= 3)) {
33262 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33263 }
33264
33265 fail:
33266 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33267 return NULL;
33268 }
33269
33270
33271 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33272 PyObject *resultobj = 0;
33273 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33274 wxTreeItemId result;
33275 void *argp1 = 0 ;
33276 int res1 = 0 ;
33277 PyObject *swig_obj[1] ;
33278
33279 if (!args) SWIG_fail;
33280 swig_obj[0] = args;
33281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33282 if (!SWIG_IsOK(res1)) {
33283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33284 }
33285 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33286 {
33287 PyThreadState* __tstate = wxPyBeginAllowThreads();
33288 result = ((wxTreeEvent const *)arg1)->GetItem();
33289 wxPyEndAllowThreads(__tstate);
33290 if (PyErr_Occurred()) SWIG_fail;
33291 }
33292 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33293 return resultobj;
33294 fail:
33295 return NULL;
33296 }
33297
33298
33299 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33300 PyObject *resultobj = 0;
33301 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33302 wxTreeItemId *arg2 = 0 ;
33303 void *argp1 = 0 ;
33304 int res1 = 0 ;
33305 void *argp2 = 0 ;
33306 int res2 = 0 ;
33307 PyObject * obj0 = 0 ;
33308 PyObject * obj1 = 0 ;
33309 char * kwnames[] = {
33310 (char *) "self",(char *) "item", NULL
33311 };
33312
33313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33315 if (!SWIG_IsOK(res1)) {
33316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33317 }
33318 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33320 if (!SWIG_IsOK(res2)) {
33321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33322 }
33323 if (!argp2) {
33324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33325 }
33326 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33327 {
33328 PyThreadState* __tstate = wxPyBeginAllowThreads();
33329 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33330 wxPyEndAllowThreads(__tstate);
33331 if (PyErr_Occurred()) SWIG_fail;
33332 }
33333 resultobj = SWIG_Py_Void();
33334 return resultobj;
33335 fail:
33336 return NULL;
33337 }
33338
33339
33340 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33341 PyObject *resultobj = 0;
33342 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33343 wxTreeItemId result;
33344 void *argp1 = 0 ;
33345 int res1 = 0 ;
33346 PyObject *swig_obj[1] ;
33347
33348 if (!args) SWIG_fail;
33349 swig_obj[0] = args;
33350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33351 if (!SWIG_IsOK(res1)) {
33352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33353 }
33354 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33355 {
33356 PyThreadState* __tstate = wxPyBeginAllowThreads();
33357 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33358 wxPyEndAllowThreads(__tstate);
33359 if (PyErr_Occurred()) SWIG_fail;
33360 }
33361 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33362 return resultobj;
33363 fail:
33364 return NULL;
33365 }
33366
33367
33368 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33369 PyObject *resultobj = 0;
33370 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33371 wxTreeItemId *arg2 = 0 ;
33372 void *argp1 = 0 ;
33373 int res1 = 0 ;
33374 void *argp2 = 0 ;
33375 int res2 = 0 ;
33376 PyObject * obj0 = 0 ;
33377 PyObject * obj1 = 0 ;
33378 char * kwnames[] = {
33379 (char *) "self",(char *) "item", NULL
33380 };
33381
33382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33384 if (!SWIG_IsOK(res1)) {
33385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33386 }
33387 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33388 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33389 if (!SWIG_IsOK(res2)) {
33390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33391 }
33392 if (!argp2) {
33393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33394 }
33395 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33396 {
33397 PyThreadState* __tstate = wxPyBeginAllowThreads();
33398 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33399 wxPyEndAllowThreads(__tstate);
33400 if (PyErr_Occurred()) SWIG_fail;
33401 }
33402 resultobj = SWIG_Py_Void();
33403 return resultobj;
33404 fail:
33405 return NULL;
33406 }
33407
33408
33409 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33410 PyObject *resultobj = 0;
33411 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33412 wxPoint result;
33413 void *argp1 = 0 ;
33414 int res1 = 0 ;
33415 PyObject *swig_obj[1] ;
33416
33417 if (!args) SWIG_fail;
33418 swig_obj[0] = args;
33419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33420 if (!SWIG_IsOK(res1)) {
33421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33422 }
33423 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33424 {
33425 PyThreadState* __tstate = wxPyBeginAllowThreads();
33426 result = ((wxTreeEvent const *)arg1)->GetPoint();
33427 wxPyEndAllowThreads(__tstate);
33428 if (PyErr_Occurred()) SWIG_fail;
33429 }
33430 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33431 return resultobj;
33432 fail:
33433 return NULL;
33434 }
33435
33436
33437 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33438 PyObject *resultobj = 0;
33439 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33440 wxPoint *arg2 = 0 ;
33441 void *argp1 = 0 ;
33442 int res1 = 0 ;
33443 wxPoint temp2 ;
33444 PyObject * obj0 = 0 ;
33445 PyObject * obj1 = 0 ;
33446 char * kwnames[] = {
33447 (char *) "self",(char *) "pt", NULL
33448 };
33449
33450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33452 if (!SWIG_IsOK(res1)) {
33453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33454 }
33455 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33456 {
33457 arg2 = &temp2;
33458 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33459 }
33460 {
33461 PyThreadState* __tstate = wxPyBeginAllowThreads();
33462 (arg1)->SetPoint((wxPoint const &)*arg2);
33463 wxPyEndAllowThreads(__tstate);
33464 if (PyErr_Occurred()) SWIG_fail;
33465 }
33466 resultobj = SWIG_Py_Void();
33467 return resultobj;
33468 fail:
33469 return NULL;
33470 }
33471
33472
33473 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33474 PyObject *resultobj = 0;
33475 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33476 wxKeyEvent *result = 0 ;
33477 void *argp1 = 0 ;
33478 int res1 = 0 ;
33479 PyObject *swig_obj[1] ;
33480
33481 if (!args) SWIG_fail;
33482 swig_obj[0] = args;
33483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33484 if (!SWIG_IsOK(res1)) {
33485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33486 }
33487 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33488 {
33489 PyThreadState* __tstate = wxPyBeginAllowThreads();
33490 {
33491 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33492 result = (wxKeyEvent *) &_result_ref;
33493 }
33494 wxPyEndAllowThreads(__tstate);
33495 if (PyErr_Occurred()) SWIG_fail;
33496 }
33497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33498 return resultobj;
33499 fail:
33500 return NULL;
33501 }
33502
33503
33504 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33505 PyObject *resultobj = 0;
33506 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33507 int result;
33508 void *argp1 = 0 ;
33509 int res1 = 0 ;
33510 PyObject *swig_obj[1] ;
33511
33512 if (!args) SWIG_fail;
33513 swig_obj[0] = args;
33514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33515 if (!SWIG_IsOK(res1)) {
33516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33517 }
33518 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33519 {
33520 PyThreadState* __tstate = wxPyBeginAllowThreads();
33521 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33522 wxPyEndAllowThreads(__tstate);
33523 if (PyErr_Occurred()) SWIG_fail;
33524 }
33525 resultobj = SWIG_From_int(static_cast< int >(result));
33526 return resultobj;
33527 fail:
33528 return NULL;
33529 }
33530
33531
33532 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33533 PyObject *resultobj = 0;
33534 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33535 wxKeyEvent *arg2 = 0 ;
33536 void *argp1 = 0 ;
33537 int res1 = 0 ;
33538 void *argp2 = 0 ;
33539 int res2 = 0 ;
33540 PyObject * obj0 = 0 ;
33541 PyObject * obj1 = 0 ;
33542 char * kwnames[] = {
33543 (char *) "self",(char *) "evt", NULL
33544 };
33545
33546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33548 if (!SWIG_IsOK(res1)) {
33549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33550 }
33551 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33553 if (!SWIG_IsOK(res2)) {
33554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33555 }
33556 if (!argp2) {
33557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33558 }
33559 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33560 {
33561 PyThreadState* __tstate = wxPyBeginAllowThreads();
33562 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33563 wxPyEndAllowThreads(__tstate);
33564 if (PyErr_Occurred()) SWIG_fail;
33565 }
33566 resultobj = SWIG_Py_Void();
33567 return resultobj;
33568 fail:
33569 return NULL;
33570 }
33571
33572
33573 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33574 PyObject *resultobj = 0;
33575 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33576 wxString *result = 0 ;
33577 void *argp1 = 0 ;
33578 int res1 = 0 ;
33579 PyObject *swig_obj[1] ;
33580
33581 if (!args) SWIG_fail;
33582 swig_obj[0] = args;
33583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33584 if (!SWIG_IsOK(res1)) {
33585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33586 }
33587 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33588 {
33589 PyThreadState* __tstate = wxPyBeginAllowThreads();
33590 {
33591 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33592 result = (wxString *) &_result_ref;
33593 }
33594 wxPyEndAllowThreads(__tstate);
33595 if (PyErr_Occurred()) SWIG_fail;
33596 }
33597 {
33598 #if wxUSE_UNICODE
33599 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33600 #else
33601 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33602 #endif
33603 }
33604 return resultobj;
33605 fail:
33606 return NULL;
33607 }
33608
33609
33610 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33611 PyObject *resultobj = 0;
33612 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33613 wxString *arg2 = 0 ;
33614 void *argp1 = 0 ;
33615 int res1 = 0 ;
33616 bool temp2 = false ;
33617 PyObject * obj0 = 0 ;
33618 PyObject * obj1 = 0 ;
33619 char * kwnames[] = {
33620 (char *) "self",(char *) "label", NULL
33621 };
33622
33623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33625 if (!SWIG_IsOK(res1)) {
33626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33627 }
33628 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33629 {
33630 arg2 = wxString_in_helper(obj1);
33631 if (arg2 == NULL) SWIG_fail;
33632 temp2 = true;
33633 }
33634 {
33635 PyThreadState* __tstate = wxPyBeginAllowThreads();
33636 (arg1)->SetLabel((wxString const &)*arg2);
33637 wxPyEndAllowThreads(__tstate);
33638 if (PyErr_Occurred()) SWIG_fail;
33639 }
33640 resultobj = SWIG_Py_Void();
33641 {
33642 if (temp2)
33643 delete arg2;
33644 }
33645 return resultobj;
33646 fail:
33647 {
33648 if (temp2)
33649 delete arg2;
33650 }
33651 return NULL;
33652 }
33653
33654
33655 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33656 PyObject *resultobj = 0;
33657 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33658 bool result;
33659 void *argp1 = 0 ;
33660 int res1 = 0 ;
33661 PyObject *swig_obj[1] ;
33662
33663 if (!args) SWIG_fail;
33664 swig_obj[0] = args;
33665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33666 if (!SWIG_IsOK(res1)) {
33667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33668 }
33669 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33670 {
33671 PyThreadState* __tstate = wxPyBeginAllowThreads();
33672 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33673 wxPyEndAllowThreads(__tstate);
33674 if (PyErr_Occurred()) SWIG_fail;
33675 }
33676 {
33677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33678 }
33679 return resultobj;
33680 fail:
33681 return NULL;
33682 }
33683
33684
33685 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33686 PyObject *resultobj = 0;
33687 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33688 bool arg2 ;
33689 void *argp1 = 0 ;
33690 int res1 = 0 ;
33691 bool val2 ;
33692 int ecode2 = 0 ;
33693 PyObject * obj0 = 0 ;
33694 PyObject * obj1 = 0 ;
33695 char * kwnames[] = {
33696 (char *) "self",(char *) "editCancelled", NULL
33697 };
33698
33699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33701 if (!SWIG_IsOK(res1)) {
33702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33703 }
33704 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33705 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33706 if (!SWIG_IsOK(ecode2)) {
33707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33708 }
33709 arg2 = static_cast< bool >(val2);
33710 {
33711 PyThreadState* __tstate = wxPyBeginAllowThreads();
33712 (arg1)->SetEditCanceled(arg2);
33713 wxPyEndAllowThreads(__tstate);
33714 if (PyErr_Occurred()) SWIG_fail;
33715 }
33716 resultobj = SWIG_Py_Void();
33717 return resultobj;
33718 fail:
33719 return NULL;
33720 }
33721
33722
33723 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33724 PyObject *resultobj = 0;
33725 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33726 wxString *arg2 = 0 ;
33727 void *argp1 = 0 ;
33728 int res1 = 0 ;
33729 bool temp2 = false ;
33730 PyObject * obj0 = 0 ;
33731 PyObject * obj1 = 0 ;
33732 char * kwnames[] = {
33733 (char *) "self",(char *) "toolTip", NULL
33734 };
33735
33736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33738 if (!SWIG_IsOK(res1)) {
33739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33740 }
33741 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33742 {
33743 arg2 = wxString_in_helper(obj1);
33744 if (arg2 == NULL) SWIG_fail;
33745 temp2 = true;
33746 }
33747 {
33748 PyThreadState* __tstate = wxPyBeginAllowThreads();
33749 (arg1)->SetToolTip((wxString const &)*arg2);
33750 wxPyEndAllowThreads(__tstate);
33751 if (PyErr_Occurred()) SWIG_fail;
33752 }
33753 resultobj = SWIG_Py_Void();
33754 {
33755 if (temp2)
33756 delete arg2;
33757 }
33758 return resultobj;
33759 fail:
33760 {
33761 if (temp2)
33762 delete arg2;
33763 }
33764 return NULL;
33765 }
33766
33767
33768 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33769 PyObject *resultobj = 0;
33770 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33771 wxString result;
33772 void *argp1 = 0 ;
33773 int res1 = 0 ;
33774 PyObject *swig_obj[1] ;
33775
33776 if (!args) SWIG_fail;
33777 swig_obj[0] = args;
33778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33779 if (!SWIG_IsOK(res1)) {
33780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33781 }
33782 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33783 {
33784 PyThreadState* __tstate = wxPyBeginAllowThreads();
33785 result = (arg1)->GetToolTip();
33786 wxPyEndAllowThreads(__tstate);
33787 if (PyErr_Occurred()) SWIG_fail;
33788 }
33789 {
33790 #if wxUSE_UNICODE
33791 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33792 #else
33793 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33794 #endif
33795 }
33796 return resultobj;
33797 fail:
33798 return NULL;
33799 }
33800
33801
33802 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33803 PyObject *obj;
33804 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33805 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33806 return SWIG_Py_Void();
33807 }
33808
33809 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33810 return SWIG_Python_InitShadowInstance(args);
33811 }
33812
33813 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33814 PyObject *resultobj = 0;
33815 wxWindow *arg1 = (wxWindow *) 0 ;
33816 int arg2 = (int) -1 ;
33817 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33818 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33819 wxSize const &arg4_defvalue = wxDefaultSize ;
33820 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33821 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33822 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33823 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33824 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33825 wxString *arg7 = (wxString *) &arg7_defvalue ;
33826 wxPyTreeCtrl *result = 0 ;
33827 void *argp1 = 0 ;
33828 int res1 = 0 ;
33829 int val2 ;
33830 int ecode2 = 0 ;
33831 wxPoint temp3 ;
33832 wxSize temp4 ;
33833 long val5 ;
33834 int ecode5 = 0 ;
33835 void *argp6 = 0 ;
33836 int res6 = 0 ;
33837 bool temp7 = false ;
33838 PyObject * obj0 = 0 ;
33839 PyObject * obj1 = 0 ;
33840 PyObject * obj2 = 0 ;
33841 PyObject * obj3 = 0 ;
33842 PyObject * obj4 = 0 ;
33843 PyObject * obj5 = 0 ;
33844 PyObject * obj6 = 0 ;
33845 char * kwnames[] = {
33846 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33847 };
33848
33849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33851 if (!SWIG_IsOK(res1)) {
33852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33853 }
33854 arg1 = reinterpret_cast< wxWindow * >(argp1);
33855 if (obj1) {
33856 ecode2 = SWIG_AsVal_int(obj1, &val2);
33857 if (!SWIG_IsOK(ecode2)) {
33858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33859 }
33860 arg2 = static_cast< int >(val2);
33861 }
33862 if (obj2) {
33863 {
33864 arg3 = &temp3;
33865 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33866 }
33867 }
33868 if (obj3) {
33869 {
33870 arg4 = &temp4;
33871 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33872 }
33873 }
33874 if (obj4) {
33875 ecode5 = SWIG_AsVal_long(obj4, &val5);
33876 if (!SWIG_IsOK(ecode5)) {
33877 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33878 }
33879 arg5 = static_cast< long >(val5);
33880 }
33881 if (obj5) {
33882 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33883 if (!SWIG_IsOK(res6)) {
33884 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33885 }
33886 if (!argp6) {
33887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33888 }
33889 arg6 = reinterpret_cast< wxValidator * >(argp6);
33890 }
33891 if (obj6) {
33892 {
33893 arg7 = wxString_in_helper(obj6);
33894 if (arg7 == NULL) SWIG_fail;
33895 temp7 = true;
33896 }
33897 }
33898 {
33899 if (!wxPyCheckForApp()) SWIG_fail;
33900 PyThreadState* __tstate = wxPyBeginAllowThreads();
33901 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33902 wxPyEndAllowThreads(__tstate);
33903 if (PyErr_Occurred()) SWIG_fail;
33904 }
33905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33906 {
33907 if (temp7)
33908 delete arg7;
33909 }
33910 return resultobj;
33911 fail:
33912 {
33913 if (temp7)
33914 delete arg7;
33915 }
33916 return NULL;
33917 }
33918
33919
33920 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33921 PyObject *resultobj = 0;
33922 wxPyTreeCtrl *result = 0 ;
33923
33924 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33925 {
33926 if (!wxPyCheckForApp()) SWIG_fail;
33927 PyThreadState* __tstate = wxPyBeginAllowThreads();
33928 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33929 wxPyEndAllowThreads(__tstate);
33930 if (PyErr_Occurred()) SWIG_fail;
33931 }
33932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33933 return resultobj;
33934 fail:
33935 return NULL;
33936 }
33937
33938
33939 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33940 PyObject *resultobj = 0;
33941 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33942 wxWindow *arg2 = (wxWindow *) 0 ;
33943 int arg3 = (int) -1 ;
33944 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33945 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33946 wxSize const &arg5_defvalue = wxDefaultSize ;
33947 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33948 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33949 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33950 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33951 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33952 wxString *arg8 = (wxString *) &arg8_defvalue ;
33953 bool result;
33954 void *argp1 = 0 ;
33955 int res1 = 0 ;
33956 void *argp2 = 0 ;
33957 int res2 = 0 ;
33958 int val3 ;
33959 int ecode3 = 0 ;
33960 wxPoint temp4 ;
33961 wxSize temp5 ;
33962 long val6 ;
33963 int ecode6 = 0 ;
33964 void *argp7 = 0 ;
33965 int res7 = 0 ;
33966 bool temp8 = false ;
33967 PyObject * obj0 = 0 ;
33968 PyObject * obj1 = 0 ;
33969 PyObject * obj2 = 0 ;
33970 PyObject * obj3 = 0 ;
33971 PyObject * obj4 = 0 ;
33972 PyObject * obj5 = 0 ;
33973 PyObject * obj6 = 0 ;
33974 PyObject * obj7 = 0 ;
33975 char * kwnames[] = {
33976 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33977 };
33978
33979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33981 if (!SWIG_IsOK(res1)) {
33982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33983 }
33984 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33985 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33986 if (!SWIG_IsOK(res2)) {
33987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33988 }
33989 arg2 = reinterpret_cast< wxWindow * >(argp2);
33990 if (obj2) {
33991 ecode3 = SWIG_AsVal_int(obj2, &val3);
33992 if (!SWIG_IsOK(ecode3)) {
33993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33994 }
33995 arg3 = static_cast< int >(val3);
33996 }
33997 if (obj3) {
33998 {
33999 arg4 = &temp4;
34000 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
34001 }
34002 }
34003 if (obj4) {
34004 {
34005 arg5 = &temp5;
34006 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
34007 }
34008 }
34009 if (obj5) {
34010 ecode6 = SWIG_AsVal_long(obj5, &val6);
34011 if (!SWIG_IsOK(ecode6)) {
34012 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34013 }
34014 arg6 = static_cast< long >(val6);
34015 }
34016 if (obj6) {
34017 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34018 if (!SWIG_IsOK(res7)) {
34019 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34020 }
34021 if (!argp7) {
34022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34023 }
34024 arg7 = reinterpret_cast< wxValidator * >(argp7);
34025 }
34026 if (obj7) {
34027 {
34028 arg8 = wxString_in_helper(obj7);
34029 if (arg8 == NULL) SWIG_fail;
34030 temp8 = true;
34031 }
34032 }
34033 {
34034 PyThreadState* __tstate = wxPyBeginAllowThreads();
34035 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34036 wxPyEndAllowThreads(__tstate);
34037 if (PyErr_Occurred()) SWIG_fail;
34038 }
34039 {
34040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34041 }
34042 {
34043 if (temp8)
34044 delete arg8;
34045 }
34046 return resultobj;
34047 fail:
34048 {
34049 if (temp8)
34050 delete arg8;
34051 }
34052 return NULL;
34053 }
34054
34055
34056 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34057 PyObject *resultobj = 0;
34058 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34059 PyObject *arg2 = (PyObject *) 0 ;
34060 PyObject *arg3 = (PyObject *) 0 ;
34061 void *argp1 = 0 ;
34062 int res1 = 0 ;
34063 PyObject * obj0 = 0 ;
34064 PyObject * obj1 = 0 ;
34065 PyObject * obj2 = 0 ;
34066 char * kwnames[] = {
34067 (char *) "self",(char *) "self",(char *) "_class", NULL
34068 };
34069
34070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34072 if (!SWIG_IsOK(res1)) {
34073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34074 }
34075 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34076 arg2 = obj1;
34077 arg3 = obj2;
34078 {
34079 PyThreadState* __tstate = wxPyBeginAllowThreads();
34080 (arg1)->_setCallbackInfo(arg2,arg3);
34081 wxPyEndAllowThreads(__tstate);
34082 if (PyErr_Occurred()) SWIG_fail;
34083 }
34084 resultobj = SWIG_Py_Void();
34085 return resultobj;
34086 fail:
34087 return NULL;
34088 }
34089
34090
34091 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34092 PyObject *resultobj = 0;
34093 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34094 unsigned int result;
34095 void *argp1 = 0 ;
34096 int res1 = 0 ;
34097 PyObject *swig_obj[1] ;
34098
34099 if (!args) SWIG_fail;
34100 swig_obj[0] = args;
34101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34102 if (!SWIG_IsOK(res1)) {
34103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34104 }
34105 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34106 {
34107 PyThreadState* __tstate = wxPyBeginAllowThreads();
34108 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
34109 wxPyEndAllowThreads(__tstate);
34110 if (PyErr_Occurred()) SWIG_fail;
34111 }
34112 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34113 return resultobj;
34114 fail:
34115 return NULL;
34116 }
34117
34118
34119 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34120 PyObject *resultobj = 0;
34121 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34122 unsigned int result;
34123 void *argp1 = 0 ;
34124 int res1 = 0 ;
34125 PyObject *swig_obj[1] ;
34126
34127 if (!args) SWIG_fail;
34128 swig_obj[0] = args;
34129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34130 if (!SWIG_IsOK(res1)) {
34131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34132 }
34133 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34134 {
34135 PyThreadState* __tstate = wxPyBeginAllowThreads();
34136 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34137 wxPyEndAllowThreads(__tstate);
34138 if (PyErr_Occurred()) SWIG_fail;
34139 }
34140 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34141 return resultobj;
34142 fail:
34143 return NULL;
34144 }
34145
34146
34147 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34148 PyObject *resultobj = 0;
34149 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34150 unsigned int arg2 ;
34151 void *argp1 = 0 ;
34152 int res1 = 0 ;
34153 unsigned int val2 ;
34154 int ecode2 = 0 ;
34155 PyObject * obj0 = 0 ;
34156 PyObject * obj1 = 0 ;
34157 char * kwnames[] = {
34158 (char *) "self",(char *) "indent", NULL
34159 };
34160
34161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34163 if (!SWIG_IsOK(res1)) {
34164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34165 }
34166 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34167 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34168 if (!SWIG_IsOK(ecode2)) {
34169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34170 }
34171 arg2 = static_cast< unsigned int >(val2);
34172 {
34173 PyThreadState* __tstate = wxPyBeginAllowThreads();
34174 (arg1)->SetIndent(arg2);
34175 wxPyEndAllowThreads(__tstate);
34176 if (PyErr_Occurred()) SWIG_fail;
34177 }
34178 resultobj = SWIG_Py_Void();
34179 return resultobj;
34180 fail:
34181 return NULL;
34182 }
34183
34184
34185 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34186 PyObject *resultobj = 0;
34187 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34188 unsigned int result;
34189 void *argp1 = 0 ;
34190 int res1 = 0 ;
34191 PyObject *swig_obj[1] ;
34192
34193 if (!args) SWIG_fail;
34194 swig_obj[0] = args;
34195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34196 if (!SWIG_IsOK(res1)) {
34197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34198 }
34199 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34200 {
34201 PyThreadState* __tstate = wxPyBeginAllowThreads();
34202 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34203 wxPyEndAllowThreads(__tstate);
34204 if (PyErr_Occurred()) SWIG_fail;
34205 }
34206 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34207 return resultobj;
34208 fail:
34209 return NULL;
34210 }
34211
34212
34213 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34214 PyObject *resultobj = 0;
34215 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34216 unsigned int arg2 ;
34217 void *argp1 = 0 ;
34218 int res1 = 0 ;
34219 unsigned int val2 ;
34220 int ecode2 = 0 ;
34221 PyObject * obj0 = 0 ;
34222 PyObject * obj1 = 0 ;
34223 char * kwnames[] = {
34224 (char *) "self",(char *) "spacing", NULL
34225 };
34226
34227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34229 if (!SWIG_IsOK(res1)) {
34230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34231 }
34232 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34233 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34234 if (!SWIG_IsOK(ecode2)) {
34235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34236 }
34237 arg2 = static_cast< unsigned int >(val2);
34238 {
34239 PyThreadState* __tstate = wxPyBeginAllowThreads();
34240 (arg1)->SetSpacing(arg2);
34241 wxPyEndAllowThreads(__tstate);
34242 if (PyErr_Occurred()) SWIG_fail;
34243 }
34244 resultobj = SWIG_Py_Void();
34245 return resultobj;
34246 fail:
34247 return NULL;
34248 }
34249
34250
34251 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34252 PyObject *resultobj = 0;
34253 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34254 wxImageList *result = 0 ;
34255 void *argp1 = 0 ;
34256 int res1 = 0 ;
34257 PyObject *swig_obj[1] ;
34258
34259 if (!args) SWIG_fail;
34260 swig_obj[0] = args;
34261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34262 if (!SWIG_IsOK(res1)) {
34263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34264 }
34265 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34266 {
34267 PyThreadState* __tstate = wxPyBeginAllowThreads();
34268 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34269 wxPyEndAllowThreads(__tstate);
34270 if (PyErr_Occurred()) SWIG_fail;
34271 }
34272 {
34273 resultobj = wxPyMake_wxObject(result, (bool)0);
34274 }
34275 return resultobj;
34276 fail:
34277 return NULL;
34278 }
34279
34280
34281 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34282 PyObject *resultobj = 0;
34283 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34284 wxImageList *result = 0 ;
34285 void *argp1 = 0 ;
34286 int res1 = 0 ;
34287 PyObject *swig_obj[1] ;
34288
34289 if (!args) SWIG_fail;
34290 swig_obj[0] = args;
34291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34292 if (!SWIG_IsOK(res1)) {
34293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34294 }
34295 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34296 {
34297 PyThreadState* __tstate = wxPyBeginAllowThreads();
34298 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34299 wxPyEndAllowThreads(__tstate);
34300 if (PyErr_Occurred()) SWIG_fail;
34301 }
34302 {
34303 resultobj = wxPyMake_wxObject(result, (bool)0);
34304 }
34305 return resultobj;
34306 fail:
34307 return NULL;
34308 }
34309
34310
34311 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34312 PyObject *resultobj = 0;
34313 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34314 wxImageList *arg2 = (wxImageList *) 0 ;
34315 void *argp1 = 0 ;
34316 int res1 = 0 ;
34317 void *argp2 = 0 ;
34318 int res2 = 0 ;
34319 PyObject * obj0 = 0 ;
34320 PyObject * obj1 = 0 ;
34321 char * kwnames[] = {
34322 (char *) "self",(char *) "imageList", NULL
34323 };
34324
34325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34327 if (!SWIG_IsOK(res1)) {
34328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34329 }
34330 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34331 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34332 if (!SWIG_IsOK(res2)) {
34333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34334 }
34335 arg2 = reinterpret_cast< wxImageList * >(argp2);
34336 {
34337 PyThreadState* __tstate = wxPyBeginAllowThreads();
34338 (arg1)->SetImageList(arg2);
34339 wxPyEndAllowThreads(__tstate);
34340 if (PyErr_Occurred()) SWIG_fail;
34341 }
34342 resultobj = SWIG_Py_Void();
34343 return resultobj;
34344 fail:
34345 return NULL;
34346 }
34347
34348
34349 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34350 PyObject *resultobj = 0;
34351 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34352 wxImageList *arg2 = (wxImageList *) 0 ;
34353 void *argp1 = 0 ;
34354 int res1 = 0 ;
34355 void *argp2 = 0 ;
34356 int res2 = 0 ;
34357 PyObject * obj0 = 0 ;
34358 PyObject * obj1 = 0 ;
34359 char * kwnames[] = {
34360 (char *) "self",(char *) "imageList", NULL
34361 };
34362
34363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34365 if (!SWIG_IsOK(res1)) {
34366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34367 }
34368 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34369 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34370 if (!SWIG_IsOK(res2)) {
34371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34372 }
34373 arg2 = reinterpret_cast< wxImageList * >(argp2);
34374 {
34375 PyThreadState* __tstate = wxPyBeginAllowThreads();
34376 (arg1)->SetStateImageList(arg2);
34377 wxPyEndAllowThreads(__tstate);
34378 if (PyErr_Occurred()) SWIG_fail;
34379 }
34380 resultobj = SWIG_Py_Void();
34381 return resultobj;
34382 fail:
34383 return NULL;
34384 }
34385
34386
34387 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34388 PyObject *resultobj = 0;
34389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34390 wxImageList *arg2 = (wxImageList *) 0 ;
34391 void *argp1 = 0 ;
34392 int res1 = 0 ;
34393 int res2 = 0 ;
34394 PyObject * obj0 = 0 ;
34395 PyObject * obj1 = 0 ;
34396 char * kwnames[] = {
34397 (char *) "self",(char *) "imageList", NULL
34398 };
34399
34400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34402 if (!SWIG_IsOK(res1)) {
34403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34404 }
34405 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34406 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34407 if (!SWIG_IsOK(res2)) {
34408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34409 }
34410 {
34411 PyThreadState* __tstate = wxPyBeginAllowThreads();
34412 (arg1)->AssignImageList(arg2);
34413 wxPyEndAllowThreads(__tstate);
34414 if (PyErr_Occurred()) SWIG_fail;
34415 }
34416 resultobj = SWIG_Py_Void();
34417 return resultobj;
34418 fail:
34419 return NULL;
34420 }
34421
34422
34423 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34424 PyObject *resultobj = 0;
34425 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34426 wxImageList *arg2 = (wxImageList *) 0 ;
34427 void *argp1 = 0 ;
34428 int res1 = 0 ;
34429 int res2 = 0 ;
34430 PyObject * obj0 = 0 ;
34431 PyObject * obj1 = 0 ;
34432 char * kwnames[] = {
34433 (char *) "self",(char *) "imageList", NULL
34434 };
34435
34436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34438 if (!SWIG_IsOK(res1)) {
34439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34440 }
34441 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34442 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34443 if (!SWIG_IsOK(res2)) {
34444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34445 }
34446 {
34447 PyThreadState* __tstate = wxPyBeginAllowThreads();
34448 (arg1)->AssignStateImageList(arg2);
34449 wxPyEndAllowThreads(__tstate);
34450 if (PyErr_Occurred()) SWIG_fail;
34451 }
34452 resultobj = SWIG_Py_Void();
34453 return resultobj;
34454 fail:
34455 return NULL;
34456 }
34457
34458
34459 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34460 PyObject *resultobj = 0;
34461 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34462 wxTreeItemId *arg2 = 0 ;
34463 wxString result;
34464 void *argp1 = 0 ;
34465 int res1 = 0 ;
34466 void *argp2 = 0 ;
34467 int res2 = 0 ;
34468 PyObject * obj0 = 0 ;
34469 PyObject * obj1 = 0 ;
34470 char * kwnames[] = {
34471 (char *) "self",(char *) "item", NULL
34472 };
34473
34474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34476 if (!SWIG_IsOK(res1)) {
34477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34478 }
34479 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34480 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34481 if (!SWIG_IsOK(res2)) {
34482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34483 }
34484 if (!argp2) {
34485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34486 }
34487 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34488 {
34489 PyThreadState* __tstate = wxPyBeginAllowThreads();
34490 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34491 wxPyEndAllowThreads(__tstate);
34492 if (PyErr_Occurred()) SWIG_fail;
34493 }
34494 {
34495 #if wxUSE_UNICODE
34496 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34497 #else
34498 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34499 #endif
34500 }
34501 return resultobj;
34502 fail:
34503 return NULL;
34504 }
34505
34506
34507 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34508 PyObject *resultobj = 0;
34509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34510 wxTreeItemId *arg2 = 0 ;
34511 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34512 int result;
34513 void *argp1 = 0 ;
34514 int res1 = 0 ;
34515 void *argp2 = 0 ;
34516 int res2 = 0 ;
34517 int val3 ;
34518 int ecode3 = 0 ;
34519 PyObject * obj0 = 0 ;
34520 PyObject * obj1 = 0 ;
34521 PyObject * obj2 = 0 ;
34522 char * kwnames[] = {
34523 (char *) "self",(char *) "item",(char *) "which", NULL
34524 };
34525
34526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34528 if (!SWIG_IsOK(res1)) {
34529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34530 }
34531 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34532 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34533 if (!SWIG_IsOK(res2)) {
34534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34535 }
34536 if (!argp2) {
34537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34538 }
34539 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34540 if (obj2) {
34541 ecode3 = SWIG_AsVal_int(obj2, &val3);
34542 if (!SWIG_IsOK(ecode3)) {
34543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34544 }
34545 arg3 = static_cast< wxTreeItemIcon >(val3);
34546 }
34547 {
34548 PyThreadState* __tstate = wxPyBeginAllowThreads();
34549 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34550 wxPyEndAllowThreads(__tstate);
34551 if (PyErr_Occurred()) SWIG_fail;
34552 }
34553 resultobj = SWIG_From_int(static_cast< int >(result));
34554 return resultobj;
34555 fail:
34556 return NULL;
34557 }
34558
34559
34560 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34561 PyObject *resultobj = 0;
34562 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34563 wxTreeItemId *arg2 = 0 ;
34564 wxPyTreeItemData *result = 0 ;
34565 void *argp1 = 0 ;
34566 int res1 = 0 ;
34567 void *argp2 = 0 ;
34568 int res2 = 0 ;
34569 PyObject * obj0 = 0 ;
34570 PyObject * obj1 = 0 ;
34571 char * kwnames[] = {
34572 (char *) "self",(char *) "item", NULL
34573 };
34574
34575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34577 if (!SWIG_IsOK(res1)) {
34578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34579 }
34580 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34581 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34582 if (!SWIG_IsOK(res2)) {
34583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34584 }
34585 if (!argp2) {
34586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34587 }
34588 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34589 {
34590 PyThreadState* __tstate = wxPyBeginAllowThreads();
34591 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34592 wxPyEndAllowThreads(__tstate);
34593 if (PyErr_Occurred()) SWIG_fail;
34594 }
34595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34596 return resultobj;
34597 fail:
34598 return NULL;
34599 }
34600
34601
34602 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34603 PyObject *resultobj = 0;
34604 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34605 wxTreeItemId *arg2 = 0 ;
34606 PyObject *result = 0 ;
34607 void *argp1 = 0 ;
34608 int res1 = 0 ;
34609 void *argp2 = 0 ;
34610 int res2 = 0 ;
34611 PyObject * obj0 = 0 ;
34612 PyObject * obj1 = 0 ;
34613 char * kwnames[] = {
34614 (char *) "self",(char *) "item", NULL
34615 };
34616
34617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34619 if (!SWIG_IsOK(res1)) {
34620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34621 }
34622 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34624 if (!SWIG_IsOK(res2)) {
34625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34626 }
34627 if (!argp2) {
34628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34629 }
34630 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34631 {
34632 PyThreadState* __tstate = wxPyBeginAllowThreads();
34633 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34634 wxPyEndAllowThreads(__tstate);
34635 if (PyErr_Occurred()) SWIG_fail;
34636 }
34637 resultobj = result;
34638 return resultobj;
34639 fail:
34640 return NULL;
34641 }
34642
34643
34644 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34645 PyObject *resultobj = 0;
34646 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34647 wxTreeItemId *arg2 = 0 ;
34648 wxColour result;
34649 void *argp1 = 0 ;
34650 int res1 = 0 ;
34651 void *argp2 = 0 ;
34652 int res2 = 0 ;
34653 PyObject * obj0 = 0 ;
34654 PyObject * obj1 = 0 ;
34655 char * kwnames[] = {
34656 (char *) "self",(char *) "item", NULL
34657 };
34658
34659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34661 if (!SWIG_IsOK(res1)) {
34662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34663 }
34664 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34665 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34666 if (!SWIG_IsOK(res2)) {
34667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34668 }
34669 if (!argp2) {
34670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34671 }
34672 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34673 {
34674 PyThreadState* __tstate = wxPyBeginAllowThreads();
34675 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34676 wxPyEndAllowThreads(__tstate);
34677 if (PyErr_Occurred()) SWIG_fail;
34678 }
34679 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34680 return resultobj;
34681 fail:
34682 return NULL;
34683 }
34684
34685
34686 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34687 PyObject *resultobj = 0;
34688 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34689 wxTreeItemId *arg2 = 0 ;
34690 wxColour result;
34691 void *argp1 = 0 ;
34692 int res1 = 0 ;
34693 void *argp2 = 0 ;
34694 int res2 = 0 ;
34695 PyObject * obj0 = 0 ;
34696 PyObject * obj1 = 0 ;
34697 char * kwnames[] = {
34698 (char *) "self",(char *) "item", NULL
34699 };
34700
34701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34703 if (!SWIG_IsOK(res1)) {
34704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34705 }
34706 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34708 if (!SWIG_IsOK(res2)) {
34709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34710 }
34711 if (!argp2) {
34712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34713 }
34714 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34715 {
34716 PyThreadState* __tstate = wxPyBeginAllowThreads();
34717 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34718 wxPyEndAllowThreads(__tstate);
34719 if (PyErr_Occurred()) SWIG_fail;
34720 }
34721 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34722 return resultobj;
34723 fail:
34724 return NULL;
34725 }
34726
34727
34728 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34729 PyObject *resultobj = 0;
34730 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34731 wxTreeItemId *arg2 = 0 ;
34732 wxFont result;
34733 void *argp1 = 0 ;
34734 int res1 = 0 ;
34735 void *argp2 = 0 ;
34736 int res2 = 0 ;
34737 PyObject * obj0 = 0 ;
34738 PyObject * obj1 = 0 ;
34739 char * kwnames[] = {
34740 (char *) "self",(char *) "item", NULL
34741 };
34742
34743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34745 if (!SWIG_IsOK(res1)) {
34746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34747 }
34748 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34749 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34750 if (!SWIG_IsOK(res2)) {
34751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34752 }
34753 if (!argp2) {
34754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34755 }
34756 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34757 {
34758 PyThreadState* __tstate = wxPyBeginAllowThreads();
34759 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34760 wxPyEndAllowThreads(__tstate);
34761 if (PyErr_Occurred()) SWIG_fail;
34762 }
34763 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34764 return resultobj;
34765 fail:
34766 return NULL;
34767 }
34768
34769
34770 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34771 PyObject *resultobj = 0;
34772 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34773 wxTreeItemId *arg2 = 0 ;
34774 wxString *arg3 = 0 ;
34775 void *argp1 = 0 ;
34776 int res1 = 0 ;
34777 void *argp2 = 0 ;
34778 int res2 = 0 ;
34779 bool temp3 = false ;
34780 PyObject * obj0 = 0 ;
34781 PyObject * obj1 = 0 ;
34782 PyObject * obj2 = 0 ;
34783 char * kwnames[] = {
34784 (char *) "self",(char *) "item",(char *) "text", NULL
34785 };
34786
34787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34789 if (!SWIG_IsOK(res1)) {
34790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34791 }
34792 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34794 if (!SWIG_IsOK(res2)) {
34795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34796 }
34797 if (!argp2) {
34798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34799 }
34800 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34801 {
34802 arg3 = wxString_in_helper(obj2);
34803 if (arg3 == NULL) SWIG_fail;
34804 temp3 = true;
34805 }
34806 {
34807 PyThreadState* __tstate = wxPyBeginAllowThreads();
34808 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34809 wxPyEndAllowThreads(__tstate);
34810 if (PyErr_Occurred()) SWIG_fail;
34811 }
34812 resultobj = SWIG_Py_Void();
34813 {
34814 if (temp3)
34815 delete arg3;
34816 }
34817 return resultobj;
34818 fail:
34819 {
34820 if (temp3)
34821 delete arg3;
34822 }
34823 return NULL;
34824 }
34825
34826
34827 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34828 PyObject *resultobj = 0;
34829 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34830 wxTreeItemId *arg2 = 0 ;
34831 int arg3 ;
34832 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34833 void *argp1 = 0 ;
34834 int res1 = 0 ;
34835 void *argp2 = 0 ;
34836 int res2 = 0 ;
34837 int val3 ;
34838 int ecode3 = 0 ;
34839 int val4 ;
34840 int ecode4 = 0 ;
34841 PyObject * obj0 = 0 ;
34842 PyObject * obj1 = 0 ;
34843 PyObject * obj2 = 0 ;
34844 PyObject * obj3 = 0 ;
34845 char * kwnames[] = {
34846 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34847 };
34848
34849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34851 if (!SWIG_IsOK(res1)) {
34852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34853 }
34854 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34856 if (!SWIG_IsOK(res2)) {
34857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34858 }
34859 if (!argp2) {
34860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34861 }
34862 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34863 ecode3 = SWIG_AsVal_int(obj2, &val3);
34864 if (!SWIG_IsOK(ecode3)) {
34865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34866 }
34867 arg3 = static_cast< int >(val3);
34868 if (obj3) {
34869 ecode4 = SWIG_AsVal_int(obj3, &val4);
34870 if (!SWIG_IsOK(ecode4)) {
34871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34872 }
34873 arg4 = static_cast< wxTreeItemIcon >(val4);
34874 }
34875 {
34876 PyThreadState* __tstate = wxPyBeginAllowThreads();
34877 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34878 wxPyEndAllowThreads(__tstate);
34879 if (PyErr_Occurred()) SWIG_fail;
34880 }
34881 resultobj = SWIG_Py_Void();
34882 return resultobj;
34883 fail:
34884 return NULL;
34885 }
34886
34887
34888 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34889 PyObject *resultobj = 0;
34890 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34891 wxTreeItemId *arg2 = 0 ;
34892 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34893 void *argp1 = 0 ;
34894 int res1 = 0 ;
34895 void *argp2 = 0 ;
34896 int res2 = 0 ;
34897 int res3 = 0 ;
34898 PyObject * obj0 = 0 ;
34899 PyObject * obj1 = 0 ;
34900 PyObject * obj2 = 0 ;
34901 char * kwnames[] = {
34902 (char *) "self",(char *) "item",(char *) "data", NULL
34903 };
34904
34905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34907 if (!SWIG_IsOK(res1)) {
34908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34909 }
34910 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34911 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34912 if (!SWIG_IsOK(res2)) {
34913 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34914 }
34915 if (!argp2) {
34916 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34917 }
34918 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34919 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34920 if (!SWIG_IsOK(res3)) {
34921 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34922 }
34923 {
34924 PyThreadState* __tstate = wxPyBeginAllowThreads();
34925 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34926 wxPyEndAllowThreads(__tstate);
34927 if (PyErr_Occurred()) SWIG_fail;
34928 }
34929 resultobj = SWIG_Py_Void();
34930 return resultobj;
34931 fail:
34932 return NULL;
34933 }
34934
34935
34936 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34937 PyObject *resultobj = 0;
34938 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34939 wxTreeItemId *arg2 = 0 ;
34940 PyObject *arg3 = (PyObject *) 0 ;
34941 void *argp1 = 0 ;
34942 int res1 = 0 ;
34943 void *argp2 = 0 ;
34944 int res2 = 0 ;
34945 PyObject * obj0 = 0 ;
34946 PyObject * obj1 = 0 ;
34947 PyObject * obj2 = 0 ;
34948 char * kwnames[] = {
34949 (char *) "self",(char *) "item",(char *) "obj", NULL
34950 };
34951
34952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34954 if (!SWIG_IsOK(res1)) {
34955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34956 }
34957 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34958 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34959 if (!SWIG_IsOK(res2)) {
34960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34961 }
34962 if (!argp2) {
34963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34964 }
34965 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34966 arg3 = obj2;
34967 {
34968 PyThreadState* __tstate = wxPyBeginAllowThreads();
34969 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34970 wxPyEndAllowThreads(__tstate);
34971 if (PyErr_Occurred()) SWIG_fail;
34972 }
34973 resultobj = SWIG_Py_Void();
34974 return resultobj;
34975 fail:
34976 return NULL;
34977 }
34978
34979
34980 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34981 PyObject *resultobj = 0;
34982 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34983 wxTreeItemId *arg2 = 0 ;
34984 bool arg3 = (bool) true ;
34985 void *argp1 = 0 ;
34986 int res1 = 0 ;
34987 void *argp2 = 0 ;
34988 int res2 = 0 ;
34989 bool val3 ;
34990 int ecode3 = 0 ;
34991 PyObject * obj0 = 0 ;
34992 PyObject * obj1 = 0 ;
34993 PyObject * obj2 = 0 ;
34994 char * kwnames[] = {
34995 (char *) "self",(char *) "item",(char *) "has", NULL
34996 };
34997
34998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35000 if (!SWIG_IsOK(res1)) {
35001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35002 }
35003 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35005 if (!SWIG_IsOK(res2)) {
35006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35007 }
35008 if (!argp2) {
35009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35010 }
35011 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35012 if (obj2) {
35013 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35014 if (!SWIG_IsOK(ecode3)) {
35015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35016 }
35017 arg3 = static_cast< bool >(val3);
35018 }
35019 {
35020 PyThreadState* __tstate = wxPyBeginAllowThreads();
35021 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35022 wxPyEndAllowThreads(__tstate);
35023 if (PyErr_Occurred()) SWIG_fail;
35024 }
35025 resultobj = SWIG_Py_Void();
35026 return resultobj;
35027 fail:
35028 return NULL;
35029 }
35030
35031
35032 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35033 PyObject *resultobj = 0;
35034 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35035 wxTreeItemId *arg2 = 0 ;
35036 bool arg3 = (bool) true ;
35037 void *argp1 = 0 ;
35038 int res1 = 0 ;
35039 void *argp2 = 0 ;
35040 int res2 = 0 ;
35041 bool val3 ;
35042 int ecode3 = 0 ;
35043 PyObject * obj0 = 0 ;
35044 PyObject * obj1 = 0 ;
35045 PyObject * obj2 = 0 ;
35046 char * kwnames[] = {
35047 (char *) "self",(char *) "item",(char *) "bold", NULL
35048 };
35049
35050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35052 if (!SWIG_IsOK(res1)) {
35053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35054 }
35055 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35057 if (!SWIG_IsOK(res2)) {
35058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35059 }
35060 if (!argp2) {
35061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35062 }
35063 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35064 if (obj2) {
35065 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35066 if (!SWIG_IsOK(ecode3)) {
35067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35068 }
35069 arg3 = static_cast< bool >(val3);
35070 }
35071 {
35072 PyThreadState* __tstate = wxPyBeginAllowThreads();
35073 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35074 wxPyEndAllowThreads(__tstate);
35075 if (PyErr_Occurred()) SWIG_fail;
35076 }
35077 resultobj = SWIG_Py_Void();
35078 return resultobj;
35079 fail:
35080 return NULL;
35081 }
35082
35083
35084 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35085 PyObject *resultobj = 0;
35086 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35087 wxTreeItemId *arg2 = 0 ;
35088 bool arg3 = (bool) true ;
35089 void *argp1 = 0 ;
35090 int res1 = 0 ;
35091 void *argp2 = 0 ;
35092 int res2 = 0 ;
35093 bool val3 ;
35094 int ecode3 = 0 ;
35095 PyObject * obj0 = 0 ;
35096 PyObject * obj1 = 0 ;
35097 PyObject * obj2 = 0 ;
35098 char * kwnames[] = {
35099 (char *) "self",(char *) "item",(char *) "highlight", NULL
35100 };
35101
35102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35104 if (!SWIG_IsOK(res1)) {
35105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35106 }
35107 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35108 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35109 if (!SWIG_IsOK(res2)) {
35110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35111 }
35112 if (!argp2) {
35113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35114 }
35115 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35116 if (obj2) {
35117 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35118 if (!SWIG_IsOK(ecode3)) {
35119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35120 }
35121 arg3 = static_cast< bool >(val3);
35122 }
35123 {
35124 PyThreadState* __tstate = wxPyBeginAllowThreads();
35125 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35126 wxPyEndAllowThreads(__tstate);
35127 if (PyErr_Occurred()) SWIG_fail;
35128 }
35129 resultobj = SWIG_Py_Void();
35130 return resultobj;
35131 fail:
35132 return NULL;
35133 }
35134
35135
35136 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35137 PyObject *resultobj = 0;
35138 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35139 wxTreeItemId *arg2 = 0 ;
35140 wxColour *arg3 = 0 ;
35141 void *argp1 = 0 ;
35142 int res1 = 0 ;
35143 void *argp2 = 0 ;
35144 int res2 = 0 ;
35145 wxColour temp3 ;
35146 PyObject * obj0 = 0 ;
35147 PyObject * obj1 = 0 ;
35148 PyObject * obj2 = 0 ;
35149 char * kwnames[] = {
35150 (char *) "self",(char *) "item",(char *) "col", NULL
35151 };
35152
35153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35155 if (!SWIG_IsOK(res1)) {
35156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35157 }
35158 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35159 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35160 if (!SWIG_IsOK(res2)) {
35161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35162 }
35163 if (!argp2) {
35164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35165 }
35166 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35167 {
35168 arg3 = &temp3;
35169 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35170 }
35171 {
35172 PyThreadState* __tstate = wxPyBeginAllowThreads();
35173 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35174 wxPyEndAllowThreads(__tstate);
35175 if (PyErr_Occurred()) SWIG_fail;
35176 }
35177 resultobj = SWIG_Py_Void();
35178 return resultobj;
35179 fail:
35180 return NULL;
35181 }
35182
35183
35184 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35185 PyObject *resultobj = 0;
35186 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35187 wxTreeItemId *arg2 = 0 ;
35188 wxColour *arg3 = 0 ;
35189 void *argp1 = 0 ;
35190 int res1 = 0 ;
35191 void *argp2 = 0 ;
35192 int res2 = 0 ;
35193 wxColour temp3 ;
35194 PyObject * obj0 = 0 ;
35195 PyObject * obj1 = 0 ;
35196 PyObject * obj2 = 0 ;
35197 char * kwnames[] = {
35198 (char *) "self",(char *) "item",(char *) "col", NULL
35199 };
35200
35201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35203 if (!SWIG_IsOK(res1)) {
35204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35205 }
35206 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35207 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35208 if (!SWIG_IsOK(res2)) {
35209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35210 }
35211 if (!argp2) {
35212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35213 }
35214 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35215 {
35216 arg3 = &temp3;
35217 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35218 }
35219 {
35220 PyThreadState* __tstate = wxPyBeginAllowThreads();
35221 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35222 wxPyEndAllowThreads(__tstate);
35223 if (PyErr_Occurred()) SWIG_fail;
35224 }
35225 resultobj = SWIG_Py_Void();
35226 return resultobj;
35227 fail:
35228 return NULL;
35229 }
35230
35231
35232 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35233 PyObject *resultobj = 0;
35234 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35235 wxTreeItemId *arg2 = 0 ;
35236 wxFont *arg3 = 0 ;
35237 void *argp1 = 0 ;
35238 int res1 = 0 ;
35239 void *argp2 = 0 ;
35240 int res2 = 0 ;
35241 void *argp3 = 0 ;
35242 int res3 = 0 ;
35243 PyObject * obj0 = 0 ;
35244 PyObject * obj1 = 0 ;
35245 PyObject * obj2 = 0 ;
35246 char * kwnames[] = {
35247 (char *) "self",(char *) "item",(char *) "font", NULL
35248 };
35249
35250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35252 if (!SWIG_IsOK(res1)) {
35253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35254 }
35255 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35257 if (!SWIG_IsOK(res2)) {
35258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35259 }
35260 if (!argp2) {
35261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35262 }
35263 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35264 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35265 if (!SWIG_IsOK(res3)) {
35266 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35267 }
35268 if (!argp3) {
35269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35270 }
35271 arg3 = reinterpret_cast< wxFont * >(argp3);
35272 {
35273 PyThreadState* __tstate = wxPyBeginAllowThreads();
35274 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35275 wxPyEndAllowThreads(__tstate);
35276 if (PyErr_Occurred()) SWIG_fail;
35277 }
35278 resultobj = SWIG_Py_Void();
35279 return resultobj;
35280 fail:
35281 return NULL;
35282 }
35283
35284
35285 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35286 PyObject *resultobj = 0;
35287 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35288 wxTreeItemId *arg2 = 0 ;
35289 bool result;
35290 void *argp1 = 0 ;
35291 int res1 = 0 ;
35292 void *argp2 = 0 ;
35293 int res2 = 0 ;
35294 PyObject * obj0 = 0 ;
35295 PyObject * obj1 = 0 ;
35296 char * kwnames[] = {
35297 (char *) "self",(char *) "item", NULL
35298 };
35299
35300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35302 if (!SWIG_IsOK(res1)) {
35303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35304 }
35305 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35306 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35307 if (!SWIG_IsOK(res2)) {
35308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35309 }
35310 if (!argp2) {
35311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35312 }
35313 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35314 {
35315 PyThreadState* __tstate = wxPyBeginAllowThreads();
35316 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35317 wxPyEndAllowThreads(__tstate);
35318 if (PyErr_Occurred()) SWIG_fail;
35319 }
35320 {
35321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35322 }
35323 return resultobj;
35324 fail:
35325 return NULL;
35326 }
35327
35328
35329 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35330 PyObject *resultobj = 0;
35331 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35332 wxTreeItemId *arg2 = 0 ;
35333 bool result;
35334 void *argp1 = 0 ;
35335 int res1 = 0 ;
35336 void *argp2 = 0 ;
35337 int res2 = 0 ;
35338 PyObject * obj0 = 0 ;
35339 PyObject * obj1 = 0 ;
35340 char * kwnames[] = {
35341 (char *) "self",(char *) "item", NULL
35342 };
35343
35344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35346 if (!SWIG_IsOK(res1)) {
35347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35348 }
35349 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35351 if (!SWIG_IsOK(res2)) {
35352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35353 }
35354 if (!argp2) {
35355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35356 }
35357 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35358 {
35359 PyThreadState* __tstate = wxPyBeginAllowThreads();
35360 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35361 wxPyEndAllowThreads(__tstate);
35362 if (PyErr_Occurred()) SWIG_fail;
35363 }
35364 {
35365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35366 }
35367 return resultobj;
35368 fail:
35369 return NULL;
35370 }
35371
35372
35373 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35374 PyObject *resultobj = 0;
35375 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35376 wxTreeItemId *arg2 = 0 ;
35377 bool result;
35378 void *argp1 = 0 ;
35379 int res1 = 0 ;
35380 void *argp2 = 0 ;
35381 int res2 = 0 ;
35382 PyObject * obj0 = 0 ;
35383 PyObject * obj1 = 0 ;
35384 char * kwnames[] = {
35385 (char *) "self",(char *) "item", NULL
35386 };
35387
35388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35390 if (!SWIG_IsOK(res1)) {
35391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35392 }
35393 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35395 if (!SWIG_IsOK(res2)) {
35396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35397 }
35398 if (!argp2) {
35399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35400 }
35401 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35402 {
35403 PyThreadState* __tstate = wxPyBeginAllowThreads();
35404 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35405 wxPyEndAllowThreads(__tstate);
35406 if (PyErr_Occurred()) SWIG_fail;
35407 }
35408 {
35409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35410 }
35411 return resultobj;
35412 fail:
35413 return NULL;
35414 }
35415
35416
35417 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35418 PyObject *resultobj = 0;
35419 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35420 wxTreeItemId *arg2 = 0 ;
35421 bool result;
35422 void *argp1 = 0 ;
35423 int res1 = 0 ;
35424 void *argp2 = 0 ;
35425 int res2 = 0 ;
35426 PyObject * obj0 = 0 ;
35427 PyObject * obj1 = 0 ;
35428 char * kwnames[] = {
35429 (char *) "self",(char *) "item", NULL
35430 };
35431
35432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35434 if (!SWIG_IsOK(res1)) {
35435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35436 }
35437 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35438 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35439 if (!SWIG_IsOK(res2)) {
35440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35441 }
35442 if (!argp2) {
35443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35444 }
35445 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35446 {
35447 PyThreadState* __tstate = wxPyBeginAllowThreads();
35448 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35449 wxPyEndAllowThreads(__tstate);
35450 if (PyErr_Occurred()) SWIG_fail;
35451 }
35452 {
35453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35454 }
35455 return resultobj;
35456 fail:
35457 return NULL;
35458 }
35459
35460
35461 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35462 PyObject *resultobj = 0;
35463 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35464 wxTreeItemId *arg2 = 0 ;
35465 bool result;
35466 void *argp1 = 0 ;
35467 int res1 = 0 ;
35468 void *argp2 = 0 ;
35469 int res2 = 0 ;
35470 PyObject * obj0 = 0 ;
35471 PyObject * obj1 = 0 ;
35472 char * kwnames[] = {
35473 (char *) "self",(char *) "item", NULL
35474 };
35475
35476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35478 if (!SWIG_IsOK(res1)) {
35479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35480 }
35481 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35482 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35483 if (!SWIG_IsOK(res2)) {
35484 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35485 }
35486 if (!argp2) {
35487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35488 }
35489 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35490 {
35491 PyThreadState* __tstate = wxPyBeginAllowThreads();
35492 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35493 wxPyEndAllowThreads(__tstate);
35494 if (PyErr_Occurred()) SWIG_fail;
35495 }
35496 {
35497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35498 }
35499 return resultobj;
35500 fail:
35501 return NULL;
35502 }
35503
35504
35505 SWIGINTERN PyObject *_wrap_TreeCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35506 PyObject *resultobj = 0;
35507 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35508 bool result;
35509 void *argp1 = 0 ;
35510 int res1 = 0 ;
35511 PyObject *swig_obj[1] ;
35512
35513 if (!args) SWIG_fail;
35514 swig_obj[0] = args;
35515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35516 if (!SWIG_IsOK(res1)) {
35517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35518 }
35519 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35520 {
35521 PyThreadState* __tstate = wxPyBeginAllowThreads();
35522 result = (bool)((wxPyTreeCtrl const *)arg1)->IsEmpty();
35523 wxPyEndAllowThreads(__tstate);
35524 if (PyErr_Occurred()) SWIG_fail;
35525 }
35526 {
35527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35528 }
35529 return resultobj;
35530 fail:
35531 return NULL;
35532 }
35533
35534
35535 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35536 PyObject *resultobj = 0;
35537 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35538 wxTreeItemId *arg2 = 0 ;
35539 bool arg3 = (bool) true ;
35540 size_t result;
35541 void *argp1 = 0 ;
35542 int res1 = 0 ;
35543 void *argp2 = 0 ;
35544 int res2 = 0 ;
35545 bool val3 ;
35546 int ecode3 = 0 ;
35547 PyObject * obj0 = 0 ;
35548 PyObject * obj1 = 0 ;
35549 PyObject * obj2 = 0 ;
35550 char * kwnames[] = {
35551 (char *) "self",(char *) "item",(char *) "recursively", NULL
35552 };
35553
35554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35556 if (!SWIG_IsOK(res1)) {
35557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35558 }
35559 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35560 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35561 if (!SWIG_IsOK(res2)) {
35562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35563 }
35564 if (!argp2) {
35565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35566 }
35567 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35568 if (obj2) {
35569 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35570 if (!SWIG_IsOK(ecode3)) {
35571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35572 }
35573 arg3 = static_cast< bool >(val3);
35574 }
35575 {
35576 PyThreadState* __tstate = wxPyBeginAllowThreads();
35577 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35578 wxPyEndAllowThreads(__tstate);
35579 if (PyErr_Occurred()) SWIG_fail;
35580 }
35581 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35582 return resultobj;
35583 fail:
35584 return NULL;
35585 }
35586
35587
35588 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35589 PyObject *resultobj = 0;
35590 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35591 wxTreeItemId result;
35592 void *argp1 = 0 ;
35593 int res1 = 0 ;
35594 PyObject *swig_obj[1] ;
35595
35596 if (!args) SWIG_fail;
35597 swig_obj[0] = args;
35598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35599 if (!SWIG_IsOK(res1)) {
35600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35601 }
35602 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35603 {
35604 PyThreadState* __tstate = wxPyBeginAllowThreads();
35605 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35606 wxPyEndAllowThreads(__tstate);
35607 if (PyErr_Occurred()) SWIG_fail;
35608 }
35609 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35610 return resultobj;
35611 fail:
35612 return NULL;
35613 }
35614
35615
35616 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35617 PyObject *resultobj = 0;
35618 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35619 wxTreeItemId result;
35620 void *argp1 = 0 ;
35621 int res1 = 0 ;
35622 PyObject *swig_obj[1] ;
35623
35624 if (!args) SWIG_fail;
35625 swig_obj[0] = args;
35626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35627 if (!SWIG_IsOK(res1)) {
35628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35629 }
35630 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35631 {
35632 PyThreadState* __tstate = wxPyBeginAllowThreads();
35633 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35634 wxPyEndAllowThreads(__tstate);
35635 if (PyErr_Occurred()) SWIG_fail;
35636 }
35637 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35638 return resultobj;
35639 fail:
35640 return NULL;
35641 }
35642
35643
35644 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35645 PyObject *resultobj = 0;
35646 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35647 PyObject *result = 0 ;
35648 void *argp1 = 0 ;
35649 int res1 = 0 ;
35650 PyObject *swig_obj[1] ;
35651
35652 if (!args) SWIG_fail;
35653 swig_obj[0] = args;
35654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35655 if (!SWIG_IsOK(res1)) {
35656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35657 }
35658 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35659 {
35660 PyThreadState* __tstate = wxPyBeginAllowThreads();
35661 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35662 wxPyEndAllowThreads(__tstate);
35663 if (PyErr_Occurred()) SWIG_fail;
35664 }
35665 resultobj = result;
35666 return resultobj;
35667 fail:
35668 return NULL;
35669 }
35670
35671
35672 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35673 PyObject *resultobj = 0;
35674 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35675 wxTreeItemId *arg2 = 0 ;
35676 wxTreeItemId result;
35677 void *argp1 = 0 ;
35678 int res1 = 0 ;
35679 void *argp2 = 0 ;
35680 int res2 = 0 ;
35681 PyObject * obj0 = 0 ;
35682 PyObject * obj1 = 0 ;
35683 char * kwnames[] = {
35684 (char *) "self",(char *) "item", NULL
35685 };
35686
35687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35689 if (!SWIG_IsOK(res1)) {
35690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35691 }
35692 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35694 if (!SWIG_IsOK(res2)) {
35695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35696 }
35697 if (!argp2) {
35698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35699 }
35700 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35701 {
35702 PyThreadState* __tstate = wxPyBeginAllowThreads();
35703 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35704 wxPyEndAllowThreads(__tstate);
35705 if (PyErr_Occurred()) SWIG_fail;
35706 }
35707 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35708 return resultobj;
35709 fail:
35710 return NULL;
35711 }
35712
35713
35714 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35715 PyObject *resultobj = 0;
35716 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35717 wxTreeItemId *arg2 = 0 ;
35718 PyObject *result = 0 ;
35719 void *argp1 = 0 ;
35720 int res1 = 0 ;
35721 void *argp2 = 0 ;
35722 int res2 = 0 ;
35723 PyObject * obj0 = 0 ;
35724 PyObject * obj1 = 0 ;
35725 char * kwnames[] = {
35726 (char *) "self",(char *) "item", NULL
35727 };
35728
35729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35731 if (!SWIG_IsOK(res1)) {
35732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35733 }
35734 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35736 if (!SWIG_IsOK(res2)) {
35737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35738 }
35739 if (!argp2) {
35740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35741 }
35742 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35743 {
35744 PyThreadState* __tstate = wxPyBeginAllowThreads();
35745 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35746 wxPyEndAllowThreads(__tstate);
35747 if (PyErr_Occurred()) SWIG_fail;
35748 }
35749 resultobj = result;
35750 return resultobj;
35751 fail:
35752 return NULL;
35753 }
35754
35755
35756 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35757 PyObject *resultobj = 0;
35758 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35759 wxTreeItemId *arg2 = 0 ;
35760 void *arg3 = (void *) 0 ;
35761 PyObject *result = 0 ;
35762 void *argp1 = 0 ;
35763 int res1 = 0 ;
35764 void *argp2 = 0 ;
35765 int res2 = 0 ;
35766 int res3 ;
35767 PyObject * obj0 = 0 ;
35768 PyObject * obj1 = 0 ;
35769 PyObject * obj2 = 0 ;
35770 char * kwnames[] = {
35771 (char *) "self",(char *) "item",(char *) "cookie", NULL
35772 };
35773
35774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35776 if (!SWIG_IsOK(res1)) {
35777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35778 }
35779 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35781 if (!SWIG_IsOK(res2)) {
35782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35783 }
35784 if (!argp2) {
35785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35786 }
35787 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35788 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35789 if (!SWIG_IsOK(res3)) {
35790 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35791 }
35792 {
35793 PyThreadState* __tstate = wxPyBeginAllowThreads();
35794 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35795 wxPyEndAllowThreads(__tstate);
35796 if (PyErr_Occurred()) SWIG_fail;
35797 }
35798 resultobj = result;
35799 return resultobj;
35800 fail:
35801 return NULL;
35802 }
35803
35804
35805 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35806 PyObject *resultobj = 0;
35807 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35808 wxTreeItemId *arg2 = 0 ;
35809 wxTreeItemId result;
35810 void *argp1 = 0 ;
35811 int res1 = 0 ;
35812 void *argp2 = 0 ;
35813 int res2 = 0 ;
35814 PyObject * obj0 = 0 ;
35815 PyObject * obj1 = 0 ;
35816 char * kwnames[] = {
35817 (char *) "self",(char *) "item", NULL
35818 };
35819
35820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35822 if (!SWIG_IsOK(res1)) {
35823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35824 }
35825 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35826 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35827 if (!SWIG_IsOK(res2)) {
35828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35829 }
35830 if (!argp2) {
35831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35832 }
35833 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35834 {
35835 PyThreadState* __tstate = wxPyBeginAllowThreads();
35836 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35837 wxPyEndAllowThreads(__tstate);
35838 if (PyErr_Occurred()) SWIG_fail;
35839 }
35840 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35841 return resultobj;
35842 fail:
35843 return NULL;
35844 }
35845
35846
35847 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35848 PyObject *resultobj = 0;
35849 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35850 wxTreeItemId *arg2 = 0 ;
35851 wxTreeItemId result;
35852 void *argp1 = 0 ;
35853 int res1 = 0 ;
35854 void *argp2 = 0 ;
35855 int res2 = 0 ;
35856 PyObject * obj0 = 0 ;
35857 PyObject * obj1 = 0 ;
35858 char * kwnames[] = {
35859 (char *) "self",(char *) "item", NULL
35860 };
35861
35862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35864 if (!SWIG_IsOK(res1)) {
35865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35866 }
35867 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35869 if (!SWIG_IsOK(res2)) {
35870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35871 }
35872 if (!argp2) {
35873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35874 }
35875 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35876 {
35877 PyThreadState* __tstate = wxPyBeginAllowThreads();
35878 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35879 wxPyEndAllowThreads(__tstate);
35880 if (PyErr_Occurred()) SWIG_fail;
35881 }
35882 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35883 return resultobj;
35884 fail:
35885 return NULL;
35886 }
35887
35888
35889 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35890 PyObject *resultobj = 0;
35891 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35892 wxTreeItemId *arg2 = 0 ;
35893 wxTreeItemId result;
35894 void *argp1 = 0 ;
35895 int res1 = 0 ;
35896 void *argp2 = 0 ;
35897 int res2 = 0 ;
35898 PyObject * obj0 = 0 ;
35899 PyObject * obj1 = 0 ;
35900 char * kwnames[] = {
35901 (char *) "self",(char *) "item", NULL
35902 };
35903
35904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35906 if (!SWIG_IsOK(res1)) {
35907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35908 }
35909 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35911 if (!SWIG_IsOK(res2)) {
35912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35913 }
35914 if (!argp2) {
35915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35916 }
35917 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35918 {
35919 PyThreadState* __tstate = wxPyBeginAllowThreads();
35920 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35921 wxPyEndAllowThreads(__tstate);
35922 if (PyErr_Occurred()) SWIG_fail;
35923 }
35924 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35925 return resultobj;
35926 fail:
35927 return NULL;
35928 }
35929
35930
35931 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35932 PyObject *resultobj = 0;
35933 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35934 wxTreeItemId result;
35935 void *argp1 = 0 ;
35936 int res1 = 0 ;
35937 PyObject *swig_obj[1] ;
35938
35939 if (!args) SWIG_fail;
35940 swig_obj[0] = args;
35941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35942 if (!SWIG_IsOK(res1)) {
35943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35944 }
35945 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35946 {
35947 PyThreadState* __tstate = wxPyBeginAllowThreads();
35948 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35949 wxPyEndAllowThreads(__tstate);
35950 if (PyErr_Occurred()) SWIG_fail;
35951 }
35952 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35953 return resultobj;
35954 fail:
35955 return NULL;
35956 }
35957
35958
35959 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35960 PyObject *resultobj = 0;
35961 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35962 wxTreeItemId *arg2 = 0 ;
35963 wxTreeItemId result;
35964 void *argp1 = 0 ;
35965 int res1 = 0 ;
35966 void *argp2 = 0 ;
35967 int res2 = 0 ;
35968 PyObject * obj0 = 0 ;
35969 PyObject * obj1 = 0 ;
35970 char * kwnames[] = {
35971 (char *) "self",(char *) "item", NULL
35972 };
35973
35974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35976 if (!SWIG_IsOK(res1)) {
35977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35978 }
35979 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35980 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35981 if (!SWIG_IsOK(res2)) {
35982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35983 }
35984 if (!argp2) {
35985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35986 }
35987 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35988 {
35989 PyThreadState* __tstate = wxPyBeginAllowThreads();
35990 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35991 wxPyEndAllowThreads(__tstate);
35992 if (PyErr_Occurred()) SWIG_fail;
35993 }
35994 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35995 return resultobj;
35996 fail:
35997 return NULL;
35998 }
35999
36000
36001 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36002 PyObject *resultobj = 0;
36003 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36004 wxTreeItemId *arg2 = 0 ;
36005 wxTreeItemId result;
36006 void *argp1 = 0 ;
36007 int res1 = 0 ;
36008 void *argp2 = 0 ;
36009 int res2 = 0 ;
36010 PyObject * obj0 = 0 ;
36011 PyObject * obj1 = 0 ;
36012 char * kwnames[] = {
36013 (char *) "self",(char *) "item", NULL
36014 };
36015
36016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36018 if (!SWIG_IsOK(res1)) {
36019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36020 }
36021 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36023 if (!SWIG_IsOK(res2)) {
36024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36025 }
36026 if (!argp2) {
36027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36028 }
36029 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36030 {
36031 PyThreadState* __tstate = wxPyBeginAllowThreads();
36032 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36033 wxPyEndAllowThreads(__tstate);
36034 if (PyErr_Occurred()) SWIG_fail;
36035 }
36036 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36037 return resultobj;
36038 fail:
36039 return NULL;
36040 }
36041
36042
36043 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36044 PyObject *resultobj = 0;
36045 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36046 wxString *arg2 = 0 ;
36047 int arg3 = (int) -1 ;
36048 int arg4 = (int) -1 ;
36049 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36050 wxTreeItemId result;
36051 void *argp1 = 0 ;
36052 int res1 = 0 ;
36053 bool temp2 = false ;
36054 int val3 ;
36055 int ecode3 = 0 ;
36056 int val4 ;
36057 int ecode4 = 0 ;
36058 int res5 = 0 ;
36059 PyObject * obj0 = 0 ;
36060 PyObject * obj1 = 0 ;
36061 PyObject * obj2 = 0 ;
36062 PyObject * obj3 = 0 ;
36063 PyObject * obj4 = 0 ;
36064 char * kwnames[] = {
36065 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36066 };
36067
36068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36070 if (!SWIG_IsOK(res1)) {
36071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36072 }
36073 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36074 {
36075 arg2 = wxString_in_helper(obj1);
36076 if (arg2 == NULL) SWIG_fail;
36077 temp2 = true;
36078 }
36079 if (obj2) {
36080 ecode3 = SWIG_AsVal_int(obj2, &val3);
36081 if (!SWIG_IsOK(ecode3)) {
36082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36083 }
36084 arg3 = static_cast< int >(val3);
36085 }
36086 if (obj3) {
36087 ecode4 = SWIG_AsVal_int(obj3, &val4);
36088 if (!SWIG_IsOK(ecode4)) {
36089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36090 }
36091 arg4 = static_cast< int >(val4);
36092 }
36093 if (obj4) {
36094 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36095 if (!SWIG_IsOK(res5)) {
36096 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36097 }
36098 }
36099 {
36100 PyThreadState* __tstate = wxPyBeginAllowThreads();
36101 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36102 wxPyEndAllowThreads(__tstate);
36103 if (PyErr_Occurred()) SWIG_fail;
36104 }
36105 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36106 {
36107 if (temp2)
36108 delete arg2;
36109 }
36110 return resultobj;
36111 fail:
36112 {
36113 if (temp2)
36114 delete arg2;
36115 }
36116 return NULL;
36117 }
36118
36119
36120 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36121 PyObject *resultobj = 0;
36122 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36123 wxTreeItemId *arg2 = 0 ;
36124 wxString *arg3 = 0 ;
36125 int arg4 = (int) -1 ;
36126 int arg5 = (int) -1 ;
36127 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36128 wxTreeItemId result;
36129 void *argp1 = 0 ;
36130 int res1 = 0 ;
36131 void *argp2 = 0 ;
36132 int res2 = 0 ;
36133 bool temp3 = false ;
36134 int val4 ;
36135 int ecode4 = 0 ;
36136 int val5 ;
36137 int ecode5 = 0 ;
36138 int res6 = 0 ;
36139 PyObject * obj0 = 0 ;
36140 PyObject * obj1 = 0 ;
36141 PyObject * obj2 = 0 ;
36142 PyObject * obj3 = 0 ;
36143 PyObject * obj4 = 0 ;
36144 PyObject * obj5 = 0 ;
36145 char * kwnames[] = {
36146 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36147 };
36148
36149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36151 if (!SWIG_IsOK(res1)) {
36152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36153 }
36154 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36156 if (!SWIG_IsOK(res2)) {
36157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36158 }
36159 if (!argp2) {
36160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36161 }
36162 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36163 {
36164 arg3 = wxString_in_helper(obj2);
36165 if (arg3 == NULL) SWIG_fail;
36166 temp3 = true;
36167 }
36168 if (obj3) {
36169 ecode4 = SWIG_AsVal_int(obj3, &val4);
36170 if (!SWIG_IsOK(ecode4)) {
36171 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36172 }
36173 arg4 = static_cast< int >(val4);
36174 }
36175 if (obj4) {
36176 ecode5 = SWIG_AsVal_int(obj4, &val5);
36177 if (!SWIG_IsOK(ecode5)) {
36178 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36179 }
36180 arg5 = static_cast< int >(val5);
36181 }
36182 if (obj5) {
36183 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36184 if (!SWIG_IsOK(res6)) {
36185 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36186 }
36187 }
36188 {
36189 PyThreadState* __tstate = wxPyBeginAllowThreads();
36190 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36191 wxPyEndAllowThreads(__tstate);
36192 if (PyErr_Occurred()) SWIG_fail;
36193 }
36194 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36195 {
36196 if (temp3)
36197 delete arg3;
36198 }
36199 return resultobj;
36200 fail:
36201 {
36202 if (temp3)
36203 delete arg3;
36204 }
36205 return NULL;
36206 }
36207
36208
36209 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36210 PyObject *resultobj = 0;
36211 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36212 wxTreeItemId *arg2 = 0 ;
36213 wxTreeItemId *arg3 = 0 ;
36214 wxString *arg4 = 0 ;
36215 int arg5 = (int) -1 ;
36216 int arg6 = (int) -1 ;
36217 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36218 wxTreeItemId result;
36219 void *argp1 = 0 ;
36220 int res1 = 0 ;
36221 void *argp2 = 0 ;
36222 int res2 = 0 ;
36223 void *argp3 = 0 ;
36224 int res3 = 0 ;
36225 bool temp4 = false ;
36226 int val5 ;
36227 int ecode5 = 0 ;
36228 int val6 ;
36229 int ecode6 = 0 ;
36230 int res7 = 0 ;
36231 PyObject * obj0 = 0 ;
36232 PyObject * obj1 = 0 ;
36233 PyObject * obj2 = 0 ;
36234 PyObject * obj3 = 0 ;
36235 PyObject * obj4 = 0 ;
36236 PyObject * obj5 = 0 ;
36237 PyObject * obj6 = 0 ;
36238 char * kwnames[] = {
36239 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36240 };
36241
36242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36244 if (!SWIG_IsOK(res1)) {
36245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36246 }
36247 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36248 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36249 if (!SWIG_IsOK(res2)) {
36250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36251 }
36252 if (!argp2) {
36253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36254 }
36255 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36256 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36257 if (!SWIG_IsOK(res3)) {
36258 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36259 }
36260 if (!argp3) {
36261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36262 }
36263 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36264 {
36265 arg4 = wxString_in_helper(obj3);
36266 if (arg4 == NULL) SWIG_fail;
36267 temp4 = true;
36268 }
36269 if (obj4) {
36270 ecode5 = SWIG_AsVal_int(obj4, &val5);
36271 if (!SWIG_IsOK(ecode5)) {
36272 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36273 }
36274 arg5 = static_cast< int >(val5);
36275 }
36276 if (obj5) {
36277 ecode6 = SWIG_AsVal_int(obj5, &val6);
36278 if (!SWIG_IsOK(ecode6)) {
36279 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36280 }
36281 arg6 = static_cast< int >(val6);
36282 }
36283 if (obj6) {
36284 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36285 if (!SWIG_IsOK(res7)) {
36286 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36287 }
36288 }
36289 {
36290 PyThreadState* __tstate = wxPyBeginAllowThreads();
36291 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36292 wxPyEndAllowThreads(__tstate);
36293 if (PyErr_Occurred()) SWIG_fail;
36294 }
36295 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36296 {
36297 if (temp4)
36298 delete arg4;
36299 }
36300 return resultobj;
36301 fail:
36302 {
36303 if (temp4)
36304 delete arg4;
36305 }
36306 return NULL;
36307 }
36308
36309
36310 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36311 PyObject *resultobj = 0;
36312 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36313 wxTreeItemId *arg2 = 0 ;
36314 size_t arg3 ;
36315 wxString *arg4 = 0 ;
36316 int arg5 = (int) -1 ;
36317 int arg6 = (int) -1 ;
36318 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36319 wxTreeItemId result;
36320 void *argp1 = 0 ;
36321 int res1 = 0 ;
36322 void *argp2 = 0 ;
36323 int res2 = 0 ;
36324 size_t val3 ;
36325 int ecode3 = 0 ;
36326 bool temp4 = false ;
36327 int val5 ;
36328 int ecode5 = 0 ;
36329 int val6 ;
36330 int ecode6 = 0 ;
36331 int res7 = 0 ;
36332 PyObject * obj0 = 0 ;
36333 PyObject * obj1 = 0 ;
36334 PyObject * obj2 = 0 ;
36335 PyObject * obj3 = 0 ;
36336 PyObject * obj4 = 0 ;
36337 PyObject * obj5 = 0 ;
36338 PyObject * obj6 = 0 ;
36339 char * kwnames[] = {
36340 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36341 };
36342
36343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36345 if (!SWIG_IsOK(res1)) {
36346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36347 }
36348 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36349 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36350 if (!SWIG_IsOK(res2)) {
36351 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36352 }
36353 if (!argp2) {
36354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36355 }
36356 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36357 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36358 if (!SWIG_IsOK(ecode3)) {
36359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36360 }
36361 arg3 = static_cast< size_t >(val3);
36362 {
36363 arg4 = wxString_in_helper(obj3);
36364 if (arg4 == NULL) SWIG_fail;
36365 temp4 = true;
36366 }
36367 if (obj4) {
36368 ecode5 = SWIG_AsVal_int(obj4, &val5);
36369 if (!SWIG_IsOK(ecode5)) {
36370 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36371 }
36372 arg5 = static_cast< int >(val5);
36373 }
36374 if (obj5) {
36375 ecode6 = SWIG_AsVal_int(obj5, &val6);
36376 if (!SWIG_IsOK(ecode6)) {
36377 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36378 }
36379 arg6 = static_cast< int >(val6);
36380 }
36381 if (obj6) {
36382 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36383 if (!SWIG_IsOK(res7)) {
36384 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36385 }
36386 }
36387 {
36388 PyThreadState* __tstate = wxPyBeginAllowThreads();
36389 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36390 wxPyEndAllowThreads(__tstate);
36391 if (PyErr_Occurred()) SWIG_fail;
36392 }
36393 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36394 {
36395 if (temp4)
36396 delete arg4;
36397 }
36398 return resultobj;
36399 fail:
36400 {
36401 if (temp4)
36402 delete arg4;
36403 }
36404 return NULL;
36405 }
36406
36407
36408 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36409 PyObject *resultobj = 0;
36410 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36411 wxTreeItemId *arg2 = 0 ;
36412 wxString *arg3 = 0 ;
36413 int arg4 = (int) -1 ;
36414 int arg5 = (int) -1 ;
36415 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36416 wxTreeItemId result;
36417 void *argp1 = 0 ;
36418 int res1 = 0 ;
36419 void *argp2 = 0 ;
36420 int res2 = 0 ;
36421 bool temp3 = false ;
36422 int val4 ;
36423 int ecode4 = 0 ;
36424 int val5 ;
36425 int ecode5 = 0 ;
36426 int res6 = 0 ;
36427 PyObject * obj0 = 0 ;
36428 PyObject * obj1 = 0 ;
36429 PyObject * obj2 = 0 ;
36430 PyObject * obj3 = 0 ;
36431 PyObject * obj4 = 0 ;
36432 PyObject * obj5 = 0 ;
36433 char * kwnames[] = {
36434 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36435 };
36436
36437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36439 if (!SWIG_IsOK(res1)) {
36440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36441 }
36442 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36443 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36444 if (!SWIG_IsOK(res2)) {
36445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36446 }
36447 if (!argp2) {
36448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36449 }
36450 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36451 {
36452 arg3 = wxString_in_helper(obj2);
36453 if (arg3 == NULL) SWIG_fail;
36454 temp3 = true;
36455 }
36456 if (obj3) {
36457 ecode4 = SWIG_AsVal_int(obj3, &val4);
36458 if (!SWIG_IsOK(ecode4)) {
36459 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36460 }
36461 arg4 = static_cast< int >(val4);
36462 }
36463 if (obj4) {
36464 ecode5 = SWIG_AsVal_int(obj4, &val5);
36465 if (!SWIG_IsOK(ecode5)) {
36466 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36467 }
36468 arg5 = static_cast< int >(val5);
36469 }
36470 if (obj5) {
36471 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36472 if (!SWIG_IsOK(res6)) {
36473 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36474 }
36475 }
36476 {
36477 PyThreadState* __tstate = wxPyBeginAllowThreads();
36478 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36479 wxPyEndAllowThreads(__tstate);
36480 if (PyErr_Occurred()) SWIG_fail;
36481 }
36482 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36483 {
36484 if (temp3)
36485 delete arg3;
36486 }
36487 return resultobj;
36488 fail:
36489 {
36490 if (temp3)
36491 delete arg3;
36492 }
36493 return NULL;
36494 }
36495
36496
36497 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36498 PyObject *resultobj = 0;
36499 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36500 wxTreeItemId *arg2 = 0 ;
36501 void *argp1 = 0 ;
36502 int res1 = 0 ;
36503 void *argp2 = 0 ;
36504 int res2 = 0 ;
36505 PyObject * obj0 = 0 ;
36506 PyObject * obj1 = 0 ;
36507 char * kwnames[] = {
36508 (char *) "self",(char *) "item", NULL
36509 };
36510
36511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36513 if (!SWIG_IsOK(res1)) {
36514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36515 }
36516 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36518 if (!SWIG_IsOK(res2)) {
36519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36520 }
36521 if (!argp2) {
36522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36523 }
36524 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36525 {
36526 PyThreadState* __tstate = wxPyBeginAllowThreads();
36527 (arg1)->Delete((wxTreeItemId const &)*arg2);
36528 wxPyEndAllowThreads(__tstate);
36529 if (PyErr_Occurred()) SWIG_fail;
36530 }
36531 resultobj = SWIG_Py_Void();
36532 return resultobj;
36533 fail:
36534 return NULL;
36535 }
36536
36537
36538 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36539 PyObject *resultobj = 0;
36540 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36541 wxTreeItemId *arg2 = 0 ;
36542 void *argp1 = 0 ;
36543 int res1 = 0 ;
36544 void *argp2 = 0 ;
36545 int res2 = 0 ;
36546 PyObject * obj0 = 0 ;
36547 PyObject * obj1 = 0 ;
36548 char * kwnames[] = {
36549 (char *) "self",(char *) "item", NULL
36550 };
36551
36552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36554 if (!SWIG_IsOK(res1)) {
36555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36556 }
36557 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36558 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36559 if (!SWIG_IsOK(res2)) {
36560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36561 }
36562 if (!argp2) {
36563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36564 }
36565 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36566 {
36567 PyThreadState* __tstate = wxPyBeginAllowThreads();
36568 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36569 wxPyEndAllowThreads(__tstate);
36570 if (PyErr_Occurred()) SWIG_fail;
36571 }
36572 resultobj = SWIG_Py_Void();
36573 return resultobj;
36574 fail:
36575 return NULL;
36576 }
36577
36578
36579 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36580 PyObject *resultobj = 0;
36581 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36582 void *argp1 = 0 ;
36583 int res1 = 0 ;
36584 PyObject *swig_obj[1] ;
36585
36586 if (!args) SWIG_fail;
36587 swig_obj[0] = args;
36588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36589 if (!SWIG_IsOK(res1)) {
36590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36591 }
36592 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36593 {
36594 PyThreadState* __tstate = wxPyBeginAllowThreads();
36595 (arg1)->DeleteAllItems();
36596 wxPyEndAllowThreads(__tstate);
36597 if (PyErr_Occurred()) SWIG_fail;
36598 }
36599 resultobj = SWIG_Py_Void();
36600 return resultobj;
36601 fail:
36602 return NULL;
36603 }
36604
36605
36606 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36607 PyObject *resultobj = 0;
36608 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36609 wxTreeItemId *arg2 = 0 ;
36610 void *argp1 = 0 ;
36611 int res1 = 0 ;
36612 void *argp2 = 0 ;
36613 int res2 = 0 ;
36614 PyObject * obj0 = 0 ;
36615 PyObject * obj1 = 0 ;
36616 char * kwnames[] = {
36617 (char *) "self",(char *) "item", NULL
36618 };
36619
36620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36622 if (!SWIG_IsOK(res1)) {
36623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36624 }
36625 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36626 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36627 if (!SWIG_IsOK(res2)) {
36628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36629 }
36630 if (!argp2) {
36631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36632 }
36633 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36634 {
36635 PyThreadState* __tstate = wxPyBeginAllowThreads();
36636 (arg1)->Expand((wxTreeItemId const &)*arg2);
36637 wxPyEndAllowThreads(__tstate);
36638 if (PyErr_Occurred()) SWIG_fail;
36639 }
36640 resultobj = SWIG_Py_Void();
36641 return resultobj;
36642 fail:
36643 return NULL;
36644 }
36645
36646
36647 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36648 PyObject *resultobj = 0;
36649 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36650 wxTreeItemId *arg2 = 0 ;
36651 void *argp1 = 0 ;
36652 int res1 = 0 ;
36653 void *argp2 = 0 ;
36654 int res2 = 0 ;
36655 PyObject * obj0 = 0 ;
36656 PyObject * obj1 = 0 ;
36657 char * kwnames[] = {
36658 (char *) "self",(char *) "item", NULL
36659 };
36660
36661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36663 if (!SWIG_IsOK(res1)) {
36664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36665 }
36666 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36667 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36668 if (!SWIG_IsOK(res2)) {
36669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36670 }
36671 if (!argp2) {
36672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36673 }
36674 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36675 {
36676 PyThreadState* __tstate = wxPyBeginAllowThreads();
36677 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36678 wxPyEndAllowThreads(__tstate);
36679 if (PyErr_Occurred()) SWIG_fail;
36680 }
36681 resultobj = SWIG_Py_Void();
36682 return resultobj;
36683 fail:
36684 return NULL;
36685 }
36686
36687
36688 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36689 PyObject *resultobj = 0;
36690 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36691 void *argp1 = 0 ;
36692 int res1 = 0 ;
36693 PyObject *swig_obj[1] ;
36694
36695 if (!args) SWIG_fail;
36696 swig_obj[0] = args;
36697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36698 if (!SWIG_IsOK(res1)) {
36699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36700 }
36701 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36702 {
36703 PyThreadState* __tstate = wxPyBeginAllowThreads();
36704 (arg1)->ExpandAll();
36705 wxPyEndAllowThreads(__tstate);
36706 if (PyErr_Occurred()) SWIG_fail;
36707 }
36708 resultobj = SWIG_Py_Void();
36709 return resultobj;
36710 fail:
36711 return NULL;
36712 }
36713
36714
36715 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36716 PyObject *resultobj = 0;
36717 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36718 wxTreeItemId *arg2 = 0 ;
36719 void *argp1 = 0 ;
36720 int res1 = 0 ;
36721 void *argp2 = 0 ;
36722 int res2 = 0 ;
36723 PyObject * obj0 = 0 ;
36724 PyObject * obj1 = 0 ;
36725 char * kwnames[] = {
36726 (char *) "self",(char *) "item", NULL
36727 };
36728
36729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36731 if (!SWIG_IsOK(res1)) {
36732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36733 }
36734 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36736 if (!SWIG_IsOK(res2)) {
36737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36738 }
36739 if (!argp2) {
36740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36741 }
36742 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36743 {
36744 PyThreadState* __tstate = wxPyBeginAllowThreads();
36745 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36746 wxPyEndAllowThreads(__tstate);
36747 if (PyErr_Occurred()) SWIG_fail;
36748 }
36749 resultobj = SWIG_Py_Void();
36750 return resultobj;
36751 fail:
36752 return NULL;
36753 }
36754
36755
36756 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36757 PyObject *resultobj = 0;
36758 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36759 wxTreeItemId *arg2 = 0 ;
36760 void *argp1 = 0 ;
36761 int res1 = 0 ;
36762 void *argp2 = 0 ;
36763 int res2 = 0 ;
36764 PyObject * obj0 = 0 ;
36765 PyObject * obj1 = 0 ;
36766 char * kwnames[] = {
36767 (char *) "self",(char *) "item", NULL
36768 };
36769
36770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36772 if (!SWIG_IsOK(res1)) {
36773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36774 }
36775 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36776 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36777 if (!SWIG_IsOK(res2)) {
36778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36779 }
36780 if (!argp2) {
36781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36782 }
36783 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36784 {
36785 PyThreadState* __tstate = wxPyBeginAllowThreads();
36786 (arg1)->CollapseAllChildren((wxTreeItemId const &)*arg2);
36787 wxPyEndAllowThreads(__tstate);
36788 if (PyErr_Occurred()) SWIG_fail;
36789 }
36790 resultobj = SWIG_Py_Void();
36791 return resultobj;
36792 fail:
36793 return NULL;
36794 }
36795
36796
36797 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36798 PyObject *resultobj = 0;
36799 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36800 void *argp1 = 0 ;
36801 int res1 = 0 ;
36802 PyObject *swig_obj[1] ;
36803
36804 if (!args) SWIG_fail;
36805 swig_obj[0] = args;
36806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36807 if (!SWIG_IsOK(res1)) {
36808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36809 }
36810 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36811 {
36812 PyThreadState* __tstate = wxPyBeginAllowThreads();
36813 (arg1)->CollapseAll();
36814 wxPyEndAllowThreads(__tstate);
36815 if (PyErr_Occurred()) SWIG_fail;
36816 }
36817 resultobj = SWIG_Py_Void();
36818 return resultobj;
36819 fail:
36820 return NULL;
36821 }
36822
36823
36824 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36825 PyObject *resultobj = 0;
36826 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36827 wxTreeItemId *arg2 = 0 ;
36828 void *argp1 = 0 ;
36829 int res1 = 0 ;
36830 void *argp2 = 0 ;
36831 int res2 = 0 ;
36832 PyObject * obj0 = 0 ;
36833 PyObject * obj1 = 0 ;
36834 char * kwnames[] = {
36835 (char *) "self",(char *) "item", NULL
36836 };
36837
36838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36840 if (!SWIG_IsOK(res1)) {
36841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36842 }
36843 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36844 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36845 if (!SWIG_IsOK(res2)) {
36846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36847 }
36848 if (!argp2) {
36849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36850 }
36851 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36852 {
36853 PyThreadState* __tstate = wxPyBeginAllowThreads();
36854 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36855 wxPyEndAllowThreads(__tstate);
36856 if (PyErr_Occurred()) SWIG_fail;
36857 }
36858 resultobj = SWIG_Py_Void();
36859 return resultobj;
36860 fail:
36861 return NULL;
36862 }
36863
36864
36865 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36866 PyObject *resultobj = 0;
36867 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36868 wxTreeItemId *arg2 = 0 ;
36869 void *argp1 = 0 ;
36870 int res1 = 0 ;
36871 void *argp2 = 0 ;
36872 int res2 = 0 ;
36873 PyObject * obj0 = 0 ;
36874 PyObject * obj1 = 0 ;
36875 char * kwnames[] = {
36876 (char *) "self",(char *) "item", NULL
36877 };
36878
36879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36881 if (!SWIG_IsOK(res1)) {
36882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36883 }
36884 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36886 if (!SWIG_IsOK(res2)) {
36887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36888 }
36889 if (!argp2) {
36890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36891 }
36892 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36893 {
36894 PyThreadState* __tstate = wxPyBeginAllowThreads();
36895 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36896 wxPyEndAllowThreads(__tstate);
36897 if (PyErr_Occurred()) SWIG_fail;
36898 }
36899 resultobj = SWIG_Py_Void();
36900 return resultobj;
36901 fail:
36902 return NULL;
36903 }
36904
36905
36906 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36907 PyObject *resultobj = 0;
36908 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36909 void *argp1 = 0 ;
36910 int res1 = 0 ;
36911 PyObject *swig_obj[1] ;
36912
36913 if (!args) SWIG_fail;
36914 swig_obj[0] = args;
36915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36916 if (!SWIG_IsOK(res1)) {
36917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36918 }
36919 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36920 {
36921 PyThreadState* __tstate = wxPyBeginAllowThreads();
36922 (arg1)->Unselect();
36923 wxPyEndAllowThreads(__tstate);
36924 if (PyErr_Occurred()) SWIG_fail;
36925 }
36926 resultobj = SWIG_Py_Void();
36927 return resultobj;
36928 fail:
36929 return NULL;
36930 }
36931
36932
36933 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36934 PyObject *resultobj = 0;
36935 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36936 wxTreeItemId *arg2 = 0 ;
36937 void *argp1 = 0 ;
36938 int res1 = 0 ;
36939 void *argp2 = 0 ;
36940 int res2 = 0 ;
36941 PyObject * obj0 = 0 ;
36942 PyObject * obj1 = 0 ;
36943 char * kwnames[] = {
36944 (char *) "self",(char *) "item", NULL
36945 };
36946
36947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36949 if (!SWIG_IsOK(res1)) {
36950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36951 }
36952 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36953 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36954 if (!SWIG_IsOK(res2)) {
36955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36956 }
36957 if (!argp2) {
36958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36959 }
36960 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36961 {
36962 PyThreadState* __tstate = wxPyBeginAllowThreads();
36963 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36964 wxPyEndAllowThreads(__tstate);
36965 if (PyErr_Occurred()) SWIG_fail;
36966 }
36967 resultobj = SWIG_Py_Void();
36968 return resultobj;
36969 fail:
36970 return NULL;
36971 }
36972
36973
36974 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36975 PyObject *resultobj = 0;
36976 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36977 void *argp1 = 0 ;
36978 int res1 = 0 ;
36979 PyObject *swig_obj[1] ;
36980
36981 if (!args) SWIG_fail;
36982 swig_obj[0] = args;
36983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36984 if (!SWIG_IsOK(res1)) {
36985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36986 }
36987 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36988 {
36989 PyThreadState* __tstate = wxPyBeginAllowThreads();
36990 (arg1)->UnselectAll();
36991 wxPyEndAllowThreads(__tstate);
36992 if (PyErr_Occurred()) SWIG_fail;
36993 }
36994 resultobj = SWIG_Py_Void();
36995 return resultobj;
36996 fail:
36997 return NULL;
36998 }
36999
37000
37001 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37002 PyObject *resultobj = 0;
37003 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37004 wxTreeItemId *arg2 = 0 ;
37005 bool arg3 = (bool) true ;
37006 void *argp1 = 0 ;
37007 int res1 = 0 ;
37008 void *argp2 = 0 ;
37009 int res2 = 0 ;
37010 bool val3 ;
37011 int ecode3 = 0 ;
37012 PyObject * obj0 = 0 ;
37013 PyObject * obj1 = 0 ;
37014 PyObject * obj2 = 0 ;
37015 char * kwnames[] = {
37016 (char *) "self",(char *) "item",(char *) "select", NULL
37017 };
37018
37019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37021 if (!SWIG_IsOK(res1)) {
37022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37023 }
37024 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37026 if (!SWIG_IsOK(res2)) {
37027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37028 }
37029 if (!argp2) {
37030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37031 }
37032 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37033 if (obj2) {
37034 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37035 if (!SWIG_IsOK(ecode3)) {
37036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
37037 }
37038 arg3 = static_cast< bool >(val3);
37039 }
37040 {
37041 PyThreadState* __tstate = wxPyBeginAllowThreads();
37042 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
37043 wxPyEndAllowThreads(__tstate);
37044 if (PyErr_Occurred()) SWIG_fail;
37045 }
37046 resultobj = SWIG_Py_Void();
37047 return resultobj;
37048 fail:
37049 return NULL;
37050 }
37051
37052
37053 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37054 PyObject *resultobj = 0;
37055 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37056 wxTreeItemId *arg2 = 0 ;
37057 void *argp1 = 0 ;
37058 int res1 = 0 ;
37059 void *argp2 = 0 ;
37060 int res2 = 0 ;
37061 PyObject * obj0 = 0 ;
37062 PyObject * obj1 = 0 ;
37063 char * kwnames[] = {
37064 (char *) "self",(char *) "item", NULL
37065 };
37066
37067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37069 if (!SWIG_IsOK(res1)) {
37070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37071 }
37072 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37074 if (!SWIG_IsOK(res2)) {
37075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37076 }
37077 if (!argp2) {
37078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37079 }
37080 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37081 {
37082 PyThreadState* __tstate = wxPyBeginAllowThreads();
37083 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37084 wxPyEndAllowThreads(__tstate);
37085 if (PyErr_Occurred()) SWIG_fail;
37086 }
37087 resultobj = SWIG_Py_Void();
37088 return resultobj;
37089 fail:
37090 return NULL;
37091 }
37092
37093
37094 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37095 PyObject *resultobj = 0;
37096 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37097 wxTreeItemId *arg2 = 0 ;
37098 void *argp1 = 0 ;
37099 int res1 = 0 ;
37100 void *argp2 = 0 ;
37101 int res2 = 0 ;
37102 PyObject * obj0 = 0 ;
37103 PyObject * obj1 = 0 ;
37104 char * kwnames[] = {
37105 (char *) "self",(char *) "item", NULL
37106 };
37107
37108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37110 if (!SWIG_IsOK(res1)) {
37111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37112 }
37113 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37114 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37115 if (!SWIG_IsOK(res2)) {
37116 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37117 }
37118 if (!argp2) {
37119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37120 }
37121 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37122 {
37123 PyThreadState* __tstate = wxPyBeginAllowThreads();
37124 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37125 wxPyEndAllowThreads(__tstate);
37126 if (PyErr_Occurred()) SWIG_fail;
37127 }
37128 resultobj = SWIG_Py_Void();
37129 return resultobj;
37130 fail:
37131 return NULL;
37132 }
37133
37134
37135 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37136 PyObject *resultobj = 0;
37137 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37138 wxTreeItemId *arg2 = 0 ;
37139 void *argp1 = 0 ;
37140 int res1 = 0 ;
37141 void *argp2 = 0 ;
37142 int res2 = 0 ;
37143 PyObject * obj0 = 0 ;
37144 PyObject * obj1 = 0 ;
37145 char * kwnames[] = {
37146 (char *) "self",(char *) "item", NULL
37147 };
37148
37149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37151 if (!SWIG_IsOK(res1)) {
37152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37153 }
37154 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37156 if (!SWIG_IsOK(res2)) {
37157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37158 }
37159 if (!argp2) {
37160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37161 }
37162 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37163 {
37164 PyThreadState* __tstate = wxPyBeginAllowThreads();
37165 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37166 wxPyEndAllowThreads(__tstate);
37167 if (PyErr_Occurred()) SWIG_fail;
37168 }
37169 resultobj = SWIG_Py_Void();
37170 return resultobj;
37171 fail:
37172 return NULL;
37173 }
37174
37175
37176 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37177 PyObject *resultobj = 0;
37178 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37179 wxTreeItemId *arg2 = 0 ;
37180 void *argp1 = 0 ;
37181 int res1 = 0 ;
37182 void *argp2 = 0 ;
37183 int res2 = 0 ;
37184 PyObject * obj0 = 0 ;
37185 PyObject * obj1 = 0 ;
37186 char * kwnames[] = {
37187 (char *) "self",(char *) "item", NULL
37188 };
37189
37190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37192 if (!SWIG_IsOK(res1)) {
37193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37194 }
37195 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37196 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37197 if (!SWIG_IsOK(res2)) {
37198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37199 }
37200 if (!argp2) {
37201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37202 }
37203 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37204 {
37205 PyThreadState* __tstate = wxPyBeginAllowThreads();
37206 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37207 wxPyEndAllowThreads(__tstate);
37208 if (PyErr_Occurred()) SWIG_fail;
37209 }
37210 resultobj = SWIG_Py_Void();
37211 return resultobj;
37212 fail:
37213 return NULL;
37214 }
37215
37216
37217 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37218 PyObject *resultobj = 0;
37219 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37220 wxTextCtrl *result = 0 ;
37221 void *argp1 = 0 ;
37222 int res1 = 0 ;
37223 PyObject *swig_obj[1] ;
37224
37225 if (!args) SWIG_fail;
37226 swig_obj[0] = args;
37227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37228 if (!SWIG_IsOK(res1)) {
37229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37230 }
37231 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37232 {
37233 PyThreadState* __tstate = wxPyBeginAllowThreads();
37234 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37235 wxPyEndAllowThreads(__tstate);
37236 if (PyErr_Occurred()) SWIG_fail;
37237 }
37238 {
37239 resultobj = wxPyMake_wxObject(result, 0);
37240 }
37241 return resultobj;
37242 fail:
37243 return NULL;
37244 }
37245
37246
37247 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37248 PyObject *resultobj = 0;
37249 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37250 wxTreeItemId *arg2 = 0 ;
37251 void *argp1 = 0 ;
37252 int res1 = 0 ;
37253 void *argp2 = 0 ;
37254 int res2 = 0 ;
37255 PyObject * obj0 = 0 ;
37256 PyObject * obj1 = 0 ;
37257 char * kwnames[] = {
37258 (char *) "self",(char *) "item", NULL
37259 };
37260
37261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37263 if (!SWIG_IsOK(res1)) {
37264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37265 }
37266 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37267 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37268 if (!SWIG_IsOK(res2)) {
37269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37270 }
37271 if (!argp2) {
37272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37273 }
37274 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37275 {
37276 PyThreadState* __tstate = wxPyBeginAllowThreads();
37277 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37278 wxPyEndAllowThreads(__tstate);
37279 if (PyErr_Occurred()) SWIG_fail;
37280 }
37281 resultobj = SWIG_Py_Void();
37282 return resultobj;
37283 fail:
37284 return NULL;
37285 }
37286
37287
37288 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37289 PyObject *resultobj = 0;
37290 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37291 wxPoint *arg2 = 0 ;
37292 int *arg3 = 0 ;
37293 wxTreeItemId result;
37294 void *argp1 = 0 ;
37295 int res1 = 0 ;
37296 wxPoint temp2 ;
37297 int temp3 ;
37298 int res3 = SWIG_TMPOBJ ;
37299 PyObject * obj0 = 0 ;
37300 PyObject * obj1 = 0 ;
37301 char * kwnames[] = {
37302 (char *) "self",(char *) "point", NULL
37303 };
37304
37305 arg3 = &temp3;
37306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37308 if (!SWIG_IsOK(res1)) {
37309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37310 }
37311 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37312 {
37313 arg2 = &temp2;
37314 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37315 }
37316 {
37317 PyThreadState* __tstate = wxPyBeginAllowThreads();
37318 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37319 wxPyEndAllowThreads(__tstate);
37320 if (PyErr_Occurred()) SWIG_fail;
37321 }
37322 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37323 if (SWIG_IsTmpObj(res3)) {
37324 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37325 } else {
37326 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37327 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37328 }
37329 return resultobj;
37330 fail:
37331 return NULL;
37332 }
37333
37334
37335 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37336 PyObject *resultobj = 0;
37337 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37338 wxTreeItemId *arg2 = 0 ;
37339 bool arg3 = (bool) false ;
37340 PyObject *result = 0 ;
37341 void *argp1 = 0 ;
37342 int res1 = 0 ;
37343 void *argp2 = 0 ;
37344 int res2 = 0 ;
37345 bool val3 ;
37346 int ecode3 = 0 ;
37347 PyObject * obj0 = 0 ;
37348 PyObject * obj1 = 0 ;
37349 PyObject * obj2 = 0 ;
37350 char * kwnames[] = {
37351 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37352 };
37353
37354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37356 if (!SWIG_IsOK(res1)) {
37357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37358 }
37359 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37361 if (!SWIG_IsOK(res2)) {
37362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37363 }
37364 if (!argp2) {
37365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37366 }
37367 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37368 if (obj2) {
37369 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37370 if (!SWIG_IsOK(ecode3)) {
37371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37372 }
37373 arg3 = static_cast< bool >(val3);
37374 }
37375 {
37376 PyThreadState* __tstate = wxPyBeginAllowThreads();
37377 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37378 wxPyEndAllowThreads(__tstate);
37379 if (PyErr_Occurred()) SWIG_fail;
37380 }
37381 resultobj = result;
37382 return resultobj;
37383 fail:
37384 return NULL;
37385 }
37386
37387
37388 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37389 PyObject *resultobj = 0;
37390 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37391 SwigValueWrapper<wxVisualAttributes > result;
37392 int val1 ;
37393 int ecode1 = 0 ;
37394 PyObject * obj0 = 0 ;
37395 char * kwnames[] = {
37396 (char *) "variant", NULL
37397 };
37398
37399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37400 if (obj0) {
37401 ecode1 = SWIG_AsVal_int(obj0, &val1);
37402 if (!SWIG_IsOK(ecode1)) {
37403 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37404 }
37405 arg1 = static_cast< wxWindowVariant >(val1);
37406 }
37407 {
37408 if (!wxPyCheckForApp()) SWIG_fail;
37409 PyThreadState* __tstate = wxPyBeginAllowThreads();
37410 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37411 wxPyEndAllowThreads(__tstate);
37412 if (PyErr_Occurred()) SWIG_fail;
37413 }
37414 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37415 return resultobj;
37416 fail:
37417 return NULL;
37418 }
37419
37420
37421 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37422 PyObject *resultobj = 0;
37423 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37424 bool arg2 ;
37425 void *argp1 = 0 ;
37426 int res1 = 0 ;
37427 bool val2 ;
37428 int ecode2 = 0 ;
37429 PyObject * obj0 = 0 ;
37430 PyObject * obj1 = 0 ;
37431 char * kwnames[] = {
37432 (char *) "self",(char *) "q", NULL
37433 };
37434
37435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37437 if (!SWIG_IsOK(res1)) {
37438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37439 }
37440 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37441 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37442 if (!SWIG_IsOK(ecode2)) {
37443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37444 }
37445 arg2 = static_cast< bool >(val2);
37446 {
37447 PyThreadState* __tstate = wxPyBeginAllowThreads();
37448 (arg1)->SetQuickBestSize(arg2);
37449 wxPyEndAllowThreads(__tstate);
37450 if (PyErr_Occurred()) SWIG_fail;
37451 }
37452 resultobj = SWIG_Py_Void();
37453 return resultobj;
37454 fail:
37455 return NULL;
37456 }
37457
37458
37459 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37460 PyObject *resultobj = 0;
37461 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37462 bool result;
37463 void *argp1 = 0 ;
37464 int res1 = 0 ;
37465 PyObject *swig_obj[1] ;
37466
37467 if (!args) SWIG_fail;
37468 swig_obj[0] = args;
37469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37470 if (!SWIG_IsOK(res1)) {
37471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37472 }
37473 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37474 {
37475 PyThreadState* __tstate = wxPyBeginAllowThreads();
37476 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37477 wxPyEndAllowThreads(__tstate);
37478 if (PyErr_Occurred()) SWIG_fail;
37479 }
37480 {
37481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37482 }
37483 return resultobj;
37484 fail:
37485 return NULL;
37486 }
37487
37488
37489 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37490 PyObject *obj;
37491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37492 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37493 return SWIG_Py_Void();
37494 }
37495
37496 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37497 return SWIG_Python_InitShadowInstance(args);
37498 }
37499
37500 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37501 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37502 return 1;
37503 }
37504
37505
37506 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37507 PyObject *pyobj = 0;
37508
37509 {
37510 #if wxUSE_UNICODE
37511 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37512 #else
37513 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37514 #endif
37515 }
37516 return pyobj;
37517 }
37518
37519
37520 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37521 PyObject *resultobj = 0;
37522 wxWindow *arg1 = (wxWindow *) 0 ;
37523 int arg2 = (int) (int)-1 ;
37524 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37525 wxString *arg3 = (wxString *) &arg3_defvalue ;
37526 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37527 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37528 wxSize const &arg5_defvalue = wxDefaultSize ;
37529 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37530 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37531 wxString const &arg7_defvalue = wxPyEmptyString ;
37532 wxString *arg7 = (wxString *) &arg7_defvalue ;
37533 int arg8 = (int) 0 ;
37534 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37535 wxString *arg9 = (wxString *) &arg9_defvalue ;
37536 wxGenericDirCtrl *result = 0 ;
37537 void *argp1 = 0 ;
37538 int res1 = 0 ;
37539 int val2 ;
37540 int ecode2 = 0 ;
37541 bool temp3 = false ;
37542 wxPoint temp4 ;
37543 wxSize temp5 ;
37544 long val6 ;
37545 int ecode6 = 0 ;
37546 bool temp7 = false ;
37547 int val8 ;
37548 int ecode8 = 0 ;
37549 bool temp9 = false ;
37550 PyObject * obj0 = 0 ;
37551 PyObject * obj1 = 0 ;
37552 PyObject * obj2 = 0 ;
37553 PyObject * obj3 = 0 ;
37554 PyObject * obj4 = 0 ;
37555 PyObject * obj5 = 0 ;
37556 PyObject * obj6 = 0 ;
37557 PyObject * obj7 = 0 ;
37558 PyObject * obj8 = 0 ;
37559 char * kwnames[] = {
37560 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37561 };
37562
37563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37565 if (!SWIG_IsOK(res1)) {
37566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37567 }
37568 arg1 = reinterpret_cast< wxWindow * >(argp1);
37569 if (obj1) {
37570 ecode2 = SWIG_AsVal_int(obj1, &val2);
37571 if (!SWIG_IsOK(ecode2)) {
37572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37573 }
37574 arg2 = static_cast< int >(val2);
37575 }
37576 if (obj2) {
37577 {
37578 arg3 = wxString_in_helper(obj2);
37579 if (arg3 == NULL) SWIG_fail;
37580 temp3 = true;
37581 }
37582 }
37583 if (obj3) {
37584 {
37585 arg4 = &temp4;
37586 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37587 }
37588 }
37589 if (obj4) {
37590 {
37591 arg5 = &temp5;
37592 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37593 }
37594 }
37595 if (obj5) {
37596 ecode6 = SWIG_AsVal_long(obj5, &val6);
37597 if (!SWIG_IsOK(ecode6)) {
37598 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37599 }
37600 arg6 = static_cast< long >(val6);
37601 }
37602 if (obj6) {
37603 {
37604 arg7 = wxString_in_helper(obj6);
37605 if (arg7 == NULL) SWIG_fail;
37606 temp7 = true;
37607 }
37608 }
37609 if (obj7) {
37610 ecode8 = SWIG_AsVal_int(obj7, &val8);
37611 if (!SWIG_IsOK(ecode8)) {
37612 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37613 }
37614 arg8 = static_cast< int >(val8);
37615 }
37616 if (obj8) {
37617 {
37618 arg9 = wxString_in_helper(obj8);
37619 if (arg9 == NULL) SWIG_fail;
37620 temp9 = true;
37621 }
37622 }
37623 {
37624 if (!wxPyCheckForApp()) SWIG_fail;
37625 PyThreadState* __tstate = wxPyBeginAllowThreads();
37626 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37627 wxPyEndAllowThreads(__tstate);
37628 if (PyErr_Occurred()) SWIG_fail;
37629 }
37630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37631 {
37632 if (temp3)
37633 delete arg3;
37634 }
37635 {
37636 if (temp7)
37637 delete arg7;
37638 }
37639 {
37640 if (temp9)
37641 delete arg9;
37642 }
37643 return resultobj;
37644 fail:
37645 {
37646 if (temp3)
37647 delete arg3;
37648 }
37649 {
37650 if (temp7)
37651 delete arg7;
37652 }
37653 {
37654 if (temp9)
37655 delete arg9;
37656 }
37657 return NULL;
37658 }
37659
37660
37661 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37662 PyObject *resultobj = 0;
37663 wxGenericDirCtrl *result = 0 ;
37664
37665 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37666 {
37667 if (!wxPyCheckForApp()) SWIG_fail;
37668 PyThreadState* __tstate = wxPyBeginAllowThreads();
37669 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37670 wxPyEndAllowThreads(__tstate);
37671 if (PyErr_Occurred()) SWIG_fail;
37672 }
37673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37674 return resultobj;
37675 fail:
37676 return NULL;
37677 }
37678
37679
37680 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37681 PyObject *resultobj = 0;
37682 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37683 wxWindow *arg2 = (wxWindow *) 0 ;
37684 int arg3 = (int) (int)-1 ;
37685 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37686 wxString *arg4 = (wxString *) &arg4_defvalue ;
37687 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37688 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37689 wxSize const &arg6_defvalue = wxDefaultSize ;
37690 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37691 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37692 wxString const &arg8_defvalue = wxPyEmptyString ;
37693 wxString *arg8 = (wxString *) &arg8_defvalue ;
37694 int arg9 = (int) 0 ;
37695 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37696 wxString *arg10 = (wxString *) &arg10_defvalue ;
37697 bool result;
37698 void *argp1 = 0 ;
37699 int res1 = 0 ;
37700 void *argp2 = 0 ;
37701 int res2 = 0 ;
37702 int val3 ;
37703 int ecode3 = 0 ;
37704 bool temp4 = false ;
37705 wxPoint temp5 ;
37706 wxSize temp6 ;
37707 long val7 ;
37708 int ecode7 = 0 ;
37709 bool temp8 = false ;
37710 int val9 ;
37711 int ecode9 = 0 ;
37712 bool temp10 = false ;
37713 PyObject * obj0 = 0 ;
37714 PyObject * obj1 = 0 ;
37715 PyObject * obj2 = 0 ;
37716 PyObject * obj3 = 0 ;
37717 PyObject * obj4 = 0 ;
37718 PyObject * obj5 = 0 ;
37719 PyObject * obj6 = 0 ;
37720 PyObject * obj7 = 0 ;
37721 PyObject * obj8 = 0 ;
37722 PyObject * obj9 = 0 ;
37723 char * kwnames[] = {
37724 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37725 };
37726
37727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37729 if (!SWIG_IsOK(res1)) {
37730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37731 }
37732 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37733 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37734 if (!SWIG_IsOK(res2)) {
37735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37736 }
37737 arg2 = reinterpret_cast< wxWindow * >(argp2);
37738 if (obj2) {
37739 ecode3 = SWIG_AsVal_int(obj2, &val3);
37740 if (!SWIG_IsOK(ecode3)) {
37741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37742 }
37743 arg3 = static_cast< int >(val3);
37744 }
37745 if (obj3) {
37746 {
37747 arg4 = wxString_in_helper(obj3);
37748 if (arg4 == NULL) SWIG_fail;
37749 temp4 = true;
37750 }
37751 }
37752 if (obj4) {
37753 {
37754 arg5 = &temp5;
37755 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37756 }
37757 }
37758 if (obj5) {
37759 {
37760 arg6 = &temp6;
37761 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37762 }
37763 }
37764 if (obj6) {
37765 ecode7 = SWIG_AsVal_long(obj6, &val7);
37766 if (!SWIG_IsOK(ecode7)) {
37767 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37768 }
37769 arg7 = static_cast< long >(val7);
37770 }
37771 if (obj7) {
37772 {
37773 arg8 = wxString_in_helper(obj7);
37774 if (arg8 == NULL) SWIG_fail;
37775 temp8 = true;
37776 }
37777 }
37778 if (obj8) {
37779 ecode9 = SWIG_AsVal_int(obj8, &val9);
37780 if (!SWIG_IsOK(ecode9)) {
37781 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37782 }
37783 arg9 = static_cast< int >(val9);
37784 }
37785 if (obj9) {
37786 {
37787 arg10 = wxString_in_helper(obj9);
37788 if (arg10 == NULL) SWIG_fail;
37789 temp10 = true;
37790 }
37791 }
37792 {
37793 PyThreadState* __tstate = wxPyBeginAllowThreads();
37794 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37795 wxPyEndAllowThreads(__tstate);
37796 if (PyErr_Occurred()) SWIG_fail;
37797 }
37798 {
37799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37800 }
37801 {
37802 if (temp4)
37803 delete arg4;
37804 }
37805 {
37806 if (temp8)
37807 delete arg8;
37808 }
37809 {
37810 if (temp10)
37811 delete arg10;
37812 }
37813 return resultobj;
37814 fail:
37815 {
37816 if (temp4)
37817 delete arg4;
37818 }
37819 {
37820 if (temp8)
37821 delete arg8;
37822 }
37823 {
37824 if (temp10)
37825 delete arg10;
37826 }
37827 return NULL;
37828 }
37829
37830
37831 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37832 PyObject *resultobj = 0;
37833 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37834 wxString *arg2 = 0 ;
37835 bool result;
37836 void *argp1 = 0 ;
37837 int res1 = 0 ;
37838 bool temp2 = false ;
37839 PyObject * obj0 = 0 ;
37840 PyObject * obj1 = 0 ;
37841 char * kwnames[] = {
37842 (char *) "self",(char *) "path", NULL
37843 };
37844
37845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37847 if (!SWIG_IsOK(res1)) {
37848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37849 }
37850 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37851 {
37852 arg2 = wxString_in_helper(obj1);
37853 if (arg2 == NULL) SWIG_fail;
37854 temp2 = true;
37855 }
37856 {
37857 PyThreadState* __tstate = wxPyBeginAllowThreads();
37858 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37859 wxPyEndAllowThreads(__tstate);
37860 if (PyErr_Occurred()) SWIG_fail;
37861 }
37862 {
37863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37864 }
37865 {
37866 if (temp2)
37867 delete arg2;
37868 }
37869 return resultobj;
37870 fail:
37871 {
37872 if (temp2)
37873 delete arg2;
37874 }
37875 return NULL;
37876 }
37877
37878
37879 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37880 PyObject *resultobj = 0;
37881 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37882 wxString *arg2 = 0 ;
37883 bool result;
37884 void *argp1 = 0 ;
37885 int res1 = 0 ;
37886 bool temp2 = false ;
37887 PyObject * obj0 = 0 ;
37888 PyObject * obj1 = 0 ;
37889 char * kwnames[] = {
37890 (char *) "self",(char *) "path", NULL
37891 };
37892
37893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37895 if (!SWIG_IsOK(res1)) {
37896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37897 }
37898 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37899 {
37900 arg2 = wxString_in_helper(obj1);
37901 if (arg2 == NULL) SWIG_fail;
37902 temp2 = true;
37903 }
37904 {
37905 PyThreadState* __tstate = wxPyBeginAllowThreads();
37906 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37907 wxPyEndAllowThreads(__tstate);
37908 if (PyErr_Occurred()) SWIG_fail;
37909 }
37910 {
37911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37912 }
37913 {
37914 if (temp2)
37915 delete arg2;
37916 }
37917 return resultobj;
37918 fail:
37919 {
37920 if (temp2)
37921 delete arg2;
37922 }
37923 return NULL;
37924 }
37925
37926
37927 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37928 PyObject *resultobj = 0;
37929 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37930 wxString result;
37931 void *argp1 = 0 ;
37932 int res1 = 0 ;
37933 PyObject *swig_obj[1] ;
37934
37935 if (!args) SWIG_fail;
37936 swig_obj[0] = args;
37937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37938 if (!SWIG_IsOK(res1)) {
37939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37940 }
37941 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37942 {
37943 PyThreadState* __tstate = wxPyBeginAllowThreads();
37944 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37945 wxPyEndAllowThreads(__tstate);
37946 if (PyErr_Occurred()) SWIG_fail;
37947 }
37948 {
37949 #if wxUSE_UNICODE
37950 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37951 #else
37952 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37953 #endif
37954 }
37955 return resultobj;
37956 fail:
37957 return NULL;
37958 }
37959
37960
37961 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37962 PyObject *resultobj = 0;
37963 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37964 wxString *arg2 = 0 ;
37965 void *argp1 = 0 ;
37966 int res1 = 0 ;
37967 bool temp2 = false ;
37968 PyObject * obj0 = 0 ;
37969 PyObject * obj1 = 0 ;
37970 char * kwnames[] = {
37971 (char *) "self",(char *) "path", NULL
37972 };
37973
37974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37976 if (!SWIG_IsOK(res1)) {
37977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37978 }
37979 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37980 {
37981 arg2 = wxString_in_helper(obj1);
37982 if (arg2 == NULL) SWIG_fail;
37983 temp2 = true;
37984 }
37985 {
37986 PyThreadState* __tstate = wxPyBeginAllowThreads();
37987 (arg1)->SetDefaultPath((wxString const &)*arg2);
37988 wxPyEndAllowThreads(__tstate);
37989 if (PyErr_Occurred()) SWIG_fail;
37990 }
37991 resultobj = SWIG_Py_Void();
37992 {
37993 if (temp2)
37994 delete arg2;
37995 }
37996 return resultobj;
37997 fail:
37998 {
37999 if (temp2)
38000 delete arg2;
38001 }
38002 return NULL;
38003 }
38004
38005
38006 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38007 PyObject *resultobj = 0;
38008 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38009 wxString result;
38010 void *argp1 = 0 ;
38011 int res1 = 0 ;
38012 PyObject *swig_obj[1] ;
38013
38014 if (!args) SWIG_fail;
38015 swig_obj[0] = args;
38016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38017 if (!SWIG_IsOK(res1)) {
38018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38019 }
38020 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38021 {
38022 PyThreadState* __tstate = wxPyBeginAllowThreads();
38023 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
38024 wxPyEndAllowThreads(__tstate);
38025 if (PyErr_Occurred()) SWIG_fail;
38026 }
38027 {
38028 #if wxUSE_UNICODE
38029 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38030 #else
38031 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38032 #endif
38033 }
38034 return resultobj;
38035 fail:
38036 return NULL;
38037 }
38038
38039
38040 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38041 PyObject *resultobj = 0;
38042 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38043 wxString result;
38044 void *argp1 = 0 ;
38045 int res1 = 0 ;
38046 PyObject *swig_obj[1] ;
38047
38048 if (!args) SWIG_fail;
38049 swig_obj[0] = args;
38050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38051 if (!SWIG_IsOK(res1)) {
38052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38053 }
38054 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38055 {
38056 PyThreadState* __tstate = wxPyBeginAllowThreads();
38057 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
38058 wxPyEndAllowThreads(__tstate);
38059 if (PyErr_Occurred()) SWIG_fail;
38060 }
38061 {
38062 #if wxUSE_UNICODE
38063 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38064 #else
38065 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38066 #endif
38067 }
38068 return resultobj;
38069 fail:
38070 return NULL;
38071 }
38072
38073
38074 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38075 PyObject *resultobj = 0;
38076 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38077 wxString *arg2 = 0 ;
38078 void *argp1 = 0 ;
38079 int res1 = 0 ;
38080 bool temp2 = false ;
38081 PyObject * obj0 = 0 ;
38082 PyObject * obj1 = 0 ;
38083 char * kwnames[] = {
38084 (char *) "self",(char *) "path", NULL
38085 };
38086
38087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38089 if (!SWIG_IsOK(res1)) {
38090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38091 }
38092 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38093 {
38094 arg2 = wxString_in_helper(obj1);
38095 if (arg2 == NULL) SWIG_fail;
38096 temp2 = true;
38097 }
38098 {
38099 PyThreadState* __tstate = wxPyBeginAllowThreads();
38100 (arg1)->SetPath((wxString const &)*arg2);
38101 wxPyEndAllowThreads(__tstate);
38102 if (PyErr_Occurred()) SWIG_fail;
38103 }
38104 resultobj = SWIG_Py_Void();
38105 {
38106 if (temp2)
38107 delete arg2;
38108 }
38109 return resultobj;
38110 fail:
38111 {
38112 if (temp2)
38113 delete arg2;
38114 }
38115 return NULL;
38116 }
38117
38118
38119 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38120 PyObject *resultobj = 0;
38121 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38122 bool arg2 ;
38123 void *argp1 = 0 ;
38124 int res1 = 0 ;
38125 bool val2 ;
38126 int ecode2 = 0 ;
38127 PyObject * obj0 = 0 ;
38128 PyObject * obj1 = 0 ;
38129 char * kwnames[] = {
38130 (char *) "self",(char *) "show", NULL
38131 };
38132
38133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38135 if (!SWIG_IsOK(res1)) {
38136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38137 }
38138 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38139 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38140 if (!SWIG_IsOK(ecode2)) {
38141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38142 }
38143 arg2 = static_cast< bool >(val2);
38144 {
38145 PyThreadState* __tstate = wxPyBeginAllowThreads();
38146 (arg1)->ShowHidden(arg2);
38147 wxPyEndAllowThreads(__tstate);
38148 if (PyErr_Occurred()) SWIG_fail;
38149 }
38150 resultobj = SWIG_Py_Void();
38151 return resultobj;
38152 fail:
38153 return NULL;
38154 }
38155
38156
38157 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38158 PyObject *resultobj = 0;
38159 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38160 bool result;
38161 void *argp1 = 0 ;
38162 int res1 = 0 ;
38163 PyObject *swig_obj[1] ;
38164
38165 if (!args) SWIG_fail;
38166 swig_obj[0] = args;
38167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38168 if (!SWIG_IsOK(res1)) {
38169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38170 }
38171 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38172 {
38173 PyThreadState* __tstate = wxPyBeginAllowThreads();
38174 result = (bool)(arg1)->GetShowHidden();
38175 wxPyEndAllowThreads(__tstate);
38176 if (PyErr_Occurred()) SWIG_fail;
38177 }
38178 {
38179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38180 }
38181 return resultobj;
38182 fail:
38183 return NULL;
38184 }
38185
38186
38187 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38188 PyObject *resultobj = 0;
38189 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38190 wxString result;
38191 void *argp1 = 0 ;
38192 int res1 = 0 ;
38193 PyObject *swig_obj[1] ;
38194
38195 if (!args) SWIG_fail;
38196 swig_obj[0] = args;
38197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38198 if (!SWIG_IsOK(res1)) {
38199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38200 }
38201 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38202 {
38203 PyThreadState* __tstate = wxPyBeginAllowThreads();
38204 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38205 wxPyEndAllowThreads(__tstate);
38206 if (PyErr_Occurred()) SWIG_fail;
38207 }
38208 {
38209 #if wxUSE_UNICODE
38210 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38211 #else
38212 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38213 #endif
38214 }
38215 return resultobj;
38216 fail:
38217 return NULL;
38218 }
38219
38220
38221 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38222 PyObject *resultobj = 0;
38223 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38224 wxString *arg2 = 0 ;
38225 void *argp1 = 0 ;
38226 int res1 = 0 ;
38227 bool temp2 = false ;
38228 PyObject * obj0 = 0 ;
38229 PyObject * obj1 = 0 ;
38230 char * kwnames[] = {
38231 (char *) "self",(char *) "filter", NULL
38232 };
38233
38234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38236 if (!SWIG_IsOK(res1)) {
38237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38238 }
38239 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38240 {
38241 arg2 = wxString_in_helper(obj1);
38242 if (arg2 == NULL) SWIG_fail;
38243 temp2 = true;
38244 }
38245 {
38246 PyThreadState* __tstate = wxPyBeginAllowThreads();
38247 (arg1)->SetFilter((wxString const &)*arg2);
38248 wxPyEndAllowThreads(__tstate);
38249 if (PyErr_Occurred()) SWIG_fail;
38250 }
38251 resultobj = SWIG_Py_Void();
38252 {
38253 if (temp2)
38254 delete arg2;
38255 }
38256 return resultobj;
38257 fail:
38258 {
38259 if (temp2)
38260 delete arg2;
38261 }
38262 return NULL;
38263 }
38264
38265
38266 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38267 PyObject *resultobj = 0;
38268 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38269 int result;
38270 void *argp1 = 0 ;
38271 int res1 = 0 ;
38272 PyObject *swig_obj[1] ;
38273
38274 if (!args) SWIG_fail;
38275 swig_obj[0] = args;
38276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38277 if (!SWIG_IsOK(res1)) {
38278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38279 }
38280 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38281 {
38282 PyThreadState* __tstate = wxPyBeginAllowThreads();
38283 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38284 wxPyEndAllowThreads(__tstate);
38285 if (PyErr_Occurred()) SWIG_fail;
38286 }
38287 resultobj = SWIG_From_int(static_cast< int >(result));
38288 return resultobj;
38289 fail:
38290 return NULL;
38291 }
38292
38293
38294 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38295 PyObject *resultobj = 0;
38296 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38297 int arg2 ;
38298 void *argp1 = 0 ;
38299 int res1 = 0 ;
38300 int val2 ;
38301 int ecode2 = 0 ;
38302 PyObject * obj0 = 0 ;
38303 PyObject * obj1 = 0 ;
38304 char * kwnames[] = {
38305 (char *) "self",(char *) "n", NULL
38306 };
38307
38308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38310 if (!SWIG_IsOK(res1)) {
38311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38312 }
38313 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38314 ecode2 = SWIG_AsVal_int(obj1, &val2);
38315 if (!SWIG_IsOK(ecode2)) {
38316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38317 }
38318 arg2 = static_cast< int >(val2);
38319 {
38320 PyThreadState* __tstate = wxPyBeginAllowThreads();
38321 (arg1)->SetFilterIndex(arg2);
38322 wxPyEndAllowThreads(__tstate);
38323 if (PyErr_Occurred()) SWIG_fail;
38324 }
38325 resultobj = SWIG_Py_Void();
38326 return resultobj;
38327 fail:
38328 return NULL;
38329 }
38330
38331
38332 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38333 PyObject *resultobj = 0;
38334 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38335 wxTreeItemId result;
38336 void *argp1 = 0 ;
38337 int res1 = 0 ;
38338 PyObject *swig_obj[1] ;
38339
38340 if (!args) SWIG_fail;
38341 swig_obj[0] = args;
38342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38343 if (!SWIG_IsOK(res1)) {
38344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38345 }
38346 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38347 {
38348 PyThreadState* __tstate = wxPyBeginAllowThreads();
38349 result = (arg1)->GetRootId();
38350 wxPyEndAllowThreads(__tstate);
38351 if (PyErr_Occurred()) SWIG_fail;
38352 }
38353 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38354 return resultobj;
38355 fail:
38356 return NULL;
38357 }
38358
38359
38360 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38361 PyObject *resultobj = 0;
38362 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38363 wxPyTreeCtrl *result = 0 ;
38364 void *argp1 = 0 ;
38365 int res1 = 0 ;
38366 PyObject *swig_obj[1] ;
38367
38368 if (!args) SWIG_fail;
38369 swig_obj[0] = args;
38370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38371 if (!SWIG_IsOK(res1)) {
38372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38373 }
38374 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38375 {
38376 PyThreadState* __tstate = wxPyBeginAllowThreads();
38377 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38378 wxPyEndAllowThreads(__tstate);
38379 if (PyErr_Occurred()) SWIG_fail;
38380 }
38381 {
38382 resultobj = wxPyMake_wxObject(result, 0);
38383 }
38384 return resultobj;
38385 fail:
38386 return NULL;
38387 }
38388
38389
38390 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38391 PyObject *resultobj = 0;
38392 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38393 wxDirFilterListCtrl *result = 0 ;
38394 void *argp1 = 0 ;
38395 int res1 = 0 ;
38396 PyObject *swig_obj[1] ;
38397
38398 if (!args) SWIG_fail;
38399 swig_obj[0] = args;
38400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38401 if (!SWIG_IsOK(res1)) {
38402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38403 }
38404 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38405 {
38406 PyThreadState* __tstate = wxPyBeginAllowThreads();
38407 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38408 wxPyEndAllowThreads(__tstate);
38409 if (PyErr_Occurred()) SWIG_fail;
38410 }
38411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38412 return resultobj;
38413 fail:
38414 return NULL;
38415 }
38416
38417
38418 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38419 PyObject *resultobj = 0;
38420 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38421 wxTreeItemId arg2 ;
38422 wxString *arg3 = 0 ;
38423 bool *arg4 = 0 ;
38424 wxTreeItemId result;
38425 void *argp1 = 0 ;
38426 int res1 = 0 ;
38427 void *argp2 ;
38428 int res2 = 0 ;
38429 bool temp3 = false ;
38430 bool temp4 ;
38431 int res4 = SWIG_TMPOBJ ;
38432 PyObject * obj0 = 0 ;
38433 PyObject * obj1 = 0 ;
38434 PyObject * obj2 = 0 ;
38435 char * kwnames[] = {
38436 (char *) "self",(char *) "parentId",(char *) "path", NULL
38437 };
38438
38439 arg4 = &temp4;
38440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38442 if (!SWIG_IsOK(res1)) {
38443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38444 }
38445 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38446 {
38447 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38448 if (!SWIG_IsOK(res2)) {
38449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38450 }
38451 if (!argp2) {
38452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38453 } else {
38454 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38455 arg2 = *temp;
38456 if (SWIG_IsNewObj(res2)) delete temp;
38457 }
38458 }
38459 {
38460 arg3 = wxString_in_helper(obj2);
38461 if (arg3 == NULL) SWIG_fail;
38462 temp3 = true;
38463 }
38464 {
38465 PyThreadState* __tstate = wxPyBeginAllowThreads();
38466 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38467 wxPyEndAllowThreads(__tstate);
38468 if (PyErr_Occurred()) SWIG_fail;
38469 }
38470 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38471 if (SWIG_IsTmpObj(res4)) {
38472 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38473 } else {
38474 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38475 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38476 }
38477 {
38478 if (temp3)
38479 delete arg3;
38480 }
38481 return resultobj;
38482 fail:
38483 {
38484 if (temp3)
38485 delete arg3;
38486 }
38487 return NULL;
38488 }
38489
38490
38491 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38492 PyObject *resultobj = 0;
38493 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38494 void *argp1 = 0 ;
38495 int res1 = 0 ;
38496 PyObject *swig_obj[1] ;
38497
38498 if (!args) SWIG_fail;
38499 swig_obj[0] = args;
38500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38501 if (!SWIG_IsOK(res1)) {
38502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38503 }
38504 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38505 {
38506 PyThreadState* __tstate = wxPyBeginAllowThreads();
38507 (arg1)->DoResize();
38508 wxPyEndAllowThreads(__tstate);
38509 if (PyErr_Occurred()) SWIG_fail;
38510 }
38511 resultobj = SWIG_Py_Void();
38512 return resultobj;
38513 fail:
38514 return NULL;
38515 }
38516
38517
38518 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38519 PyObject *resultobj = 0;
38520 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38521 void *argp1 = 0 ;
38522 int res1 = 0 ;
38523 PyObject *swig_obj[1] ;
38524
38525 if (!args) SWIG_fail;
38526 swig_obj[0] = args;
38527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38528 if (!SWIG_IsOK(res1)) {
38529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38530 }
38531 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38532 {
38533 PyThreadState* __tstate = wxPyBeginAllowThreads();
38534 (arg1)->ReCreateTree();
38535 wxPyEndAllowThreads(__tstate);
38536 if (PyErr_Occurred()) SWIG_fail;
38537 }
38538 resultobj = SWIG_Py_Void();
38539 return resultobj;
38540 fail:
38541 return NULL;
38542 }
38543
38544
38545 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38546 PyObject *obj;
38547 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38548 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38549 return SWIG_Py_Void();
38550 }
38551
38552 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38553 return SWIG_Python_InitShadowInstance(args);
38554 }
38555
38556 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38557 PyObject *resultobj = 0;
38558 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38559 int arg2 = (int) (int)-1 ;
38560 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38561 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38562 wxSize const &arg4_defvalue = wxDefaultSize ;
38563 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38564 long arg5 = (long) 0 ;
38565 wxDirFilterListCtrl *result = 0 ;
38566 void *argp1 = 0 ;
38567 int res1 = 0 ;
38568 int val2 ;
38569 int ecode2 = 0 ;
38570 wxPoint temp3 ;
38571 wxSize temp4 ;
38572 long val5 ;
38573 int ecode5 = 0 ;
38574 PyObject * obj0 = 0 ;
38575 PyObject * obj1 = 0 ;
38576 PyObject * obj2 = 0 ;
38577 PyObject * obj3 = 0 ;
38578 PyObject * obj4 = 0 ;
38579 char * kwnames[] = {
38580 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38581 };
38582
38583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38585 if (!SWIG_IsOK(res1)) {
38586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38587 }
38588 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38589 if (obj1) {
38590 ecode2 = SWIG_AsVal_int(obj1, &val2);
38591 if (!SWIG_IsOK(ecode2)) {
38592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38593 }
38594 arg2 = static_cast< int >(val2);
38595 }
38596 if (obj2) {
38597 {
38598 arg3 = &temp3;
38599 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38600 }
38601 }
38602 if (obj3) {
38603 {
38604 arg4 = &temp4;
38605 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38606 }
38607 }
38608 if (obj4) {
38609 ecode5 = SWIG_AsVal_long(obj4, &val5);
38610 if (!SWIG_IsOK(ecode5)) {
38611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38612 }
38613 arg5 = static_cast< long >(val5);
38614 }
38615 {
38616 if (!wxPyCheckForApp()) SWIG_fail;
38617 PyThreadState* __tstate = wxPyBeginAllowThreads();
38618 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38619 wxPyEndAllowThreads(__tstate);
38620 if (PyErr_Occurred()) SWIG_fail;
38621 }
38622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38623 return resultobj;
38624 fail:
38625 return NULL;
38626 }
38627
38628
38629 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38630 PyObject *resultobj = 0;
38631 wxDirFilterListCtrl *result = 0 ;
38632
38633 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38634 {
38635 if (!wxPyCheckForApp()) SWIG_fail;
38636 PyThreadState* __tstate = wxPyBeginAllowThreads();
38637 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38638 wxPyEndAllowThreads(__tstate);
38639 if (PyErr_Occurred()) SWIG_fail;
38640 }
38641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38642 return resultobj;
38643 fail:
38644 return NULL;
38645 }
38646
38647
38648 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38649 PyObject *resultobj = 0;
38650 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38651 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38652 int arg3 = (int) (int)-1 ;
38653 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38654 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38655 wxSize const &arg5_defvalue = wxDefaultSize ;
38656 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38657 long arg6 = (long) 0 ;
38658 bool result;
38659 void *argp1 = 0 ;
38660 int res1 = 0 ;
38661 void *argp2 = 0 ;
38662 int res2 = 0 ;
38663 int val3 ;
38664 int ecode3 = 0 ;
38665 wxPoint temp4 ;
38666 wxSize temp5 ;
38667 long val6 ;
38668 int ecode6 = 0 ;
38669 PyObject * obj0 = 0 ;
38670 PyObject * obj1 = 0 ;
38671 PyObject * obj2 = 0 ;
38672 PyObject * obj3 = 0 ;
38673 PyObject * obj4 = 0 ;
38674 PyObject * obj5 = 0 ;
38675 char * kwnames[] = {
38676 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38677 };
38678
38679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38681 if (!SWIG_IsOK(res1)) {
38682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38683 }
38684 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38685 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38686 if (!SWIG_IsOK(res2)) {
38687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38688 }
38689 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38690 if (obj2) {
38691 ecode3 = SWIG_AsVal_int(obj2, &val3);
38692 if (!SWIG_IsOK(ecode3)) {
38693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38694 }
38695 arg3 = static_cast< int >(val3);
38696 }
38697 if (obj3) {
38698 {
38699 arg4 = &temp4;
38700 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38701 }
38702 }
38703 if (obj4) {
38704 {
38705 arg5 = &temp5;
38706 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38707 }
38708 }
38709 if (obj5) {
38710 ecode6 = SWIG_AsVal_long(obj5, &val6);
38711 if (!SWIG_IsOK(ecode6)) {
38712 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38713 }
38714 arg6 = static_cast< long >(val6);
38715 }
38716 {
38717 PyThreadState* __tstate = wxPyBeginAllowThreads();
38718 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38719 wxPyEndAllowThreads(__tstate);
38720 if (PyErr_Occurred()) SWIG_fail;
38721 }
38722 {
38723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38724 }
38725 return resultobj;
38726 fail:
38727 return NULL;
38728 }
38729
38730
38731 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38732 PyObject *resultobj = 0;
38733 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38734 wxString *arg2 = 0 ;
38735 int arg3 ;
38736 void *argp1 = 0 ;
38737 int res1 = 0 ;
38738 bool temp2 = false ;
38739 int val3 ;
38740 int ecode3 = 0 ;
38741 PyObject * obj0 = 0 ;
38742 PyObject * obj1 = 0 ;
38743 PyObject * obj2 = 0 ;
38744 char * kwnames[] = {
38745 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38746 };
38747
38748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38750 if (!SWIG_IsOK(res1)) {
38751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38752 }
38753 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38754 {
38755 arg2 = wxString_in_helper(obj1);
38756 if (arg2 == NULL) SWIG_fail;
38757 temp2 = true;
38758 }
38759 ecode3 = SWIG_AsVal_int(obj2, &val3);
38760 if (!SWIG_IsOK(ecode3)) {
38761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38762 }
38763 arg3 = static_cast< int >(val3);
38764 {
38765 PyThreadState* __tstate = wxPyBeginAllowThreads();
38766 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38767 wxPyEndAllowThreads(__tstate);
38768 if (PyErr_Occurred()) SWIG_fail;
38769 }
38770 resultobj = SWIG_Py_Void();
38771 {
38772 if (temp2)
38773 delete arg2;
38774 }
38775 return resultobj;
38776 fail:
38777 {
38778 if (temp2)
38779 delete arg2;
38780 }
38781 return NULL;
38782 }
38783
38784
38785 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38786 PyObject *obj;
38787 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38788 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38789 return SWIG_Py_Void();
38790 }
38791
38792 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38793 return SWIG_Python_InitShadowInstance(args);
38794 }
38795
38796 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38797 PyObject *resultobj = 0;
38798 wxWindow *arg1 = (wxWindow *) 0 ;
38799 int arg2 = (int) (int)-1 ;
38800 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38801 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38802 wxSize const &arg4_defvalue = wxDefaultSize ;
38803 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38804 long arg5 = (long) 0 ;
38805 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38806 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38807 wxString const &arg7_defvalue = wxPyControlNameStr ;
38808 wxString *arg7 = (wxString *) &arg7_defvalue ;
38809 wxPyControl *result = 0 ;
38810 void *argp1 = 0 ;
38811 int res1 = 0 ;
38812 int val2 ;
38813 int ecode2 = 0 ;
38814 wxPoint temp3 ;
38815 wxSize temp4 ;
38816 long val5 ;
38817 int ecode5 = 0 ;
38818 void *argp6 = 0 ;
38819 int res6 = 0 ;
38820 bool temp7 = false ;
38821 PyObject * obj0 = 0 ;
38822 PyObject * obj1 = 0 ;
38823 PyObject * obj2 = 0 ;
38824 PyObject * obj3 = 0 ;
38825 PyObject * obj4 = 0 ;
38826 PyObject * obj5 = 0 ;
38827 PyObject * obj6 = 0 ;
38828 char * kwnames[] = {
38829 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38830 };
38831
38832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38834 if (!SWIG_IsOK(res1)) {
38835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38836 }
38837 arg1 = reinterpret_cast< wxWindow * >(argp1);
38838 if (obj1) {
38839 ecode2 = SWIG_AsVal_int(obj1, &val2);
38840 if (!SWIG_IsOK(ecode2)) {
38841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38842 }
38843 arg2 = static_cast< int >(val2);
38844 }
38845 if (obj2) {
38846 {
38847 arg3 = &temp3;
38848 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38849 }
38850 }
38851 if (obj3) {
38852 {
38853 arg4 = &temp4;
38854 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38855 }
38856 }
38857 if (obj4) {
38858 ecode5 = SWIG_AsVal_long(obj4, &val5);
38859 if (!SWIG_IsOK(ecode5)) {
38860 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38861 }
38862 arg5 = static_cast< long >(val5);
38863 }
38864 if (obj5) {
38865 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38866 if (!SWIG_IsOK(res6)) {
38867 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38868 }
38869 if (!argp6) {
38870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38871 }
38872 arg6 = reinterpret_cast< wxValidator * >(argp6);
38873 }
38874 if (obj6) {
38875 {
38876 arg7 = wxString_in_helper(obj6);
38877 if (arg7 == NULL) SWIG_fail;
38878 temp7 = true;
38879 }
38880 }
38881 {
38882 if (!wxPyCheckForApp()) SWIG_fail;
38883 PyThreadState* __tstate = wxPyBeginAllowThreads();
38884 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38885 wxPyEndAllowThreads(__tstate);
38886 if (PyErr_Occurred()) SWIG_fail;
38887 }
38888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38889 {
38890 if (temp7)
38891 delete arg7;
38892 }
38893 return resultobj;
38894 fail:
38895 {
38896 if (temp7)
38897 delete arg7;
38898 }
38899 return NULL;
38900 }
38901
38902
38903 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38904 PyObject *resultobj = 0;
38905 wxPyControl *result = 0 ;
38906
38907 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38908 {
38909 if (!wxPyCheckForApp()) SWIG_fail;
38910 PyThreadState* __tstate = wxPyBeginAllowThreads();
38911 result = (wxPyControl *)new wxPyControl();
38912 wxPyEndAllowThreads(__tstate);
38913 if (PyErr_Occurred()) SWIG_fail;
38914 }
38915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38916 return resultobj;
38917 fail:
38918 return NULL;
38919 }
38920
38921
38922 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38923 PyObject *resultobj = 0;
38924 wxPyControl *arg1 = (wxPyControl *) 0 ;
38925 PyObject *arg2 = (PyObject *) 0 ;
38926 PyObject *arg3 = (PyObject *) 0 ;
38927 void *argp1 = 0 ;
38928 int res1 = 0 ;
38929 PyObject * obj0 = 0 ;
38930 PyObject * obj1 = 0 ;
38931 PyObject * obj2 = 0 ;
38932 char * kwnames[] = {
38933 (char *) "self",(char *) "self",(char *) "_class", NULL
38934 };
38935
38936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38938 if (!SWIG_IsOK(res1)) {
38939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38940 }
38941 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38942 arg2 = obj1;
38943 arg3 = obj2;
38944 {
38945 PyThreadState* __tstate = wxPyBeginAllowThreads();
38946 (arg1)->_setCallbackInfo(arg2,arg3);
38947 wxPyEndAllowThreads(__tstate);
38948 if (PyErr_Occurred()) SWIG_fail;
38949 }
38950 resultobj = SWIG_Py_Void();
38951 return resultobj;
38952 fail:
38953 return NULL;
38954 }
38955
38956
38957 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38958 PyObject *resultobj = 0;
38959 wxPyControl *arg1 = (wxPyControl *) 0 ;
38960 wxDC *arg2 = (wxDC *) 0 ;
38961 bool result;
38962 void *argp1 = 0 ;
38963 int res1 = 0 ;
38964 void *argp2 = 0 ;
38965 int res2 = 0 ;
38966 PyObject * obj0 = 0 ;
38967 PyObject * obj1 = 0 ;
38968 char * kwnames[] = {
38969 (char *) "self",(char *) "dc", NULL
38970 };
38971
38972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38974 if (!SWIG_IsOK(res1)) {
38975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38976 }
38977 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38978 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38979 if (!SWIG_IsOK(res2)) {
38980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38981 }
38982 arg2 = reinterpret_cast< wxDC * >(argp2);
38983 {
38984 PyThreadState* __tstate = wxPyBeginAllowThreads();
38985 result = (bool)(arg1)->DoEraseBackground(arg2);
38986 wxPyEndAllowThreads(__tstate);
38987 if (PyErr_Occurred()) SWIG_fail;
38988 }
38989 {
38990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38991 }
38992 return resultobj;
38993 fail:
38994 return NULL;
38995 }
38996
38997
38998 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(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 void *argp1 = 0 ;
39006 int res1 = 0 ;
39007 int val2 ;
39008 int ecode2 = 0 ;
39009 int val3 ;
39010 int ecode3 = 0 ;
39011 int val4 ;
39012 int ecode4 = 0 ;
39013 int val5 ;
39014 int ecode5 = 0 ;
39015 PyObject * obj0 = 0 ;
39016 PyObject * obj1 = 0 ;
39017 PyObject * obj2 = 0 ;
39018 PyObject * obj3 = 0 ;
39019 PyObject * obj4 = 0 ;
39020 char * kwnames[] = {
39021 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
39022 };
39023
39024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39026 if (!SWIG_IsOK(res1)) {
39027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
39028 }
39029 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39030 ecode2 = SWIG_AsVal_int(obj1, &val2);
39031 if (!SWIG_IsOK(ecode2)) {
39032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
39033 }
39034 arg2 = static_cast< int >(val2);
39035 ecode3 = SWIG_AsVal_int(obj2, &val3);
39036 if (!SWIG_IsOK(ecode3)) {
39037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
39038 }
39039 arg3 = static_cast< int >(val3);
39040 ecode4 = SWIG_AsVal_int(obj3, &val4);
39041 if (!SWIG_IsOK(ecode4)) {
39042 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
39043 }
39044 arg4 = static_cast< int >(val4);
39045 ecode5 = SWIG_AsVal_int(obj4, &val5);
39046 if (!SWIG_IsOK(ecode5)) {
39047 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
39048 }
39049 arg5 = static_cast< int >(val5);
39050 {
39051 PyThreadState* __tstate = wxPyBeginAllowThreads();
39052 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
39053 wxPyEndAllowThreads(__tstate);
39054 if (PyErr_Occurred()) SWIG_fail;
39055 }
39056 resultobj = SWIG_Py_Void();
39057 return resultobj;
39058 fail:
39059 return NULL;
39060 }
39061
39062
39063 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39064 PyObject *resultobj = 0;
39065 wxPyControl *arg1 = (wxPyControl *) 0 ;
39066 int arg2 ;
39067 int arg3 ;
39068 int arg4 ;
39069 int arg5 ;
39070 int arg6 = (int) wxSIZE_AUTO ;
39071 void *argp1 = 0 ;
39072 int res1 = 0 ;
39073 int val2 ;
39074 int ecode2 = 0 ;
39075 int val3 ;
39076 int ecode3 = 0 ;
39077 int val4 ;
39078 int ecode4 = 0 ;
39079 int val5 ;
39080 int ecode5 = 0 ;
39081 int val6 ;
39082 int ecode6 = 0 ;
39083 PyObject * obj0 = 0 ;
39084 PyObject * obj1 = 0 ;
39085 PyObject * obj2 = 0 ;
39086 PyObject * obj3 = 0 ;
39087 PyObject * obj4 = 0 ;
39088 PyObject * obj5 = 0 ;
39089 char * kwnames[] = {
39090 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39091 };
39092
39093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39095 if (!SWIG_IsOK(res1)) {
39096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39097 }
39098 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39099 ecode2 = SWIG_AsVal_int(obj1, &val2);
39100 if (!SWIG_IsOK(ecode2)) {
39101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39102 }
39103 arg2 = static_cast< int >(val2);
39104 ecode3 = SWIG_AsVal_int(obj2, &val3);
39105 if (!SWIG_IsOK(ecode3)) {
39106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39107 }
39108 arg3 = static_cast< int >(val3);
39109 ecode4 = SWIG_AsVal_int(obj3, &val4);
39110 if (!SWIG_IsOK(ecode4)) {
39111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39112 }
39113 arg4 = static_cast< int >(val4);
39114 ecode5 = SWIG_AsVal_int(obj4, &val5);
39115 if (!SWIG_IsOK(ecode5)) {
39116 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39117 }
39118 arg5 = static_cast< int >(val5);
39119 if (obj5) {
39120 ecode6 = SWIG_AsVal_int(obj5, &val6);
39121 if (!SWIG_IsOK(ecode6)) {
39122 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39123 }
39124 arg6 = static_cast< int >(val6);
39125 }
39126 {
39127 PyThreadState* __tstate = wxPyBeginAllowThreads();
39128 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39129 wxPyEndAllowThreads(__tstate);
39130 if (PyErr_Occurred()) SWIG_fail;
39131 }
39132 resultobj = SWIG_Py_Void();
39133 return resultobj;
39134 fail:
39135 return NULL;
39136 }
39137
39138
39139 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39140 PyObject *resultobj = 0;
39141 wxPyControl *arg1 = (wxPyControl *) 0 ;
39142 int arg2 ;
39143 int arg3 ;
39144 void *argp1 = 0 ;
39145 int res1 = 0 ;
39146 int val2 ;
39147 int ecode2 = 0 ;
39148 int val3 ;
39149 int ecode3 = 0 ;
39150 PyObject * obj0 = 0 ;
39151 PyObject * obj1 = 0 ;
39152 PyObject * obj2 = 0 ;
39153 char * kwnames[] = {
39154 (char *) "self",(char *) "width",(char *) "height", NULL
39155 };
39156
39157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39159 if (!SWIG_IsOK(res1)) {
39160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39161 }
39162 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39163 ecode2 = SWIG_AsVal_int(obj1, &val2);
39164 if (!SWIG_IsOK(ecode2)) {
39165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39166 }
39167 arg2 = static_cast< int >(val2);
39168 ecode3 = SWIG_AsVal_int(obj2, &val3);
39169 if (!SWIG_IsOK(ecode3)) {
39170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39171 }
39172 arg3 = static_cast< int >(val3);
39173 {
39174 PyThreadState* __tstate = wxPyBeginAllowThreads();
39175 (arg1)->DoSetClientSize(arg2,arg3);
39176 wxPyEndAllowThreads(__tstate);
39177 if (PyErr_Occurred()) SWIG_fail;
39178 }
39179 resultobj = SWIG_Py_Void();
39180 return resultobj;
39181 fail:
39182 return NULL;
39183 }
39184
39185
39186 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39187 PyObject *resultobj = 0;
39188 wxPyControl *arg1 = (wxPyControl *) 0 ;
39189 int arg2 ;
39190 int arg3 ;
39191 void *argp1 = 0 ;
39192 int res1 = 0 ;
39193 int val2 ;
39194 int ecode2 = 0 ;
39195 int val3 ;
39196 int ecode3 = 0 ;
39197 PyObject * obj0 = 0 ;
39198 PyObject * obj1 = 0 ;
39199 PyObject * obj2 = 0 ;
39200 char * kwnames[] = {
39201 (char *) "self",(char *) "x",(char *) "y", NULL
39202 };
39203
39204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39206 if (!SWIG_IsOK(res1)) {
39207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39208 }
39209 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39210 ecode2 = SWIG_AsVal_int(obj1, &val2);
39211 if (!SWIG_IsOK(ecode2)) {
39212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39213 }
39214 arg2 = static_cast< int >(val2);
39215 ecode3 = SWIG_AsVal_int(obj2, &val3);
39216 if (!SWIG_IsOK(ecode3)) {
39217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39218 }
39219 arg3 = static_cast< int >(val3);
39220 {
39221 PyThreadState* __tstate = wxPyBeginAllowThreads();
39222 (arg1)->DoSetVirtualSize(arg2,arg3);
39223 wxPyEndAllowThreads(__tstate);
39224 if (PyErr_Occurred()) SWIG_fail;
39225 }
39226 resultobj = SWIG_Py_Void();
39227 return resultobj;
39228 fail:
39229 return NULL;
39230 }
39231
39232
39233 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39234 PyObject *resultobj = 0;
39235 wxPyControl *arg1 = (wxPyControl *) 0 ;
39236 int *arg2 = (int *) 0 ;
39237 int *arg3 = (int *) 0 ;
39238 void *argp1 = 0 ;
39239 int res1 = 0 ;
39240 int temp2 ;
39241 int res2 = SWIG_TMPOBJ ;
39242 int temp3 ;
39243 int res3 = SWIG_TMPOBJ ;
39244 PyObject *swig_obj[1] ;
39245
39246 arg2 = &temp2;
39247 arg3 = &temp3;
39248 if (!args) SWIG_fail;
39249 swig_obj[0] = args;
39250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39251 if (!SWIG_IsOK(res1)) {
39252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39253 }
39254 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39255 {
39256 PyThreadState* __tstate = wxPyBeginAllowThreads();
39257 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39258 wxPyEndAllowThreads(__tstate);
39259 if (PyErr_Occurred()) SWIG_fail;
39260 }
39261 resultobj = SWIG_Py_Void();
39262 if (SWIG_IsTmpObj(res2)) {
39263 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39264 } else {
39265 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39266 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39267 }
39268 if (SWIG_IsTmpObj(res3)) {
39269 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39270 } else {
39271 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39272 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39273 }
39274 return resultobj;
39275 fail:
39276 return NULL;
39277 }
39278
39279
39280 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39281 PyObject *resultobj = 0;
39282 wxPyControl *arg1 = (wxPyControl *) 0 ;
39283 int *arg2 = (int *) 0 ;
39284 int *arg3 = (int *) 0 ;
39285 void *argp1 = 0 ;
39286 int res1 = 0 ;
39287 int temp2 ;
39288 int res2 = SWIG_TMPOBJ ;
39289 int temp3 ;
39290 int res3 = SWIG_TMPOBJ ;
39291 PyObject *swig_obj[1] ;
39292
39293 arg2 = &temp2;
39294 arg3 = &temp3;
39295 if (!args) SWIG_fail;
39296 swig_obj[0] = args;
39297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39298 if (!SWIG_IsOK(res1)) {
39299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39300 }
39301 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39302 {
39303 PyThreadState* __tstate = wxPyBeginAllowThreads();
39304 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39305 wxPyEndAllowThreads(__tstate);
39306 if (PyErr_Occurred()) SWIG_fail;
39307 }
39308 resultobj = SWIG_Py_Void();
39309 if (SWIG_IsTmpObj(res2)) {
39310 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39311 } else {
39312 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39313 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39314 }
39315 if (SWIG_IsTmpObj(res3)) {
39316 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39317 } else {
39318 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39319 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39320 }
39321 return resultobj;
39322 fail:
39323 return NULL;
39324 }
39325
39326
39327 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39328 PyObject *resultobj = 0;
39329 wxPyControl *arg1 = (wxPyControl *) 0 ;
39330 int *arg2 = (int *) 0 ;
39331 int *arg3 = (int *) 0 ;
39332 void *argp1 = 0 ;
39333 int res1 = 0 ;
39334 int temp2 ;
39335 int res2 = SWIG_TMPOBJ ;
39336 int temp3 ;
39337 int res3 = SWIG_TMPOBJ ;
39338 PyObject *swig_obj[1] ;
39339
39340 arg2 = &temp2;
39341 arg3 = &temp3;
39342 if (!args) SWIG_fail;
39343 swig_obj[0] = args;
39344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39345 if (!SWIG_IsOK(res1)) {
39346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39347 }
39348 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39349 {
39350 PyThreadState* __tstate = wxPyBeginAllowThreads();
39351 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39352 wxPyEndAllowThreads(__tstate);
39353 if (PyErr_Occurred()) SWIG_fail;
39354 }
39355 resultobj = SWIG_Py_Void();
39356 if (SWIG_IsTmpObj(res2)) {
39357 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39358 } else {
39359 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39360 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39361 }
39362 if (SWIG_IsTmpObj(res3)) {
39363 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39364 } else {
39365 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39366 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39367 }
39368 return resultobj;
39369 fail:
39370 return NULL;
39371 }
39372
39373
39374 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39375 PyObject *resultobj = 0;
39376 wxPyControl *arg1 = (wxPyControl *) 0 ;
39377 wxSize result;
39378 void *argp1 = 0 ;
39379 int res1 = 0 ;
39380 PyObject *swig_obj[1] ;
39381
39382 if (!args) SWIG_fail;
39383 swig_obj[0] = args;
39384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39385 if (!SWIG_IsOK(res1)) {
39386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39387 }
39388 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39389 {
39390 PyThreadState* __tstate = wxPyBeginAllowThreads();
39391 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39392 wxPyEndAllowThreads(__tstate);
39393 if (PyErr_Occurred()) SWIG_fail;
39394 }
39395 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39396 return resultobj;
39397 fail:
39398 return NULL;
39399 }
39400
39401
39402 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39403 PyObject *resultobj = 0;
39404 wxPyControl *arg1 = (wxPyControl *) 0 ;
39405 wxSize result;
39406 void *argp1 = 0 ;
39407 int res1 = 0 ;
39408 PyObject *swig_obj[1] ;
39409
39410 if (!args) SWIG_fail;
39411 swig_obj[0] = args;
39412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39413 if (!SWIG_IsOK(res1)) {
39414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39415 }
39416 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39417 {
39418 PyThreadState* __tstate = wxPyBeginAllowThreads();
39419 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39420 wxPyEndAllowThreads(__tstate);
39421 if (PyErr_Occurred()) SWIG_fail;
39422 }
39423 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39424 return resultobj;
39425 fail:
39426 return NULL;
39427 }
39428
39429
39430 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39431 PyObject *resultobj = 0;
39432 wxPyControl *arg1 = (wxPyControl *) 0 ;
39433 SwigValueWrapper<wxVisualAttributes > result;
39434 void *argp1 = 0 ;
39435 int res1 = 0 ;
39436 PyObject *swig_obj[1] ;
39437
39438 if (!args) SWIG_fail;
39439 swig_obj[0] = args;
39440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39441 if (!SWIG_IsOK(res1)) {
39442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39443 }
39444 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39445 {
39446 PyThreadState* __tstate = wxPyBeginAllowThreads();
39447 result = (arg1)->GetDefaultAttributes();
39448 wxPyEndAllowThreads(__tstate);
39449 if (PyErr_Occurred()) SWIG_fail;
39450 }
39451 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39452 return resultobj;
39453 fail:
39454 return NULL;
39455 }
39456
39457
39458 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39459 PyObject *resultobj = 0;
39460 wxPyControl *arg1 = (wxPyControl *) 0 ;
39461 void *argp1 = 0 ;
39462 int res1 = 0 ;
39463 PyObject *swig_obj[1] ;
39464
39465 if (!args) SWIG_fail;
39466 swig_obj[0] = args;
39467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39468 if (!SWIG_IsOK(res1)) {
39469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39470 }
39471 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39472 {
39473 PyThreadState* __tstate = wxPyBeginAllowThreads();
39474 (arg1)->OnInternalIdle();
39475 wxPyEndAllowThreads(__tstate);
39476 if (PyErr_Occurred()) SWIG_fail;
39477 }
39478 resultobj = SWIG_Py_Void();
39479 return resultobj;
39480 fail:
39481 return NULL;
39482 }
39483
39484
39485 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39486 PyObject *obj;
39487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39488 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39489 return SWIG_Py_Void();
39490 }
39491
39492 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39493 return SWIG_Python_InitShadowInstance(args);
39494 }
39495
39496 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39497 PyObject *resultobj = 0;
39498 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39499 int arg2 = (int) 0 ;
39500 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39501 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39502 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39503 wxHelpEvent *result = 0 ;
39504 int val1 ;
39505 int ecode1 = 0 ;
39506 int val2 ;
39507 int ecode2 = 0 ;
39508 wxPoint temp3 ;
39509 int val4 ;
39510 int ecode4 = 0 ;
39511 PyObject * obj0 = 0 ;
39512 PyObject * obj1 = 0 ;
39513 PyObject * obj2 = 0 ;
39514 PyObject * obj3 = 0 ;
39515 char * kwnames[] = {
39516 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39517 };
39518
39519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39520 if (obj0) {
39521 ecode1 = SWIG_AsVal_int(obj0, &val1);
39522 if (!SWIG_IsOK(ecode1)) {
39523 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39524 }
39525 arg1 = static_cast< wxEventType >(val1);
39526 }
39527 if (obj1) {
39528 ecode2 = SWIG_AsVal_int(obj1, &val2);
39529 if (!SWIG_IsOK(ecode2)) {
39530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39531 }
39532 arg2 = static_cast< int >(val2);
39533 }
39534 if (obj2) {
39535 {
39536 arg3 = &temp3;
39537 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39538 }
39539 }
39540 if (obj3) {
39541 ecode4 = SWIG_AsVal_int(obj3, &val4);
39542 if (!SWIG_IsOK(ecode4)) {
39543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39544 }
39545 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39546 }
39547 {
39548 PyThreadState* __tstate = wxPyBeginAllowThreads();
39549 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39550 wxPyEndAllowThreads(__tstate);
39551 if (PyErr_Occurred()) SWIG_fail;
39552 }
39553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39554 return resultobj;
39555 fail:
39556 return NULL;
39557 }
39558
39559
39560 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39561 PyObject *resultobj = 0;
39562 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39563 wxPoint result;
39564 void *argp1 = 0 ;
39565 int res1 = 0 ;
39566 PyObject *swig_obj[1] ;
39567
39568 if (!args) SWIG_fail;
39569 swig_obj[0] = args;
39570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39571 if (!SWIG_IsOK(res1)) {
39572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39573 }
39574 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39575 {
39576 PyThreadState* __tstate = wxPyBeginAllowThreads();
39577 result = ((wxHelpEvent const *)arg1)->GetPosition();
39578 wxPyEndAllowThreads(__tstate);
39579 if (PyErr_Occurred()) SWIG_fail;
39580 }
39581 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39582 return resultobj;
39583 fail:
39584 return NULL;
39585 }
39586
39587
39588 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39589 PyObject *resultobj = 0;
39590 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39591 wxPoint *arg2 = 0 ;
39592 void *argp1 = 0 ;
39593 int res1 = 0 ;
39594 wxPoint temp2 ;
39595 PyObject * obj0 = 0 ;
39596 PyObject * obj1 = 0 ;
39597 char * kwnames[] = {
39598 (char *) "self",(char *) "pos", NULL
39599 };
39600
39601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39603 if (!SWIG_IsOK(res1)) {
39604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39605 }
39606 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39607 {
39608 arg2 = &temp2;
39609 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39610 }
39611 {
39612 PyThreadState* __tstate = wxPyBeginAllowThreads();
39613 (arg1)->SetPosition((wxPoint const &)*arg2);
39614 wxPyEndAllowThreads(__tstate);
39615 if (PyErr_Occurred()) SWIG_fail;
39616 }
39617 resultobj = SWIG_Py_Void();
39618 return resultobj;
39619 fail:
39620 return NULL;
39621 }
39622
39623
39624 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39625 PyObject *resultobj = 0;
39626 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39627 wxString *result = 0 ;
39628 void *argp1 = 0 ;
39629 int res1 = 0 ;
39630 PyObject *swig_obj[1] ;
39631
39632 if (!args) SWIG_fail;
39633 swig_obj[0] = args;
39634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39635 if (!SWIG_IsOK(res1)) {
39636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39637 }
39638 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39639 {
39640 PyThreadState* __tstate = wxPyBeginAllowThreads();
39641 {
39642 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39643 result = (wxString *) &_result_ref;
39644 }
39645 wxPyEndAllowThreads(__tstate);
39646 if (PyErr_Occurred()) SWIG_fail;
39647 }
39648 {
39649 #if wxUSE_UNICODE
39650 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39651 #else
39652 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39653 #endif
39654 }
39655 return resultobj;
39656 fail:
39657 return NULL;
39658 }
39659
39660
39661 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39662 PyObject *resultobj = 0;
39663 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39664 wxString *arg2 = 0 ;
39665 void *argp1 = 0 ;
39666 int res1 = 0 ;
39667 bool temp2 = false ;
39668 PyObject * obj0 = 0 ;
39669 PyObject * obj1 = 0 ;
39670 char * kwnames[] = {
39671 (char *) "self",(char *) "link", NULL
39672 };
39673
39674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39676 if (!SWIG_IsOK(res1)) {
39677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39678 }
39679 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39680 {
39681 arg2 = wxString_in_helper(obj1);
39682 if (arg2 == NULL) SWIG_fail;
39683 temp2 = true;
39684 }
39685 {
39686 PyThreadState* __tstate = wxPyBeginAllowThreads();
39687 (arg1)->SetLink((wxString const &)*arg2);
39688 wxPyEndAllowThreads(__tstate);
39689 if (PyErr_Occurred()) SWIG_fail;
39690 }
39691 resultobj = SWIG_Py_Void();
39692 {
39693 if (temp2)
39694 delete arg2;
39695 }
39696 return resultobj;
39697 fail:
39698 {
39699 if (temp2)
39700 delete arg2;
39701 }
39702 return NULL;
39703 }
39704
39705
39706 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39707 PyObject *resultobj = 0;
39708 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39709 wxString *result = 0 ;
39710 void *argp1 = 0 ;
39711 int res1 = 0 ;
39712 PyObject *swig_obj[1] ;
39713
39714 if (!args) SWIG_fail;
39715 swig_obj[0] = args;
39716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39717 if (!SWIG_IsOK(res1)) {
39718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39719 }
39720 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39721 {
39722 PyThreadState* __tstate = wxPyBeginAllowThreads();
39723 {
39724 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39725 result = (wxString *) &_result_ref;
39726 }
39727 wxPyEndAllowThreads(__tstate);
39728 if (PyErr_Occurred()) SWIG_fail;
39729 }
39730 {
39731 #if wxUSE_UNICODE
39732 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39733 #else
39734 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39735 #endif
39736 }
39737 return resultobj;
39738 fail:
39739 return NULL;
39740 }
39741
39742
39743 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39744 PyObject *resultobj = 0;
39745 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39746 wxString *arg2 = 0 ;
39747 void *argp1 = 0 ;
39748 int res1 = 0 ;
39749 bool temp2 = false ;
39750 PyObject * obj0 = 0 ;
39751 PyObject * obj1 = 0 ;
39752 char * kwnames[] = {
39753 (char *) "self",(char *) "target", NULL
39754 };
39755
39756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39758 if (!SWIG_IsOK(res1)) {
39759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39760 }
39761 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39762 {
39763 arg2 = wxString_in_helper(obj1);
39764 if (arg2 == NULL) SWIG_fail;
39765 temp2 = true;
39766 }
39767 {
39768 PyThreadState* __tstate = wxPyBeginAllowThreads();
39769 (arg1)->SetTarget((wxString const &)*arg2);
39770 wxPyEndAllowThreads(__tstate);
39771 if (PyErr_Occurred()) SWIG_fail;
39772 }
39773 resultobj = SWIG_Py_Void();
39774 {
39775 if (temp2)
39776 delete arg2;
39777 }
39778 return resultobj;
39779 fail:
39780 {
39781 if (temp2)
39782 delete arg2;
39783 }
39784 return NULL;
39785 }
39786
39787
39788 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39789 PyObject *resultobj = 0;
39790 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39791 wxHelpEvent::Origin result;
39792 void *argp1 = 0 ;
39793 int res1 = 0 ;
39794 PyObject *swig_obj[1] ;
39795
39796 if (!args) SWIG_fail;
39797 swig_obj[0] = args;
39798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39799 if (!SWIG_IsOK(res1)) {
39800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39801 }
39802 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39803 {
39804 PyThreadState* __tstate = wxPyBeginAllowThreads();
39805 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39806 wxPyEndAllowThreads(__tstate);
39807 if (PyErr_Occurred()) SWIG_fail;
39808 }
39809 resultobj = SWIG_From_int(static_cast< int >(result));
39810 return resultobj;
39811 fail:
39812 return NULL;
39813 }
39814
39815
39816 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39817 PyObject *resultobj = 0;
39818 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39819 wxHelpEvent::Origin arg2 ;
39820 void *argp1 = 0 ;
39821 int res1 = 0 ;
39822 int val2 ;
39823 int ecode2 = 0 ;
39824 PyObject * obj0 = 0 ;
39825 PyObject * obj1 = 0 ;
39826 char * kwnames[] = {
39827 (char *) "self",(char *) "origin", NULL
39828 };
39829
39830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39832 if (!SWIG_IsOK(res1)) {
39833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39834 }
39835 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39836 ecode2 = SWIG_AsVal_int(obj1, &val2);
39837 if (!SWIG_IsOK(ecode2)) {
39838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39839 }
39840 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39841 {
39842 PyThreadState* __tstate = wxPyBeginAllowThreads();
39843 (arg1)->SetOrigin(arg2);
39844 wxPyEndAllowThreads(__tstate);
39845 if (PyErr_Occurred()) SWIG_fail;
39846 }
39847 resultobj = SWIG_Py_Void();
39848 return resultobj;
39849 fail:
39850 return NULL;
39851 }
39852
39853
39854 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39855 PyObject *obj;
39856 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39857 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39858 return SWIG_Py_Void();
39859 }
39860
39861 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39862 return SWIG_Python_InitShadowInstance(args);
39863 }
39864
39865 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39866 PyObject *resultobj = 0;
39867 wxWindow *arg1 = (wxWindow *) NULL ;
39868 bool arg2 = (bool) true ;
39869 wxContextHelp *result = 0 ;
39870 void *argp1 = 0 ;
39871 int res1 = 0 ;
39872 bool val2 ;
39873 int ecode2 = 0 ;
39874 PyObject * obj0 = 0 ;
39875 PyObject * obj1 = 0 ;
39876 char * kwnames[] = {
39877 (char *) "window",(char *) "doNow", NULL
39878 };
39879
39880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39881 if (obj0) {
39882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39883 if (!SWIG_IsOK(res1)) {
39884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39885 }
39886 arg1 = reinterpret_cast< wxWindow * >(argp1);
39887 }
39888 if (obj1) {
39889 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39890 if (!SWIG_IsOK(ecode2)) {
39891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39892 }
39893 arg2 = static_cast< bool >(val2);
39894 }
39895 {
39896 if (!wxPyCheckForApp()) SWIG_fail;
39897 PyThreadState* __tstate = wxPyBeginAllowThreads();
39898 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39899 wxPyEndAllowThreads(__tstate);
39900 if (PyErr_Occurred()) SWIG_fail;
39901 }
39902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39903 return resultobj;
39904 fail:
39905 return NULL;
39906 }
39907
39908
39909 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39910 PyObject *resultobj = 0;
39911 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39912 void *argp1 = 0 ;
39913 int res1 = 0 ;
39914 PyObject *swig_obj[1] ;
39915
39916 if (!args) SWIG_fail;
39917 swig_obj[0] = args;
39918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39919 if (!SWIG_IsOK(res1)) {
39920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39921 }
39922 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39923 {
39924 PyThreadState* __tstate = wxPyBeginAllowThreads();
39925 delete arg1;
39926
39927 wxPyEndAllowThreads(__tstate);
39928 if (PyErr_Occurred()) SWIG_fail;
39929 }
39930 resultobj = SWIG_Py_Void();
39931 return resultobj;
39932 fail:
39933 return NULL;
39934 }
39935
39936
39937 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39938 PyObject *resultobj = 0;
39939 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39940 wxWindow *arg2 = (wxWindow *) NULL ;
39941 bool result;
39942 void *argp1 = 0 ;
39943 int res1 = 0 ;
39944 void *argp2 = 0 ;
39945 int res2 = 0 ;
39946 PyObject * obj0 = 0 ;
39947 PyObject * obj1 = 0 ;
39948 char * kwnames[] = {
39949 (char *) "self",(char *) "window", NULL
39950 };
39951
39952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39954 if (!SWIG_IsOK(res1)) {
39955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39956 }
39957 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39958 if (obj1) {
39959 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39960 if (!SWIG_IsOK(res2)) {
39961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39962 }
39963 arg2 = reinterpret_cast< wxWindow * >(argp2);
39964 }
39965 {
39966 PyThreadState* __tstate = wxPyBeginAllowThreads();
39967 result = (bool)(arg1)->BeginContextHelp(arg2);
39968 wxPyEndAllowThreads(__tstate);
39969 if (PyErr_Occurred()) SWIG_fail;
39970 }
39971 {
39972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39973 }
39974 return resultobj;
39975 fail:
39976 return NULL;
39977 }
39978
39979
39980 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39981 PyObject *resultobj = 0;
39982 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39983 bool result;
39984 void *argp1 = 0 ;
39985 int res1 = 0 ;
39986 PyObject *swig_obj[1] ;
39987
39988 if (!args) SWIG_fail;
39989 swig_obj[0] = args;
39990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39991 if (!SWIG_IsOK(res1)) {
39992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39993 }
39994 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39995 {
39996 PyThreadState* __tstate = wxPyBeginAllowThreads();
39997 result = (bool)(arg1)->EndContextHelp();
39998 wxPyEndAllowThreads(__tstate);
39999 if (PyErr_Occurred()) SWIG_fail;
40000 }
40001 {
40002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40003 }
40004 return resultobj;
40005 fail:
40006 return NULL;
40007 }
40008
40009
40010 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40011 PyObject *obj;
40012 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40013 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
40014 return SWIG_Py_Void();
40015 }
40016
40017 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40018 return SWIG_Python_InitShadowInstance(args);
40019 }
40020
40021 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40022 PyObject *resultobj = 0;
40023 wxWindow *arg1 = (wxWindow *) 0 ;
40024 int arg2 = (int) wxID_CONTEXT_HELP ;
40025 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40026 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40027 wxSize const &arg4_defvalue = wxDefaultSize ;
40028 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
40029 long arg5 = (long) wxBU_AUTODRAW ;
40030 wxContextHelpButton *result = 0 ;
40031 void *argp1 = 0 ;
40032 int res1 = 0 ;
40033 int val2 ;
40034 int ecode2 = 0 ;
40035 wxPoint temp3 ;
40036 wxSize temp4 ;
40037 long val5 ;
40038 int ecode5 = 0 ;
40039 PyObject * obj0 = 0 ;
40040 PyObject * obj1 = 0 ;
40041 PyObject * obj2 = 0 ;
40042 PyObject * obj3 = 0 ;
40043 PyObject * obj4 = 0 ;
40044 char * kwnames[] = {
40045 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
40046 };
40047
40048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40050 if (!SWIG_IsOK(res1)) {
40051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
40052 }
40053 arg1 = reinterpret_cast< wxWindow * >(argp1);
40054 if (obj1) {
40055 ecode2 = SWIG_AsVal_int(obj1, &val2);
40056 if (!SWIG_IsOK(ecode2)) {
40057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
40058 }
40059 arg2 = static_cast< int >(val2);
40060 }
40061 if (obj2) {
40062 {
40063 arg3 = &temp3;
40064 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40065 }
40066 }
40067 if (obj3) {
40068 {
40069 arg4 = &temp4;
40070 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
40071 }
40072 }
40073 if (obj4) {
40074 ecode5 = SWIG_AsVal_long(obj4, &val5);
40075 if (!SWIG_IsOK(ecode5)) {
40076 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40077 }
40078 arg5 = static_cast< long >(val5);
40079 }
40080 {
40081 if (!wxPyCheckForApp()) SWIG_fail;
40082 PyThreadState* __tstate = wxPyBeginAllowThreads();
40083 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40084 wxPyEndAllowThreads(__tstate);
40085 if (PyErr_Occurred()) SWIG_fail;
40086 }
40087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40088 return resultobj;
40089 fail:
40090 return NULL;
40091 }
40092
40093
40094 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40095 PyObject *obj;
40096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40097 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40098 return SWIG_Py_Void();
40099 }
40100
40101 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40102 return SWIG_Python_InitShadowInstance(args);
40103 }
40104
40105 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40106 PyObject *resultobj = 0;
40107 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40108 void *argp1 = 0 ;
40109 int res1 = 0 ;
40110 PyObject *swig_obj[1] ;
40111
40112 if (!args) SWIG_fail;
40113 swig_obj[0] = args;
40114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40115 if (!SWIG_IsOK(res1)) {
40116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40117 }
40118 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40119 {
40120 PyThreadState* __tstate = wxPyBeginAllowThreads();
40121 delete arg1;
40122
40123 wxPyEndAllowThreads(__tstate);
40124 if (PyErr_Occurred()) SWIG_fail;
40125 }
40126 resultobj = SWIG_Py_Void();
40127 return resultobj;
40128 fail:
40129 return NULL;
40130 }
40131
40132
40133 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40134 PyObject *resultobj = 0;
40135 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40136 wxHelpProvider *result = 0 ;
40137 int res1 = 0 ;
40138 PyObject * obj0 = 0 ;
40139 char * kwnames[] = {
40140 (char *) "helpProvider", NULL
40141 };
40142
40143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40144 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40145 if (!SWIG_IsOK(res1)) {
40146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40147 }
40148 {
40149 PyThreadState* __tstate = wxPyBeginAllowThreads();
40150 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40151 wxPyEndAllowThreads(__tstate);
40152 if (PyErr_Occurred()) SWIG_fail;
40153 }
40154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40155 return resultobj;
40156 fail:
40157 return NULL;
40158 }
40159
40160
40161 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40162 PyObject *resultobj = 0;
40163 wxHelpProvider *result = 0 ;
40164
40165 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40166 {
40167 PyThreadState* __tstate = wxPyBeginAllowThreads();
40168 result = (wxHelpProvider *)wxHelpProvider::Get();
40169 wxPyEndAllowThreads(__tstate);
40170 if (PyErr_Occurred()) SWIG_fail;
40171 }
40172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40173 return resultobj;
40174 fail:
40175 return NULL;
40176 }
40177
40178
40179 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40180 PyObject *resultobj = 0;
40181 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40182 wxWindow *arg2 = (wxWindow *) 0 ;
40183 wxString result;
40184 void *argp1 = 0 ;
40185 int res1 = 0 ;
40186 void *argp2 = 0 ;
40187 int res2 = 0 ;
40188 PyObject * obj0 = 0 ;
40189 PyObject * obj1 = 0 ;
40190 char * kwnames[] = {
40191 (char *) "self",(char *) "window", NULL
40192 };
40193
40194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40196 if (!SWIG_IsOK(res1)) {
40197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40198 }
40199 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40200 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40201 if (!SWIG_IsOK(res2)) {
40202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40203 }
40204 arg2 = reinterpret_cast< wxWindow * >(argp2);
40205 {
40206 PyThreadState* __tstate = wxPyBeginAllowThreads();
40207 result = (arg1)->GetHelp((wxWindow const *)arg2);
40208 wxPyEndAllowThreads(__tstate);
40209 if (PyErr_Occurred()) SWIG_fail;
40210 }
40211 {
40212 #if wxUSE_UNICODE
40213 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40214 #else
40215 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40216 #endif
40217 }
40218 return resultobj;
40219 fail:
40220 return NULL;
40221 }
40222
40223
40224 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40225 PyObject *resultobj = 0;
40226 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40227 wxWindow *arg2 = (wxWindow *) 0 ;
40228 bool result;
40229 void *argp1 = 0 ;
40230 int res1 = 0 ;
40231 void *argp2 = 0 ;
40232 int res2 = 0 ;
40233 PyObject * obj0 = 0 ;
40234 PyObject * obj1 = 0 ;
40235 char * kwnames[] = {
40236 (char *) "self",(char *) "window", NULL
40237 };
40238
40239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40241 if (!SWIG_IsOK(res1)) {
40242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40243 }
40244 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40245 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40246 if (!SWIG_IsOK(res2)) {
40247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40248 }
40249 arg2 = reinterpret_cast< wxWindow * >(argp2);
40250 {
40251 PyThreadState* __tstate = wxPyBeginAllowThreads();
40252 result = (bool)(arg1)->ShowHelp(arg2);
40253 wxPyEndAllowThreads(__tstate);
40254 if (PyErr_Occurred()) SWIG_fail;
40255 }
40256 {
40257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40258 }
40259 return resultobj;
40260 fail:
40261 return NULL;
40262 }
40263
40264
40265 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40266 PyObject *resultobj = 0;
40267 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40268 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40269 wxPoint *arg3 = 0 ;
40270 wxHelpEvent::Origin arg4 ;
40271 bool result;
40272 void *argp1 = 0 ;
40273 int res1 = 0 ;
40274 void *argp2 = 0 ;
40275 int res2 = 0 ;
40276 wxPoint temp3 ;
40277 int val4 ;
40278 int ecode4 = 0 ;
40279 PyObject * obj0 = 0 ;
40280 PyObject * obj1 = 0 ;
40281 PyObject * obj2 = 0 ;
40282 PyObject * obj3 = 0 ;
40283 char * kwnames[] = {
40284 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40285 };
40286
40287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40289 if (!SWIG_IsOK(res1)) {
40290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40291 }
40292 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40293 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40294 if (!SWIG_IsOK(res2)) {
40295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40296 }
40297 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40298 {
40299 arg3 = &temp3;
40300 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40301 }
40302 ecode4 = SWIG_AsVal_int(obj3, &val4);
40303 if (!SWIG_IsOK(ecode4)) {
40304 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40305 }
40306 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40307 {
40308 PyThreadState* __tstate = wxPyBeginAllowThreads();
40309 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40310 wxPyEndAllowThreads(__tstate);
40311 if (PyErr_Occurred()) SWIG_fail;
40312 }
40313 {
40314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40315 }
40316 return resultobj;
40317 fail:
40318 return NULL;
40319 }
40320
40321
40322 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40323 PyObject *resultobj = 0;
40324 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40325 wxWindow *arg2 = (wxWindow *) 0 ;
40326 wxString *arg3 = 0 ;
40327 void *argp1 = 0 ;
40328 int res1 = 0 ;
40329 void *argp2 = 0 ;
40330 int res2 = 0 ;
40331 bool temp3 = false ;
40332 PyObject * obj0 = 0 ;
40333 PyObject * obj1 = 0 ;
40334 PyObject * obj2 = 0 ;
40335 char * kwnames[] = {
40336 (char *) "self",(char *) "window",(char *) "text", NULL
40337 };
40338
40339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40341 if (!SWIG_IsOK(res1)) {
40342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40343 }
40344 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40345 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40346 if (!SWIG_IsOK(res2)) {
40347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40348 }
40349 arg2 = reinterpret_cast< wxWindow * >(argp2);
40350 {
40351 arg3 = wxString_in_helper(obj2);
40352 if (arg3 == NULL) SWIG_fail;
40353 temp3 = true;
40354 }
40355 {
40356 PyThreadState* __tstate = wxPyBeginAllowThreads();
40357 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40358 wxPyEndAllowThreads(__tstate);
40359 if (PyErr_Occurred()) SWIG_fail;
40360 }
40361 resultobj = SWIG_Py_Void();
40362 {
40363 if (temp3)
40364 delete arg3;
40365 }
40366 return resultobj;
40367 fail:
40368 {
40369 if (temp3)
40370 delete arg3;
40371 }
40372 return NULL;
40373 }
40374
40375
40376 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40377 PyObject *resultobj = 0;
40378 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40379 int arg2 ;
40380 wxString *arg3 = 0 ;
40381 void *argp1 = 0 ;
40382 int res1 = 0 ;
40383 int val2 ;
40384 int ecode2 = 0 ;
40385 bool temp3 = false ;
40386 PyObject * obj0 = 0 ;
40387 PyObject * obj1 = 0 ;
40388 PyObject * obj2 = 0 ;
40389 char * kwnames[] = {
40390 (char *) "self",(char *) "id",(char *) "text", NULL
40391 };
40392
40393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40395 if (!SWIG_IsOK(res1)) {
40396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40397 }
40398 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40399 ecode2 = SWIG_AsVal_int(obj1, &val2);
40400 if (!SWIG_IsOK(ecode2)) {
40401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40402 }
40403 arg2 = static_cast< int >(val2);
40404 {
40405 arg3 = wxString_in_helper(obj2);
40406 if (arg3 == NULL) SWIG_fail;
40407 temp3 = true;
40408 }
40409 {
40410 PyThreadState* __tstate = wxPyBeginAllowThreads();
40411 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40412 wxPyEndAllowThreads(__tstate);
40413 if (PyErr_Occurred()) SWIG_fail;
40414 }
40415 resultobj = SWIG_Py_Void();
40416 {
40417 if (temp3)
40418 delete arg3;
40419 }
40420 return resultobj;
40421 fail:
40422 {
40423 if (temp3)
40424 delete arg3;
40425 }
40426 return NULL;
40427 }
40428
40429
40430 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40431 PyObject *resultobj = 0;
40432 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40433 wxWindow *arg2 = (wxWindow *) 0 ;
40434 void *argp1 = 0 ;
40435 int res1 = 0 ;
40436 void *argp2 = 0 ;
40437 int res2 = 0 ;
40438 PyObject * obj0 = 0 ;
40439 PyObject * obj1 = 0 ;
40440 char * kwnames[] = {
40441 (char *) "self",(char *) "window", NULL
40442 };
40443
40444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40446 if (!SWIG_IsOK(res1)) {
40447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40448 }
40449 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40450 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40451 if (!SWIG_IsOK(res2)) {
40452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40453 }
40454 arg2 = reinterpret_cast< wxWindow * >(argp2);
40455 {
40456 PyThreadState* __tstate = wxPyBeginAllowThreads();
40457 (arg1)->RemoveHelp(arg2);
40458 wxPyEndAllowThreads(__tstate);
40459 if (PyErr_Occurred()) SWIG_fail;
40460 }
40461 resultobj = SWIG_Py_Void();
40462 return resultobj;
40463 fail:
40464 return NULL;
40465 }
40466
40467
40468 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40469 PyObject *resultobj = 0;
40470 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40471 void *argp1 = 0 ;
40472 int res1 = 0 ;
40473 PyObject *swig_obj[1] ;
40474
40475 if (!args) SWIG_fail;
40476 swig_obj[0] = args;
40477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40478 if (!SWIG_IsOK(res1)) {
40479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40480 }
40481 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40482 {
40483 PyThreadState* __tstate = wxPyBeginAllowThreads();
40484 wxHelpProvider_Destroy(arg1);
40485 wxPyEndAllowThreads(__tstate);
40486 if (PyErr_Occurred()) SWIG_fail;
40487 }
40488 resultobj = SWIG_Py_Void();
40489 return resultobj;
40490 fail:
40491 return NULL;
40492 }
40493
40494
40495 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40496 PyObject *obj;
40497 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40498 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40499 return SWIG_Py_Void();
40500 }
40501
40502 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40503 PyObject *resultobj = 0;
40504 wxSimpleHelpProvider *result = 0 ;
40505
40506 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40507 {
40508 PyThreadState* __tstate = wxPyBeginAllowThreads();
40509 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40510 wxPyEndAllowThreads(__tstate);
40511 if (PyErr_Occurred()) SWIG_fail;
40512 }
40513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40514 return resultobj;
40515 fail:
40516 return NULL;
40517 }
40518
40519
40520 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40521 PyObject *obj;
40522 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40523 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40524 return SWIG_Py_Void();
40525 }
40526
40527 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40528 return SWIG_Python_InitShadowInstance(args);
40529 }
40530
40531 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40532 PyObject *resultobj = 0;
40533 wxBitmap *arg1 = 0 ;
40534 wxCursor const &arg2_defvalue = wxNullCursor ;
40535 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40536 wxGenericDragImage *result = 0 ;
40537 void *argp1 = 0 ;
40538 int res1 = 0 ;
40539 void *argp2 = 0 ;
40540 int res2 = 0 ;
40541 PyObject * obj0 = 0 ;
40542 PyObject * obj1 = 0 ;
40543 char * kwnames[] = {
40544 (char *) "image",(char *) "cursor", NULL
40545 };
40546
40547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40548 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40549 if (!SWIG_IsOK(res1)) {
40550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40551 }
40552 if (!argp1) {
40553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40554 }
40555 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40556 if (obj1) {
40557 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40558 if (!SWIG_IsOK(res2)) {
40559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40560 }
40561 if (!argp2) {
40562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40563 }
40564 arg2 = reinterpret_cast< wxCursor * >(argp2);
40565 }
40566 {
40567 if (!wxPyCheckForApp()) SWIG_fail;
40568 PyThreadState* __tstate = wxPyBeginAllowThreads();
40569 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40570 wxPyEndAllowThreads(__tstate);
40571 if (PyErr_Occurred()) SWIG_fail;
40572 }
40573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40574 return resultobj;
40575 fail:
40576 return NULL;
40577 }
40578
40579
40580 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40581 PyObject *resultobj = 0;
40582 wxIcon *arg1 = 0 ;
40583 wxCursor const &arg2_defvalue = wxNullCursor ;
40584 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40585 wxGenericDragImage *result = 0 ;
40586 void *argp1 = 0 ;
40587 int res1 = 0 ;
40588 void *argp2 = 0 ;
40589 int res2 = 0 ;
40590 PyObject * obj0 = 0 ;
40591 PyObject * obj1 = 0 ;
40592 char * kwnames[] = {
40593 (char *) "image",(char *) "cursor", NULL
40594 };
40595
40596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40597 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40598 if (!SWIG_IsOK(res1)) {
40599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40600 }
40601 if (!argp1) {
40602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40603 }
40604 arg1 = reinterpret_cast< wxIcon * >(argp1);
40605 if (obj1) {
40606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40607 if (!SWIG_IsOK(res2)) {
40608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40609 }
40610 if (!argp2) {
40611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40612 }
40613 arg2 = reinterpret_cast< wxCursor * >(argp2);
40614 }
40615 {
40616 if (!wxPyCheckForApp()) SWIG_fail;
40617 PyThreadState* __tstate = wxPyBeginAllowThreads();
40618 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40619 wxPyEndAllowThreads(__tstate);
40620 if (PyErr_Occurred()) SWIG_fail;
40621 }
40622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40623 return resultobj;
40624 fail:
40625 return NULL;
40626 }
40627
40628
40629 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40630 PyObject *resultobj = 0;
40631 wxString *arg1 = 0 ;
40632 wxCursor const &arg2_defvalue = wxNullCursor ;
40633 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40634 wxGenericDragImage *result = 0 ;
40635 bool temp1 = false ;
40636 void *argp2 = 0 ;
40637 int res2 = 0 ;
40638 PyObject * obj0 = 0 ;
40639 PyObject * obj1 = 0 ;
40640 char * kwnames[] = {
40641 (char *) "str",(char *) "cursor", NULL
40642 };
40643
40644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40645 {
40646 arg1 = wxString_in_helper(obj0);
40647 if (arg1 == NULL) SWIG_fail;
40648 temp1 = true;
40649 }
40650 if (obj1) {
40651 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40652 if (!SWIG_IsOK(res2)) {
40653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40654 }
40655 if (!argp2) {
40656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40657 }
40658 arg2 = reinterpret_cast< wxCursor * >(argp2);
40659 }
40660 {
40661 if (!wxPyCheckForApp()) SWIG_fail;
40662 PyThreadState* __tstate = wxPyBeginAllowThreads();
40663 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40664 wxPyEndAllowThreads(__tstate);
40665 if (PyErr_Occurred()) SWIG_fail;
40666 }
40667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40668 {
40669 if (temp1)
40670 delete arg1;
40671 }
40672 return resultobj;
40673 fail:
40674 {
40675 if (temp1)
40676 delete arg1;
40677 }
40678 return NULL;
40679 }
40680
40681
40682 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40683 PyObject *resultobj = 0;
40684 wxPyTreeCtrl *arg1 = 0 ;
40685 wxTreeItemId *arg2 = 0 ;
40686 wxGenericDragImage *result = 0 ;
40687 void *argp1 = 0 ;
40688 int res1 = 0 ;
40689 void *argp2 = 0 ;
40690 int res2 = 0 ;
40691 PyObject * obj0 = 0 ;
40692 PyObject * obj1 = 0 ;
40693 char * kwnames[] = {
40694 (char *) "treeCtrl",(char *) "id", NULL
40695 };
40696
40697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40698 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40699 if (!SWIG_IsOK(res1)) {
40700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40701 }
40702 if (!argp1) {
40703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40704 }
40705 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40706 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40707 if (!SWIG_IsOK(res2)) {
40708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40709 }
40710 if (!argp2) {
40711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40712 }
40713 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40714 {
40715 if (!wxPyCheckForApp()) SWIG_fail;
40716 PyThreadState* __tstate = wxPyBeginAllowThreads();
40717 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40718 wxPyEndAllowThreads(__tstate);
40719 if (PyErr_Occurred()) SWIG_fail;
40720 }
40721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40722 return resultobj;
40723 fail:
40724 return NULL;
40725 }
40726
40727
40728 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40729 PyObject *resultobj = 0;
40730 wxPyListCtrl *arg1 = 0 ;
40731 long arg2 ;
40732 wxGenericDragImage *result = 0 ;
40733 void *argp1 = 0 ;
40734 int res1 = 0 ;
40735 long val2 ;
40736 int ecode2 = 0 ;
40737 PyObject * obj0 = 0 ;
40738 PyObject * obj1 = 0 ;
40739 char * kwnames[] = {
40740 (char *) "listCtrl",(char *) "id", NULL
40741 };
40742
40743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40744 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40745 if (!SWIG_IsOK(res1)) {
40746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40747 }
40748 if (!argp1) {
40749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40750 }
40751 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40752 ecode2 = SWIG_AsVal_long(obj1, &val2);
40753 if (!SWIG_IsOK(ecode2)) {
40754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40755 }
40756 arg2 = static_cast< long >(val2);
40757 {
40758 if (!wxPyCheckForApp()) SWIG_fail;
40759 PyThreadState* __tstate = wxPyBeginAllowThreads();
40760 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40761 wxPyEndAllowThreads(__tstate);
40762 if (PyErr_Occurred()) SWIG_fail;
40763 }
40764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40765 return resultobj;
40766 fail:
40767 return NULL;
40768 }
40769
40770
40771 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40772 PyObject *resultobj = 0;
40773 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40774 void *argp1 = 0 ;
40775 int res1 = 0 ;
40776 PyObject *swig_obj[1] ;
40777
40778 if (!args) SWIG_fail;
40779 swig_obj[0] = args;
40780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40781 if (!SWIG_IsOK(res1)) {
40782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40783 }
40784 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40785 {
40786 PyThreadState* __tstate = wxPyBeginAllowThreads();
40787 delete arg1;
40788
40789 wxPyEndAllowThreads(__tstate);
40790 if (PyErr_Occurred()) SWIG_fail;
40791 }
40792 resultobj = SWIG_Py_Void();
40793 return resultobj;
40794 fail:
40795 return NULL;
40796 }
40797
40798
40799 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40800 PyObject *resultobj = 0;
40801 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40802 wxBitmap *arg2 = (wxBitmap *) 0 ;
40803 void *argp1 = 0 ;
40804 int res1 = 0 ;
40805 void *argp2 = 0 ;
40806 int res2 = 0 ;
40807 PyObject * obj0 = 0 ;
40808 PyObject * obj1 = 0 ;
40809 char * kwnames[] = {
40810 (char *) "self",(char *) "bitmap", NULL
40811 };
40812
40813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40815 if (!SWIG_IsOK(res1)) {
40816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40817 }
40818 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40819 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40820 if (!SWIG_IsOK(res2)) {
40821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40822 }
40823 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40824 {
40825 PyThreadState* __tstate = wxPyBeginAllowThreads();
40826 (arg1)->SetBackingBitmap(arg2);
40827 wxPyEndAllowThreads(__tstate);
40828 if (PyErr_Occurred()) SWIG_fail;
40829 }
40830 resultobj = SWIG_Py_Void();
40831 return resultobj;
40832 fail:
40833 return NULL;
40834 }
40835
40836
40837 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40838 PyObject *resultobj = 0;
40839 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40840 wxPoint *arg2 = 0 ;
40841 wxWindow *arg3 = (wxWindow *) 0 ;
40842 bool arg4 = (bool) false ;
40843 wxRect *arg5 = (wxRect *) NULL ;
40844 bool result;
40845 void *argp1 = 0 ;
40846 int res1 = 0 ;
40847 wxPoint temp2 ;
40848 void *argp3 = 0 ;
40849 int res3 = 0 ;
40850 bool val4 ;
40851 int ecode4 = 0 ;
40852 void *argp5 = 0 ;
40853 int res5 = 0 ;
40854 PyObject * obj0 = 0 ;
40855 PyObject * obj1 = 0 ;
40856 PyObject * obj2 = 0 ;
40857 PyObject * obj3 = 0 ;
40858 PyObject * obj4 = 0 ;
40859 char * kwnames[] = {
40860 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40861 };
40862
40863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40865 if (!SWIG_IsOK(res1)) {
40866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40867 }
40868 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40869 {
40870 arg2 = &temp2;
40871 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40872 }
40873 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40874 if (!SWIG_IsOK(res3)) {
40875 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40876 }
40877 arg3 = reinterpret_cast< wxWindow * >(argp3);
40878 if (obj3) {
40879 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40880 if (!SWIG_IsOK(ecode4)) {
40881 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40882 }
40883 arg4 = static_cast< bool >(val4);
40884 }
40885 if (obj4) {
40886 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40887 if (!SWIG_IsOK(res5)) {
40888 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40889 }
40890 arg5 = reinterpret_cast< wxRect * >(argp5);
40891 }
40892 {
40893 PyThreadState* __tstate = wxPyBeginAllowThreads();
40894 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40895 wxPyEndAllowThreads(__tstate);
40896 if (PyErr_Occurred()) SWIG_fail;
40897 }
40898 {
40899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40900 }
40901 return resultobj;
40902 fail:
40903 return NULL;
40904 }
40905
40906
40907 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40908 PyObject *resultobj = 0;
40909 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40910 wxPoint *arg2 = 0 ;
40911 wxWindow *arg3 = (wxWindow *) 0 ;
40912 wxWindow *arg4 = (wxWindow *) 0 ;
40913 bool result;
40914 void *argp1 = 0 ;
40915 int res1 = 0 ;
40916 wxPoint temp2 ;
40917 void *argp3 = 0 ;
40918 int res3 = 0 ;
40919 void *argp4 = 0 ;
40920 int res4 = 0 ;
40921 PyObject * obj0 = 0 ;
40922 PyObject * obj1 = 0 ;
40923 PyObject * obj2 = 0 ;
40924 PyObject * obj3 = 0 ;
40925 char * kwnames[] = {
40926 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40927 };
40928
40929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40931 if (!SWIG_IsOK(res1)) {
40932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40933 }
40934 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40935 {
40936 arg2 = &temp2;
40937 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40938 }
40939 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40940 if (!SWIG_IsOK(res3)) {
40941 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40942 }
40943 arg3 = reinterpret_cast< wxWindow * >(argp3);
40944 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40945 if (!SWIG_IsOK(res4)) {
40946 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40947 }
40948 arg4 = reinterpret_cast< wxWindow * >(argp4);
40949 {
40950 PyThreadState* __tstate = wxPyBeginAllowThreads();
40951 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40952 wxPyEndAllowThreads(__tstate);
40953 if (PyErr_Occurred()) SWIG_fail;
40954 }
40955 {
40956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40957 }
40958 return resultobj;
40959 fail:
40960 return NULL;
40961 }
40962
40963
40964 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40965 PyObject *resultobj = 0;
40966 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40967 bool result;
40968 void *argp1 = 0 ;
40969 int res1 = 0 ;
40970 PyObject *swig_obj[1] ;
40971
40972 if (!args) SWIG_fail;
40973 swig_obj[0] = args;
40974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40975 if (!SWIG_IsOK(res1)) {
40976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40977 }
40978 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40979 {
40980 PyThreadState* __tstate = wxPyBeginAllowThreads();
40981 result = (bool)(arg1)->EndDrag();
40982 wxPyEndAllowThreads(__tstate);
40983 if (PyErr_Occurred()) SWIG_fail;
40984 }
40985 {
40986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40987 }
40988 return resultobj;
40989 fail:
40990 return NULL;
40991 }
40992
40993
40994 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40995 PyObject *resultobj = 0;
40996 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40997 wxPoint *arg2 = 0 ;
40998 bool result;
40999 void *argp1 = 0 ;
41000 int res1 = 0 ;
41001 wxPoint temp2 ;
41002 PyObject * obj0 = 0 ;
41003 PyObject * obj1 = 0 ;
41004 char * kwnames[] = {
41005 (char *) "self",(char *) "pt", NULL
41006 };
41007
41008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
41009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41010 if (!SWIG_IsOK(res1)) {
41011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41012 }
41013 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41014 {
41015 arg2 = &temp2;
41016 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41017 }
41018 {
41019 PyThreadState* __tstate = wxPyBeginAllowThreads();
41020 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
41021 wxPyEndAllowThreads(__tstate);
41022 if (PyErr_Occurred()) SWIG_fail;
41023 }
41024 {
41025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41026 }
41027 return resultobj;
41028 fail:
41029 return NULL;
41030 }
41031
41032
41033 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41034 PyObject *resultobj = 0;
41035 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41036 bool result;
41037 void *argp1 = 0 ;
41038 int res1 = 0 ;
41039 PyObject *swig_obj[1] ;
41040
41041 if (!args) SWIG_fail;
41042 swig_obj[0] = args;
41043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41044 if (!SWIG_IsOK(res1)) {
41045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41046 }
41047 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41048 {
41049 PyThreadState* __tstate = wxPyBeginAllowThreads();
41050 result = (bool)(arg1)->Show();
41051 wxPyEndAllowThreads(__tstate);
41052 if (PyErr_Occurred()) SWIG_fail;
41053 }
41054 {
41055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41056 }
41057 return resultobj;
41058 fail:
41059 return NULL;
41060 }
41061
41062
41063 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41064 PyObject *resultobj = 0;
41065 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41066 bool result;
41067 void *argp1 = 0 ;
41068 int res1 = 0 ;
41069 PyObject *swig_obj[1] ;
41070
41071 if (!args) SWIG_fail;
41072 swig_obj[0] = args;
41073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41074 if (!SWIG_IsOK(res1)) {
41075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41076 }
41077 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41078 {
41079 PyThreadState* __tstate = wxPyBeginAllowThreads();
41080 result = (bool)(arg1)->Hide();
41081 wxPyEndAllowThreads(__tstate);
41082 if (PyErr_Occurred()) SWIG_fail;
41083 }
41084 {
41085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41086 }
41087 return resultobj;
41088 fail:
41089 return NULL;
41090 }
41091
41092
41093 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41094 PyObject *resultobj = 0;
41095 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41096 wxPoint *arg2 = 0 ;
41097 wxRect result;
41098 void *argp1 = 0 ;
41099 int res1 = 0 ;
41100 wxPoint temp2 ;
41101 PyObject * obj0 = 0 ;
41102 PyObject * obj1 = 0 ;
41103 char * kwnames[] = {
41104 (char *) "self",(char *) "pos", NULL
41105 };
41106
41107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41109 if (!SWIG_IsOK(res1)) {
41110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41111 }
41112 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41113 {
41114 arg2 = &temp2;
41115 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41116 }
41117 {
41118 PyThreadState* __tstate = wxPyBeginAllowThreads();
41119 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41120 wxPyEndAllowThreads(__tstate);
41121 if (PyErr_Occurred()) SWIG_fail;
41122 }
41123 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41124 return resultobj;
41125 fail:
41126 return NULL;
41127 }
41128
41129
41130 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41131 PyObject *resultobj = 0;
41132 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41133 wxDC *arg2 = 0 ;
41134 wxPoint *arg3 = 0 ;
41135 bool result;
41136 void *argp1 = 0 ;
41137 int res1 = 0 ;
41138 void *argp2 = 0 ;
41139 int res2 = 0 ;
41140 wxPoint temp3 ;
41141 PyObject * obj0 = 0 ;
41142 PyObject * obj1 = 0 ;
41143 PyObject * obj2 = 0 ;
41144 char * kwnames[] = {
41145 (char *) "self",(char *) "dc",(char *) "pos", NULL
41146 };
41147
41148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41150 if (!SWIG_IsOK(res1)) {
41151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41152 }
41153 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41154 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41155 if (!SWIG_IsOK(res2)) {
41156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41157 }
41158 if (!argp2) {
41159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41160 }
41161 arg2 = reinterpret_cast< wxDC * >(argp2);
41162 {
41163 arg3 = &temp3;
41164 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41165 }
41166 {
41167 PyThreadState* __tstate = wxPyBeginAllowThreads();
41168 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41169 wxPyEndAllowThreads(__tstate);
41170 if (PyErr_Occurred()) SWIG_fail;
41171 }
41172 {
41173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41174 }
41175 return resultobj;
41176 fail:
41177 return NULL;
41178 }
41179
41180
41181 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41182 PyObject *resultobj = 0;
41183 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41184 wxDC *arg2 = 0 ;
41185 wxMemoryDC *arg3 = 0 ;
41186 wxRect *arg4 = 0 ;
41187 wxRect *arg5 = 0 ;
41188 bool result;
41189 void *argp1 = 0 ;
41190 int res1 = 0 ;
41191 void *argp2 = 0 ;
41192 int res2 = 0 ;
41193 void *argp3 = 0 ;
41194 int res3 = 0 ;
41195 wxRect temp4 ;
41196 wxRect temp5 ;
41197 PyObject * obj0 = 0 ;
41198 PyObject * obj1 = 0 ;
41199 PyObject * obj2 = 0 ;
41200 PyObject * obj3 = 0 ;
41201 PyObject * obj4 = 0 ;
41202 char * kwnames[] = {
41203 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41204 };
41205
41206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41208 if (!SWIG_IsOK(res1)) {
41209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41210 }
41211 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41212 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41213 if (!SWIG_IsOK(res2)) {
41214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41215 }
41216 if (!argp2) {
41217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41218 }
41219 arg2 = reinterpret_cast< wxDC * >(argp2);
41220 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41221 if (!SWIG_IsOK(res3)) {
41222 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41223 }
41224 if (!argp3) {
41225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41226 }
41227 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41228 {
41229 arg4 = &temp4;
41230 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41231 }
41232 {
41233 arg5 = &temp5;
41234 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41235 }
41236 {
41237 PyThreadState* __tstate = wxPyBeginAllowThreads();
41238 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41239 wxPyEndAllowThreads(__tstate);
41240 if (PyErr_Occurred()) SWIG_fail;
41241 }
41242 {
41243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41244 }
41245 return resultobj;
41246 fail:
41247 return NULL;
41248 }
41249
41250
41251 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41252 PyObject *resultobj = 0;
41253 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41254 wxPoint *arg2 = 0 ;
41255 wxPoint *arg3 = 0 ;
41256 bool arg4 ;
41257 bool arg5 ;
41258 bool result;
41259 void *argp1 = 0 ;
41260 int res1 = 0 ;
41261 wxPoint temp2 ;
41262 wxPoint temp3 ;
41263 bool val4 ;
41264 int ecode4 = 0 ;
41265 bool val5 ;
41266 int ecode5 = 0 ;
41267 PyObject * obj0 = 0 ;
41268 PyObject * obj1 = 0 ;
41269 PyObject * obj2 = 0 ;
41270 PyObject * obj3 = 0 ;
41271 PyObject * obj4 = 0 ;
41272 char * kwnames[] = {
41273 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41274 };
41275
41276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41278 if (!SWIG_IsOK(res1)) {
41279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41280 }
41281 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41282 {
41283 arg2 = &temp2;
41284 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41285 }
41286 {
41287 arg3 = &temp3;
41288 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41289 }
41290 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41291 if (!SWIG_IsOK(ecode4)) {
41292 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41293 }
41294 arg4 = static_cast< bool >(val4);
41295 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41296 if (!SWIG_IsOK(ecode5)) {
41297 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41298 }
41299 arg5 = static_cast< bool >(val5);
41300 {
41301 PyThreadState* __tstate = wxPyBeginAllowThreads();
41302 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41303 wxPyEndAllowThreads(__tstate);
41304 if (PyErr_Occurred()) SWIG_fail;
41305 }
41306 {
41307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41308 }
41309 return resultobj;
41310 fail:
41311 return NULL;
41312 }
41313
41314
41315 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41316 PyObject *obj;
41317 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41318 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41319 return SWIG_Py_Void();
41320 }
41321
41322 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41323 return SWIG_Python_InitShadowInstance(args);
41324 }
41325
41326 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41327 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41328 return 1;
41329 }
41330
41331
41332 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41333 PyObject *pyobj = 0;
41334
41335 {
41336 #if wxUSE_UNICODE
41337 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41338 #else
41339 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41340 #endif
41341 }
41342 return pyobj;
41343 }
41344
41345
41346 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41347 PyObject *resultobj = 0;
41348 wxWindow *arg1 = (wxWindow *) 0 ;
41349 int arg2 = (int) -1 ;
41350 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41351 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41352 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41353 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41354 wxSize const &arg5_defvalue = wxDefaultSize ;
41355 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41356 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41357 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41358 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41359 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41360 wxString *arg8 = (wxString *) &arg8_defvalue ;
41361 wxDatePickerCtrl *result = 0 ;
41362 void *argp1 = 0 ;
41363 int res1 = 0 ;
41364 int val2 ;
41365 int ecode2 = 0 ;
41366 void *argp3 = 0 ;
41367 int res3 = 0 ;
41368 wxPoint temp4 ;
41369 wxSize temp5 ;
41370 long val6 ;
41371 int ecode6 = 0 ;
41372 void *argp7 = 0 ;
41373 int res7 = 0 ;
41374 bool temp8 = false ;
41375 PyObject * obj0 = 0 ;
41376 PyObject * obj1 = 0 ;
41377 PyObject * obj2 = 0 ;
41378 PyObject * obj3 = 0 ;
41379 PyObject * obj4 = 0 ;
41380 PyObject * obj5 = 0 ;
41381 PyObject * obj6 = 0 ;
41382 PyObject * obj7 = 0 ;
41383 char * kwnames[] = {
41384 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41385 };
41386
41387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41389 if (!SWIG_IsOK(res1)) {
41390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41391 }
41392 arg1 = reinterpret_cast< wxWindow * >(argp1);
41393 if (obj1) {
41394 ecode2 = SWIG_AsVal_int(obj1, &val2);
41395 if (!SWIG_IsOK(ecode2)) {
41396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41397 }
41398 arg2 = static_cast< int >(val2);
41399 }
41400 if (obj2) {
41401 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41402 if (!SWIG_IsOK(res3)) {
41403 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41404 }
41405 if (!argp3) {
41406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41407 }
41408 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41409 }
41410 if (obj3) {
41411 {
41412 arg4 = &temp4;
41413 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41414 }
41415 }
41416 if (obj4) {
41417 {
41418 arg5 = &temp5;
41419 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41420 }
41421 }
41422 if (obj5) {
41423 ecode6 = SWIG_AsVal_long(obj5, &val6);
41424 if (!SWIG_IsOK(ecode6)) {
41425 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41426 }
41427 arg6 = static_cast< long >(val6);
41428 }
41429 if (obj6) {
41430 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41431 if (!SWIG_IsOK(res7)) {
41432 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41433 }
41434 if (!argp7) {
41435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41436 }
41437 arg7 = reinterpret_cast< wxValidator * >(argp7);
41438 }
41439 if (obj7) {
41440 {
41441 arg8 = wxString_in_helper(obj7);
41442 if (arg8 == NULL) SWIG_fail;
41443 temp8 = true;
41444 }
41445 }
41446 {
41447 if (!wxPyCheckForApp()) SWIG_fail;
41448 PyThreadState* __tstate = wxPyBeginAllowThreads();
41449 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41450 wxPyEndAllowThreads(__tstate);
41451 if (PyErr_Occurred()) SWIG_fail;
41452 }
41453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41454 {
41455 if (temp8)
41456 delete arg8;
41457 }
41458 return resultobj;
41459 fail:
41460 {
41461 if (temp8)
41462 delete arg8;
41463 }
41464 return NULL;
41465 }
41466
41467
41468 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41469 PyObject *resultobj = 0;
41470 wxDatePickerCtrl *result = 0 ;
41471
41472 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41473 {
41474 if (!wxPyCheckForApp()) SWIG_fail;
41475 PyThreadState* __tstate = wxPyBeginAllowThreads();
41476 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41477 wxPyEndAllowThreads(__tstate);
41478 if (PyErr_Occurred()) SWIG_fail;
41479 }
41480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41481 return resultobj;
41482 fail:
41483 return NULL;
41484 }
41485
41486
41487 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41488 PyObject *resultobj = 0;
41489 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41490 wxWindow *arg2 = (wxWindow *) 0 ;
41491 int arg3 = (int) -1 ;
41492 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41493 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41494 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41495 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41496 wxSize const &arg6_defvalue = wxDefaultSize ;
41497 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41498 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41499 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41500 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41501 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41502 wxString *arg9 = (wxString *) &arg9_defvalue ;
41503 bool result;
41504 void *argp1 = 0 ;
41505 int res1 = 0 ;
41506 void *argp2 = 0 ;
41507 int res2 = 0 ;
41508 int val3 ;
41509 int ecode3 = 0 ;
41510 void *argp4 = 0 ;
41511 int res4 = 0 ;
41512 wxPoint temp5 ;
41513 wxSize temp6 ;
41514 long val7 ;
41515 int ecode7 = 0 ;
41516 void *argp8 = 0 ;
41517 int res8 = 0 ;
41518 bool temp9 = false ;
41519 PyObject * obj0 = 0 ;
41520 PyObject * obj1 = 0 ;
41521 PyObject * obj2 = 0 ;
41522 PyObject * obj3 = 0 ;
41523 PyObject * obj4 = 0 ;
41524 PyObject * obj5 = 0 ;
41525 PyObject * obj6 = 0 ;
41526 PyObject * obj7 = 0 ;
41527 PyObject * obj8 = 0 ;
41528 char * kwnames[] = {
41529 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41530 };
41531
41532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41534 if (!SWIG_IsOK(res1)) {
41535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41536 }
41537 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41538 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41539 if (!SWIG_IsOK(res2)) {
41540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41541 }
41542 arg2 = reinterpret_cast< wxWindow * >(argp2);
41543 if (obj2) {
41544 ecode3 = SWIG_AsVal_int(obj2, &val3);
41545 if (!SWIG_IsOK(ecode3)) {
41546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41547 }
41548 arg3 = static_cast< int >(val3);
41549 }
41550 if (obj3) {
41551 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41552 if (!SWIG_IsOK(res4)) {
41553 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41554 }
41555 if (!argp4) {
41556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41557 }
41558 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41559 }
41560 if (obj4) {
41561 {
41562 arg5 = &temp5;
41563 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41564 }
41565 }
41566 if (obj5) {
41567 {
41568 arg6 = &temp6;
41569 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41570 }
41571 }
41572 if (obj6) {
41573 ecode7 = SWIG_AsVal_long(obj6, &val7);
41574 if (!SWIG_IsOK(ecode7)) {
41575 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41576 }
41577 arg7 = static_cast< long >(val7);
41578 }
41579 if (obj7) {
41580 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41581 if (!SWIG_IsOK(res8)) {
41582 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41583 }
41584 if (!argp8) {
41585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41586 }
41587 arg8 = reinterpret_cast< wxValidator * >(argp8);
41588 }
41589 if (obj8) {
41590 {
41591 arg9 = wxString_in_helper(obj8);
41592 if (arg9 == NULL) SWIG_fail;
41593 temp9 = true;
41594 }
41595 }
41596 {
41597 PyThreadState* __tstate = wxPyBeginAllowThreads();
41598 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41599 wxPyEndAllowThreads(__tstate);
41600 if (PyErr_Occurred()) SWIG_fail;
41601 }
41602 {
41603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41604 }
41605 {
41606 if (temp9)
41607 delete arg9;
41608 }
41609 return resultobj;
41610 fail:
41611 {
41612 if (temp9)
41613 delete arg9;
41614 }
41615 return NULL;
41616 }
41617
41618
41619 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41620 PyObject *resultobj = 0;
41621 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41622 wxDateTime *arg2 = 0 ;
41623 void *argp1 = 0 ;
41624 int res1 = 0 ;
41625 void *argp2 = 0 ;
41626 int res2 = 0 ;
41627 PyObject * obj0 = 0 ;
41628 PyObject * obj1 = 0 ;
41629 char * kwnames[] = {
41630 (char *) "self",(char *) "dt", NULL
41631 };
41632
41633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41635 if (!SWIG_IsOK(res1)) {
41636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41637 }
41638 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41640 if (!SWIG_IsOK(res2)) {
41641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41642 }
41643 if (!argp2) {
41644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41645 }
41646 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41647 {
41648 PyThreadState* __tstate = wxPyBeginAllowThreads();
41649 (arg1)->SetValue((wxDateTime const &)*arg2);
41650 wxPyEndAllowThreads(__tstate);
41651 if (PyErr_Occurred()) SWIG_fail;
41652 }
41653 resultobj = SWIG_Py_Void();
41654 return resultobj;
41655 fail:
41656 return NULL;
41657 }
41658
41659
41660 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41661 PyObject *resultobj = 0;
41662 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41663 wxDateTime result;
41664 void *argp1 = 0 ;
41665 int res1 = 0 ;
41666 PyObject *swig_obj[1] ;
41667
41668 if (!args) SWIG_fail;
41669 swig_obj[0] = args;
41670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41671 if (!SWIG_IsOK(res1)) {
41672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41673 }
41674 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41675 {
41676 PyThreadState* __tstate = wxPyBeginAllowThreads();
41677 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41678 wxPyEndAllowThreads(__tstate);
41679 if (PyErr_Occurred()) SWIG_fail;
41680 }
41681 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41682 return resultobj;
41683 fail:
41684 return NULL;
41685 }
41686
41687
41688 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41689 PyObject *resultobj = 0;
41690 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41691 wxDateTime *arg2 = 0 ;
41692 wxDateTime *arg3 = 0 ;
41693 void *argp1 = 0 ;
41694 int res1 = 0 ;
41695 void *argp2 = 0 ;
41696 int res2 = 0 ;
41697 void *argp3 = 0 ;
41698 int res3 = 0 ;
41699 PyObject * obj0 = 0 ;
41700 PyObject * obj1 = 0 ;
41701 PyObject * obj2 = 0 ;
41702 char * kwnames[] = {
41703 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41704 };
41705
41706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41708 if (!SWIG_IsOK(res1)) {
41709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41710 }
41711 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41712 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41713 if (!SWIG_IsOK(res2)) {
41714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41715 }
41716 if (!argp2) {
41717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41718 }
41719 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41720 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41721 if (!SWIG_IsOK(res3)) {
41722 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41723 }
41724 if (!argp3) {
41725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41726 }
41727 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41728 {
41729 PyThreadState* __tstate = wxPyBeginAllowThreads();
41730 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41731 wxPyEndAllowThreads(__tstate);
41732 if (PyErr_Occurred()) SWIG_fail;
41733 }
41734 resultobj = SWIG_Py_Void();
41735 return resultobj;
41736 fail:
41737 return NULL;
41738 }
41739
41740
41741 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41742 PyObject *resultobj = 0;
41743 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41744 wxDateTime result;
41745 void *argp1 = 0 ;
41746 int res1 = 0 ;
41747 PyObject *swig_obj[1] ;
41748
41749 if (!args) SWIG_fail;
41750 swig_obj[0] = args;
41751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41752 if (!SWIG_IsOK(res1)) {
41753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41754 }
41755 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41756 {
41757 PyThreadState* __tstate = wxPyBeginAllowThreads();
41758 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41759 wxPyEndAllowThreads(__tstate);
41760 if (PyErr_Occurred()) SWIG_fail;
41761 }
41762 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41763 return resultobj;
41764 fail:
41765 return NULL;
41766 }
41767
41768
41769 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41770 PyObject *resultobj = 0;
41771 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41772 wxDateTime result;
41773 void *argp1 = 0 ;
41774 int res1 = 0 ;
41775 PyObject *swig_obj[1] ;
41776
41777 if (!args) SWIG_fail;
41778 swig_obj[0] = args;
41779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41780 if (!SWIG_IsOK(res1)) {
41781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41782 }
41783 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41784 {
41785 PyThreadState* __tstate = wxPyBeginAllowThreads();
41786 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41787 wxPyEndAllowThreads(__tstate);
41788 if (PyErr_Occurred()) SWIG_fail;
41789 }
41790 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41791 return resultobj;
41792 fail:
41793 return NULL;
41794 }
41795
41796
41797 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41798 PyObject *obj;
41799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41800 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41801 return SWIG_Py_Void();
41802 }
41803
41804 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41805 return SWIG_Python_InitShadowInstance(args);
41806 }
41807
41808 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41809 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41810 return 1;
41811 }
41812
41813
41814 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41815 PyObject *pyobj = 0;
41816
41817 {
41818 #if wxUSE_UNICODE
41819 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41820 #else
41821 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41822 #endif
41823 }
41824 return pyobj;
41825 }
41826
41827
41828 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41829 PyObject *resultobj = 0;
41830 wxWindow *arg1 = (wxWindow *) 0 ;
41831 int arg2 ;
41832 wxString *arg3 = 0 ;
41833 wxString *arg4 = 0 ;
41834 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41835 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41836 wxSize const &arg6_defvalue = wxDefaultSize ;
41837 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41838 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41839 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41840 wxString *arg8 = (wxString *) &arg8_defvalue ;
41841 wxHyperlinkCtrl *result = 0 ;
41842 void *argp1 = 0 ;
41843 int res1 = 0 ;
41844 int val2 ;
41845 int ecode2 = 0 ;
41846 bool temp3 = false ;
41847 bool temp4 = false ;
41848 wxPoint temp5 ;
41849 wxSize temp6 ;
41850 long val7 ;
41851 int ecode7 = 0 ;
41852 bool temp8 = false ;
41853 PyObject * obj0 = 0 ;
41854 PyObject * obj1 = 0 ;
41855 PyObject * obj2 = 0 ;
41856 PyObject * obj3 = 0 ;
41857 PyObject * obj4 = 0 ;
41858 PyObject * obj5 = 0 ;
41859 PyObject * obj6 = 0 ;
41860 PyObject * obj7 = 0 ;
41861 char * kwnames[] = {
41862 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41863 };
41864
41865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41867 if (!SWIG_IsOK(res1)) {
41868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41869 }
41870 arg1 = reinterpret_cast< wxWindow * >(argp1);
41871 ecode2 = SWIG_AsVal_int(obj1, &val2);
41872 if (!SWIG_IsOK(ecode2)) {
41873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41874 }
41875 arg2 = static_cast< int >(val2);
41876 {
41877 arg3 = wxString_in_helper(obj2);
41878 if (arg3 == NULL) SWIG_fail;
41879 temp3 = true;
41880 }
41881 {
41882 arg4 = wxString_in_helper(obj3);
41883 if (arg4 == NULL) SWIG_fail;
41884 temp4 = true;
41885 }
41886 if (obj4) {
41887 {
41888 arg5 = &temp5;
41889 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41890 }
41891 }
41892 if (obj5) {
41893 {
41894 arg6 = &temp6;
41895 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41896 }
41897 }
41898 if (obj6) {
41899 ecode7 = SWIG_AsVal_long(obj6, &val7);
41900 if (!SWIG_IsOK(ecode7)) {
41901 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41902 }
41903 arg7 = static_cast< long >(val7);
41904 }
41905 if (obj7) {
41906 {
41907 arg8 = wxString_in_helper(obj7);
41908 if (arg8 == NULL) SWIG_fail;
41909 temp8 = true;
41910 }
41911 }
41912 {
41913 if (!wxPyCheckForApp()) SWIG_fail;
41914 PyThreadState* __tstate = wxPyBeginAllowThreads();
41915 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41916 wxPyEndAllowThreads(__tstate);
41917 if (PyErr_Occurred()) SWIG_fail;
41918 }
41919 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41920 {
41921 if (temp3)
41922 delete arg3;
41923 }
41924 {
41925 if (temp4)
41926 delete arg4;
41927 }
41928 {
41929 if (temp8)
41930 delete arg8;
41931 }
41932 return resultobj;
41933 fail:
41934 {
41935 if (temp3)
41936 delete arg3;
41937 }
41938 {
41939 if (temp4)
41940 delete arg4;
41941 }
41942 {
41943 if (temp8)
41944 delete arg8;
41945 }
41946 return NULL;
41947 }
41948
41949
41950 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41951 PyObject *resultobj = 0;
41952 wxHyperlinkCtrl *result = 0 ;
41953
41954 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41955 {
41956 if (!wxPyCheckForApp()) SWIG_fail;
41957 PyThreadState* __tstate = wxPyBeginAllowThreads();
41958 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41959 wxPyEndAllowThreads(__tstate);
41960 if (PyErr_Occurred()) SWIG_fail;
41961 }
41962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41963 return resultobj;
41964 fail:
41965 return NULL;
41966 }
41967
41968
41969 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41970 PyObject *resultobj = 0;
41971 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41972 wxWindow *arg2 = (wxWindow *) 0 ;
41973 int arg3 ;
41974 wxString *arg4 = 0 ;
41975 wxString *arg5 = 0 ;
41976 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41977 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41978 wxSize const &arg7_defvalue = wxDefaultSize ;
41979 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41980 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41981 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41982 wxString *arg9 = (wxString *) &arg9_defvalue ;
41983 bool result;
41984 void *argp1 = 0 ;
41985 int res1 = 0 ;
41986 void *argp2 = 0 ;
41987 int res2 = 0 ;
41988 int val3 ;
41989 int ecode3 = 0 ;
41990 bool temp4 = false ;
41991 bool temp5 = false ;
41992 wxPoint temp6 ;
41993 wxSize temp7 ;
41994 long val8 ;
41995 int ecode8 = 0 ;
41996 bool temp9 = false ;
41997 PyObject * obj0 = 0 ;
41998 PyObject * obj1 = 0 ;
41999 PyObject * obj2 = 0 ;
42000 PyObject * obj3 = 0 ;
42001 PyObject * obj4 = 0 ;
42002 PyObject * obj5 = 0 ;
42003 PyObject * obj6 = 0 ;
42004 PyObject * obj7 = 0 ;
42005 PyObject * obj8 = 0 ;
42006 char * kwnames[] = {
42007 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42008 };
42009
42010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42012 if (!SWIG_IsOK(res1)) {
42013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42014 }
42015 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42016 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42017 if (!SWIG_IsOK(res2)) {
42018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42019 }
42020 arg2 = reinterpret_cast< wxWindow * >(argp2);
42021 ecode3 = SWIG_AsVal_int(obj2, &val3);
42022 if (!SWIG_IsOK(ecode3)) {
42023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42024 }
42025 arg3 = static_cast< int >(val3);
42026 {
42027 arg4 = wxString_in_helper(obj3);
42028 if (arg4 == NULL) SWIG_fail;
42029 temp4 = true;
42030 }
42031 {
42032 arg5 = wxString_in_helper(obj4);
42033 if (arg5 == NULL) SWIG_fail;
42034 temp5 = true;
42035 }
42036 if (obj5) {
42037 {
42038 arg6 = &temp6;
42039 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
42040 }
42041 }
42042 if (obj6) {
42043 {
42044 arg7 = &temp7;
42045 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
42046 }
42047 }
42048 if (obj7) {
42049 ecode8 = SWIG_AsVal_long(obj7, &val8);
42050 if (!SWIG_IsOK(ecode8)) {
42051 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
42052 }
42053 arg8 = static_cast< long >(val8);
42054 }
42055 if (obj8) {
42056 {
42057 arg9 = wxString_in_helper(obj8);
42058 if (arg9 == NULL) SWIG_fail;
42059 temp9 = true;
42060 }
42061 }
42062 {
42063 PyThreadState* __tstate = wxPyBeginAllowThreads();
42064 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42065 wxPyEndAllowThreads(__tstate);
42066 if (PyErr_Occurred()) SWIG_fail;
42067 }
42068 {
42069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42070 }
42071 {
42072 if (temp4)
42073 delete arg4;
42074 }
42075 {
42076 if (temp5)
42077 delete arg5;
42078 }
42079 {
42080 if (temp9)
42081 delete arg9;
42082 }
42083 return resultobj;
42084 fail:
42085 {
42086 if (temp4)
42087 delete arg4;
42088 }
42089 {
42090 if (temp5)
42091 delete arg5;
42092 }
42093 {
42094 if (temp9)
42095 delete arg9;
42096 }
42097 return NULL;
42098 }
42099
42100
42101 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42102 PyObject *resultobj = 0;
42103 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42104 wxColour result;
42105 void *argp1 = 0 ;
42106 int res1 = 0 ;
42107 PyObject *swig_obj[1] ;
42108
42109 if (!args) SWIG_fail;
42110 swig_obj[0] = args;
42111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42112 if (!SWIG_IsOK(res1)) {
42113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42114 }
42115 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42116 {
42117 PyThreadState* __tstate = wxPyBeginAllowThreads();
42118 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42119 wxPyEndAllowThreads(__tstate);
42120 if (PyErr_Occurred()) SWIG_fail;
42121 }
42122 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42123 return resultobj;
42124 fail:
42125 return NULL;
42126 }
42127
42128
42129 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42130 PyObject *resultobj = 0;
42131 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42132 wxColour *arg2 = 0 ;
42133 void *argp1 = 0 ;
42134 int res1 = 0 ;
42135 wxColour temp2 ;
42136 PyObject * obj0 = 0 ;
42137 PyObject * obj1 = 0 ;
42138 char * kwnames[] = {
42139 (char *) "self",(char *) "colour", NULL
42140 };
42141
42142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42144 if (!SWIG_IsOK(res1)) {
42145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42146 }
42147 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42148 {
42149 arg2 = &temp2;
42150 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42151 }
42152 {
42153 PyThreadState* __tstate = wxPyBeginAllowThreads();
42154 (arg1)->SetHoverColour((wxColour const &)*arg2);
42155 wxPyEndAllowThreads(__tstate);
42156 if (PyErr_Occurred()) SWIG_fail;
42157 }
42158 resultobj = SWIG_Py_Void();
42159 return resultobj;
42160 fail:
42161 return NULL;
42162 }
42163
42164
42165 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42166 PyObject *resultobj = 0;
42167 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42168 wxColour result;
42169 void *argp1 = 0 ;
42170 int res1 = 0 ;
42171 PyObject *swig_obj[1] ;
42172
42173 if (!args) SWIG_fail;
42174 swig_obj[0] = args;
42175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42176 if (!SWIG_IsOK(res1)) {
42177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42178 }
42179 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42180 {
42181 PyThreadState* __tstate = wxPyBeginAllowThreads();
42182 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42183 wxPyEndAllowThreads(__tstate);
42184 if (PyErr_Occurred()) SWIG_fail;
42185 }
42186 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42187 return resultobj;
42188 fail:
42189 return NULL;
42190 }
42191
42192
42193 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42194 PyObject *resultobj = 0;
42195 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42196 wxColour *arg2 = 0 ;
42197 void *argp1 = 0 ;
42198 int res1 = 0 ;
42199 wxColour temp2 ;
42200 PyObject * obj0 = 0 ;
42201 PyObject * obj1 = 0 ;
42202 char * kwnames[] = {
42203 (char *) "self",(char *) "colour", NULL
42204 };
42205
42206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42208 if (!SWIG_IsOK(res1)) {
42209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42210 }
42211 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42212 {
42213 arg2 = &temp2;
42214 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42215 }
42216 {
42217 PyThreadState* __tstate = wxPyBeginAllowThreads();
42218 (arg1)->SetNormalColour((wxColour const &)*arg2);
42219 wxPyEndAllowThreads(__tstate);
42220 if (PyErr_Occurred()) SWIG_fail;
42221 }
42222 resultobj = SWIG_Py_Void();
42223 return resultobj;
42224 fail:
42225 return NULL;
42226 }
42227
42228
42229 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42230 PyObject *resultobj = 0;
42231 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42232 wxColour result;
42233 void *argp1 = 0 ;
42234 int res1 = 0 ;
42235 PyObject *swig_obj[1] ;
42236
42237 if (!args) SWIG_fail;
42238 swig_obj[0] = args;
42239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42240 if (!SWIG_IsOK(res1)) {
42241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42242 }
42243 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42244 {
42245 PyThreadState* __tstate = wxPyBeginAllowThreads();
42246 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42247 wxPyEndAllowThreads(__tstate);
42248 if (PyErr_Occurred()) SWIG_fail;
42249 }
42250 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42251 return resultobj;
42252 fail:
42253 return NULL;
42254 }
42255
42256
42257 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42258 PyObject *resultobj = 0;
42259 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42260 wxColour *arg2 = 0 ;
42261 void *argp1 = 0 ;
42262 int res1 = 0 ;
42263 wxColour temp2 ;
42264 PyObject * obj0 = 0 ;
42265 PyObject * obj1 = 0 ;
42266 char * kwnames[] = {
42267 (char *) "self",(char *) "colour", NULL
42268 };
42269
42270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42272 if (!SWIG_IsOK(res1)) {
42273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42274 }
42275 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42276 {
42277 arg2 = &temp2;
42278 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42279 }
42280 {
42281 PyThreadState* __tstate = wxPyBeginAllowThreads();
42282 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42283 wxPyEndAllowThreads(__tstate);
42284 if (PyErr_Occurred()) SWIG_fail;
42285 }
42286 resultobj = SWIG_Py_Void();
42287 return resultobj;
42288 fail:
42289 return NULL;
42290 }
42291
42292
42293 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42294 PyObject *resultobj = 0;
42295 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42296 wxString result;
42297 void *argp1 = 0 ;
42298 int res1 = 0 ;
42299 PyObject *swig_obj[1] ;
42300
42301 if (!args) SWIG_fail;
42302 swig_obj[0] = args;
42303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42304 if (!SWIG_IsOK(res1)) {
42305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42306 }
42307 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42308 {
42309 PyThreadState* __tstate = wxPyBeginAllowThreads();
42310 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42311 wxPyEndAllowThreads(__tstate);
42312 if (PyErr_Occurred()) SWIG_fail;
42313 }
42314 {
42315 #if wxUSE_UNICODE
42316 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42317 #else
42318 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42319 #endif
42320 }
42321 return resultobj;
42322 fail:
42323 return NULL;
42324 }
42325
42326
42327 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42328 PyObject *resultobj = 0;
42329 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42330 wxString *arg2 = 0 ;
42331 void *argp1 = 0 ;
42332 int res1 = 0 ;
42333 bool temp2 = false ;
42334 PyObject * obj0 = 0 ;
42335 PyObject * obj1 = 0 ;
42336 char * kwnames[] = {
42337 (char *) "self",(char *) "url", NULL
42338 };
42339
42340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42342 if (!SWIG_IsOK(res1)) {
42343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42344 }
42345 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42346 {
42347 arg2 = wxString_in_helper(obj1);
42348 if (arg2 == NULL) SWIG_fail;
42349 temp2 = true;
42350 }
42351 {
42352 PyThreadState* __tstate = wxPyBeginAllowThreads();
42353 (arg1)->SetURL((wxString const &)*arg2);
42354 wxPyEndAllowThreads(__tstate);
42355 if (PyErr_Occurred()) SWIG_fail;
42356 }
42357 resultobj = SWIG_Py_Void();
42358 {
42359 if (temp2)
42360 delete arg2;
42361 }
42362 return resultobj;
42363 fail:
42364 {
42365 if (temp2)
42366 delete arg2;
42367 }
42368 return NULL;
42369 }
42370
42371
42372 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42373 PyObject *resultobj = 0;
42374 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42375 bool arg2 = (bool) true ;
42376 void *argp1 = 0 ;
42377 int res1 = 0 ;
42378 bool val2 ;
42379 int ecode2 = 0 ;
42380 PyObject * obj0 = 0 ;
42381 PyObject * obj1 = 0 ;
42382 char * kwnames[] = {
42383 (char *) "self",(char *) "visited", NULL
42384 };
42385
42386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42388 if (!SWIG_IsOK(res1)) {
42389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42390 }
42391 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42392 if (obj1) {
42393 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42394 if (!SWIG_IsOK(ecode2)) {
42395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42396 }
42397 arg2 = static_cast< bool >(val2);
42398 }
42399 {
42400 PyThreadState* __tstate = wxPyBeginAllowThreads();
42401 (arg1)->SetVisited(arg2);
42402 wxPyEndAllowThreads(__tstate);
42403 if (PyErr_Occurred()) SWIG_fail;
42404 }
42405 resultobj = SWIG_Py_Void();
42406 return resultobj;
42407 fail:
42408 return NULL;
42409 }
42410
42411
42412 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42413 PyObject *resultobj = 0;
42414 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42415 bool result;
42416 void *argp1 = 0 ;
42417 int res1 = 0 ;
42418 PyObject *swig_obj[1] ;
42419
42420 if (!args) SWIG_fail;
42421 swig_obj[0] = args;
42422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42423 if (!SWIG_IsOK(res1)) {
42424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42425 }
42426 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42427 {
42428 PyThreadState* __tstate = wxPyBeginAllowThreads();
42429 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42430 wxPyEndAllowThreads(__tstate);
42431 if (PyErr_Occurred()) SWIG_fail;
42432 }
42433 {
42434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42435 }
42436 return resultobj;
42437 fail:
42438 return NULL;
42439 }
42440
42441
42442 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42443 PyObject *obj;
42444 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42445 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42446 return SWIG_Py_Void();
42447 }
42448
42449 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42450 return SWIG_Python_InitShadowInstance(args);
42451 }
42452
42453 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42454 PyObject *resultobj = 0;
42455 wxObject *arg1 = (wxObject *) 0 ;
42456 int arg2 ;
42457 wxString *arg3 = 0 ;
42458 wxHyperlinkEvent *result = 0 ;
42459 void *argp1 = 0 ;
42460 int res1 = 0 ;
42461 int val2 ;
42462 int ecode2 = 0 ;
42463 bool temp3 = false ;
42464 PyObject * obj0 = 0 ;
42465 PyObject * obj1 = 0 ;
42466 PyObject * obj2 = 0 ;
42467 char * kwnames[] = {
42468 (char *) "generator",(char *) "id",(char *) "url", NULL
42469 };
42470
42471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42473 if (!SWIG_IsOK(res1)) {
42474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42475 }
42476 arg1 = reinterpret_cast< wxObject * >(argp1);
42477 ecode2 = SWIG_AsVal_int(obj1, &val2);
42478 if (!SWIG_IsOK(ecode2)) {
42479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42480 }
42481 arg2 = static_cast< int >(val2);
42482 {
42483 arg3 = wxString_in_helper(obj2);
42484 if (arg3 == NULL) SWIG_fail;
42485 temp3 = true;
42486 }
42487 {
42488 PyThreadState* __tstate = wxPyBeginAllowThreads();
42489 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42490 wxPyEndAllowThreads(__tstate);
42491 if (PyErr_Occurred()) SWIG_fail;
42492 }
42493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42494 {
42495 if (temp3)
42496 delete arg3;
42497 }
42498 return resultobj;
42499 fail:
42500 {
42501 if (temp3)
42502 delete arg3;
42503 }
42504 return NULL;
42505 }
42506
42507
42508 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42509 PyObject *resultobj = 0;
42510 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42511 wxString result;
42512 void *argp1 = 0 ;
42513 int res1 = 0 ;
42514 PyObject *swig_obj[1] ;
42515
42516 if (!args) SWIG_fail;
42517 swig_obj[0] = args;
42518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42519 if (!SWIG_IsOK(res1)) {
42520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42521 }
42522 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42523 {
42524 PyThreadState* __tstate = wxPyBeginAllowThreads();
42525 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42526 wxPyEndAllowThreads(__tstate);
42527 if (PyErr_Occurred()) SWIG_fail;
42528 }
42529 {
42530 #if wxUSE_UNICODE
42531 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42532 #else
42533 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42534 #endif
42535 }
42536 return resultobj;
42537 fail:
42538 return NULL;
42539 }
42540
42541
42542 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42543 PyObject *resultobj = 0;
42544 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42545 wxString *arg2 = 0 ;
42546 void *argp1 = 0 ;
42547 int res1 = 0 ;
42548 bool temp2 = false ;
42549 PyObject * obj0 = 0 ;
42550 PyObject * obj1 = 0 ;
42551 char * kwnames[] = {
42552 (char *) "self",(char *) "url", NULL
42553 };
42554
42555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42557 if (!SWIG_IsOK(res1)) {
42558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42559 }
42560 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42561 {
42562 arg2 = wxString_in_helper(obj1);
42563 if (arg2 == NULL) SWIG_fail;
42564 temp2 = true;
42565 }
42566 {
42567 PyThreadState* __tstate = wxPyBeginAllowThreads();
42568 (arg1)->SetURL((wxString const &)*arg2);
42569 wxPyEndAllowThreads(__tstate);
42570 if (PyErr_Occurred()) SWIG_fail;
42571 }
42572 resultobj = SWIG_Py_Void();
42573 {
42574 if (temp2)
42575 delete arg2;
42576 }
42577 return resultobj;
42578 fail:
42579 {
42580 if (temp2)
42581 delete arg2;
42582 }
42583 return NULL;
42584 }
42585
42586
42587 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42588 PyObject *obj;
42589 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42590 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42591 return SWIG_Py_Void();
42592 }
42593
42594 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42595 return SWIG_Python_InitShadowInstance(args);
42596 }
42597
42598 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42599 PyObject *resultobj = 0;
42600 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42601 wxWindow *arg2 = (wxWindow *) 0 ;
42602 int arg3 ;
42603 wxString const &arg4_defvalue = wxEmptyString ;
42604 wxString *arg4 = (wxString *) &arg4_defvalue ;
42605 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42606 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42607 wxSize const &arg6_defvalue = wxDefaultSize ;
42608 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42609 long arg7 = (long) 0 ;
42610 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42611 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42612 wxString const &arg9_defvalue = wxButtonNameStr ;
42613 wxString *arg9 = (wxString *) &arg9_defvalue ;
42614 bool result;
42615 void *argp1 = 0 ;
42616 int res1 = 0 ;
42617 void *argp2 = 0 ;
42618 int res2 = 0 ;
42619 int val3 ;
42620 int ecode3 = 0 ;
42621 bool temp4 = false ;
42622 wxPoint temp5 ;
42623 wxSize temp6 ;
42624 long val7 ;
42625 int ecode7 = 0 ;
42626 void *argp8 = 0 ;
42627 int res8 = 0 ;
42628 bool temp9 = false ;
42629 PyObject * obj0 = 0 ;
42630 PyObject * obj1 = 0 ;
42631 PyObject * obj2 = 0 ;
42632 PyObject * obj3 = 0 ;
42633 PyObject * obj4 = 0 ;
42634 PyObject * obj5 = 0 ;
42635 PyObject * obj6 = 0 ;
42636 PyObject * obj7 = 0 ;
42637 PyObject * obj8 = 0 ;
42638 char * kwnames[] = {
42639 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42640 };
42641
42642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42644 if (!SWIG_IsOK(res1)) {
42645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42646 }
42647 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42648 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42649 if (!SWIG_IsOK(res2)) {
42650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42651 }
42652 arg2 = reinterpret_cast< wxWindow * >(argp2);
42653 ecode3 = SWIG_AsVal_int(obj2, &val3);
42654 if (!SWIG_IsOK(ecode3)) {
42655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42656 }
42657 arg3 = static_cast< int >(val3);
42658 if (obj3) {
42659 {
42660 arg4 = wxString_in_helper(obj3);
42661 if (arg4 == NULL) SWIG_fail;
42662 temp4 = true;
42663 }
42664 }
42665 if (obj4) {
42666 {
42667 arg5 = &temp5;
42668 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42669 }
42670 }
42671 if (obj5) {
42672 {
42673 arg6 = &temp6;
42674 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42675 }
42676 }
42677 if (obj6) {
42678 ecode7 = SWIG_AsVal_long(obj6, &val7);
42679 if (!SWIG_IsOK(ecode7)) {
42680 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42681 }
42682 arg7 = static_cast< long >(val7);
42683 }
42684 if (obj7) {
42685 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42686 if (!SWIG_IsOK(res8)) {
42687 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42688 }
42689 if (!argp8) {
42690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42691 }
42692 arg8 = reinterpret_cast< wxValidator * >(argp8);
42693 }
42694 if (obj8) {
42695 {
42696 arg9 = wxString_in_helper(obj8);
42697 if (arg9 == NULL) SWIG_fail;
42698 temp9 = true;
42699 }
42700 }
42701 {
42702 PyThreadState* __tstate = wxPyBeginAllowThreads();
42703 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42704 wxPyEndAllowThreads(__tstate);
42705 if (PyErr_Occurred()) SWIG_fail;
42706 }
42707 {
42708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42709 }
42710 {
42711 if (temp4)
42712 delete arg4;
42713 }
42714 {
42715 if (temp9)
42716 delete arg9;
42717 }
42718 return resultobj;
42719 fail:
42720 {
42721 if (temp4)
42722 delete arg4;
42723 }
42724 {
42725 if (temp9)
42726 delete arg9;
42727 }
42728 return NULL;
42729 }
42730
42731
42732 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42733 PyObject *resultobj = 0;
42734 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42735 int arg2 ;
42736 void *argp1 = 0 ;
42737 int res1 = 0 ;
42738 int val2 ;
42739 int ecode2 = 0 ;
42740 PyObject * obj0 = 0 ;
42741 PyObject * obj1 = 0 ;
42742 char * kwnames[] = {
42743 (char *) "self",(char *) "newmargin", NULL
42744 };
42745
42746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42748 if (!SWIG_IsOK(res1)) {
42749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42750 }
42751 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42752 ecode2 = SWIG_AsVal_int(obj1, &val2);
42753 if (!SWIG_IsOK(ecode2)) {
42754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42755 }
42756 arg2 = static_cast< int >(val2);
42757 {
42758 PyThreadState* __tstate = wxPyBeginAllowThreads();
42759 (arg1)->SetInternalMargin(arg2);
42760 wxPyEndAllowThreads(__tstate);
42761 if (PyErr_Occurred()) SWIG_fail;
42762 }
42763 resultobj = SWIG_Py_Void();
42764 return resultobj;
42765 fail:
42766 return NULL;
42767 }
42768
42769
42770 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42771 PyObject *resultobj = 0;
42772 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42773 int result;
42774 void *argp1 = 0 ;
42775 int res1 = 0 ;
42776 PyObject *swig_obj[1] ;
42777
42778 if (!args) SWIG_fail;
42779 swig_obj[0] = args;
42780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42781 if (!SWIG_IsOK(res1)) {
42782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42783 }
42784 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42785 {
42786 PyThreadState* __tstate = wxPyBeginAllowThreads();
42787 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42788 wxPyEndAllowThreads(__tstate);
42789 if (PyErr_Occurred()) SWIG_fail;
42790 }
42791 resultobj = SWIG_From_int(static_cast< int >(result));
42792 return resultobj;
42793 fail:
42794 return NULL;
42795 }
42796
42797
42798 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42799 PyObject *resultobj = 0;
42800 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42801 int arg2 ;
42802 void *argp1 = 0 ;
42803 int res1 = 0 ;
42804 int val2 ;
42805 int ecode2 = 0 ;
42806 PyObject * obj0 = 0 ;
42807 PyObject * obj1 = 0 ;
42808 char * kwnames[] = {
42809 (char *) "self",(char *) "prop", NULL
42810 };
42811
42812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42814 if (!SWIG_IsOK(res1)) {
42815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42816 }
42817 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42818 ecode2 = SWIG_AsVal_int(obj1, &val2);
42819 if (!SWIG_IsOK(ecode2)) {
42820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42821 }
42822 arg2 = static_cast< int >(val2);
42823 {
42824 PyThreadState* __tstate = wxPyBeginAllowThreads();
42825 (arg1)->SetTextCtrlProportion(arg2);
42826 wxPyEndAllowThreads(__tstate);
42827 if (PyErr_Occurred()) SWIG_fail;
42828 }
42829 resultobj = SWIG_Py_Void();
42830 return resultobj;
42831 fail:
42832 return NULL;
42833 }
42834
42835
42836 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42837 PyObject *resultobj = 0;
42838 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42839 int result;
42840 void *argp1 = 0 ;
42841 int res1 = 0 ;
42842 PyObject *swig_obj[1] ;
42843
42844 if (!args) SWIG_fail;
42845 swig_obj[0] = args;
42846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42847 if (!SWIG_IsOK(res1)) {
42848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42849 }
42850 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42851 {
42852 PyThreadState* __tstate = wxPyBeginAllowThreads();
42853 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42854 wxPyEndAllowThreads(__tstate);
42855 if (PyErr_Occurred()) SWIG_fail;
42856 }
42857 resultobj = SWIG_From_int(static_cast< int >(result));
42858 return resultobj;
42859 fail:
42860 return NULL;
42861 }
42862
42863
42864 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42865 PyObject *resultobj = 0;
42866 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42867 int arg2 ;
42868 void *argp1 = 0 ;
42869 int res1 = 0 ;
42870 int val2 ;
42871 int ecode2 = 0 ;
42872 PyObject * obj0 = 0 ;
42873 PyObject * obj1 = 0 ;
42874 char * kwnames[] = {
42875 (char *) "self",(char *) "prop", NULL
42876 };
42877
42878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42880 if (!SWIG_IsOK(res1)) {
42881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42882 }
42883 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42884 ecode2 = SWIG_AsVal_int(obj1, &val2);
42885 if (!SWIG_IsOK(ecode2)) {
42886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42887 }
42888 arg2 = static_cast< int >(val2);
42889 {
42890 PyThreadState* __tstate = wxPyBeginAllowThreads();
42891 (arg1)->SetPickerCtrlProportion(arg2);
42892 wxPyEndAllowThreads(__tstate);
42893 if (PyErr_Occurred()) SWIG_fail;
42894 }
42895 resultobj = SWIG_Py_Void();
42896 return resultobj;
42897 fail:
42898 return NULL;
42899 }
42900
42901
42902 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42903 PyObject *resultobj = 0;
42904 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42905 int result;
42906 void *argp1 = 0 ;
42907 int res1 = 0 ;
42908 PyObject *swig_obj[1] ;
42909
42910 if (!args) SWIG_fail;
42911 swig_obj[0] = args;
42912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42913 if (!SWIG_IsOK(res1)) {
42914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42915 }
42916 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42917 {
42918 PyThreadState* __tstate = wxPyBeginAllowThreads();
42919 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42920 wxPyEndAllowThreads(__tstate);
42921 if (PyErr_Occurred()) SWIG_fail;
42922 }
42923 resultobj = SWIG_From_int(static_cast< int >(result));
42924 return resultobj;
42925 fail:
42926 return NULL;
42927 }
42928
42929
42930 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42931 PyObject *resultobj = 0;
42932 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42933 bool result;
42934 void *argp1 = 0 ;
42935 int res1 = 0 ;
42936 PyObject *swig_obj[1] ;
42937
42938 if (!args) SWIG_fail;
42939 swig_obj[0] = args;
42940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42941 if (!SWIG_IsOK(res1)) {
42942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42943 }
42944 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42945 {
42946 PyThreadState* __tstate = wxPyBeginAllowThreads();
42947 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42948 wxPyEndAllowThreads(__tstate);
42949 if (PyErr_Occurred()) SWIG_fail;
42950 }
42951 {
42952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42953 }
42954 return resultobj;
42955 fail:
42956 return NULL;
42957 }
42958
42959
42960 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42961 PyObject *resultobj = 0;
42962 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42963 bool arg2 = (bool) true ;
42964 void *argp1 = 0 ;
42965 int res1 = 0 ;
42966 bool val2 ;
42967 int ecode2 = 0 ;
42968 PyObject * obj0 = 0 ;
42969 PyObject * obj1 = 0 ;
42970 char * kwnames[] = {
42971 (char *) "self",(char *) "grow", NULL
42972 };
42973
42974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42976 if (!SWIG_IsOK(res1)) {
42977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42978 }
42979 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42980 if (obj1) {
42981 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42982 if (!SWIG_IsOK(ecode2)) {
42983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42984 }
42985 arg2 = static_cast< bool >(val2);
42986 }
42987 {
42988 PyThreadState* __tstate = wxPyBeginAllowThreads();
42989 (arg1)->SetTextCtrlGrowable(arg2);
42990 wxPyEndAllowThreads(__tstate);
42991 if (PyErr_Occurred()) SWIG_fail;
42992 }
42993 resultobj = SWIG_Py_Void();
42994 return resultobj;
42995 fail:
42996 return NULL;
42997 }
42998
42999
43000 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43001 PyObject *resultobj = 0;
43002 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43003 bool result;
43004 void *argp1 = 0 ;
43005 int res1 = 0 ;
43006 PyObject *swig_obj[1] ;
43007
43008 if (!args) SWIG_fail;
43009 swig_obj[0] = args;
43010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43011 if (!SWIG_IsOK(res1)) {
43012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43013 }
43014 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43015 {
43016 PyThreadState* __tstate = wxPyBeginAllowThreads();
43017 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
43018 wxPyEndAllowThreads(__tstate);
43019 if (PyErr_Occurred()) SWIG_fail;
43020 }
43021 {
43022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43023 }
43024 return resultobj;
43025 fail:
43026 return NULL;
43027 }
43028
43029
43030 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43031 PyObject *resultobj = 0;
43032 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43033 bool arg2 = (bool) true ;
43034 void *argp1 = 0 ;
43035 int res1 = 0 ;
43036 bool val2 ;
43037 int ecode2 = 0 ;
43038 PyObject * obj0 = 0 ;
43039 PyObject * obj1 = 0 ;
43040 char * kwnames[] = {
43041 (char *) "self",(char *) "grow", NULL
43042 };
43043
43044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43046 if (!SWIG_IsOK(res1)) {
43047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43048 }
43049 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43050 if (obj1) {
43051 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43052 if (!SWIG_IsOK(ecode2)) {
43053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43054 }
43055 arg2 = static_cast< bool >(val2);
43056 }
43057 {
43058 PyThreadState* __tstate = wxPyBeginAllowThreads();
43059 (arg1)->SetPickerCtrlGrowable(arg2);
43060 wxPyEndAllowThreads(__tstate);
43061 if (PyErr_Occurred()) SWIG_fail;
43062 }
43063 resultobj = SWIG_Py_Void();
43064 return resultobj;
43065 fail:
43066 return NULL;
43067 }
43068
43069
43070 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43071 PyObject *resultobj = 0;
43072 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43073 bool result;
43074 void *argp1 = 0 ;
43075 int res1 = 0 ;
43076 PyObject *swig_obj[1] ;
43077
43078 if (!args) SWIG_fail;
43079 swig_obj[0] = args;
43080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43081 if (!SWIG_IsOK(res1)) {
43082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43083 }
43084 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43085 {
43086 PyThreadState* __tstate = wxPyBeginAllowThreads();
43087 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43088 wxPyEndAllowThreads(__tstate);
43089 if (PyErr_Occurred()) SWIG_fail;
43090 }
43091 {
43092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43093 }
43094 return resultobj;
43095 fail:
43096 return NULL;
43097 }
43098
43099
43100 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43101 PyObject *resultobj = 0;
43102 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43103 wxTextCtrl *result = 0 ;
43104 void *argp1 = 0 ;
43105 int res1 = 0 ;
43106 PyObject *swig_obj[1] ;
43107
43108 if (!args) SWIG_fail;
43109 swig_obj[0] = args;
43110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43111 if (!SWIG_IsOK(res1)) {
43112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43113 }
43114 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43115 {
43116 PyThreadState* __tstate = wxPyBeginAllowThreads();
43117 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43118 wxPyEndAllowThreads(__tstate);
43119 if (PyErr_Occurred()) SWIG_fail;
43120 }
43121 {
43122 resultobj = wxPyMake_wxObject(result, 0);
43123 }
43124 return resultobj;
43125 fail:
43126 return NULL;
43127 }
43128
43129
43130 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43131 PyObject *resultobj = 0;
43132 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43133 wxControl *result = 0 ;
43134 void *argp1 = 0 ;
43135 int res1 = 0 ;
43136 PyObject *swig_obj[1] ;
43137
43138 if (!args) SWIG_fail;
43139 swig_obj[0] = args;
43140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43141 if (!SWIG_IsOK(res1)) {
43142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43143 }
43144 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43145 {
43146 PyThreadState* __tstate = wxPyBeginAllowThreads();
43147 result = (wxControl *)(arg1)->GetPickerCtrl();
43148 wxPyEndAllowThreads(__tstate);
43149 if (PyErr_Occurred()) SWIG_fail;
43150 }
43151 {
43152 resultobj = wxPyMake_wxObject(result, 0);
43153 }
43154 return resultobj;
43155 fail:
43156 return NULL;
43157 }
43158
43159
43160 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43161 PyObject *obj;
43162 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43163 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43164 return SWIG_Py_Void();
43165 }
43166
43167 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43168 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43169 return 1;
43170 }
43171
43172
43173 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43174 PyObject *pyobj = 0;
43175
43176 {
43177 #if wxUSE_UNICODE
43178 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43179 #else
43180 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43181 #endif
43182 }
43183 return pyobj;
43184 }
43185
43186
43187 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43188 PyObject *resultobj = 0;
43189 wxWindow *arg1 = (wxWindow *) 0 ;
43190 int arg2 = (int) -1 ;
43191 wxColour const &arg3_defvalue = *wxBLACK ;
43192 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43193 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43194 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43195 wxSize const &arg5_defvalue = wxDefaultSize ;
43196 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43197 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43198 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43199 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43200 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43201 wxString *arg8 = (wxString *) &arg8_defvalue ;
43202 wxColourPickerCtrl *result = 0 ;
43203 void *argp1 = 0 ;
43204 int res1 = 0 ;
43205 int val2 ;
43206 int ecode2 = 0 ;
43207 wxColour temp3 ;
43208 wxPoint temp4 ;
43209 wxSize temp5 ;
43210 long val6 ;
43211 int ecode6 = 0 ;
43212 void *argp7 = 0 ;
43213 int res7 = 0 ;
43214 bool temp8 = false ;
43215 PyObject * obj0 = 0 ;
43216 PyObject * obj1 = 0 ;
43217 PyObject * obj2 = 0 ;
43218 PyObject * obj3 = 0 ;
43219 PyObject * obj4 = 0 ;
43220 PyObject * obj5 = 0 ;
43221 PyObject * obj6 = 0 ;
43222 PyObject * obj7 = 0 ;
43223 char * kwnames[] = {
43224 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43225 };
43226
43227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43229 if (!SWIG_IsOK(res1)) {
43230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43231 }
43232 arg1 = reinterpret_cast< wxWindow * >(argp1);
43233 if (obj1) {
43234 ecode2 = SWIG_AsVal_int(obj1, &val2);
43235 if (!SWIG_IsOK(ecode2)) {
43236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43237 }
43238 arg2 = static_cast< int >(val2);
43239 }
43240 if (obj2) {
43241 {
43242 arg3 = &temp3;
43243 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43244 }
43245 }
43246 if (obj3) {
43247 {
43248 arg4 = &temp4;
43249 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43250 }
43251 }
43252 if (obj4) {
43253 {
43254 arg5 = &temp5;
43255 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43256 }
43257 }
43258 if (obj5) {
43259 ecode6 = SWIG_AsVal_long(obj5, &val6);
43260 if (!SWIG_IsOK(ecode6)) {
43261 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43262 }
43263 arg6 = static_cast< long >(val6);
43264 }
43265 if (obj6) {
43266 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43267 if (!SWIG_IsOK(res7)) {
43268 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43269 }
43270 if (!argp7) {
43271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43272 }
43273 arg7 = reinterpret_cast< wxValidator * >(argp7);
43274 }
43275 if (obj7) {
43276 {
43277 arg8 = wxString_in_helper(obj7);
43278 if (arg8 == NULL) SWIG_fail;
43279 temp8 = true;
43280 }
43281 }
43282 {
43283 if (!wxPyCheckForApp()) SWIG_fail;
43284 PyThreadState* __tstate = wxPyBeginAllowThreads();
43285 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43286 wxPyEndAllowThreads(__tstate);
43287 if (PyErr_Occurred()) SWIG_fail;
43288 }
43289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43290 {
43291 if (temp8)
43292 delete arg8;
43293 }
43294 return resultobj;
43295 fail:
43296 {
43297 if (temp8)
43298 delete arg8;
43299 }
43300 return NULL;
43301 }
43302
43303
43304 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43305 PyObject *resultobj = 0;
43306 wxColourPickerCtrl *result = 0 ;
43307
43308 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43309 {
43310 if (!wxPyCheckForApp()) SWIG_fail;
43311 PyThreadState* __tstate = wxPyBeginAllowThreads();
43312 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43313 wxPyEndAllowThreads(__tstate);
43314 if (PyErr_Occurred()) SWIG_fail;
43315 }
43316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43317 return resultobj;
43318 fail:
43319 return NULL;
43320 }
43321
43322
43323 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43324 PyObject *resultobj = 0;
43325 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43326 wxWindow *arg2 = (wxWindow *) 0 ;
43327 int arg3 ;
43328 wxColour const &arg4_defvalue = *wxBLACK ;
43329 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43330 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43331 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43332 wxSize const &arg6_defvalue = wxDefaultSize ;
43333 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43334 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43335 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43336 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43337 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43338 wxString *arg9 = (wxString *) &arg9_defvalue ;
43339 bool result;
43340 void *argp1 = 0 ;
43341 int res1 = 0 ;
43342 void *argp2 = 0 ;
43343 int res2 = 0 ;
43344 int val3 ;
43345 int ecode3 = 0 ;
43346 wxColour temp4 ;
43347 wxPoint temp5 ;
43348 wxSize temp6 ;
43349 long val7 ;
43350 int ecode7 = 0 ;
43351 void *argp8 = 0 ;
43352 int res8 = 0 ;
43353 bool temp9 = false ;
43354 PyObject * obj0 = 0 ;
43355 PyObject * obj1 = 0 ;
43356 PyObject * obj2 = 0 ;
43357 PyObject * obj3 = 0 ;
43358 PyObject * obj4 = 0 ;
43359 PyObject * obj5 = 0 ;
43360 PyObject * obj6 = 0 ;
43361 PyObject * obj7 = 0 ;
43362 PyObject * obj8 = 0 ;
43363 char * kwnames[] = {
43364 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43365 };
43366
43367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43369 if (!SWIG_IsOK(res1)) {
43370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43371 }
43372 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43373 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43374 if (!SWIG_IsOK(res2)) {
43375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43376 }
43377 arg2 = reinterpret_cast< wxWindow * >(argp2);
43378 ecode3 = SWIG_AsVal_int(obj2, &val3);
43379 if (!SWIG_IsOK(ecode3)) {
43380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43381 }
43382 arg3 = static_cast< int >(val3);
43383 if (obj3) {
43384 {
43385 arg4 = &temp4;
43386 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43387 }
43388 }
43389 if (obj4) {
43390 {
43391 arg5 = &temp5;
43392 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43393 }
43394 }
43395 if (obj5) {
43396 {
43397 arg6 = &temp6;
43398 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43399 }
43400 }
43401 if (obj6) {
43402 ecode7 = SWIG_AsVal_long(obj6, &val7);
43403 if (!SWIG_IsOK(ecode7)) {
43404 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43405 }
43406 arg7 = static_cast< long >(val7);
43407 }
43408 if (obj7) {
43409 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43410 if (!SWIG_IsOK(res8)) {
43411 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43412 }
43413 if (!argp8) {
43414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43415 }
43416 arg8 = reinterpret_cast< wxValidator * >(argp8);
43417 }
43418 if (obj8) {
43419 {
43420 arg9 = wxString_in_helper(obj8);
43421 if (arg9 == NULL) SWIG_fail;
43422 temp9 = true;
43423 }
43424 }
43425 {
43426 PyThreadState* __tstate = wxPyBeginAllowThreads();
43427 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43428 wxPyEndAllowThreads(__tstate);
43429 if (PyErr_Occurred()) SWIG_fail;
43430 }
43431 {
43432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43433 }
43434 {
43435 if (temp9)
43436 delete arg9;
43437 }
43438 return resultobj;
43439 fail:
43440 {
43441 if (temp9)
43442 delete arg9;
43443 }
43444 return NULL;
43445 }
43446
43447
43448 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43449 PyObject *resultobj = 0;
43450 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43451 wxColour result;
43452 void *argp1 = 0 ;
43453 int res1 = 0 ;
43454 PyObject *swig_obj[1] ;
43455
43456 if (!args) SWIG_fail;
43457 swig_obj[0] = args;
43458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43459 if (!SWIG_IsOK(res1)) {
43460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43461 }
43462 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43463 {
43464 PyThreadState* __tstate = wxPyBeginAllowThreads();
43465 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43466 wxPyEndAllowThreads(__tstate);
43467 if (PyErr_Occurred()) SWIG_fail;
43468 }
43469 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43470 return resultobj;
43471 fail:
43472 return NULL;
43473 }
43474
43475
43476 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43477 PyObject *resultobj = 0;
43478 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43479 wxColour *arg2 = 0 ;
43480 void *argp1 = 0 ;
43481 int res1 = 0 ;
43482 wxColour temp2 ;
43483 PyObject * obj0 = 0 ;
43484 PyObject * obj1 = 0 ;
43485 char * kwnames[] = {
43486 (char *) "self",(char *) "col", NULL
43487 };
43488
43489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43491 if (!SWIG_IsOK(res1)) {
43492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43493 }
43494 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43495 {
43496 arg2 = &temp2;
43497 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43498 }
43499 {
43500 PyThreadState* __tstate = wxPyBeginAllowThreads();
43501 (arg1)->SetColour((wxColour const &)*arg2);
43502 wxPyEndAllowThreads(__tstate);
43503 if (PyErr_Occurred()) SWIG_fail;
43504 }
43505 resultobj = SWIG_Py_Void();
43506 return resultobj;
43507 fail:
43508 return NULL;
43509 }
43510
43511
43512 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43513 PyObject *obj;
43514 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43515 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43516 return SWIG_Py_Void();
43517 }
43518
43519 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43520 return SWIG_Python_InitShadowInstance(args);
43521 }
43522
43523 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43524 PyObject *resultobj = 0;
43525 wxObject *arg1 = (wxObject *) 0 ;
43526 int arg2 ;
43527 wxColour *arg3 = 0 ;
43528 wxColourPickerEvent *result = 0 ;
43529 void *argp1 = 0 ;
43530 int res1 = 0 ;
43531 int val2 ;
43532 int ecode2 = 0 ;
43533 wxColour temp3 ;
43534 PyObject * obj0 = 0 ;
43535 PyObject * obj1 = 0 ;
43536 PyObject * obj2 = 0 ;
43537 char * kwnames[] = {
43538 (char *) "generator",(char *) "id",(char *) "col", NULL
43539 };
43540
43541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43543 if (!SWIG_IsOK(res1)) {
43544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43545 }
43546 arg1 = reinterpret_cast< wxObject * >(argp1);
43547 ecode2 = SWIG_AsVal_int(obj1, &val2);
43548 if (!SWIG_IsOK(ecode2)) {
43549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43550 }
43551 arg2 = static_cast< int >(val2);
43552 {
43553 arg3 = &temp3;
43554 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43555 }
43556 {
43557 PyThreadState* __tstate = wxPyBeginAllowThreads();
43558 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43559 wxPyEndAllowThreads(__tstate);
43560 if (PyErr_Occurred()) SWIG_fail;
43561 }
43562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43563 return resultobj;
43564 fail:
43565 return NULL;
43566 }
43567
43568
43569 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43570 PyObject *resultobj = 0;
43571 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43572 wxColour result;
43573 void *argp1 = 0 ;
43574 int res1 = 0 ;
43575 PyObject *swig_obj[1] ;
43576
43577 if (!args) SWIG_fail;
43578 swig_obj[0] = args;
43579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43580 if (!SWIG_IsOK(res1)) {
43581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43582 }
43583 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43584 {
43585 PyThreadState* __tstate = wxPyBeginAllowThreads();
43586 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43587 wxPyEndAllowThreads(__tstate);
43588 if (PyErr_Occurred()) SWIG_fail;
43589 }
43590 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43591 return resultobj;
43592 fail:
43593 return NULL;
43594 }
43595
43596
43597 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43598 PyObject *resultobj = 0;
43599 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43600 wxColour *arg2 = 0 ;
43601 void *argp1 = 0 ;
43602 int res1 = 0 ;
43603 wxColour temp2 ;
43604 PyObject * obj0 = 0 ;
43605 PyObject * obj1 = 0 ;
43606 char * kwnames[] = {
43607 (char *) "self",(char *) "c", NULL
43608 };
43609
43610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43612 if (!SWIG_IsOK(res1)) {
43613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43614 }
43615 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43616 {
43617 arg2 = &temp2;
43618 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43619 }
43620 {
43621 PyThreadState* __tstate = wxPyBeginAllowThreads();
43622 (arg1)->SetColour((wxColour const &)*arg2);
43623 wxPyEndAllowThreads(__tstate);
43624 if (PyErr_Occurred()) SWIG_fail;
43625 }
43626 resultobj = SWIG_Py_Void();
43627 return resultobj;
43628 fail:
43629 return NULL;
43630 }
43631
43632
43633 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43634 PyObject *obj;
43635 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43636 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43637 return SWIG_Py_Void();
43638 }
43639
43640 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43641 return SWIG_Python_InitShadowInstance(args);
43642 }
43643
43644 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43645 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43646 return 1;
43647 }
43648
43649
43650 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43651 PyObject *pyobj = 0;
43652
43653 {
43654 #if wxUSE_UNICODE
43655 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43656 #else
43657 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43658 #endif
43659 }
43660 return pyobj;
43661 }
43662
43663
43664 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43665 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43666 return 1;
43667 }
43668
43669
43670 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43671 PyObject *pyobj = 0;
43672
43673 {
43674 #if wxUSE_UNICODE
43675 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43676 #else
43677 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43678 #endif
43679 }
43680 return pyobj;
43681 }
43682
43683
43684 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43685 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43686 return 1;
43687 }
43688
43689
43690 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43691 PyObject *pyobj = 0;
43692
43693 {
43694 #if wxUSE_UNICODE
43695 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43696 #else
43697 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43698 #endif
43699 }
43700 return pyobj;
43701 }
43702
43703
43704 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43705 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43706 return 1;
43707 }
43708
43709
43710 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43711 PyObject *pyobj = 0;
43712
43713 {
43714 #if wxUSE_UNICODE
43715 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43716 #else
43717 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43718 #endif
43719 }
43720 return pyobj;
43721 }
43722
43723
43724 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43725 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43726 return 1;
43727 }
43728
43729
43730 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43731 PyObject *pyobj = 0;
43732
43733 {
43734 #if wxUSE_UNICODE
43735 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43736 #else
43737 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43738 #endif
43739 }
43740 return pyobj;
43741 }
43742
43743
43744 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43745 PyObject *resultobj = 0;
43746 wxWindow *arg1 = (wxWindow *) 0 ;
43747 int arg2 = (int) -1 ;
43748 wxString const &arg3_defvalue = wxPyEmptyString ;
43749 wxString *arg3 = (wxString *) &arg3_defvalue ;
43750 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43751 wxString *arg4 = (wxString *) &arg4_defvalue ;
43752 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43753 wxString *arg5 = (wxString *) &arg5_defvalue ;
43754 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43755 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43756 wxSize const &arg7_defvalue = wxDefaultSize ;
43757 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43758 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43759 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43760 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43761 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43762 wxString *arg10 = (wxString *) &arg10_defvalue ;
43763 wxFilePickerCtrl *result = 0 ;
43764 void *argp1 = 0 ;
43765 int res1 = 0 ;
43766 int val2 ;
43767 int ecode2 = 0 ;
43768 bool temp3 = false ;
43769 bool temp4 = false ;
43770 bool temp5 = false ;
43771 wxPoint temp6 ;
43772 wxSize temp7 ;
43773 long val8 ;
43774 int ecode8 = 0 ;
43775 void *argp9 = 0 ;
43776 int res9 = 0 ;
43777 bool temp10 = false ;
43778 PyObject * obj0 = 0 ;
43779 PyObject * obj1 = 0 ;
43780 PyObject * obj2 = 0 ;
43781 PyObject * obj3 = 0 ;
43782 PyObject * obj4 = 0 ;
43783 PyObject * obj5 = 0 ;
43784 PyObject * obj6 = 0 ;
43785 PyObject * obj7 = 0 ;
43786 PyObject * obj8 = 0 ;
43787 PyObject * obj9 = 0 ;
43788 char * kwnames[] = {
43789 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43790 };
43791
43792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43794 if (!SWIG_IsOK(res1)) {
43795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43796 }
43797 arg1 = reinterpret_cast< wxWindow * >(argp1);
43798 if (obj1) {
43799 ecode2 = SWIG_AsVal_int(obj1, &val2);
43800 if (!SWIG_IsOK(ecode2)) {
43801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43802 }
43803 arg2 = static_cast< int >(val2);
43804 }
43805 if (obj2) {
43806 {
43807 arg3 = wxString_in_helper(obj2);
43808 if (arg3 == NULL) SWIG_fail;
43809 temp3 = true;
43810 }
43811 }
43812 if (obj3) {
43813 {
43814 arg4 = wxString_in_helper(obj3);
43815 if (arg4 == NULL) SWIG_fail;
43816 temp4 = true;
43817 }
43818 }
43819 if (obj4) {
43820 {
43821 arg5 = wxString_in_helper(obj4);
43822 if (arg5 == NULL) SWIG_fail;
43823 temp5 = true;
43824 }
43825 }
43826 if (obj5) {
43827 {
43828 arg6 = &temp6;
43829 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43830 }
43831 }
43832 if (obj6) {
43833 {
43834 arg7 = &temp7;
43835 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43836 }
43837 }
43838 if (obj7) {
43839 ecode8 = SWIG_AsVal_long(obj7, &val8);
43840 if (!SWIG_IsOK(ecode8)) {
43841 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43842 }
43843 arg8 = static_cast< long >(val8);
43844 }
43845 if (obj8) {
43846 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43847 if (!SWIG_IsOK(res9)) {
43848 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43849 }
43850 if (!argp9) {
43851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43852 }
43853 arg9 = reinterpret_cast< wxValidator * >(argp9);
43854 }
43855 if (obj9) {
43856 {
43857 arg10 = wxString_in_helper(obj9);
43858 if (arg10 == NULL) SWIG_fail;
43859 temp10 = true;
43860 }
43861 }
43862 {
43863 if (!wxPyCheckForApp()) SWIG_fail;
43864 PyThreadState* __tstate = wxPyBeginAllowThreads();
43865 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);
43866 wxPyEndAllowThreads(__tstate);
43867 if (PyErr_Occurred()) SWIG_fail;
43868 }
43869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43870 {
43871 if (temp3)
43872 delete arg3;
43873 }
43874 {
43875 if (temp4)
43876 delete arg4;
43877 }
43878 {
43879 if (temp5)
43880 delete arg5;
43881 }
43882 {
43883 if (temp10)
43884 delete arg10;
43885 }
43886 return resultobj;
43887 fail:
43888 {
43889 if (temp3)
43890 delete arg3;
43891 }
43892 {
43893 if (temp4)
43894 delete arg4;
43895 }
43896 {
43897 if (temp5)
43898 delete arg5;
43899 }
43900 {
43901 if (temp10)
43902 delete arg10;
43903 }
43904 return NULL;
43905 }
43906
43907
43908 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43909 PyObject *resultobj = 0;
43910 wxFilePickerCtrl *result = 0 ;
43911
43912 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43913 {
43914 if (!wxPyCheckForApp()) SWIG_fail;
43915 PyThreadState* __tstate = wxPyBeginAllowThreads();
43916 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43917 wxPyEndAllowThreads(__tstate);
43918 if (PyErr_Occurred()) SWIG_fail;
43919 }
43920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43921 return resultobj;
43922 fail:
43923 return NULL;
43924 }
43925
43926
43927 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43928 PyObject *resultobj = 0;
43929 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43930 wxWindow *arg2 = (wxWindow *) 0 ;
43931 int arg3 = (int) -1 ;
43932 wxString const &arg4_defvalue = wxPyEmptyString ;
43933 wxString *arg4 = (wxString *) &arg4_defvalue ;
43934 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43935 wxString *arg5 = (wxString *) &arg5_defvalue ;
43936 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43937 wxString *arg6 = (wxString *) &arg6_defvalue ;
43938 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43939 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43940 wxSize const &arg8_defvalue = wxDefaultSize ;
43941 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43942 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43943 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43944 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43945 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43946 wxString *arg11 = (wxString *) &arg11_defvalue ;
43947 bool result;
43948 void *argp1 = 0 ;
43949 int res1 = 0 ;
43950 void *argp2 = 0 ;
43951 int res2 = 0 ;
43952 int val3 ;
43953 int ecode3 = 0 ;
43954 bool temp4 = false ;
43955 bool temp5 = false ;
43956 bool temp6 = false ;
43957 wxPoint temp7 ;
43958 wxSize temp8 ;
43959 long val9 ;
43960 int ecode9 = 0 ;
43961 void *argp10 = 0 ;
43962 int res10 = 0 ;
43963 bool temp11 = false ;
43964 PyObject * obj0 = 0 ;
43965 PyObject * obj1 = 0 ;
43966 PyObject * obj2 = 0 ;
43967 PyObject * obj3 = 0 ;
43968 PyObject * obj4 = 0 ;
43969 PyObject * obj5 = 0 ;
43970 PyObject * obj6 = 0 ;
43971 PyObject * obj7 = 0 ;
43972 PyObject * obj8 = 0 ;
43973 PyObject * obj9 = 0 ;
43974 PyObject * obj10 = 0 ;
43975 char * kwnames[] = {
43976 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43977 };
43978
43979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43981 if (!SWIG_IsOK(res1)) {
43982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43983 }
43984 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43985 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43986 if (!SWIG_IsOK(res2)) {
43987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43988 }
43989 arg2 = reinterpret_cast< wxWindow * >(argp2);
43990 if (obj2) {
43991 ecode3 = SWIG_AsVal_int(obj2, &val3);
43992 if (!SWIG_IsOK(ecode3)) {
43993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43994 }
43995 arg3 = static_cast< int >(val3);
43996 }
43997 if (obj3) {
43998 {
43999 arg4 = wxString_in_helper(obj3);
44000 if (arg4 == NULL) SWIG_fail;
44001 temp4 = true;
44002 }
44003 }
44004 if (obj4) {
44005 {
44006 arg5 = wxString_in_helper(obj4);
44007 if (arg5 == NULL) SWIG_fail;
44008 temp5 = true;
44009 }
44010 }
44011 if (obj5) {
44012 {
44013 arg6 = wxString_in_helper(obj5);
44014 if (arg6 == NULL) SWIG_fail;
44015 temp6 = true;
44016 }
44017 }
44018 if (obj6) {
44019 {
44020 arg7 = &temp7;
44021 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
44022 }
44023 }
44024 if (obj7) {
44025 {
44026 arg8 = &temp8;
44027 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
44028 }
44029 }
44030 if (obj8) {
44031 ecode9 = SWIG_AsVal_long(obj8, &val9);
44032 if (!SWIG_IsOK(ecode9)) {
44033 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
44034 }
44035 arg9 = static_cast< long >(val9);
44036 }
44037 if (obj9) {
44038 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
44039 if (!SWIG_IsOK(res10)) {
44040 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44041 }
44042 if (!argp10) {
44043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44044 }
44045 arg10 = reinterpret_cast< wxValidator * >(argp10);
44046 }
44047 if (obj10) {
44048 {
44049 arg11 = wxString_in_helper(obj10);
44050 if (arg11 == NULL) SWIG_fail;
44051 temp11 = true;
44052 }
44053 }
44054 {
44055 PyThreadState* __tstate = wxPyBeginAllowThreads();
44056 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);
44057 wxPyEndAllowThreads(__tstate);
44058 if (PyErr_Occurred()) SWIG_fail;
44059 }
44060 {
44061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44062 }
44063 {
44064 if (temp4)
44065 delete arg4;
44066 }
44067 {
44068 if (temp5)
44069 delete arg5;
44070 }
44071 {
44072 if (temp6)
44073 delete arg6;
44074 }
44075 {
44076 if (temp11)
44077 delete arg11;
44078 }
44079 return resultobj;
44080 fail:
44081 {
44082 if (temp4)
44083 delete arg4;
44084 }
44085 {
44086 if (temp5)
44087 delete arg5;
44088 }
44089 {
44090 if (temp6)
44091 delete arg6;
44092 }
44093 {
44094 if (temp11)
44095 delete arg11;
44096 }
44097 return NULL;
44098 }
44099
44100
44101 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44102 PyObject *resultobj = 0;
44103 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44104 wxString result;
44105 void *argp1 = 0 ;
44106 int res1 = 0 ;
44107 PyObject *swig_obj[1] ;
44108
44109 if (!args) SWIG_fail;
44110 swig_obj[0] = args;
44111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44112 if (!SWIG_IsOK(res1)) {
44113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44114 }
44115 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44116 {
44117 PyThreadState* __tstate = wxPyBeginAllowThreads();
44118 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44119 wxPyEndAllowThreads(__tstate);
44120 if (PyErr_Occurred()) SWIG_fail;
44121 }
44122 {
44123 #if wxUSE_UNICODE
44124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44125 #else
44126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44127 #endif
44128 }
44129 return resultobj;
44130 fail:
44131 return NULL;
44132 }
44133
44134
44135 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44136 PyObject *resultobj = 0;
44137 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44138 wxString *arg2 = 0 ;
44139 void *argp1 = 0 ;
44140 int res1 = 0 ;
44141 bool temp2 = false ;
44142 PyObject * obj0 = 0 ;
44143 PyObject * obj1 = 0 ;
44144 char * kwnames[] = {
44145 (char *) "self",(char *) "str", NULL
44146 };
44147
44148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44150 if (!SWIG_IsOK(res1)) {
44151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44152 }
44153 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44154 {
44155 arg2 = wxString_in_helper(obj1);
44156 if (arg2 == NULL) SWIG_fail;
44157 temp2 = true;
44158 }
44159 {
44160 PyThreadState* __tstate = wxPyBeginAllowThreads();
44161 (arg1)->SetPath((wxString const &)*arg2);
44162 wxPyEndAllowThreads(__tstate);
44163 if (PyErr_Occurred()) SWIG_fail;
44164 }
44165 resultobj = SWIG_Py_Void();
44166 {
44167 if (temp2)
44168 delete arg2;
44169 }
44170 return resultobj;
44171 fail:
44172 {
44173 if (temp2)
44174 delete arg2;
44175 }
44176 return NULL;
44177 }
44178
44179
44180 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44181 PyObject *resultobj = 0;
44182 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44183 wxString *arg2 = 0 ;
44184 bool result;
44185 void *argp1 = 0 ;
44186 int res1 = 0 ;
44187 bool temp2 = false ;
44188 PyObject * obj0 = 0 ;
44189 PyObject * obj1 = 0 ;
44190 char * kwnames[] = {
44191 (char *) "self",(char *) "path", NULL
44192 };
44193
44194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44196 if (!SWIG_IsOK(res1)) {
44197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44198 }
44199 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44200 {
44201 arg2 = wxString_in_helper(obj1);
44202 if (arg2 == NULL) SWIG_fail;
44203 temp2 = true;
44204 }
44205 {
44206 PyThreadState* __tstate = wxPyBeginAllowThreads();
44207 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44208 wxPyEndAllowThreads(__tstate);
44209 if (PyErr_Occurred()) SWIG_fail;
44210 }
44211 {
44212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44213 }
44214 {
44215 if (temp2)
44216 delete arg2;
44217 }
44218 return resultobj;
44219 fail:
44220 {
44221 if (temp2)
44222 delete arg2;
44223 }
44224 return NULL;
44225 }
44226
44227
44228 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44229 PyObject *resultobj = 0;
44230 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44231 wxString result;
44232 void *argp1 = 0 ;
44233 int res1 = 0 ;
44234 PyObject *swig_obj[1] ;
44235
44236 if (!args) SWIG_fail;
44237 swig_obj[0] = args;
44238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44239 if (!SWIG_IsOK(res1)) {
44240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44241 }
44242 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44243 {
44244 PyThreadState* __tstate = wxPyBeginAllowThreads();
44245 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44246 wxPyEndAllowThreads(__tstate);
44247 if (PyErr_Occurred()) SWIG_fail;
44248 }
44249 {
44250 #if wxUSE_UNICODE
44251 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44252 #else
44253 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44254 #endif
44255 }
44256 return resultobj;
44257 fail:
44258 return NULL;
44259 }
44260
44261
44262 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44263 PyObject *obj;
44264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44265 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44266 return SWIG_Py_Void();
44267 }
44268
44269 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44270 return SWIG_Python_InitShadowInstance(args);
44271 }
44272
44273 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44274 PyObject *resultobj = 0;
44275 wxWindow *arg1 = (wxWindow *) 0 ;
44276 int arg2 = (int) -1 ;
44277 wxString const &arg3_defvalue = wxPyEmptyString ;
44278 wxString *arg3 = (wxString *) &arg3_defvalue ;
44279 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44280 wxString *arg4 = (wxString *) &arg4_defvalue ;
44281 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44282 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44283 wxSize const &arg6_defvalue = wxDefaultSize ;
44284 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44285 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44286 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44287 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44288 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44289 wxString *arg9 = (wxString *) &arg9_defvalue ;
44290 wxDirPickerCtrl *result = 0 ;
44291 void *argp1 = 0 ;
44292 int res1 = 0 ;
44293 int val2 ;
44294 int ecode2 = 0 ;
44295 bool temp3 = false ;
44296 bool temp4 = false ;
44297 wxPoint temp5 ;
44298 wxSize temp6 ;
44299 long val7 ;
44300 int ecode7 = 0 ;
44301 void *argp8 = 0 ;
44302 int res8 = 0 ;
44303 bool temp9 = false ;
44304 PyObject * obj0 = 0 ;
44305 PyObject * obj1 = 0 ;
44306 PyObject * obj2 = 0 ;
44307 PyObject * obj3 = 0 ;
44308 PyObject * obj4 = 0 ;
44309 PyObject * obj5 = 0 ;
44310 PyObject * obj6 = 0 ;
44311 PyObject * obj7 = 0 ;
44312 PyObject * obj8 = 0 ;
44313 char * kwnames[] = {
44314 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44315 };
44316
44317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44319 if (!SWIG_IsOK(res1)) {
44320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44321 }
44322 arg1 = reinterpret_cast< wxWindow * >(argp1);
44323 if (obj1) {
44324 ecode2 = SWIG_AsVal_int(obj1, &val2);
44325 if (!SWIG_IsOK(ecode2)) {
44326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44327 }
44328 arg2 = static_cast< int >(val2);
44329 }
44330 if (obj2) {
44331 {
44332 arg3 = wxString_in_helper(obj2);
44333 if (arg3 == NULL) SWIG_fail;
44334 temp3 = true;
44335 }
44336 }
44337 if (obj3) {
44338 {
44339 arg4 = wxString_in_helper(obj3);
44340 if (arg4 == NULL) SWIG_fail;
44341 temp4 = true;
44342 }
44343 }
44344 if (obj4) {
44345 {
44346 arg5 = &temp5;
44347 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44348 }
44349 }
44350 if (obj5) {
44351 {
44352 arg6 = &temp6;
44353 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44354 }
44355 }
44356 if (obj6) {
44357 ecode7 = SWIG_AsVal_long(obj6, &val7);
44358 if (!SWIG_IsOK(ecode7)) {
44359 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44360 }
44361 arg7 = static_cast< long >(val7);
44362 }
44363 if (obj7) {
44364 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44365 if (!SWIG_IsOK(res8)) {
44366 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44367 }
44368 if (!argp8) {
44369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44370 }
44371 arg8 = reinterpret_cast< wxValidator * >(argp8);
44372 }
44373 if (obj8) {
44374 {
44375 arg9 = wxString_in_helper(obj8);
44376 if (arg9 == NULL) SWIG_fail;
44377 temp9 = true;
44378 }
44379 }
44380 {
44381 if (!wxPyCheckForApp()) SWIG_fail;
44382 PyThreadState* __tstate = wxPyBeginAllowThreads();
44383 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);
44384 wxPyEndAllowThreads(__tstate);
44385 if (PyErr_Occurred()) SWIG_fail;
44386 }
44387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44388 {
44389 if (temp3)
44390 delete arg3;
44391 }
44392 {
44393 if (temp4)
44394 delete arg4;
44395 }
44396 {
44397 if (temp9)
44398 delete arg9;
44399 }
44400 return resultobj;
44401 fail:
44402 {
44403 if (temp3)
44404 delete arg3;
44405 }
44406 {
44407 if (temp4)
44408 delete arg4;
44409 }
44410 {
44411 if (temp9)
44412 delete arg9;
44413 }
44414 return NULL;
44415 }
44416
44417
44418 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44419 PyObject *resultobj = 0;
44420 wxDirPickerCtrl *result = 0 ;
44421
44422 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44423 {
44424 if (!wxPyCheckForApp()) SWIG_fail;
44425 PyThreadState* __tstate = wxPyBeginAllowThreads();
44426 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44427 wxPyEndAllowThreads(__tstate);
44428 if (PyErr_Occurred()) SWIG_fail;
44429 }
44430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44431 return resultobj;
44432 fail:
44433 return NULL;
44434 }
44435
44436
44437 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44438 PyObject *resultobj = 0;
44439 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44440 wxWindow *arg2 = (wxWindow *) 0 ;
44441 int arg3 = (int) -1 ;
44442 wxString const &arg4_defvalue = wxPyEmptyString ;
44443 wxString *arg4 = (wxString *) &arg4_defvalue ;
44444 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44445 wxString *arg5 = (wxString *) &arg5_defvalue ;
44446 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44447 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44448 wxSize const &arg7_defvalue = wxDefaultSize ;
44449 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44450 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44451 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44452 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44453 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44454 wxString *arg10 = (wxString *) &arg10_defvalue ;
44455 bool result;
44456 void *argp1 = 0 ;
44457 int res1 = 0 ;
44458 void *argp2 = 0 ;
44459 int res2 = 0 ;
44460 int val3 ;
44461 int ecode3 = 0 ;
44462 bool temp4 = false ;
44463 bool temp5 = false ;
44464 wxPoint temp6 ;
44465 wxSize temp7 ;
44466 long val8 ;
44467 int ecode8 = 0 ;
44468 void *argp9 = 0 ;
44469 int res9 = 0 ;
44470 bool temp10 = false ;
44471 PyObject * obj0 = 0 ;
44472 PyObject * obj1 = 0 ;
44473 PyObject * obj2 = 0 ;
44474 PyObject * obj3 = 0 ;
44475 PyObject * obj4 = 0 ;
44476 PyObject * obj5 = 0 ;
44477 PyObject * obj6 = 0 ;
44478 PyObject * obj7 = 0 ;
44479 PyObject * obj8 = 0 ;
44480 PyObject * obj9 = 0 ;
44481 char * kwnames[] = {
44482 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44483 };
44484
44485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44487 if (!SWIG_IsOK(res1)) {
44488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44489 }
44490 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44491 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44492 if (!SWIG_IsOK(res2)) {
44493 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44494 }
44495 arg2 = reinterpret_cast< wxWindow * >(argp2);
44496 if (obj2) {
44497 ecode3 = SWIG_AsVal_int(obj2, &val3);
44498 if (!SWIG_IsOK(ecode3)) {
44499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44500 }
44501 arg3 = static_cast< int >(val3);
44502 }
44503 if (obj3) {
44504 {
44505 arg4 = wxString_in_helper(obj3);
44506 if (arg4 == NULL) SWIG_fail;
44507 temp4 = true;
44508 }
44509 }
44510 if (obj4) {
44511 {
44512 arg5 = wxString_in_helper(obj4);
44513 if (arg5 == NULL) SWIG_fail;
44514 temp5 = true;
44515 }
44516 }
44517 if (obj5) {
44518 {
44519 arg6 = &temp6;
44520 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44521 }
44522 }
44523 if (obj6) {
44524 {
44525 arg7 = &temp7;
44526 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44527 }
44528 }
44529 if (obj7) {
44530 ecode8 = SWIG_AsVal_long(obj7, &val8);
44531 if (!SWIG_IsOK(ecode8)) {
44532 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44533 }
44534 arg8 = static_cast< long >(val8);
44535 }
44536 if (obj8) {
44537 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44538 if (!SWIG_IsOK(res9)) {
44539 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44540 }
44541 if (!argp9) {
44542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44543 }
44544 arg9 = reinterpret_cast< wxValidator * >(argp9);
44545 }
44546 if (obj9) {
44547 {
44548 arg10 = wxString_in_helper(obj9);
44549 if (arg10 == NULL) SWIG_fail;
44550 temp10 = true;
44551 }
44552 }
44553 {
44554 PyThreadState* __tstate = wxPyBeginAllowThreads();
44555 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);
44556 wxPyEndAllowThreads(__tstate);
44557 if (PyErr_Occurred()) SWIG_fail;
44558 }
44559 {
44560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44561 }
44562 {
44563 if (temp4)
44564 delete arg4;
44565 }
44566 {
44567 if (temp5)
44568 delete arg5;
44569 }
44570 {
44571 if (temp10)
44572 delete arg10;
44573 }
44574 return resultobj;
44575 fail:
44576 {
44577 if (temp4)
44578 delete arg4;
44579 }
44580 {
44581 if (temp5)
44582 delete arg5;
44583 }
44584 {
44585 if (temp10)
44586 delete arg10;
44587 }
44588 return NULL;
44589 }
44590
44591
44592 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44593 PyObject *resultobj = 0;
44594 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44595 wxString result;
44596 void *argp1 = 0 ;
44597 int res1 = 0 ;
44598 PyObject *swig_obj[1] ;
44599
44600 if (!args) SWIG_fail;
44601 swig_obj[0] = args;
44602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44603 if (!SWIG_IsOK(res1)) {
44604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44605 }
44606 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44607 {
44608 PyThreadState* __tstate = wxPyBeginAllowThreads();
44609 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44610 wxPyEndAllowThreads(__tstate);
44611 if (PyErr_Occurred()) SWIG_fail;
44612 }
44613 {
44614 #if wxUSE_UNICODE
44615 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44616 #else
44617 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44618 #endif
44619 }
44620 return resultobj;
44621 fail:
44622 return NULL;
44623 }
44624
44625
44626 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44627 PyObject *resultobj = 0;
44628 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44629 wxString *arg2 = 0 ;
44630 void *argp1 = 0 ;
44631 int res1 = 0 ;
44632 bool temp2 = false ;
44633 PyObject * obj0 = 0 ;
44634 PyObject * obj1 = 0 ;
44635 char * kwnames[] = {
44636 (char *) "self",(char *) "str", NULL
44637 };
44638
44639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44641 if (!SWIG_IsOK(res1)) {
44642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44643 }
44644 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44645 {
44646 arg2 = wxString_in_helper(obj1);
44647 if (arg2 == NULL) SWIG_fail;
44648 temp2 = true;
44649 }
44650 {
44651 PyThreadState* __tstate = wxPyBeginAllowThreads();
44652 (arg1)->SetPath((wxString const &)*arg2);
44653 wxPyEndAllowThreads(__tstate);
44654 if (PyErr_Occurred()) SWIG_fail;
44655 }
44656 resultobj = SWIG_Py_Void();
44657 {
44658 if (temp2)
44659 delete arg2;
44660 }
44661 return resultobj;
44662 fail:
44663 {
44664 if (temp2)
44665 delete arg2;
44666 }
44667 return NULL;
44668 }
44669
44670
44671 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44672 PyObject *resultobj = 0;
44673 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44674 wxString *arg2 = 0 ;
44675 bool result;
44676 void *argp1 = 0 ;
44677 int res1 = 0 ;
44678 bool temp2 = false ;
44679 PyObject * obj0 = 0 ;
44680 PyObject * obj1 = 0 ;
44681 char * kwnames[] = {
44682 (char *) "self",(char *) "path", NULL
44683 };
44684
44685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44687 if (!SWIG_IsOK(res1)) {
44688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44689 }
44690 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44691 {
44692 arg2 = wxString_in_helper(obj1);
44693 if (arg2 == NULL) SWIG_fail;
44694 temp2 = true;
44695 }
44696 {
44697 PyThreadState* __tstate = wxPyBeginAllowThreads();
44698 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44699 wxPyEndAllowThreads(__tstate);
44700 if (PyErr_Occurred()) SWIG_fail;
44701 }
44702 {
44703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44704 }
44705 {
44706 if (temp2)
44707 delete arg2;
44708 }
44709 return resultobj;
44710 fail:
44711 {
44712 if (temp2)
44713 delete arg2;
44714 }
44715 return NULL;
44716 }
44717
44718
44719 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44720 PyObject *resultobj = 0;
44721 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44722 wxString result;
44723 void *argp1 = 0 ;
44724 int res1 = 0 ;
44725 PyObject *swig_obj[1] ;
44726
44727 if (!args) SWIG_fail;
44728 swig_obj[0] = args;
44729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44730 if (!SWIG_IsOK(res1)) {
44731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44732 }
44733 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44734 {
44735 PyThreadState* __tstate = wxPyBeginAllowThreads();
44736 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44737 wxPyEndAllowThreads(__tstate);
44738 if (PyErr_Occurred()) SWIG_fail;
44739 }
44740 {
44741 #if wxUSE_UNICODE
44742 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44743 #else
44744 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44745 #endif
44746 }
44747 return resultobj;
44748 fail:
44749 return NULL;
44750 }
44751
44752
44753 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44754 PyObject *obj;
44755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44756 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44757 return SWIG_Py_Void();
44758 }
44759
44760 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44761 return SWIG_Python_InitShadowInstance(args);
44762 }
44763
44764 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44765 PyObject *resultobj = 0;
44766 wxEventType arg1 ;
44767 wxObject *arg2 = (wxObject *) 0 ;
44768 int arg3 ;
44769 wxString *arg4 = 0 ;
44770 wxFileDirPickerEvent *result = 0 ;
44771 int val1 ;
44772 int ecode1 = 0 ;
44773 void *argp2 = 0 ;
44774 int res2 = 0 ;
44775 int val3 ;
44776 int ecode3 = 0 ;
44777 bool temp4 = false ;
44778 PyObject * obj0 = 0 ;
44779 PyObject * obj1 = 0 ;
44780 PyObject * obj2 = 0 ;
44781 PyObject * obj3 = 0 ;
44782 char * kwnames[] = {
44783 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44784 };
44785
44786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44787 ecode1 = SWIG_AsVal_int(obj0, &val1);
44788 if (!SWIG_IsOK(ecode1)) {
44789 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44790 }
44791 arg1 = static_cast< wxEventType >(val1);
44792 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44793 if (!SWIG_IsOK(res2)) {
44794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44795 }
44796 arg2 = reinterpret_cast< wxObject * >(argp2);
44797 ecode3 = SWIG_AsVal_int(obj2, &val3);
44798 if (!SWIG_IsOK(ecode3)) {
44799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44800 }
44801 arg3 = static_cast< int >(val3);
44802 {
44803 arg4 = wxString_in_helper(obj3);
44804 if (arg4 == NULL) SWIG_fail;
44805 temp4 = true;
44806 }
44807 {
44808 PyThreadState* __tstate = wxPyBeginAllowThreads();
44809 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44810 wxPyEndAllowThreads(__tstate);
44811 if (PyErr_Occurred()) SWIG_fail;
44812 }
44813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44814 {
44815 if (temp4)
44816 delete arg4;
44817 }
44818 return resultobj;
44819 fail:
44820 {
44821 if (temp4)
44822 delete arg4;
44823 }
44824 return NULL;
44825 }
44826
44827
44828 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44829 PyObject *resultobj = 0;
44830 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44831 wxString result;
44832 void *argp1 = 0 ;
44833 int res1 = 0 ;
44834 PyObject *swig_obj[1] ;
44835
44836 if (!args) SWIG_fail;
44837 swig_obj[0] = args;
44838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44839 if (!SWIG_IsOK(res1)) {
44840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44841 }
44842 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44843 {
44844 PyThreadState* __tstate = wxPyBeginAllowThreads();
44845 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44846 wxPyEndAllowThreads(__tstate);
44847 if (PyErr_Occurred()) SWIG_fail;
44848 }
44849 {
44850 #if wxUSE_UNICODE
44851 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44852 #else
44853 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44854 #endif
44855 }
44856 return resultobj;
44857 fail:
44858 return NULL;
44859 }
44860
44861
44862 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44863 PyObject *resultobj = 0;
44864 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44865 wxString *arg2 = 0 ;
44866 void *argp1 = 0 ;
44867 int res1 = 0 ;
44868 bool temp2 = false ;
44869 PyObject * obj0 = 0 ;
44870 PyObject * obj1 = 0 ;
44871 char * kwnames[] = {
44872 (char *) "self",(char *) "p", NULL
44873 };
44874
44875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44877 if (!SWIG_IsOK(res1)) {
44878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44879 }
44880 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44881 {
44882 arg2 = wxString_in_helper(obj1);
44883 if (arg2 == NULL) SWIG_fail;
44884 temp2 = true;
44885 }
44886 {
44887 PyThreadState* __tstate = wxPyBeginAllowThreads();
44888 (arg1)->SetPath((wxString const &)*arg2);
44889 wxPyEndAllowThreads(__tstate);
44890 if (PyErr_Occurred()) SWIG_fail;
44891 }
44892 resultobj = SWIG_Py_Void();
44893 {
44894 if (temp2)
44895 delete arg2;
44896 }
44897 return resultobj;
44898 fail:
44899 {
44900 if (temp2)
44901 delete arg2;
44902 }
44903 return NULL;
44904 }
44905
44906
44907 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44908 PyObject *obj;
44909 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44910 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44911 return SWIG_Py_Void();
44912 }
44913
44914 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44915 return SWIG_Python_InitShadowInstance(args);
44916 }
44917
44918 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44919 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44920 return 1;
44921 }
44922
44923
44924 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44925 PyObject *pyobj = 0;
44926
44927 {
44928 #if wxUSE_UNICODE
44929 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44930 #else
44931 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44932 #endif
44933 }
44934 return pyobj;
44935 }
44936
44937
44938 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44939 PyObject *resultobj = 0;
44940 wxWindow *arg1 = (wxWindow *) 0 ;
44941 int arg2 = (int) -1 ;
44942 wxFont const &arg3_defvalue = wxNullFont ;
44943 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44944 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44945 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44946 wxSize const &arg5_defvalue = wxDefaultSize ;
44947 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44948 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44949 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44950 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44951 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44952 wxString *arg8 = (wxString *) &arg8_defvalue ;
44953 wxFontPickerCtrl *result = 0 ;
44954 void *argp1 = 0 ;
44955 int res1 = 0 ;
44956 int val2 ;
44957 int ecode2 = 0 ;
44958 void *argp3 = 0 ;
44959 int res3 = 0 ;
44960 wxPoint temp4 ;
44961 wxSize temp5 ;
44962 long val6 ;
44963 int ecode6 = 0 ;
44964 void *argp7 = 0 ;
44965 int res7 = 0 ;
44966 bool temp8 = false ;
44967 PyObject * obj0 = 0 ;
44968 PyObject * obj1 = 0 ;
44969 PyObject * obj2 = 0 ;
44970 PyObject * obj3 = 0 ;
44971 PyObject * obj4 = 0 ;
44972 PyObject * obj5 = 0 ;
44973 PyObject * obj6 = 0 ;
44974 PyObject * obj7 = 0 ;
44975 char * kwnames[] = {
44976 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44977 };
44978
44979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44981 if (!SWIG_IsOK(res1)) {
44982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44983 }
44984 arg1 = reinterpret_cast< wxWindow * >(argp1);
44985 if (obj1) {
44986 ecode2 = SWIG_AsVal_int(obj1, &val2);
44987 if (!SWIG_IsOK(ecode2)) {
44988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44989 }
44990 arg2 = static_cast< int >(val2);
44991 }
44992 if (obj2) {
44993 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44994 if (!SWIG_IsOK(res3)) {
44995 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44996 }
44997 if (!argp3) {
44998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44999 }
45000 arg3 = reinterpret_cast< wxFont * >(argp3);
45001 }
45002 if (obj3) {
45003 {
45004 arg4 = &temp4;
45005 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45006 }
45007 }
45008 if (obj4) {
45009 {
45010 arg5 = &temp5;
45011 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45012 }
45013 }
45014 if (obj5) {
45015 ecode6 = SWIG_AsVal_long(obj5, &val6);
45016 if (!SWIG_IsOK(ecode6)) {
45017 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
45018 }
45019 arg6 = static_cast< long >(val6);
45020 }
45021 if (obj6) {
45022 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45023 if (!SWIG_IsOK(res7)) {
45024 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45025 }
45026 if (!argp7) {
45027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45028 }
45029 arg7 = reinterpret_cast< wxValidator * >(argp7);
45030 }
45031 if (obj7) {
45032 {
45033 arg8 = wxString_in_helper(obj7);
45034 if (arg8 == NULL) SWIG_fail;
45035 temp8 = true;
45036 }
45037 }
45038 {
45039 if (!wxPyCheckForApp()) SWIG_fail;
45040 PyThreadState* __tstate = wxPyBeginAllowThreads();
45041 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45042 wxPyEndAllowThreads(__tstate);
45043 if (PyErr_Occurred()) SWIG_fail;
45044 }
45045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
45046 {
45047 if (temp8)
45048 delete arg8;
45049 }
45050 return resultobj;
45051 fail:
45052 {
45053 if (temp8)
45054 delete arg8;
45055 }
45056 return NULL;
45057 }
45058
45059
45060 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45061 PyObject *resultobj = 0;
45062 wxFontPickerCtrl *result = 0 ;
45063
45064 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45065 {
45066 if (!wxPyCheckForApp()) SWIG_fail;
45067 PyThreadState* __tstate = wxPyBeginAllowThreads();
45068 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45069 wxPyEndAllowThreads(__tstate);
45070 if (PyErr_Occurred()) SWIG_fail;
45071 }
45072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45073 return resultobj;
45074 fail:
45075 return NULL;
45076 }
45077
45078
45079 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45080 PyObject *resultobj = 0;
45081 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45082 wxWindow *arg2 = (wxWindow *) 0 ;
45083 int arg3 = (int) -1 ;
45084 wxFont const &arg4_defvalue = wxNullFont ;
45085 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45086 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45087 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45088 wxSize const &arg6_defvalue = wxDefaultSize ;
45089 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45090 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45091 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45092 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45093 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45094 wxString *arg9 = (wxString *) &arg9_defvalue ;
45095 bool result;
45096 void *argp1 = 0 ;
45097 int res1 = 0 ;
45098 void *argp2 = 0 ;
45099 int res2 = 0 ;
45100 int val3 ;
45101 int ecode3 = 0 ;
45102 void *argp4 = 0 ;
45103 int res4 = 0 ;
45104 wxPoint temp5 ;
45105 wxSize temp6 ;
45106 long val7 ;
45107 int ecode7 = 0 ;
45108 void *argp8 = 0 ;
45109 int res8 = 0 ;
45110 bool temp9 = false ;
45111 PyObject * obj0 = 0 ;
45112 PyObject * obj1 = 0 ;
45113 PyObject * obj2 = 0 ;
45114 PyObject * obj3 = 0 ;
45115 PyObject * obj4 = 0 ;
45116 PyObject * obj5 = 0 ;
45117 PyObject * obj6 = 0 ;
45118 PyObject * obj7 = 0 ;
45119 PyObject * obj8 = 0 ;
45120 char * kwnames[] = {
45121 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45122 };
45123
45124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45126 if (!SWIG_IsOK(res1)) {
45127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45128 }
45129 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45130 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45131 if (!SWIG_IsOK(res2)) {
45132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45133 }
45134 arg2 = reinterpret_cast< wxWindow * >(argp2);
45135 if (obj2) {
45136 ecode3 = SWIG_AsVal_int(obj2, &val3);
45137 if (!SWIG_IsOK(ecode3)) {
45138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45139 }
45140 arg3 = static_cast< int >(val3);
45141 }
45142 if (obj3) {
45143 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45144 if (!SWIG_IsOK(res4)) {
45145 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45146 }
45147 if (!argp4) {
45148 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45149 }
45150 arg4 = reinterpret_cast< wxFont * >(argp4);
45151 }
45152 if (obj4) {
45153 {
45154 arg5 = &temp5;
45155 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45156 }
45157 }
45158 if (obj5) {
45159 {
45160 arg6 = &temp6;
45161 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45162 }
45163 }
45164 if (obj6) {
45165 ecode7 = SWIG_AsVal_long(obj6, &val7);
45166 if (!SWIG_IsOK(ecode7)) {
45167 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45168 }
45169 arg7 = static_cast< long >(val7);
45170 }
45171 if (obj7) {
45172 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45173 if (!SWIG_IsOK(res8)) {
45174 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45175 }
45176 if (!argp8) {
45177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45178 }
45179 arg8 = reinterpret_cast< wxValidator * >(argp8);
45180 }
45181 if (obj8) {
45182 {
45183 arg9 = wxString_in_helper(obj8);
45184 if (arg9 == NULL) SWIG_fail;
45185 temp9 = true;
45186 }
45187 }
45188 {
45189 PyThreadState* __tstate = wxPyBeginAllowThreads();
45190 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45191 wxPyEndAllowThreads(__tstate);
45192 if (PyErr_Occurred()) SWIG_fail;
45193 }
45194 {
45195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45196 }
45197 {
45198 if (temp9)
45199 delete arg9;
45200 }
45201 return resultobj;
45202 fail:
45203 {
45204 if (temp9)
45205 delete arg9;
45206 }
45207 return NULL;
45208 }
45209
45210
45211 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45212 PyObject *resultobj = 0;
45213 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45214 wxFont result;
45215 void *argp1 = 0 ;
45216 int res1 = 0 ;
45217 PyObject *swig_obj[1] ;
45218
45219 if (!args) SWIG_fail;
45220 swig_obj[0] = args;
45221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45222 if (!SWIG_IsOK(res1)) {
45223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45224 }
45225 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45226 {
45227 PyThreadState* __tstate = wxPyBeginAllowThreads();
45228 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45229 wxPyEndAllowThreads(__tstate);
45230 if (PyErr_Occurred()) SWIG_fail;
45231 }
45232 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45233 return resultobj;
45234 fail:
45235 return NULL;
45236 }
45237
45238
45239 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45240 PyObject *resultobj = 0;
45241 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45242 wxFont *arg2 = 0 ;
45243 void *argp1 = 0 ;
45244 int res1 = 0 ;
45245 void *argp2 = 0 ;
45246 int res2 = 0 ;
45247 PyObject * obj0 = 0 ;
45248 PyObject * obj1 = 0 ;
45249 char * kwnames[] = {
45250 (char *) "self",(char *) "f", NULL
45251 };
45252
45253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45255 if (!SWIG_IsOK(res1)) {
45256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45257 }
45258 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45259 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45260 if (!SWIG_IsOK(res2)) {
45261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45262 }
45263 if (!argp2) {
45264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45265 }
45266 arg2 = reinterpret_cast< wxFont * >(argp2);
45267 {
45268 PyThreadState* __tstate = wxPyBeginAllowThreads();
45269 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45270 wxPyEndAllowThreads(__tstate);
45271 if (PyErr_Occurred()) SWIG_fail;
45272 }
45273 resultobj = SWIG_Py_Void();
45274 return resultobj;
45275 fail:
45276 return NULL;
45277 }
45278
45279
45280 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45281 PyObject *resultobj = 0;
45282 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45283 unsigned int arg2 ;
45284 void *argp1 = 0 ;
45285 int res1 = 0 ;
45286 unsigned int val2 ;
45287 int ecode2 = 0 ;
45288 PyObject * obj0 = 0 ;
45289 PyObject * obj1 = 0 ;
45290 char * kwnames[] = {
45291 (char *) "self",(char *) "max", NULL
45292 };
45293
45294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45296 if (!SWIG_IsOK(res1)) {
45297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45298 }
45299 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45300 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45301 if (!SWIG_IsOK(ecode2)) {
45302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45303 }
45304 arg2 = static_cast< unsigned int >(val2);
45305 {
45306 PyThreadState* __tstate = wxPyBeginAllowThreads();
45307 (arg1)->SetMaxPointSize(arg2);
45308 wxPyEndAllowThreads(__tstate);
45309 if (PyErr_Occurred()) SWIG_fail;
45310 }
45311 resultobj = SWIG_Py_Void();
45312 return resultobj;
45313 fail:
45314 return NULL;
45315 }
45316
45317
45318 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45319 PyObject *resultobj = 0;
45320 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45321 unsigned int result;
45322 void *argp1 = 0 ;
45323 int res1 = 0 ;
45324 PyObject *swig_obj[1] ;
45325
45326 if (!args) SWIG_fail;
45327 swig_obj[0] = args;
45328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45329 if (!SWIG_IsOK(res1)) {
45330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45331 }
45332 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45333 {
45334 PyThreadState* __tstate = wxPyBeginAllowThreads();
45335 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45336 wxPyEndAllowThreads(__tstate);
45337 if (PyErr_Occurred()) SWIG_fail;
45338 }
45339 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45340 return resultobj;
45341 fail:
45342 return NULL;
45343 }
45344
45345
45346 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45347 PyObject *obj;
45348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45349 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45350 return SWIG_Py_Void();
45351 }
45352
45353 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45354 return SWIG_Python_InitShadowInstance(args);
45355 }
45356
45357 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45358 PyObject *resultobj = 0;
45359 wxObject *arg1 = (wxObject *) 0 ;
45360 int arg2 ;
45361 wxFont *arg3 = 0 ;
45362 wxFontPickerEvent *result = 0 ;
45363 void *argp1 = 0 ;
45364 int res1 = 0 ;
45365 int val2 ;
45366 int ecode2 = 0 ;
45367 void *argp3 = 0 ;
45368 int res3 = 0 ;
45369 PyObject * obj0 = 0 ;
45370 PyObject * obj1 = 0 ;
45371 PyObject * obj2 = 0 ;
45372 char * kwnames[] = {
45373 (char *) "generator",(char *) "id",(char *) "f", NULL
45374 };
45375
45376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45378 if (!SWIG_IsOK(res1)) {
45379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45380 }
45381 arg1 = reinterpret_cast< wxObject * >(argp1);
45382 ecode2 = SWIG_AsVal_int(obj1, &val2);
45383 if (!SWIG_IsOK(ecode2)) {
45384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45385 }
45386 arg2 = static_cast< int >(val2);
45387 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45388 if (!SWIG_IsOK(res3)) {
45389 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45390 }
45391 if (!argp3) {
45392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45393 }
45394 arg3 = reinterpret_cast< wxFont * >(argp3);
45395 {
45396 PyThreadState* __tstate = wxPyBeginAllowThreads();
45397 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45398 wxPyEndAllowThreads(__tstate);
45399 if (PyErr_Occurred()) SWIG_fail;
45400 }
45401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45402 return resultobj;
45403 fail:
45404 return NULL;
45405 }
45406
45407
45408 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45409 PyObject *resultobj = 0;
45410 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45411 wxFont result;
45412 void *argp1 = 0 ;
45413 int res1 = 0 ;
45414 PyObject *swig_obj[1] ;
45415
45416 if (!args) SWIG_fail;
45417 swig_obj[0] = args;
45418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45419 if (!SWIG_IsOK(res1)) {
45420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45421 }
45422 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45423 {
45424 PyThreadState* __tstate = wxPyBeginAllowThreads();
45425 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45426 wxPyEndAllowThreads(__tstate);
45427 if (PyErr_Occurred()) SWIG_fail;
45428 }
45429 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45430 return resultobj;
45431 fail:
45432 return NULL;
45433 }
45434
45435
45436 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45437 PyObject *resultobj = 0;
45438 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45439 wxFont *arg2 = 0 ;
45440 void *argp1 = 0 ;
45441 int res1 = 0 ;
45442 void *argp2 = 0 ;
45443 int res2 = 0 ;
45444 PyObject * obj0 = 0 ;
45445 PyObject * obj1 = 0 ;
45446 char * kwnames[] = {
45447 (char *) "self",(char *) "c", NULL
45448 };
45449
45450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45452 if (!SWIG_IsOK(res1)) {
45453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45454 }
45455 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45456 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45457 if (!SWIG_IsOK(res2)) {
45458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45459 }
45460 if (!argp2) {
45461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45462 }
45463 arg2 = reinterpret_cast< wxFont * >(argp2);
45464 {
45465 PyThreadState* __tstate = wxPyBeginAllowThreads();
45466 (arg1)->SetFont((wxFont const &)*arg2);
45467 wxPyEndAllowThreads(__tstate);
45468 if (PyErr_Occurred()) SWIG_fail;
45469 }
45470 resultobj = SWIG_Py_Void();
45471 return resultobj;
45472 fail:
45473 return NULL;
45474 }
45475
45476
45477 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45478 PyObject *obj;
45479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45480 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45481 return SWIG_Py_Void();
45482 }
45483
45484 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45485 return SWIG_Python_InitShadowInstance(args);
45486 }
45487
45488 SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45489 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45490 return 1;
45491 }
45492
45493
45494 SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45495 PyObject *pyobj = 0;
45496
45497 {
45498 #if wxUSE_UNICODE
45499 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45500 #else
45501 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45502 #endif
45503 }
45504 return pyobj;
45505 }
45506
45507
45508 SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45509 PyObject *resultobj = 0;
45510 wxWindow *arg1 = (wxWindow *) 0 ;
45511 int arg2 = (int) -1 ;
45512 wxString const &arg3_defvalue = wxPyEmptyString ;
45513 wxString *arg3 = (wxString *) &arg3_defvalue ;
45514 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45515 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45516 wxSize const &arg5_defvalue = wxDefaultSize ;
45517 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45518 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45519 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45520 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45521 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45522 wxString *arg8 = (wxString *) &arg8_defvalue ;
45523 wxCollapsiblePane *result = 0 ;
45524 void *argp1 = 0 ;
45525 int res1 = 0 ;
45526 int val2 ;
45527 int ecode2 = 0 ;
45528 bool temp3 = false ;
45529 wxPoint temp4 ;
45530 wxSize temp5 ;
45531 long val6 ;
45532 int ecode6 = 0 ;
45533 void *argp7 = 0 ;
45534 int res7 = 0 ;
45535 bool temp8 = false ;
45536 PyObject * obj0 = 0 ;
45537 PyObject * obj1 = 0 ;
45538 PyObject * obj2 = 0 ;
45539 PyObject * obj3 = 0 ;
45540 PyObject * obj4 = 0 ;
45541 PyObject * obj5 = 0 ;
45542 PyObject * obj6 = 0 ;
45543 PyObject * obj7 = 0 ;
45544 char * kwnames[] = {
45545 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45546 };
45547
45548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45550 if (!SWIG_IsOK(res1)) {
45551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45552 }
45553 arg1 = reinterpret_cast< wxWindow * >(argp1);
45554 if (obj1) {
45555 ecode2 = SWIG_AsVal_int(obj1, &val2);
45556 if (!SWIG_IsOK(ecode2)) {
45557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45558 }
45559 arg2 = static_cast< int >(val2);
45560 }
45561 if (obj2) {
45562 {
45563 arg3 = wxString_in_helper(obj2);
45564 if (arg3 == NULL) SWIG_fail;
45565 temp3 = true;
45566 }
45567 }
45568 if (obj3) {
45569 {
45570 arg4 = &temp4;
45571 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45572 }
45573 }
45574 if (obj4) {
45575 {
45576 arg5 = &temp5;
45577 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45578 }
45579 }
45580 if (obj5) {
45581 ecode6 = SWIG_AsVal_long(obj5, &val6);
45582 if (!SWIG_IsOK(ecode6)) {
45583 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45584 }
45585 arg6 = static_cast< long >(val6);
45586 }
45587 if (obj6) {
45588 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45589 if (!SWIG_IsOK(res7)) {
45590 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45591 }
45592 if (!argp7) {
45593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45594 }
45595 arg7 = reinterpret_cast< wxValidator * >(argp7);
45596 }
45597 if (obj7) {
45598 {
45599 arg8 = wxString_in_helper(obj7);
45600 if (arg8 == NULL) SWIG_fail;
45601 temp8 = true;
45602 }
45603 }
45604 {
45605 if (!wxPyCheckForApp()) SWIG_fail;
45606 PyThreadState* __tstate = wxPyBeginAllowThreads();
45607 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45608 wxPyEndAllowThreads(__tstate);
45609 if (PyErr_Occurred()) SWIG_fail;
45610 }
45611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45612 {
45613 if (temp3)
45614 delete arg3;
45615 }
45616 {
45617 if (temp8)
45618 delete arg8;
45619 }
45620 return resultobj;
45621 fail:
45622 {
45623 if (temp3)
45624 delete arg3;
45625 }
45626 {
45627 if (temp8)
45628 delete arg8;
45629 }
45630 return NULL;
45631 }
45632
45633
45634 SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45635 PyObject *resultobj = 0;
45636 wxCollapsiblePane *result = 0 ;
45637
45638 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45639 {
45640 if (!wxPyCheckForApp()) SWIG_fail;
45641 PyThreadState* __tstate = wxPyBeginAllowThreads();
45642 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45643 wxPyEndAllowThreads(__tstate);
45644 if (PyErr_Occurred()) SWIG_fail;
45645 }
45646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45647 return resultobj;
45648 fail:
45649 return NULL;
45650 }
45651
45652
45653 SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45654 PyObject *resultobj = 0;
45655 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45656 wxWindow *arg2 = (wxWindow *) 0 ;
45657 int arg3 = (int) -1 ;
45658 wxString const &arg4_defvalue = wxPyEmptyString ;
45659 wxString *arg4 = (wxString *) &arg4_defvalue ;
45660 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45661 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45662 wxSize const &arg6_defvalue = wxDefaultSize ;
45663 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45664 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45665 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45666 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45667 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45668 wxString *arg9 = (wxString *) &arg9_defvalue ;
45669 bool result;
45670 void *argp1 = 0 ;
45671 int res1 = 0 ;
45672 void *argp2 = 0 ;
45673 int res2 = 0 ;
45674 int val3 ;
45675 int ecode3 = 0 ;
45676 bool temp4 = false ;
45677 wxPoint temp5 ;
45678 wxSize temp6 ;
45679 long val7 ;
45680 int ecode7 = 0 ;
45681 void *argp8 = 0 ;
45682 int res8 = 0 ;
45683 bool temp9 = false ;
45684 PyObject * obj0 = 0 ;
45685 PyObject * obj1 = 0 ;
45686 PyObject * obj2 = 0 ;
45687 PyObject * obj3 = 0 ;
45688 PyObject * obj4 = 0 ;
45689 PyObject * obj5 = 0 ;
45690 PyObject * obj6 = 0 ;
45691 PyObject * obj7 = 0 ;
45692 PyObject * obj8 = 0 ;
45693 char * kwnames[] = {
45694 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45695 };
45696
45697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45699 if (!SWIG_IsOK(res1)) {
45700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45701 }
45702 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45703 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45704 if (!SWIG_IsOK(res2)) {
45705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45706 }
45707 arg2 = reinterpret_cast< wxWindow * >(argp2);
45708 if (obj2) {
45709 ecode3 = SWIG_AsVal_int(obj2, &val3);
45710 if (!SWIG_IsOK(ecode3)) {
45711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45712 }
45713 arg3 = static_cast< int >(val3);
45714 }
45715 if (obj3) {
45716 {
45717 arg4 = wxString_in_helper(obj3);
45718 if (arg4 == NULL) SWIG_fail;
45719 temp4 = true;
45720 }
45721 }
45722 if (obj4) {
45723 {
45724 arg5 = &temp5;
45725 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45726 }
45727 }
45728 if (obj5) {
45729 {
45730 arg6 = &temp6;
45731 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45732 }
45733 }
45734 if (obj6) {
45735 ecode7 = SWIG_AsVal_long(obj6, &val7);
45736 if (!SWIG_IsOK(ecode7)) {
45737 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45738 }
45739 arg7 = static_cast< long >(val7);
45740 }
45741 if (obj7) {
45742 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45743 if (!SWIG_IsOK(res8)) {
45744 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45745 }
45746 if (!argp8) {
45747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45748 }
45749 arg8 = reinterpret_cast< wxValidator * >(argp8);
45750 }
45751 if (obj8) {
45752 {
45753 arg9 = wxString_in_helper(obj8);
45754 if (arg9 == NULL) SWIG_fail;
45755 temp9 = true;
45756 }
45757 }
45758 {
45759 PyThreadState* __tstate = wxPyBeginAllowThreads();
45760 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45761 wxPyEndAllowThreads(__tstate);
45762 if (PyErr_Occurred()) SWIG_fail;
45763 }
45764 {
45765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45766 }
45767 {
45768 if (temp4)
45769 delete arg4;
45770 }
45771 {
45772 if (temp9)
45773 delete arg9;
45774 }
45775 return resultobj;
45776 fail:
45777 {
45778 if (temp4)
45779 delete arg4;
45780 }
45781 {
45782 if (temp9)
45783 delete arg9;
45784 }
45785 return NULL;
45786 }
45787
45788
45789 SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45790 PyObject *resultobj = 0;
45791 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45792 bool arg2 = (bool) true ;
45793 void *argp1 = 0 ;
45794 int res1 = 0 ;
45795 bool val2 ;
45796 int ecode2 = 0 ;
45797 PyObject * obj0 = 0 ;
45798 PyObject * obj1 = 0 ;
45799 char * kwnames[] = {
45800 (char *) "self",(char *) "collapse", NULL
45801 };
45802
45803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
45804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45805 if (!SWIG_IsOK(res1)) {
45806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45807 }
45808 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45809 if (obj1) {
45810 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45811 if (!SWIG_IsOK(ecode2)) {
45812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
45813 }
45814 arg2 = static_cast< bool >(val2);
45815 }
45816 {
45817 PyThreadState* __tstate = wxPyBeginAllowThreads();
45818 (arg1)->Collapse(arg2);
45819 wxPyEndAllowThreads(__tstate);
45820 if (PyErr_Occurred()) SWIG_fail;
45821 }
45822 resultobj = SWIG_Py_Void();
45823 return resultobj;
45824 fail:
45825 return NULL;
45826 }
45827
45828
45829 SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45830 PyObject *resultobj = 0;
45831 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45832 void *argp1 = 0 ;
45833 int res1 = 0 ;
45834 PyObject *swig_obj[1] ;
45835
45836 if (!args) SWIG_fail;
45837 swig_obj[0] = args;
45838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45839 if (!SWIG_IsOK(res1)) {
45840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45841 }
45842 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45843 {
45844 PyThreadState* __tstate = wxPyBeginAllowThreads();
45845 (arg1)->Expand();
45846 wxPyEndAllowThreads(__tstate);
45847 if (PyErr_Occurred()) SWIG_fail;
45848 }
45849 resultobj = SWIG_Py_Void();
45850 return resultobj;
45851 fail:
45852 return NULL;
45853 }
45854
45855
45856 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45857 PyObject *resultobj = 0;
45858 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45859 bool result;
45860 void *argp1 = 0 ;
45861 int res1 = 0 ;
45862 PyObject *swig_obj[1] ;
45863
45864 if (!args) SWIG_fail;
45865 swig_obj[0] = args;
45866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45867 if (!SWIG_IsOK(res1)) {
45868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45869 }
45870 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45871 {
45872 PyThreadState* __tstate = wxPyBeginAllowThreads();
45873 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
45874 wxPyEndAllowThreads(__tstate);
45875 if (PyErr_Occurred()) SWIG_fail;
45876 }
45877 {
45878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45879 }
45880 return resultobj;
45881 fail:
45882 return NULL;
45883 }
45884
45885
45886 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45887 PyObject *resultobj = 0;
45888 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45889 bool result;
45890 void *argp1 = 0 ;
45891 int res1 = 0 ;
45892 PyObject *swig_obj[1] ;
45893
45894 if (!args) SWIG_fail;
45895 swig_obj[0] = args;
45896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45897 if (!SWIG_IsOK(res1)) {
45898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45899 }
45900 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45901 {
45902 PyThreadState* __tstate = wxPyBeginAllowThreads();
45903 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
45904 wxPyEndAllowThreads(__tstate);
45905 if (PyErr_Occurred()) SWIG_fail;
45906 }
45907 {
45908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45909 }
45910 return resultobj;
45911 fail:
45912 return NULL;
45913 }
45914
45915
45916 SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45917 PyObject *resultobj = 0;
45918 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45919 wxWindow *result = 0 ;
45920 void *argp1 = 0 ;
45921 int res1 = 0 ;
45922 PyObject *swig_obj[1] ;
45923
45924 if (!args) SWIG_fail;
45925 swig_obj[0] = args;
45926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45927 if (!SWIG_IsOK(res1)) {
45928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45929 }
45930 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45931 {
45932 PyThreadState* __tstate = wxPyBeginAllowThreads();
45933 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
45934 wxPyEndAllowThreads(__tstate);
45935 if (PyErr_Occurred()) SWIG_fail;
45936 }
45937 {
45938 resultobj = wxPyMake_wxObject(result, 0);
45939 }
45940 return resultobj;
45941 fail:
45942 return NULL;
45943 }
45944
45945
45946 SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45947 PyObject *obj;
45948 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45949 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
45950 return SWIG_Py_Void();
45951 }
45952
45953 SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45954 return SWIG_Python_InitShadowInstance(args);
45955 }
45956
45957 SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45958 PyObject *resultobj = 0;
45959 wxObject *arg1 = (wxObject *) 0 ;
45960 int arg2 ;
45961 bool arg3 ;
45962 wxCollapsiblePaneEvent *result = 0 ;
45963 void *argp1 = 0 ;
45964 int res1 = 0 ;
45965 int val2 ;
45966 int ecode2 = 0 ;
45967 bool val3 ;
45968 int ecode3 = 0 ;
45969 PyObject * obj0 = 0 ;
45970 PyObject * obj1 = 0 ;
45971 PyObject * obj2 = 0 ;
45972 char * kwnames[] = {
45973 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
45974 };
45975
45976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45978 if (!SWIG_IsOK(res1)) {
45979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45980 }
45981 arg1 = reinterpret_cast< wxObject * >(argp1);
45982 ecode2 = SWIG_AsVal_int(obj1, &val2);
45983 if (!SWIG_IsOK(ecode2)) {
45984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
45985 }
45986 arg2 = static_cast< int >(val2);
45987 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45988 if (!SWIG_IsOK(ecode3)) {
45989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
45990 }
45991 arg3 = static_cast< bool >(val3);
45992 {
45993 PyThreadState* __tstate = wxPyBeginAllowThreads();
45994 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
45995 wxPyEndAllowThreads(__tstate);
45996 if (PyErr_Occurred()) SWIG_fail;
45997 }
45998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
45999 return resultobj;
46000 fail:
46001 return NULL;
46002 }
46003
46004
46005 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46006 PyObject *resultobj = 0;
46007 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46008 bool result;
46009 void *argp1 = 0 ;
46010 int res1 = 0 ;
46011 PyObject *swig_obj[1] ;
46012
46013 if (!args) SWIG_fail;
46014 swig_obj[0] = args;
46015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46016 if (!SWIG_IsOK(res1)) {
46017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
46018 }
46019 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46020 {
46021 PyThreadState* __tstate = wxPyBeginAllowThreads();
46022 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
46023 wxPyEndAllowThreads(__tstate);
46024 if (PyErr_Occurred()) SWIG_fail;
46025 }
46026 {
46027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46028 }
46029 return resultobj;
46030 fail:
46031 return NULL;
46032 }
46033
46034
46035 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46036 PyObject *resultobj = 0;
46037 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46038 bool arg2 ;
46039 void *argp1 = 0 ;
46040 int res1 = 0 ;
46041 bool val2 ;
46042 int ecode2 = 0 ;
46043 PyObject * obj0 = 0 ;
46044 PyObject * obj1 = 0 ;
46045 char * kwnames[] = {
46046 (char *) "self",(char *) "c", NULL
46047 };
46048
46049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
46050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46051 if (!SWIG_IsOK(res1)) {
46052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
46053 }
46054 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46055 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46056 if (!SWIG_IsOK(ecode2)) {
46057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
46058 }
46059 arg2 = static_cast< bool >(val2);
46060 {
46061 PyThreadState* __tstate = wxPyBeginAllowThreads();
46062 (arg1)->SetCollapsed(arg2);
46063 wxPyEndAllowThreads(__tstate);
46064 if (PyErr_Occurred()) SWIG_fail;
46065 }
46066 resultobj = SWIG_Py_Void();
46067 return resultobj;
46068 fail:
46069 return NULL;
46070 }
46071
46072
46073 SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46074 PyObject *obj;
46075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46076 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46077 return SWIG_Py_Void();
46078 }
46079
46080 SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46081 return SWIG_Python_InitShadowInstance(args);
46082 }
46083
46084 SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
46085 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
46086 return 1;
46087 }
46088
46089
46090 SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
46091 PyObject *pyobj = 0;
46092
46093 {
46094 #if wxUSE_UNICODE
46095 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46096 #else
46097 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46098 #endif
46099 }
46100 return pyobj;
46101 }
46102
46103
46104 SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46105 PyObject *resultobj = 0;
46106 wxWindow *arg1 = (wxWindow *) 0 ;
46107 int arg2 = (int) -1 ;
46108 wxString const &arg3_defvalue = wxEmptyString ;
46109 wxString *arg3 = (wxString *) &arg3_defvalue ;
46110 wxPoint const &arg4_defvalue = wxDefaultPosition ;
46111 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
46112 wxSize const &arg5_defvalue = wxDefaultSize ;
46113 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
46114 long arg6 = (long) 0 ;
46115 wxValidator const &arg7_defvalue = wxDefaultValidator ;
46116 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
46117 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
46118 wxString *arg8 = (wxString *) &arg8_defvalue ;
46119 wxSearchCtrl *result = 0 ;
46120 void *argp1 = 0 ;
46121 int res1 = 0 ;
46122 int val2 ;
46123 int ecode2 = 0 ;
46124 bool temp3 = false ;
46125 wxPoint temp4 ;
46126 wxSize temp5 ;
46127 long val6 ;
46128 int ecode6 = 0 ;
46129 void *argp7 = 0 ;
46130 int res7 = 0 ;
46131 bool temp8 = false ;
46132 PyObject * obj0 = 0 ;
46133 PyObject * obj1 = 0 ;
46134 PyObject * obj2 = 0 ;
46135 PyObject * obj3 = 0 ;
46136 PyObject * obj4 = 0 ;
46137 PyObject * obj5 = 0 ;
46138 PyObject * obj6 = 0 ;
46139 PyObject * obj7 = 0 ;
46140 char * kwnames[] = {
46141 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46142 };
46143
46144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46146 if (!SWIG_IsOK(res1)) {
46147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46148 }
46149 arg1 = reinterpret_cast< wxWindow * >(argp1);
46150 if (obj1) {
46151 ecode2 = SWIG_AsVal_int(obj1, &val2);
46152 if (!SWIG_IsOK(ecode2)) {
46153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46154 }
46155 arg2 = static_cast< int >(val2);
46156 }
46157 if (obj2) {
46158 {
46159 arg3 = wxString_in_helper(obj2);
46160 if (arg3 == NULL) SWIG_fail;
46161 temp3 = true;
46162 }
46163 }
46164 if (obj3) {
46165 {
46166 arg4 = &temp4;
46167 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46168 }
46169 }
46170 if (obj4) {
46171 {
46172 arg5 = &temp5;
46173 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46174 }
46175 }
46176 if (obj5) {
46177 ecode6 = SWIG_AsVal_long(obj5, &val6);
46178 if (!SWIG_IsOK(ecode6)) {
46179 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46180 }
46181 arg6 = static_cast< long >(val6);
46182 }
46183 if (obj6) {
46184 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46185 if (!SWIG_IsOK(res7)) {
46186 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46187 }
46188 if (!argp7) {
46189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46190 }
46191 arg7 = reinterpret_cast< wxValidator * >(argp7);
46192 }
46193 if (obj7) {
46194 {
46195 arg8 = wxString_in_helper(obj7);
46196 if (arg8 == NULL) SWIG_fail;
46197 temp8 = true;
46198 }
46199 }
46200 {
46201 if (!wxPyCheckForApp()) SWIG_fail;
46202 PyThreadState* __tstate = wxPyBeginAllowThreads();
46203 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46204 wxPyEndAllowThreads(__tstate);
46205 if (PyErr_Occurred()) SWIG_fail;
46206 }
46207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46208 {
46209 if (temp3)
46210 delete arg3;
46211 }
46212 {
46213 if (temp8)
46214 delete arg8;
46215 }
46216 return resultobj;
46217 fail:
46218 {
46219 if (temp3)
46220 delete arg3;
46221 }
46222 {
46223 if (temp8)
46224 delete arg8;
46225 }
46226 return NULL;
46227 }
46228
46229
46230 SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46231 PyObject *resultobj = 0;
46232 wxSearchCtrl *result = 0 ;
46233
46234 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46235 {
46236 if (!wxPyCheckForApp()) SWIG_fail;
46237 PyThreadState* __tstate = wxPyBeginAllowThreads();
46238 result = (wxSearchCtrl *)new wxSearchCtrl();
46239 wxPyEndAllowThreads(__tstate);
46240 if (PyErr_Occurred()) SWIG_fail;
46241 }
46242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46243 return resultobj;
46244 fail:
46245 return NULL;
46246 }
46247
46248
46249 SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46250 PyObject *resultobj = 0;
46251 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46252 wxWindow *arg2 = (wxWindow *) 0 ;
46253 int arg3 = (int) -1 ;
46254 wxString const &arg4_defvalue = wxEmptyString ;
46255 wxString *arg4 = (wxString *) &arg4_defvalue ;
46256 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46257 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46258 wxSize const &arg6_defvalue = wxDefaultSize ;
46259 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46260 long arg7 = (long) 0 ;
46261 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46262 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46263 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46264 wxString *arg9 = (wxString *) &arg9_defvalue ;
46265 bool result;
46266 void *argp1 = 0 ;
46267 int res1 = 0 ;
46268 void *argp2 = 0 ;
46269 int res2 = 0 ;
46270 int val3 ;
46271 int ecode3 = 0 ;
46272 bool temp4 = false ;
46273 wxPoint temp5 ;
46274 wxSize temp6 ;
46275 long val7 ;
46276 int ecode7 = 0 ;
46277 void *argp8 = 0 ;
46278 int res8 = 0 ;
46279 bool temp9 = false ;
46280 PyObject * obj0 = 0 ;
46281 PyObject * obj1 = 0 ;
46282 PyObject * obj2 = 0 ;
46283 PyObject * obj3 = 0 ;
46284 PyObject * obj4 = 0 ;
46285 PyObject * obj5 = 0 ;
46286 PyObject * obj6 = 0 ;
46287 PyObject * obj7 = 0 ;
46288 PyObject * obj8 = 0 ;
46289 char * kwnames[] = {
46290 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46291 };
46292
46293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46295 if (!SWIG_IsOK(res1)) {
46296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46297 }
46298 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46299 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46300 if (!SWIG_IsOK(res2)) {
46301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46302 }
46303 arg2 = reinterpret_cast< wxWindow * >(argp2);
46304 if (obj2) {
46305 ecode3 = SWIG_AsVal_int(obj2, &val3);
46306 if (!SWIG_IsOK(ecode3)) {
46307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46308 }
46309 arg3 = static_cast< int >(val3);
46310 }
46311 if (obj3) {
46312 {
46313 arg4 = wxString_in_helper(obj3);
46314 if (arg4 == NULL) SWIG_fail;
46315 temp4 = true;
46316 }
46317 }
46318 if (obj4) {
46319 {
46320 arg5 = &temp5;
46321 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46322 }
46323 }
46324 if (obj5) {
46325 {
46326 arg6 = &temp6;
46327 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46328 }
46329 }
46330 if (obj6) {
46331 ecode7 = SWIG_AsVal_long(obj6, &val7);
46332 if (!SWIG_IsOK(ecode7)) {
46333 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46334 }
46335 arg7 = static_cast< long >(val7);
46336 }
46337 if (obj7) {
46338 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46339 if (!SWIG_IsOK(res8)) {
46340 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46341 }
46342 if (!argp8) {
46343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46344 }
46345 arg8 = reinterpret_cast< wxValidator * >(argp8);
46346 }
46347 if (obj8) {
46348 {
46349 arg9 = wxString_in_helper(obj8);
46350 if (arg9 == NULL) SWIG_fail;
46351 temp9 = true;
46352 }
46353 }
46354 {
46355 PyThreadState* __tstate = wxPyBeginAllowThreads();
46356 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46357 wxPyEndAllowThreads(__tstate);
46358 if (PyErr_Occurred()) SWIG_fail;
46359 }
46360 {
46361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46362 }
46363 {
46364 if (temp4)
46365 delete arg4;
46366 }
46367 {
46368 if (temp9)
46369 delete arg9;
46370 }
46371 return resultobj;
46372 fail:
46373 {
46374 if (temp4)
46375 delete arg4;
46376 }
46377 {
46378 if (temp9)
46379 delete arg9;
46380 }
46381 return NULL;
46382 }
46383
46384
46385 SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46386 PyObject *resultobj = 0;
46387 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46388 wxMenu *arg2 = (wxMenu *) 0 ;
46389 void *argp1 = 0 ;
46390 int res1 = 0 ;
46391 void *argp2 = 0 ;
46392 int res2 = 0 ;
46393 PyObject * obj0 = 0 ;
46394 PyObject * obj1 = 0 ;
46395 char * kwnames[] = {
46396 (char *) "self",(char *) "menu", NULL
46397 };
46398
46399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46401 if (!SWIG_IsOK(res1)) {
46402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46403 }
46404 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46405 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46406 if (!SWIG_IsOK(res2)) {
46407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46408 }
46409 arg2 = reinterpret_cast< wxMenu * >(argp2);
46410 {
46411 PyThreadState* __tstate = wxPyBeginAllowThreads();
46412 (arg1)->SetMenu(arg2);
46413 wxPyEndAllowThreads(__tstate);
46414 if (PyErr_Occurred()) SWIG_fail;
46415 }
46416 resultobj = SWIG_Py_Void();
46417 return resultobj;
46418 fail:
46419 return NULL;
46420 }
46421
46422
46423 SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46424 PyObject *resultobj = 0;
46425 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46426 wxMenu *result = 0 ;
46427 void *argp1 = 0 ;
46428 int res1 = 0 ;
46429 PyObject *swig_obj[1] ;
46430
46431 if (!args) SWIG_fail;
46432 swig_obj[0] = args;
46433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46434 if (!SWIG_IsOK(res1)) {
46435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46436 }
46437 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46438 {
46439 PyThreadState* __tstate = wxPyBeginAllowThreads();
46440 result = (wxMenu *)(arg1)->GetMenu();
46441 wxPyEndAllowThreads(__tstate);
46442 if (PyErr_Occurred()) SWIG_fail;
46443 }
46444 {
46445 resultobj = wxPyMake_wxObject(result, 0);
46446 }
46447 return resultobj;
46448 fail:
46449 return NULL;
46450 }
46451
46452
46453 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowSearchButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46454 PyObject *resultobj = 0;
46455 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46456 bool arg2 ;
46457 void *argp1 = 0 ;
46458 int res1 = 0 ;
46459 bool val2 ;
46460 int ecode2 = 0 ;
46461 PyObject * obj0 = 0 ;
46462 PyObject * obj1 = 0 ;
46463 char * kwnames[] = {
46464 (char *) "self",(char *) "show", NULL
46465 };
46466
46467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowSearchButton",kwnames,&obj0,&obj1)) SWIG_fail;
46468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46469 if (!SWIG_IsOK(res1)) {
46470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46471 }
46472 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46473 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46474 if (!SWIG_IsOK(ecode2)) {
46475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "2"" of type '" "bool""'");
46476 }
46477 arg2 = static_cast< bool >(val2);
46478 {
46479 PyThreadState* __tstate = wxPyBeginAllowThreads();
46480 (arg1)->ShowSearchButton(arg2);
46481 wxPyEndAllowThreads(__tstate);
46482 if (PyErr_Occurred()) SWIG_fail;
46483 }
46484 resultobj = SWIG_Py_Void();
46485 return resultobj;
46486 fail:
46487 return NULL;
46488 }
46489
46490
46491 SWIGINTERN PyObject *_wrap_SearchCtrl_IsSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46492 PyObject *resultobj = 0;
46493 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46494 bool result;
46495 void *argp1 = 0 ;
46496 int res1 = 0 ;
46497 PyObject *swig_obj[1] ;
46498
46499 if (!args) SWIG_fail;
46500 swig_obj[0] = args;
46501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46502 if (!SWIG_IsOK(res1)) {
46503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46504 }
46505 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46506 {
46507 PyThreadState* __tstate = wxPyBeginAllowThreads();
46508 result = (bool)((wxSearchCtrl const *)arg1)->IsSearchButtonVisible();
46509 wxPyEndAllowThreads(__tstate);
46510 if (PyErr_Occurred()) SWIG_fail;
46511 }
46512 {
46513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46514 }
46515 return resultobj;
46516 fail:
46517 return NULL;
46518 }
46519
46520
46521 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46522 PyObject *resultobj = 0;
46523 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46524 bool arg2 ;
46525 void *argp1 = 0 ;
46526 int res1 = 0 ;
46527 bool val2 ;
46528 int ecode2 = 0 ;
46529 PyObject * obj0 = 0 ;
46530 PyObject * obj1 = 0 ;
46531 char * kwnames[] = {
46532 (char *) "self",(char *) "show", NULL
46533 };
46534
46535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
46536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46537 if (!SWIG_IsOK(res1)) {
46538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46539 }
46540 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46541 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46542 if (!SWIG_IsOK(ecode2)) {
46543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "2"" of type '" "bool""'");
46544 }
46545 arg2 = static_cast< bool >(val2);
46546 {
46547 PyThreadState* __tstate = wxPyBeginAllowThreads();
46548 (arg1)->ShowCancelButton(arg2);
46549 wxPyEndAllowThreads(__tstate);
46550 if (PyErr_Occurred()) SWIG_fail;
46551 }
46552 resultobj = SWIG_Py_Void();
46553 return resultobj;
46554 fail:
46555 return NULL;
46556 }
46557
46558
46559 SWIGINTERN PyObject *_wrap_SearchCtrl_IsCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46560 PyObject *resultobj = 0;
46561 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46562 bool result;
46563 void *argp1 = 0 ;
46564 int res1 = 0 ;
46565 PyObject *swig_obj[1] ;
46566
46567 if (!args) SWIG_fail;
46568 swig_obj[0] = args;
46569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46570 if (!SWIG_IsOK(res1)) {
46571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
46572 }
46573 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46574 {
46575 PyThreadState* __tstate = wxPyBeginAllowThreads();
46576 result = (bool)((wxSearchCtrl const *)arg1)->IsCancelButtonVisible();
46577 wxPyEndAllowThreads(__tstate);
46578 if (PyErr_Occurred()) SWIG_fail;
46579 }
46580 {
46581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46582 }
46583 return resultobj;
46584 fail:
46585 return NULL;
46586 }
46587
46588
46589 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46590 PyObject *resultobj = 0;
46591 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46592 wxBitmap *arg2 = 0 ;
46593 void *argp1 = 0 ;
46594 int res1 = 0 ;
46595 void *argp2 = 0 ;
46596 int res2 = 0 ;
46597 PyObject * obj0 = 0 ;
46598 PyObject * obj1 = 0 ;
46599 char * kwnames[] = {
46600 (char *) "self",(char *)"arg2", NULL
46601 };
46602
46603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46605 if (!SWIG_IsOK(res1)) {
46606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46607 }
46608 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46609 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46610 if (!SWIG_IsOK(res2)) {
46611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46612 }
46613 if (!argp2) {
46614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46615 }
46616 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46617 {
46618 PyThreadState* __tstate = wxPyBeginAllowThreads();
46619 wxSearchCtrl_SetSearchBitmap(arg1,(wxBitmap const &)*arg2);
46620 wxPyEndAllowThreads(__tstate);
46621 if (PyErr_Occurred()) SWIG_fail;
46622 }
46623 resultobj = SWIG_Py_Void();
46624 return resultobj;
46625 fail:
46626 return NULL;
46627 }
46628
46629
46630 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46631 PyObject *resultobj = 0;
46632 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46633 wxBitmap *arg2 = 0 ;
46634 void *argp1 = 0 ;
46635 int res1 = 0 ;
46636 void *argp2 = 0 ;
46637 int res2 = 0 ;
46638 PyObject * obj0 = 0 ;
46639 PyObject * obj1 = 0 ;
46640 char * kwnames[] = {
46641 (char *) "self",(char *)"arg2", NULL
46642 };
46643
46644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46646 if (!SWIG_IsOK(res1)) {
46647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46648 }
46649 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46651 if (!SWIG_IsOK(res2)) {
46652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46653 }
46654 if (!argp2) {
46655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46656 }
46657 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46658 {
46659 PyThreadState* __tstate = wxPyBeginAllowThreads();
46660 wxSearchCtrl_SetSearchMenuBitmap(arg1,(wxBitmap const &)*arg2);
46661 wxPyEndAllowThreads(__tstate);
46662 if (PyErr_Occurred()) SWIG_fail;
46663 }
46664 resultobj = SWIG_Py_Void();
46665 return resultobj;
46666 fail:
46667 return NULL;
46668 }
46669
46670
46671 SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46672 PyObject *resultobj = 0;
46673 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46674 wxBitmap *arg2 = 0 ;
46675 void *argp1 = 0 ;
46676 int res1 = 0 ;
46677 void *argp2 = 0 ;
46678 int res2 = 0 ;
46679 PyObject * obj0 = 0 ;
46680 PyObject * obj1 = 0 ;
46681 char * kwnames[] = {
46682 (char *) "self",(char *)"arg2", NULL
46683 };
46684
46685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
46686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46687 if (!SWIG_IsOK(res1)) {
46688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46689 }
46690 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46691 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
46692 if (!SWIG_IsOK(res2)) {
46693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46694 }
46695 if (!argp2) {
46696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
46697 }
46698 arg2 = reinterpret_cast< wxBitmap * >(argp2);
46699 {
46700 PyThreadState* __tstate = wxPyBeginAllowThreads();
46701 wxSearchCtrl_SetCancelBitmap(arg1,(wxBitmap const &)*arg2);
46702 wxPyEndAllowThreads(__tstate);
46703 if (PyErr_Occurred()) SWIG_fail;
46704 }
46705 resultobj = SWIG_Py_Void();
46706 return resultobj;
46707 fail:
46708 return NULL;
46709 }
46710
46711
46712 SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46713 PyObject *obj;
46714 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46715 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
46716 return SWIG_Py_Void();
46717 }
46718
46719 SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46720 return SWIG_Python_InitShadowInstance(args);
46721 }
46722
46723 static PyMethodDef SwigMethods[] = {
46724 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
46725 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
46726 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46727 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
46728 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
46729 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46730 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
46731 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
46732 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
46733 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
46734 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46735 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
46736 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
46737 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
46738 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
46739 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
46740 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
46741 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
46742 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46743 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46744 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
46745 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46746 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
46747 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
46748 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
46749 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
46750 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
46751 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
46752 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46753 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
46754 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
46755 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46756 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
46757 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
46758 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
46759 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
46760 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46761 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
46762 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
46763 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
46764 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
46765 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46766 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
46767 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46768 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
46769 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
46770 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
46771 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
46772 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46773 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
46774 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46775 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
46776 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
46777 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
46778 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46779 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
46780 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
46781 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46782 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
46783 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
46784 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46785 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46786 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
46787 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46788 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
46789 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
46790 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
46791 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
46792 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
46793 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
46794 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
46795 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
46796 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
46797 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46798 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
46799 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
46800 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
46801 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
46802 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46803 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46804 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
46805 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46806 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
46807 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
46808 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
46809 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46810 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
46811 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
46812 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
46813 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46814 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
46815 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
46816 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46817 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
46818 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46819 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46820 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
46821 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
46822 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
46823 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
46824 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46825 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
46826 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
46827 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46828 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
46829 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
46830 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
46831 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
46832 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46833 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
46834 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46835 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
46836 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
46837 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46838 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
46839 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46840 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
46841 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46842 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46843 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46844 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
46845 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
46846 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46847 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
46848 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46849 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46850 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
46851 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46852 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46853 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46854 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46855 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
46856 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
46857 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46858 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
46859 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
46860 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
46861 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46862 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46863 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
46864 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46865 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46866 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46867 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46868 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46869 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
46870 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
46871 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46872 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
46873 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46874 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46875 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46876 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
46877 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
46878 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46879 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
46880 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
46881 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
46882 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46883 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46884 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46885 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
46886 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
46887 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46888 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46889 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46890 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
46891 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
46892 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
46893 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
46894 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
46895 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
46896 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
46897 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46898 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
46899 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
46900 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
46901 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
46902 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
46903 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
46904 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
46905 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
46906 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
46907 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
46908 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
46909 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
46910 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
46911 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46912 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
46913 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46914 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
46915 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46916 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
46917 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
46918 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46919 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
46920 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
46921 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
46922 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
46923 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
46924 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
46925 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
46926 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
46927 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
46928 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
46929 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46930 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46931 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
46932 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
46933 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
46934 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
46935 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
46936 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
46937 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
46938 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
46939 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
46940 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46941 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46942 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46943 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
46944 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46945 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
46946 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46947 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46948 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
46949 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
46950 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
46951 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
46952 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
46953 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
46954 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
46955 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
46956 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
46957 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
46958 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
46959 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46960 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
46961 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
46962 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
46963 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46964 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
46965 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
46966 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
46967 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
46968 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
46969 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46970 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46971 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
46972 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
46973 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46974 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
46975 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
46976 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
46977 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
46978 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
46979 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
46980 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
46981 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46982 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
46983 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
46984 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
46985 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
46986 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
46987 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46988 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46989 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
46990 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
46991 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
46992 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
46993 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46994 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
46995 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
46996 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
46997 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46998 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46999 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47000 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47001 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
47002 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47003 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
47004 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
47005 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47006 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
47007 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47008 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
47009 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47010 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
47011 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47012 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
47013 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
47014 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47015 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47016 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
47017 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
47018 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47019 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
47020 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47021 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
47022 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
47023 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
47024 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
47025 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47026 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47027 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
47028 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
47029 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47030 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
47031 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
47032 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47033 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
47034 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
47035 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
47036 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47037 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
47038 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
47039 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
47040 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47041 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47042 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47043 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47044 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47045 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47046 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
47047 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
47048 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
47049 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
47050 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47051 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
47052 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47053 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47054 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
47055 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
47056 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
47057 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
47058 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47059 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
47060 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47061 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47062 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
47063 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
47064 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47065 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47066 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
47067 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47068 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
47069 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
47070 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
47071 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
47072 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
47073 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
47074 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
47075 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
47076 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
47077 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
47078 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
47079 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47080 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47081 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
47082 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
47083 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
47084 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
47085 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47086 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47087 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
47088 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47089 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
47090 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
47091 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
47092 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
47093 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
47094 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
47095 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47096 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47097 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47098 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47099 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
47100 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47101 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47102 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47103 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
47104 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
47105 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
47106 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
47107 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47108 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
47109 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
47110 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
47111 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
47112 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
47113 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
47114 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
47115 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
47116 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
47117 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47118 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47119 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47120 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47121 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47122 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
47123 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47124 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
47125 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47126 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
47127 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47128 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
47129 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
47130 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
47131 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
47132 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47133 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
47134 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
47135 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
47136 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
47137 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47138 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47139 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47140 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47141 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47142 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47143 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47144 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47145 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47146 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47147 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47148 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47149 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47150 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47151 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47152 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47153 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47154 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47155 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47156 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47157 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47158 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47159 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47160 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47161 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47162 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47163 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47164 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47165 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47166 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47167 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47168 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47169 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47170 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47171 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47172 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47173 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47174 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47175 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47176 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47177 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47178 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47179 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47180 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47181 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47182 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47183 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47184 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47185 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47186 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47187 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47188 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47189 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47190 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47191 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47192 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47193 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47194 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47195 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47196 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47197 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47198 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47199 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47200 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47201 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47202 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47203 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47204 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47205 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47206 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47207 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47208 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47209 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47210 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47211 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47212 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47213 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47214 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47215 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47216 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47217 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47218 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47219 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47220 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47221 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47222 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47223 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47224 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47225 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47226 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47227 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47228 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47229 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47230 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47231 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47232 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47233 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47234 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47235 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47236 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47237 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47238 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47239 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47240 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47241 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47242 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47243 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47244 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47245 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47246 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47247 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47248 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47249 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47250 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47251 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47252 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47253 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47254 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47255 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47256 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47257 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47258 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47259 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47260 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47261 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47262 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47263 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47264 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47265 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47266 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47267 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47268 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47269 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47270 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47271 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47272 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47273 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47274 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47275 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47276 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47277 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47278 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47279 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47280 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47281 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47282 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47283 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47284 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47285 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47286 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47287 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47288 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47289 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47290 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47291 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47292 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47293 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47294 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47295 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47296 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47297 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47298 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47299 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47300 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47301 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47302 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47303 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47304 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47305 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47306 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47307 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47308 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47309 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47310 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47311 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47312 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47313 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47314 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47315 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47316 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47317 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47318 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47319 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47320 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47321 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47322 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47323 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47324 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47325 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47326 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47327 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47328 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47329 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47330 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47331 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47332 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47333 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47334 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47335 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47336 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47337 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47338 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47339 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47340 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47341 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47342 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47343 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47344 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47345 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47346 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47347 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47348 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47349 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47350 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47351 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47352 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47353 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47354 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47355 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47356 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47357 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47358 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47359 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47360 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47361 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47362 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47363 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47364 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47365 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47366 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47367 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47368 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47369 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47370 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47371 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47372 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47373 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47374 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
47375 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
47376 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
47377 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47378 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47379 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47380 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47381 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
47382 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47383 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47384 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47385 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47386 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47387 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47388 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47389 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
47390 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47391 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
47392 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
47393 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
47394 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47395 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
47396 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
47397 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47398 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
47399 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47400 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47401 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47402 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47403 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47404 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
47405 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
47406 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
47407 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
47408 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
47409 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
47410 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
47411 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47412 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
47413 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
47414 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47415 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47416 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
47417 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47418 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
47419 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47420 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
47421 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47422 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47423 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
47424 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
47425 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
47426 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47427 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
47428 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
47429 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47430 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47431 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47432 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47433 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47434 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47435 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
47436 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
47437 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47438 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
47439 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
47440 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
47441 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
47442 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47443 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47444 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
47445 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
47446 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47447 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
47448 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47449 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47450 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
47451 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
47452 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
47453 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
47454 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
47455 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
47456 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
47457 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
47458 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
47459 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
47460 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
47461 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
47462 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47463 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
47464 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
47465 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47466 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
47467 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47468 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
47469 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
47470 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
47471 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
47472 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
47473 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
47474 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
47475 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
47476 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
47477 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47478 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
47479 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
47480 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47481 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
47482 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47483 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
47484 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47485 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47486 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
47487 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
47488 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
47489 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47490 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
47491 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47492 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47493 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
47494 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
47495 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47496 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
47497 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
47498 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
47499 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
47500 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47501 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47502 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47503 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47504 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47505 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47506 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47507 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47508 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47509 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47510 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47511 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
47512 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
47513 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
47514 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
47515 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47516 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
47517 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
47518 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47519 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47520 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47521 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47522 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47523 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47524 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47525 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
47526 { (char *)"TreeCtrl_IsEmpty", (PyCFunction)_wrap_TreeCtrl_IsEmpty, METH_O, NULL},
47527 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
47528 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
47529 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
47530 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
47531 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
47532 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
47533 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
47534 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
47535 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47536 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
47537 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
47538 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47539 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47540 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
47541 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
47542 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
47543 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
47544 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
47545 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
47546 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47547 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
47548 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
47549 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47550 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
47551 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47552 { (char *)"TreeCtrl_CollapseAllChildren", (PyCFunction) _wrap_TreeCtrl_CollapseAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47553 { (char *)"TreeCtrl_CollapseAll", (PyCFunction)_wrap_TreeCtrl_CollapseAll, METH_O, NULL},
47554 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
47555 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
47556 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
47557 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47558 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
47559 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
47560 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47561 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47562 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
47563 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47564 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
47565 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
47566 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47567 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
47568 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47569 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
47570 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
47571 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
47572 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
47573 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47574 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
47575 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47576 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
47577 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
47578 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
47579 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
47580 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
47581 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
47582 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47583 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
47584 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
47585 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
47586 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
47587 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
47588 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
47589 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
47590 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
47591 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
47592 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
47593 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
47594 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
47595 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
47596 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
47597 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47598 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
47599 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47600 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
47601 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
47602 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
47603 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
47604 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
47605 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
47606 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
47607 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47608 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
47609 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
47610 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
47611 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
47612 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
47613 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
47614 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
47615 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
47616 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
47617 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
47618 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
47619 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
47620 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47621 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
47622 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47623 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
47624 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
47625 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
47626 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
47627 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
47628 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
47629 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
47630 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
47631 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47632 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
47633 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47634 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
47635 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
47636 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
47637 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
47638 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
47639 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
47640 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
47641 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47642 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
47643 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47644 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47645 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47646 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47647 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
47648 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47649 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
47650 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
47651 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
47652 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
47653 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
47654 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
47655 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47656 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
47657 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
47658 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
47659 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
47660 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47661 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
47662 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
47663 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
47664 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
47665 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
47666 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
47667 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
47668 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47669 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
47670 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
47671 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
47672 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
47673 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47674 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
47675 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47676 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47677 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
47678 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47679 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
47680 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
47681 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
47682 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
47683 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47684 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
47685 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47686 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
47687 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
47688 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
47689 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
47690 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
47691 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
47692 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
47693 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47694 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
47695 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
47696 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
47697 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
47698 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47699 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
47700 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
47701 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
47702 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
47703 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
47704 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47705 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
47706 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47707 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
47708 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
47709 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
47710 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
47711 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
47712 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
47713 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
47714 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
47715 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
47716 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
47717 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
47718 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47719 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
47720 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47721 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
47722 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47723 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
47724 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
47725 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47726 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
47727 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
47728 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
47729 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
47730 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47731 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
47732 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47733 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
47734 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47735 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47736 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
47737 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
47738 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
47739 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47740 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
47741 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47742 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
47743 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47744 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
47745 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
47746 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
47747 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
47748 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47749 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
47750 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
47751 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
47752 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
47753 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47754 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
47755 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47756 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
47757 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
47758 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
47759 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
47760 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
47761 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
47762 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47763 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
47764 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47765 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
47766 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
47767 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
47768 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
47769 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47770 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
47771 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
47772 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
47773 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
47774 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
47775 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
47776 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
47777 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47778 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
47779 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
47780 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
47781 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
47782 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47783 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
47784 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47785 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
47786 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
47787 { (char *)"SearchCtrl_ShowSearchButton", (PyCFunction) _wrap_SearchCtrl_ShowSearchButton, METH_VARARGS | METH_KEYWORDS, NULL},
47788 { (char *)"SearchCtrl_IsSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsSearchButtonVisible, METH_O, NULL},
47789 { (char *)"SearchCtrl_ShowCancelButton", (PyCFunction) _wrap_SearchCtrl_ShowCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
47790 { (char *)"SearchCtrl_IsCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsCancelButtonVisible, METH_O, NULL},
47791 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47792 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47793 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47794 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
47795 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
47796 { NULL, NULL, 0, NULL }
47797 };
47798
47799
47800 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
47801
47802 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
47803 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
47804 }
47805 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
47806 return (void *)((wxEvent *) ((wxMenuEvent *) x));
47807 }
47808 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
47809 return (void *)((wxEvent *) ((wxCloseEvent *) x));
47810 }
47811 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
47812 return (void *)((wxEvent *) ((wxMouseEvent *) x));
47813 }
47814 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
47815 return (void *)((wxEvent *) ((wxEraseEvent *) x));
47816 }
47817 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
47818 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47819 }
47820 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
47821 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47822 }
47823 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
47824 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
47825 }
47826 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
47827 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
47828 }
47829 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
47830 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47831 }
47832 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
47833 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
47834 }
47835 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
47836 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
47837 }
47838 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
47839 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
47840 }
47841 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
47842 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
47843 }
47844 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
47845 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
47846 }
47847 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
47848 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
47849 }
47850 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
47851 return (void *)((wxEvent *) ((wxPyEvent *) x));
47852 }
47853 static void *_p_wxListEventTo_p_wxEvent(void *x) {
47854 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47855 }
47856 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
47857 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47858 }
47859 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
47860 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47861 }
47862 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
47863 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47864 }
47865 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
47866 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47867 }
47868 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
47869 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47870 }
47871 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
47872 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
47873 }
47874 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
47875 return (void *)((wxEvent *) ((wxIdleEvent *) x));
47876 }
47877 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
47878 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
47879 }
47880 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
47881 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
47882 }
47883 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
47884 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
47885 }
47886 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
47887 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
47888 }
47889 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
47890 return (void *)((wxEvent *) ((wxActivateEvent *) x));
47891 }
47892 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
47893 return (void *)((wxEvent *) ((wxSizeEvent *) x));
47894 }
47895 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
47896 return (void *)((wxEvent *) ((wxMoveEvent *) x));
47897 }
47898 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
47899 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
47900 }
47901 static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
47902 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47903 }
47904 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
47905 return (void *)((wxEvent *) ((wxPaintEvent *) x));
47906 }
47907 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
47908 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
47909 }
47910 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
47911 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
47912 }
47913 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
47914 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
47915 }
47916 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
47917 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
47918 }
47919 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
47920 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
47921 }
47922 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
47923 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47924 }
47925 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
47926 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
47927 }
47928 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
47929 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
47930 }
47931 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
47932 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
47933 }
47934 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
47935 return (void *)((wxEvent *) ((wxFocusEvent *) x));
47936 }
47937 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
47938 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
47939 }
47940 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
47941 return (void *)((wxEvent *) ((wxShowEvent *) x));
47942 }
47943 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
47944 return (void *)((wxEvent *) ((wxCommandEvent *) x));
47945 }
47946 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
47947 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
47948 }
47949 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
47950 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47951 }
47952 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
47953 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
47954 }
47955 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
47956 return (void *)((wxEvent *) ((wxKeyEvent *) x));
47957 }
47958 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
47959 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
47960 }
47961 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
47962 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47963 }
47964 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
47965 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
47966 }
47967 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
47968 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
47969 }
47970 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
47971 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
47972 }
47973 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
47974 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
47975 }
47976 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
47977 return (void *)((wxItemContainer *) ((wxComboBox *) x));
47978 }
47979 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
47980 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47981 }
47982 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
47983 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
47984 }
47985 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
47986 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
47987 }
47988 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
47989 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
47990 }
47991 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
47992 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47993 }
47994 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
47995 return (void *)((wxPyListCtrl *) ((wxListView *) x));
47996 }
47997 static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
47998 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
47999 }
48000 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
48001 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
48002 }
48003 static void *_p_wxToolBarTo_p_wxControl(void *x) {
48004 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
48005 }
48006 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
48007 return (void *)((wxControl *) ((wxPickerBase *) x));
48008 }
48009 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
48010 return (void *)((wxControl *) ((wxToggleButton *) x));
48011 }
48012 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
48013 return (void *)((wxControl *) ((wxRadioButton *) x));
48014 }
48015 static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
48016 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
48017 }
48018 static void *_p_wxToolbookTo_p_wxControl(void *x) {
48019 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
48020 }
48021 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
48022 return (void *)((wxControl *) ((wxToolBarBase *) x));
48023 }
48024 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
48025 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48026 }
48027 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
48028 return (void *)((wxControl *) ((wxPyListCtrl *) x));
48029 }
48030 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
48031 return (void *)((wxControl *) ((wxComboBox *) x));
48032 }
48033 static void *_p_wxPyControlTo_p_wxControl(void *x) {
48034 return (void *)((wxControl *) ((wxPyControl *) x));
48035 }
48036 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
48037 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
48038 }
48039 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
48040 return (void *)((wxControl *) ((wxScrollBar *) x));
48041 }
48042 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
48043 return (void *)((wxControl *) ((wxControlWithItems *) x));
48044 }
48045 static void *_p_wxGaugeTo_p_wxControl(void *x) {
48046 return (void *)((wxControl *) ((wxGauge *) x));
48047 }
48048 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
48049 return (void *)((wxControl *) ((wxStaticLine *) x));
48050 }
48051 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
48052 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
48053 }
48054 static void *_p_wxListbookTo_p_wxControl(void *x) {
48055 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
48056 }
48057 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
48058 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
48059 }
48060 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
48061 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
48062 }
48063 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
48064 return (void *)((wxControl *) ((wxCheckBox *) x));
48065 }
48066 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
48067 return (void *)((wxControl *) ((wxRadioBox *) x));
48068 }
48069 static void *_p_wxChoiceTo_p_wxControl(void *x) {
48070 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
48071 }
48072 static void *_p_wxListBoxTo_p_wxControl(void *x) {
48073 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
48074 }
48075 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
48076 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48077 }
48078 static void *_p_wxListViewTo_p_wxControl(void *x) {
48079 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
48080 }
48081 static void *_p_wxNotebookTo_p_wxControl(void *x) {
48082 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
48083 }
48084 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
48085 return (void *)((wxControl *) ((wxStaticBitmap *) x));
48086 }
48087 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
48088 return (void *)((wxControl *) ((wxSpinCtrl *) x));
48089 }
48090 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
48091 return (void *)((wxControl *) ((wxStaticText *) x));
48092 }
48093 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
48094 return (void *)((wxControl *) ((wxStaticBox *) x));
48095 }
48096 static void *_p_wxSliderTo_p_wxControl(void *x) {
48097 return (void *)((wxControl *) ((wxSlider *) x));
48098 }
48099 static void *_p_wxTreebookTo_p_wxControl(void *x) {
48100 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
48101 }
48102 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
48103 return (void *)((wxControl *) ((wxSpinButton *) x));
48104 }
48105 static void *_p_wxButtonTo_p_wxControl(void *x) {
48106 return (void *)((wxControl *) ((wxButton *) x));
48107 }
48108 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
48109 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
48110 }
48111 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
48112 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48113 }
48114 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
48115 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
48116 }
48117 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
48118 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
48119 }
48120 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
48121 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
48122 }
48123 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
48124 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
48125 }
48126 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
48127 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
48128 }
48129 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
48130 return (void *)((wxControl *) ((wxTextCtrl *) x));
48131 }
48132 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
48133 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
48134 }
48135 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
48136 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
48137 }
48138 static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
48139 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
48140 }
48141 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
48142 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48143 }
48144 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48145 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48146 }
48147 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48148 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48149 }
48150 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48151 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48152 }
48153 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48154 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48155 }
48156 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48157 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48158 }
48159 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48160 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48161 }
48162 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48163 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48164 }
48165 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48166 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48167 }
48168 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48169 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48170 }
48171 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48172 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48173 }
48174 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48175 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48176 }
48177 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48178 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48179 }
48180 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48181 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48182 }
48183 static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48184 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48185 }
48186 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48187 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48188 }
48189 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48190 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48191 }
48192 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48193 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48194 }
48195 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48196 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48197 }
48198 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48199 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48200 }
48201 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48202 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48203 }
48204 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48205 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48206 }
48207 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48208 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48209 }
48210 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48211 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48212 }
48213 static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48214 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48215 }
48216 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48217 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48218 }
48219 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48220 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48221 }
48222 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48223 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48224 }
48225 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48226 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
48227 }
48228 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48229 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48230 }
48231 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48232 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48233 }
48234 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48235 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48236 }
48237 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48238 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48239 }
48240 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48241 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48242 }
48243 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48244 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48245 }
48246 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48247 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48248 }
48249 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48250 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48251 }
48252 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48253 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48254 }
48255 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48256 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48257 }
48258 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48259 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48260 }
48261 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48262 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48263 }
48264 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48265 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48266 }
48267 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48268 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48269 }
48270 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48271 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48272 }
48273 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48274 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48275 }
48276 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48277 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48278 }
48279 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48280 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48281 }
48282 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48283 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48284 }
48285 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48286 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48287 }
48288 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48289 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48290 }
48291 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48292 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48293 }
48294 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48295 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48296 }
48297 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48298 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48299 }
48300 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48301 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48302 }
48303 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48304 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48305 }
48306 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48307 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48308 }
48309 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48310 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48311 }
48312 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48313 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48314 }
48315 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48316 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48317 }
48318 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48319 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48320 }
48321 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48322 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48323 }
48324 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48325 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48326 }
48327 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48328 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48329 }
48330 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48331 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48332 }
48333 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48334 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48335 }
48336 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48337 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48338 }
48339 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48340 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48341 }
48342 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48343 return (void *)((wxButton *) ((wxBitmapButton *) x));
48344 }
48345 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48346 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48347 }
48348 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48349 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48350 }
48351 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48352 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48353 }
48354 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48355 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48356 }
48357 static void *_p_wxToolbookTo_p_wxObject(void *x) {
48358 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48359 }
48360 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
48361 return (void *)((wxObject *) ((wxSizerItem *) x));
48362 }
48363 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
48364 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
48365 }
48366 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
48367 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
48368 }
48369 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
48370 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
48371 }
48372 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
48373 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
48374 }
48375 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
48376 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
48377 }
48378 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
48379 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
48380 }
48381 static void *_p_wxSizerTo_p_wxObject(void *x) {
48382 return (void *)((wxObject *) ((wxSizer *) x));
48383 }
48384 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
48385 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
48386 }
48387 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
48388 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
48389 }
48390 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
48391 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48392 }
48393 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
48394 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
48395 }
48396 static void *_p_wxEventTo_p_wxObject(void *x) {
48397 return (void *)((wxObject *) ((wxEvent *) x));
48398 }
48399 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
48400 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
48401 }
48402 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
48403 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
48404 }
48405 static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
48406 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48407 }
48408 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
48409 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
48410 }
48411 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
48412 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48413 }
48414 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
48415 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
48416 }
48417 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
48418 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48419 }
48420 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
48421 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48422 }
48423 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
48424 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
48425 }
48426 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
48427 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
48428 }
48429 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
48430 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
48431 }
48432 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
48433 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
48434 }
48435 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
48436 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
48437 }
48438 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
48439 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48440 }
48441 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
48442 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
48443 }
48444 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
48445 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
48446 }
48447 static void *_p_wxControlTo_p_wxObject(void *x) {
48448 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
48449 }
48450 static void *_p_wxPyControlTo_p_wxObject(void *x) {
48451 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
48452 }
48453 static void *_p_wxGaugeTo_p_wxObject(void *x) {
48454 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
48455 }
48456 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
48457 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
48458 }
48459 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
48460 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
48461 }
48462 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
48463 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48464 }
48465 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
48466 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
48467 }
48468 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
48469 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
48470 }
48471 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
48472 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48473 }
48474 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
48475 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
48476 }
48477 static void *_p_wxChoiceTo_p_wxObject(void *x) {
48478 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48479 }
48480 static void *_p_wxFSFileTo_p_wxObject(void *x) {
48481 return (void *)((wxObject *) ((wxFSFile *) x));
48482 }
48483 static void *_p_wxPySizerTo_p_wxObject(void *x) {
48484 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
48485 }
48486 static void *_p_wxTreebookTo_p_wxObject(void *x) {
48487 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48488 }
48489 static void *_p_wxListViewTo_p_wxObject(void *x) {
48490 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48491 }
48492 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
48493 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
48494 }
48495 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
48496 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48497 }
48498 static void *_p_wxNotebookTo_p_wxObject(void *x) {
48499 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48500 }
48501 static void *_p_wxPyEventTo_p_wxObject(void *x) {
48502 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
48503 }
48504 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
48505 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
48506 }
48507 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
48508 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48509 }
48510 static void *_p_wxListbookTo_p_wxObject(void *x) {
48511 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48512 }
48513 static void *_p_wxShowEventTo_p_wxObject(void *x) {
48514 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
48515 }
48516 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
48517 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48518 }
48519 static void *_p_wxSliderTo_p_wxObject(void *x) {
48520 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
48521 }
48522 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
48523 return (void *)((wxObject *) ((wxMenuItem *) x));
48524 }
48525 static void *_p_wxDateEventTo_p_wxObject(void *x) {
48526 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
48527 }
48528 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
48529 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
48530 }
48531 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
48532 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
48533 }
48534 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
48535 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
48536 }
48537 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
48538 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
48539 }
48540 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
48541 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
48542 }
48543 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
48544 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
48545 }
48546 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
48547 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
48548 }
48549 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
48550 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
48551 }
48552 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
48553 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
48554 }
48555 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
48556 return (void *)((wxObject *) ((wxContextHelp *) x));
48557 }
48558 static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
48559 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48560 }
48561 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
48562 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48563 }
48564 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
48565 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
48566 }
48567 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
48568 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
48569 }
48570 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
48571 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
48572 }
48573 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
48574 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
48575 }
48576 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
48577 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
48578 }
48579 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
48580 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
48581 }
48582 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
48583 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
48584 }
48585 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
48586 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
48587 }
48588 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
48589 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
48590 }
48591 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
48592 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
48593 }
48594 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
48595 return (void *)((wxObject *) ((wxImageHandler *) x));
48596 }
48597 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
48598 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
48599 }
48600 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
48601 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
48602 }
48603 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
48604 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
48605 }
48606 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
48607 return (void *)((wxObject *) ((wxEvtHandler *) x));
48608 }
48609 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
48610 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
48611 }
48612 static void *_p_wxListEventTo_p_wxObject(void *x) {
48613 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48614 }
48615 static void *_p_wxListBoxTo_p_wxObject(void *x) {
48616 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48617 }
48618 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
48619 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48620 }
48621 static void *_p_wxButtonTo_p_wxObject(void *x) {
48622 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
48623 }
48624 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
48625 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48626 }
48627 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
48628 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
48629 }
48630 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
48631 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48632 }
48633 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
48634 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
48635 }
48636 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
48637 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
48638 }
48639 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
48640 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
48641 }
48642 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
48643 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
48644 }
48645 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
48646 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
48647 }
48648 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
48649 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
48650 }
48651 static void *_p_wxListItemTo_p_wxObject(void *x) {
48652 return (void *)((wxObject *) ((wxListItem *) x));
48653 }
48654 static void *_p_wxImageTo_p_wxObject(void *x) {
48655 return (void *)((wxObject *) ((wxImage *) x));
48656 }
48657 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
48658 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
48659 }
48660 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
48661 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48662 }
48663 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
48664 return (void *)((wxObject *) ((wxGenericDragImage *) x));
48665 }
48666 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
48667 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48668 }
48669 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
48670 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48671 }
48672 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
48673 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48674 }
48675 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
48676 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48677 }
48678 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
48679 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48680 }
48681 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
48682 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48683 }
48684 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
48685 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48686 }
48687 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
48688 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
48689 }
48690 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
48691 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
48692 }
48693 static void *_p_wxWindowTo_p_wxObject(void *x) {
48694 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
48695 }
48696 static void *_p_wxMenuTo_p_wxObject(void *x) {
48697 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
48698 }
48699 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
48700 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
48701 }
48702 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
48703 return (void *)((wxObject *) ((wxFileSystem *) x));
48704 }
48705 static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
48706 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48707 }
48708 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
48709 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
48710 }
48711 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
48712 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
48713 }
48714 static void *_p_wxPyAppTo_p_wxObject(void *x) {
48715 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
48716 }
48717 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
48718 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
48719 }
48720 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
48721 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
48722 }
48723 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
48724 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
48725 }
48726 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
48727 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48728 }
48729 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
48730 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48731 }
48732 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
48733 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
48734 }
48735 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
48736 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
48737 }
48738 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
48739 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
48740 }
48741 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
48742 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
48743 }
48744 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
48745 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
48746 }
48747 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
48748 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
48749 }
48750 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
48751 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48752 }
48753 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
48754 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48755 }
48756 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
48757 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48758 }
48759 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
48760 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48761 }
48762 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
48763 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48764 }
48765 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
48766 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48767 }
48768 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
48769 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48770 }
48771 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
48772 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
48773 }
48774 static void *_p_wxToolBarTo_p_wxObject(void *x) {
48775 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48776 }
48777 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
48778 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
48779 }
48780 static void *_p_wxValidatorTo_p_wxObject(void *x) {
48781 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
48782 }
48783 static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
48784 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
48785 }
48786 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
48787 return (void *)((wxWindow *) ((wxMenuBar *) x));
48788 }
48789 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
48790 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
48791 }
48792 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
48793 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48794 }
48795 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
48796 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
48797 }
48798 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
48799 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
48800 }
48801 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
48802 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
48803 }
48804 static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
48805 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48806 }
48807 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
48808 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48809 }
48810 static void *_p_wxControlTo_p_wxWindow(void *x) {
48811 return (void *)((wxWindow *) ((wxControl *) x));
48812 }
48813 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
48814 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
48815 }
48816 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
48817 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
48818 }
48819 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
48820 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
48821 }
48822 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
48823 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48824 }
48825 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
48826 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
48827 }
48828 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
48829 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
48830 }
48831 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
48832 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
48833 }
48834 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
48835 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
48836 }
48837 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
48838 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
48839 }
48840 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
48841 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
48842 }
48843 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
48844 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48845 }
48846 static void *_p_wxListbookTo_p_wxWindow(void *x) {
48847 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48848 }
48849 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
48850 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
48851 }
48852 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
48853 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
48854 }
48855 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
48856 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
48857 }
48858 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
48859 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
48860 }
48861 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
48862 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48863 }
48864 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
48865 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48866 }
48867 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
48868 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48869 }
48870 static void *_p_wxListViewTo_p_wxWindow(void *x) {
48871 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48872 }
48873 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
48874 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48875 }
48876 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
48877 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
48878 }
48879 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
48880 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
48881 }
48882 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
48883 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
48884 }
48885 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
48886 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
48887 }
48888 static void *_p_wxSliderTo_p_wxWindow(void *x) {
48889 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
48890 }
48891 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
48892 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48893 }
48894 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
48895 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
48896 }
48897 static void *_p_wxButtonTo_p_wxWindow(void *x) {
48898 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
48899 }
48900 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
48901 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
48902 }
48903 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
48904 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48905 }
48906 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
48907 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
48908 }
48909 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
48910 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48911 }
48912 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
48913 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48914 }
48915 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
48916 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48917 }
48918 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
48919 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48920 }
48921 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
48922 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
48923 }
48924 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48925 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48926 }
48927 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48928 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48929 }
48930 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48931 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48932 }
48933 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48934 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48935 }
48936 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48937 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48938 }
48939 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
48940 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48941 }
48942 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
48943 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
48944 }
48945 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
48946 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
48947 }
48948 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
48949 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
48950 }
48951 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
48952 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48953 }
48954 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
48955 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
48956 }
48957 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
48958 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
48959 }
48960 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
48961 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
48962 }
48963 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
48964 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
48965 }
48966 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
48967 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
48968 }
48969 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
48970 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
48971 }
48972 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
48973 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48974 }
48975 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
48976 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48977 }
48978 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
48979 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48980 }
48981 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
48982 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48983 }
48984 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
48985 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48986 }
48987 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
48988 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
48989 }
48990 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
48991 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
48992 }
48993 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
48994 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
48995 }
48996 static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
48997 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48998 }
48999 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
49000 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49001 }
49002 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
49003 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
49004 }
49005 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
49006 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
49007 }
49008 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
49009 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
49010 }
49011 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
49012 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
49013 }
49014 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
49015 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
49016 }
49017 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
49018 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
49019 }
49020 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
49021 return (void *)((wxControlWithItems *) ((wxChoice *) x));
49022 }
49023 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
49024 return (void *)((wxControlWithItems *) ((wxListBox *) x));
49025 }
49026 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
49027 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
49028 }
49029 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
49030 return (void *)((wxValidator *) ((wxPyValidator *) x));
49031 }
49032 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
49033 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
49034 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};
49035 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
49036 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
49037 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
49038 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
49039 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
49040 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
49041 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
49042 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
49043 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
49044 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
49045 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
49046 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
49047 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
49048 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
49049 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
49050 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
49051 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
49052 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
49053 static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
49054 static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
49055 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
49056 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
49057 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
49058 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
49059 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
49060 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
49061 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
49062 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
49063 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
49064 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
49065 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
49066 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
49067 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
49068 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
49069 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
49070 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
49071 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
49072 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
49073 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
49074 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
49075 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
49076 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
49077 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
49078 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
49079 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
49080 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
49081 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
49082 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
49083 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
49084 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
49085 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
49086 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
49087 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
49088 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
49089 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
49090 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
49091 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
49092 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
49093 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
49094 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
49095 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
49096 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
49097 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
49098 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
49099 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
49100 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
49101 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
49102 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
49103 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
49104 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
49105 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
49106 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
49107 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
49108 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
49109 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
49110 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
49111 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
49112 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
49113 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
49114 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
49115 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
49116 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
49117 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
49118 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
49119 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
49120 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
49121 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
49122 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
49123 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
49124 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
49125 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
49126 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
49127 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
49128 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
49129 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
49130 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
49131 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
49132 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
49133 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
49134 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
49135 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
49136 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
49137 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
49138 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
49139 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
49140 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
49141 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
49142 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
49143 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49144 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49145 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49146 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49147 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
49148 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
49149 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
49150 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49151 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49152 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
49153 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
49154 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49155 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
49156 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
49157 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
49158 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49159 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49160 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49161 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
49162 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
49163 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
49164 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49165 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
49166 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
49167 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
49168 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
49169 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49170 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49171 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
49172 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
49173 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49174 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49175 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49176 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49177 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49178 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49179 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49180 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49181 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
49182 static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
49183 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49184 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49185 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49186 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49187 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49188 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49189 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49190 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49191 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49192 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49193 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49194 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49195 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49196 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49197 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49198 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49199 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49200 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49201 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49202 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
49203 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49204 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49205 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49206 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49207 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49208 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49209 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
49210 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
49211
49212 static swig_type_info *swig_type_initial[] = {
49213 &_swigt__p_bool,
49214 &_swigt__p_char,
49215 &_swigt__p_form_ops_t,
49216 &_swigt__p_int,
49217 &_swigt__p_long,
49218 &_swigt__p_unsigned_char,
49219 &_swigt__p_unsigned_int,
49220 &_swigt__p_unsigned_long,
49221 &_swigt__p_void,
49222 &_swigt__p_wxANIHandler,
49223 &_swigt__p_wxAcceleratorTable,
49224 &_swigt__p_wxActivateEvent,
49225 &_swigt__p_wxArrayInt,
49226 &_swigt__p_wxArrayString,
49227 &_swigt__p_wxBMPHandler,
49228 &_swigt__p_wxBitmap,
49229 &_swigt__p_wxBitmapButton,
49230 &_swigt__p_wxBookCtrlBase,
49231 &_swigt__p_wxBookCtrlBaseEvent,
49232 &_swigt__p_wxBoxSizer,
49233 &_swigt__p_wxButton,
49234 &_swigt__p_wxCURHandler,
49235 &_swigt__p_wxCheckBox,
49236 &_swigt__p_wxCheckListBox,
49237 &_swigt__p_wxChildFocusEvent,
49238 &_swigt__p_wxChoice,
49239 &_swigt__p_wxChoicebook,
49240 &_swigt__p_wxChoicebookEvent,
49241 &_swigt__p_wxClipboardTextEvent,
49242 &_swigt__p_wxCloseEvent,
49243 &_swigt__p_wxCollapsiblePane,
49244 &_swigt__p_wxCollapsiblePaneEvent,
49245 &_swigt__p_wxColour,
49246 &_swigt__p_wxColourPickerCtrl,
49247 &_swigt__p_wxColourPickerEvent,
49248 &_swigt__p_wxComboBox,
49249 &_swigt__p_wxCommandEvent,
49250 &_swigt__p_wxContextHelp,
49251 &_swigt__p_wxContextHelpButton,
49252 &_swigt__p_wxContextMenuEvent,
49253 &_swigt__p_wxControl,
49254 &_swigt__p_wxControlWithItems,
49255 &_swigt__p_wxCursor,
49256 &_swigt__p_wxDC,
49257 &_swigt__p_wxDateEvent,
49258 &_swigt__p_wxDatePickerCtrl,
49259 &_swigt__p_wxDateTime,
49260 &_swigt__p_wxDirFilterListCtrl,
49261 &_swigt__p_wxDirPickerCtrl,
49262 &_swigt__p_wxDisplayChangedEvent,
49263 &_swigt__p_wxDropFilesEvent,
49264 &_swigt__p_wxDuplexMode,
49265 &_swigt__p_wxEraseEvent,
49266 &_swigt__p_wxEvent,
49267 &_swigt__p_wxEvtHandler,
49268 &_swigt__p_wxFSFile,
49269 &_swigt__p_wxFileDirPickerEvent,
49270 &_swigt__p_wxFilePickerCtrl,
49271 &_swigt__p_wxFileSystem,
49272 &_swigt__p_wxFlexGridSizer,
49273 &_swigt__p_wxFocusEvent,
49274 &_swigt__p_wxFont,
49275 &_swigt__p_wxFontPickerCtrl,
49276 &_swigt__p_wxFontPickerEvent,
49277 &_swigt__p_wxGBSizerItem,
49278 &_swigt__p_wxGIFHandler,
49279 &_swigt__p_wxGauge,
49280 &_swigt__p_wxGenericDirCtrl,
49281 &_swigt__p_wxGenericDragImage,
49282 &_swigt__p_wxGridBagSizer,
49283 &_swigt__p_wxGridSizer,
49284 &_swigt__p_wxHelpEvent,
49285 &_swigt__p_wxHelpProvider,
49286 &_swigt__p_wxHyperlinkCtrl,
49287 &_swigt__p_wxHyperlinkEvent,
49288 &_swigt__p_wxICOHandler,
49289 &_swigt__p_wxIcon,
49290 &_swigt__p_wxIconizeEvent,
49291 &_swigt__p_wxIdleEvent,
49292 &_swigt__p_wxImage,
49293 &_swigt__p_wxImageHandler,
49294 &_swigt__p_wxImageList,
49295 &_swigt__p_wxIndividualLayoutConstraint,
49296 &_swigt__p_wxInitDialogEvent,
49297 &_swigt__p_wxItemContainer,
49298 &_swigt__p_wxJPEGHandler,
49299 &_swigt__p_wxKeyEvent,
49300 &_swigt__p_wxLayoutConstraints,
49301 &_swigt__p_wxListBox,
49302 &_swigt__p_wxListEvent,
49303 &_swigt__p_wxListItem,
49304 &_swigt__p_wxListItemAttr,
49305 &_swigt__p_wxListView,
49306 &_swigt__p_wxListbook,
49307 &_swigt__p_wxListbookEvent,
49308 &_swigt__p_wxMaximizeEvent,
49309 &_swigt__p_wxMemoryDC,
49310 &_swigt__p_wxMenu,
49311 &_swigt__p_wxMenuBar,
49312 &_swigt__p_wxMenuEvent,
49313 &_swigt__p_wxMenuItem,
49314 &_swigt__p_wxMouseCaptureChangedEvent,
49315 &_swigt__p_wxMouseCaptureLostEvent,
49316 &_swigt__p_wxMouseEvent,
49317 &_swigt__p_wxMoveEvent,
49318 &_swigt__p_wxNavigationKeyEvent,
49319 &_swigt__p_wxNcPaintEvent,
49320 &_swigt__p_wxNotebook,
49321 &_swigt__p_wxNotebookEvent,
49322 &_swigt__p_wxNotifyEvent,
49323 &_swigt__p_wxObject,
49324 &_swigt__p_wxPCXHandler,
49325 &_swigt__p_wxPNGHandler,
49326 &_swigt__p_wxPNMHandler,
49327 &_swigt__p_wxPaintEvent,
49328 &_swigt__p_wxPaletteChangedEvent,
49329 &_swigt__p_wxPaperSize,
49330 &_swigt__p_wxPickerBase,
49331 &_swigt__p_wxPoint,
49332 &_swigt__p_wxPyApp,
49333 &_swigt__p_wxPyCommandEvent,
49334 &_swigt__p_wxPyControl,
49335 &_swigt__p_wxPyEvent,
49336 &_swigt__p_wxPyImageHandler,
49337 &_swigt__p_wxPyListCtrl,
49338 &_swigt__p_wxPySizer,
49339 &_swigt__p_wxPyTreeCtrl,
49340 &_swigt__p_wxPyTreeItemData,
49341 &_swigt__p_wxPyValidator,
49342 &_swigt__p_wxQueryNewPaletteEvent,
49343 &_swigt__p_wxRadioBox,
49344 &_swigt__p_wxRadioButton,
49345 &_swigt__p_wxRect,
49346 &_swigt__p_wxScrollBar,
49347 &_swigt__p_wxScrollEvent,
49348 &_swigt__p_wxScrollWinEvent,
49349 &_swigt__p_wxSearchCtrl,
49350 &_swigt__p_wxSetCursorEvent,
49351 &_swigt__p_wxShowEvent,
49352 &_swigt__p_wxSimpleHelpProvider,
49353 &_swigt__p_wxSize,
49354 &_swigt__p_wxSizeEvent,
49355 &_swigt__p_wxSizer,
49356 &_swigt__p_wxSizerItem,
49357 &_swigt__p_wxSlider,
49358 &_swigt__p_wxSpinButton,
49359 &_swigt__p_wxSpinCtrl,
49360 &_swigt__p_wxSpinEvent,
49361 &_swigt__p_wxStaticBitmap,
49362 &_swigt__p_wxStaticBox,
49363 &_swigt__p_wxStaticBoxSizer,
49364 &_swigt__p_wxStaticLine,
49365 &_swigt__p_wxStaticText,
49366 &_swigt__p_wxStdDialogButtonSizer,
49367 &_swigt__p_wxString,
49368 &_swigt__p_wxSysColourChangedEvent,
49369 &_swigt__p_wxTGAHandler,
49370 &_swigt__p_wxTIFFHandler,
49371 &_swigt__p_wxTextAttr,
49372 &_swigt__p_wxTextCtrl,
49373 &_swigt__p_wxTextUrlEvent,
49374 &_swigt__p_wxToggleButton,
49375 &_swigt__p_wxToolBar,
49376 &_swigt__p_wxToolBarBase,
49377 &_swigt__p_wxToolBarToolBase,
49378 &_swigt__p_wxToolbook,
49379 &_swigt__p_wxToolbookEvent,
49380 &_swigt__p_wxTreeEvent,
49381 &_swigt__p_wxTreeItemId,
49382 &_swigt__p_wxTreebook,
49383 &_swigt__p_wxTreebookEvent,
49384 &_swigt__p_wxUpdateUIEvent,
49385 &_swigt__p_wxValidator,
49386 &_swigt__p_wxVisualAttributes,
49387 &_swigt__p_wxWindow,
49388 &_swigt__p_wxWindowBase,
49389 &_swigt__p_wxWindowCreateEvent,
49390 &_swigt__p_wxWindowDestroyEvent,
49391 &_swigt__p_wxXPMHandler,
49392 };
49393
49394 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
49395 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
49396 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
49397 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
49398 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
49399 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
49400 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
49401 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
49402 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
49403 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
49404 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
49405 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
49406 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}};
49407 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}};
49408 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}};
49409 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}};
49410 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
49411 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
49412 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}};
49413 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
49414 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49415 static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
49416 static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
49417 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
49418 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49419 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49420 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
49421 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
49422 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
49423 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
49424 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
49425 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49426 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49427 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
49428 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
49429 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
49430 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}};
49431 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
49432 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
49433 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}};
49434 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}};
49435 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
49436 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
49437 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49438 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
49439 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
49440 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49441 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
49442 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
49443 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
49444 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
49445 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
49446 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
49447 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
49448 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
49449 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
49450 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49451 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49452 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
49453 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
49454 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
49455 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
49456 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49457 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
49458 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49459 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49460 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49461 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
49462 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
49463 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
49464 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
49465 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49466 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
49467 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}};
49468 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
49469 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
49470 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
49471 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}};
49472 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49473 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49474 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
49475 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
49476 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
49477 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
49478 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
49479 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
49480 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
49481 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}};
49482 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
49483 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
49484 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
49485 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
49486 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}};
49487 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
49488 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}};
49489 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
49490 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
49491 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
49492 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
49493 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
49494 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49495 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
49496 static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
49497 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
49498 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
49499 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49500 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}};
49501 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
49502 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49503 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
49504 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
49505 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49506 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
49507 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
49508 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
49509 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49510 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
49511 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
49512 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
49513 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
49514 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
49515 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
49516 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
49517 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
49518 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
49519 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
49520 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
49521 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
49522 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
49523 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49524 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
49525 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
49526 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
49527 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
49528 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
49529 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
49530 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
49531 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
49532 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}};
49533 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
49534 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}};
49535 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
49536 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
49537 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}};
49538 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
49539 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
49540 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
49541 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
49542 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
49543 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
49544 static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
49545 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
49546 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
49547 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
49548 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
49549 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
49550 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
49551 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
49552 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
49553 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
49554 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
49555 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
49556 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
49557 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}};
49558 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
49559 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
49560 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
49561 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}};
49562 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
49563 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
49564 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
49565 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
49566 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
49567 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
49568 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
49569 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}};
49570 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
49571 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}};
49572 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
49573
49574 static swig_cast_info *swig_cast_initial[] = {
49575 _swigc__p_bool,
49576 _swigc__p_char,
49577 _swigc__p_form_ops_t,
49578 _swigc__p_int,
49579 _swigc__p_long,
49580 _swigc__p_unsigned_char,
49581 _swigc__p_unsigned_int,
49582 _swigc__p_unsigned_long,
49583 _swigc__p_void,
49584 _swigc__p_wxANIHandler,
49585 _swigc__p_wxAcceleratorTable,
49586 _swigc__p_wxActivateEvent,
49587 _swigc__p_wxArrayInt,
49588 _swigc__p_wxArrayString,
49589 _swigc__p_wxBMPHandler,
49590 _swigc__p_wxBitmap,
49591 _swigc__p_wxBitmapButton,
49592 _swigc__p_wxBookCtrlBase,
49593 _swigc__p_wxBookCtrlBaseEvent,
49594 _swigc__p_wxBoxSizer,
49595 _swigc__p_wxButton,
49596 _swigc__p_wxCURHandler,
49597 _swigc__p_wxCheckBox,
49598 _swigc__p_wxCheckListBox,
49599 _swigc__p_wxChildFocusEvent,
49600 _swigc__p_wxChoice,
49601 _swigc__p_wxChoicebook,
49602 _swigc__p_wxChoicebookEvent,
49603 _swigc__p_wxClipboardTextEvent,
49604 _swigc__p_wxCloseEvent,
49605 _swigc__p_wxCollapsiblePane,
49606 _swigc__p_wxCollapsiblePaneEvent,
49607 _swigc__p_wxColour,
49608 _swigc__p_wxColourPickerCtrl,
49609 _swigc__p_wxColourPickerEvent,
49610 _swigc__p_wxComboBox,
49611 _swigc__p_wxCommandEvent,
49612 _swigc__p_wxContextHelp,
49613 _swigc__p_wxContextHelpButton,
49614 _swigc__p_wxContextMenuEvent,
49615 _swigc__p_wxControl,
49616 _swigc__p_wxControlWithItems,
49617 _swigc__p_wxCursor,
49618 _swigc__p_wxDC,
49619 _swigc__p_wxDateEvent,
49620 _swigc__p_wxDatePickerCtrl,
49621 _swigc__p_wxDateTime,
49622 _swigc__p_wxDirFilterListCtrl,
49623 _swigc__p_wxDirPickerCtrl,
49624 _swigc__p_wxDisplayChangedEvent,
49625 _swigc__p_wxDropFilesEvent,
49626 _swigc__p_wxDuplexMode,
49627 _swigc__p_wxEraseEvent,
49628 _swigc__p_wxEvent,
49629 _swigc__p_wxEvtHandler,
49630 _swigc__p_wxFSFile,
49631 _swigc__p_wxFileDirPickerEvent,
49632 _swigc__p_wxFilePickerCtrl,
49633 _swigc__p_wxFileSystem,
49634 _swigc__p_wxFlexGridSizer,
49635 _swigc__p_wxFocusEvent,
49636 _swigc__p_wxFont,
49637 _swigc__p_wxFontPickerCtrl,
49638 _swigc__p_wxFontPickerEvent,
49639 _swigc__p_wxGBSizerItem,
49640 _swigc__p_wxGIFHandler,
49641 _swigc__p_wxGauge,
49642 _swigc__p_wxGenericDirCtrl,
49643 _swigc__p_wxGenericDragImage,
49644 _swigc__p_wxGridBagSizer,
49645 _swigc__p_wxGridSizer,
49646 _swigc__p_wxHelpEvent,
49647 _swigc__p_wxHelpProvider,
49648 _swigc__p_wxHyperlinkCtrl,
49649 _swigc__p_wxHyperlinkEvent,
49650 _swigc__p_wxICOHandler,
49651 _swigc__p_wxIcon,
49652 _swigc__p_wxIconizeEvent,
49653 _swigc__p_wxIdleEvent,
49654 _swigc__p_wxImage,
49655 _swigc__p_wxImageHandler,
49656 _swigc__p_wxImageList,
49657 _swigc__p_wxIndividualLayoutConstraint,
49658 _swigc__p_wxInitDialogEvent,
49659 _swigc__p_wxItemContainer,
49660 _swigc__p_wxJPEGHandler,
49661 _swigc__p_wxKeyEvent,
49662 _swigc__p_wxLayoutConstraints,
49663 _swigc__p_wxListBox,
49664 _swigc__p_wxListEvent,
49665 _swigc__p_wxListItem,
49666 _swigc__p_wxListItemAttr,
49667 _swigc__p_wxListView,
49668 _swigc__p_wxListbook,
49669 _swigc__p_wxListbookEvent,
49670 _swigc__p_wxMaximizeEvent,
49671 _swigc__p_wxMemoryDC,
49672 _swigc__p_wxMenu,
49673 _swigc__p_wxMenuBar,
49674 _swigc__p_wxMenuEvent,
49675 _swigc__p_wxMenuItem,
49676 _swigc__p_wxMouseCaptureChangedEvent,
49677 _swigc__p_wxMouseCaptureLostEvent,
49678 _swigc__p_wxMouseEvent,
49679 _swigc__p_wxMoveEvent,
49680 _swigc__p_wxNavigationKeyEvent,
49681 _swigc__p_wxNcPaintEvent,
49682 _swigc__p_wxNotebook,
49683 _swigc__p_wxNotebookEvent,
49684 _swigc__p_wxNotifyEvent,
49685 _swigc__p_wxObject,
49686 _swigc__p_wxPCXHandler,
49687 _swigc__p_wxPNGHandler,
49688 _swigc__p_wxPNMHandler,
49689 _swigc__p_wxPaintEvent,
49690 _swigc__p_wxPaletteChangedEvent,
49691 _swigc__p_wxPaperSize,
49692 _swigc__p_wxPickerBase,
49693 _swigc__p_wxPoint,
49694 _swigc__p_wxPyApp,
49695 _swigc__p_wxPyCommandEvent,
49696 _swigc__p_wxPyControl,
49697 _swigc__p_wxPyEvent,
49698 _swigc__p_wxPyImageHandler,
49699 _swigc__p_wxPyListCtrl,
49700 _swigc__p_wxPySizer,
49701 _swigc__p_wxPyTreeCtrl,
49702 _swigc__p_wxPyTreeItemData,
49703 _swigc__p_wxPyValidator,
49704 _swigc__p_wxQueryNewPaletteEvent,
49705 _swigc__p_wxRadioBox,
49706 _swigc__p_wxRadioButton,
49707 _swigc__p_wxRect,
49708 _swigc__p_wxScrollBar,
49709 _swigc__p_wxScrollEvent,
49710 _swigc__p_wxScrollWinEvent,
49711 _swigc__p_wxSearchCtrl,
49712 _swigc__p_wxSetCursorEvent,
49713 _swigc__p_wxShowEvent,
49714 _swigc__p_wxSimpleHelpProvider,
49715 _swigc__p_wxSize,
49716 _swigc__p_wxSizeEvent,
49717 _swigc__p_wxSizer,
49718 _swigc__p_wxSizerItem,
49719 _swigc__p_wxSlider,
49720 _swigc__p_wxSpinButton,
49721 _swigc__p_wxSpinCtrl,
49722 _swigc__p_wxSpinEvent,
49723 _swigc__p_wxStaticBitmap,
49724 _swigc__p_wxStaticBox,
49725 _swigc__p_wxStaticBoxSizer,
49726 _swigc__p_wxStaticLine,
49727 _swigc__p_wxStaticText,
49728 _swigc__p_wxStdDialogButtonSizer,
49729 _swigc__p_wxString,
49730 _swigc__p_wxSysColourChangedEvent,
49731 _swigc__p_wxTGAHandler,
49732 _swigc__p_wxTIFFHandler,
49733 _swigc__p_wxTextAttr,
49734 _swigc__p_wxTextCtrl,
49735 _swigc__p_wxTextUrlEvent,
49736 _swigc__p_wxToggleButton,
49737 _swigc__p_wxToolBar,
49738 _swigc__p_wxToolBarBase,
49739 _swigc__p_wxToolBarToolBase,
49740 _swigc__p_wxToolbook,
49741 _swigc__p_wxToolbookEvent,
49742 _swigc__p_wxTreeEvent,
49743 _swigc__p_wxTreeItemId,
49744 _swigc__p_wxTreebook,
49745 _swigc__p_wxTreebookEvent,
49746 _swigc__p_wxUpdateUIEvent,
49747 _swigc__p_wxValidator,
49748 _swigc__p_wxVisualAttributes,
49749 _swigc__p_wxWindow,
49750 _swigc__p_wxWindowBase,
49751 _swigc__p_wxWindowCreateEvent,
49752 _swigc__p_wxWindowDestroyEvent,
49753 _swigc__p_wxXPMHandler,
49754 };
49755
49756
49757 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
49758
49759 static swig_const_info swig_const_table[] = {
49760 {0, 0, 0, 0.0, 0, 0}};
49761
49762 #ifdef __cplusplus
49763 }
49764 #endif
49765 /* -----------------------------------------------------------------------------
49766 * Type initialization:
49767 * This problem is tough by the requirement that no dynamic
49768 * memory is used. Also, since swig_type_info structures store pointers to
49769 * swig_cast_info structures and swig_cast_info structures store pointers back
49770 * to swig_type_info structures, we need some lookup code at initialization.
49771 * The idea is that swig generates all the structures that are needed.
49772 * The runtime then collects these partially filled structures.
49773 * The SWIG_InitializeModule function takes these initial arrays out of
49774 * swig_module, and does all the lookup, filling in the swig_module.types
49775 * array with the correct data and linking the correct swig_cast_info
49776 * structures together.
49777 *
49778 * The generated swig_type_info structures are assigned staticly to an initial
49779 * array. We just loop though that array, and handle each type individually.
49780 * First we lookup if this type has been already loaded, and if so, use the
49781 * loaded structure instead of the generated one. Then we have to fill in the
49782 * cast linked list. The cast data is initially stored in something like a
49783 * two-dimensional array. Each row corresponds to a type (there are the same
49784 * number of rows as there are in the swig_type_initial array). Each entry in
49785 * a column is one of the swig_cast_info structures for that type.
49786 * The cast_initial array is actually an array of arrays, because each row has
49787 * a variable number of columns. So to actually build the cast linked list,
49788 * we find the array of casts associated with the type, and loop through it
49789 * adding the casts to the list. The one last trick we need to do is making
49790 * sure the type pointer in the swig_cast_info struct is correct.
49791 *
49792 * First off, we lookup the cast->type name to see if it is already loaded.
49793 * There are three cases to handle:
49794 * 1) If the cast->type has already been loaded AND the type we are adding
49795 * casting info to has not been loaded (it is in this module), THEN we
49796 * replace the cast->type pointer with the type pointer that has already
49797 * been loaded.
49798 * 2) If BOTH types (the one we are adding casting info to, and the
49799 * cast->type) are loaded, THEN the cast info has already been loaded by
49800 * the previous module so we just ignore it.
49801 * 3) Finally, if cast->type has not already been loaded, then we add that
49802 * swig_cast_info to the linked list (because the cast->type) pointer will
49803 * be correct.
49804 * ----------------------------------------------------------------------------- */
49805
49806 #ifdef __cplusplus
49807 extern "C" {
49808 #if 0
49809 } /* c-mode */
49810 #endif
49811 #endif
49812
49813 #if 0
49814 #define SWIGRUNTIME_DEBUG
49815 #endif
49816
49817 SWIGRUNTIME void
49818 SWIG_InitializeModule(void *clientdata) {
49819 size_t i;
49820 swig_module_info *module_head;
49821 static int init_run = 0;
49822
49823 clientdata = clientdata;
49824
49825 if (init_run) return;
49826 init_run = 1;
49827
49828 /* Initialize the swig_module */
49829 swig_module.type_initial = swig_type_initial;
49830 swig_module.cast_initial = swig_cast_initial;
49831
49832 /* Try and load any already created modules */
49833 module_head = SWIG_GetModule(clientdata);
49834 if (module_head) {
49835 swig_module.next = module_head->next;
49836 module_head->next = &swig_module;
49837 } else {
49838 /* This is the first module loaded */
49839 swig_module.next = &swig_module;
49840 SWIG_SetModule(clientdata, &swig_module);
49841 }
49842
49843 /* Now work on filling in swig_module.types */
49844 #ifdef SWIGRUNTIME_DEBUG
49845 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
49846 #endif
49847 for (i = 0; i < swig_module.size; ++i) {
49848 swig_type_info *type = 0;
49849 swig_type_info *ret;
49850 swig_cast_info *cast;
49851
49852 #ifdef SWIGRUNTIME_DEBUG
49853 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49854 #endif
49855
49856 /* if there is another module already loaded */
49857 if (swig_module.next != &swig_module) {
49858 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
49859 }
49860 if (type) {
49861 /* Overwrite clientdata field */
49862 #ifdef SWIGRUNTIME_DEBUG
49863 printf("SWIG_InitializeModule: found type %s\n", type->name);
49864 #endif
49865 if (swig_module.type_initial[i]->clientdata) {
49866 type->clientdata = swig_module.type_initial[i]->clientdata;
49867 #ifdef SWIGRUNTIME_DEBUG
49868 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
49869 #endif
49870 }
49871 } else {
49872 type = swig_module.type_initial[i];
49873 }
49874
49875 /* Insert casting types */
49876 cast = swig_module.cast_initial[i];
49877 while (cast->type) {
49878 /* Don't need to add information already in the list */
49879 ret = 0;
49880 #ifdef SWIGRUNTIME_DEBUG
49881 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
49882 #endif
49883 if (swig_module.next != &swig_module) {
49884 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
49885 #ifdef SWIGRUNTIME_DEBUG
49886 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
49887 #endif
49888 }
49889 if (ret) {
49890 if (type == swig_module.type_initial[i]) {
49891 #ifdef SWIGRUNTIME_DEBUG
49892 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
49893 #endif
49894 cast->type = ret;
49895 ret = 0;
49896 } else {
49897 /* Check for casting already in the list */
49898 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
49899 #ifdef SWIGRUNTIME_DEBUG
49900 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
49901 #endif
49902 if (!ocast) ret = 0;
49903 }
49904 }
49905
49906 if (!ret) {
49907 #ifdef SWIGRUNTIME_DEBUG
49908 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
49909 #endif
49910 if (type->cast) {
49911 type->cast->prev = cast;
49912 cast->next = type->cast;
49913 }
49914 type->cast = cast;
49915 }
49916 cast++;
49917 }
49918 /* Set entry in modules->types array equal to the type */
49919 swig_module.types[i] = type;
49920 }
49921 swig_module.types[i] = 0;
49922
49923 #ifdef SWIGRUNTIME_DEBUG
49924 printf("**** SWIG_InitializeModule: Cast List ******\n");
49925 for (i = 0; i < swig_module.size; ++i) {
49926 int j = 0;
49927 swig_cast_info *cast = swig_module.cast_initial[i];
49928 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49929 while (cast->type) {
49930 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
49931 cast++;
49932 ++j;
49933 }
49934 printf("---- Total casts: %d\n",j);
49935 }
49936 printf("**** SWIG_InitializeModule: Cast List ******\n");
49937 #endif
49938 }
49939
49940 /* This function will propagate the clientdata field of type to
49941 * any new swig_type_info structures that have been added into the list
49942 * of equivalent types. It is like calling
49943 * SWIG_TypeClientData(type, clientdata) a second time.
49944 */
49945 SWIGRUNTIME void
49946 SWIG_PropagateClientData(void) {
49947 size_t i;
49948 swig_cast_info *equiv;
49949 static int init_run = 0;
49950
49951 if (init_run) return;
49952 init_run = 1;
49953
49954 for (i = 0; i < swig_module.size; i++) {
49955 if (swig_module.types[i]->clientdata) {
49956 equiv = swig_module.types[i]->cast;
49957 while (equiv) {
49958 if (!equiv->converter) {
49959 if (equiv->type && !equiv->type->clientdata)
49960 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
49961 }
49962 equiv = equiv->next;
49963 }
49964 }
49965 }
49966 }
49967
49968 #ifdef __cplusplus
49969 #if 0
49970 {
49971 /* c-mode */
49972 #endif
49973 }
49974 #endif
49975
49976
49977
49978 #ifdef __cplusplus
49979 extern "C" {
49980 #endif
49981
49982 /* Python-specific SWIG API */
49983 #define SWIG_newvarlink() SWIG_Python_newvarlink()
49984 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
49985 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
49986
49987 /* -----------------------------------------------------------------------------
49988 * global variable support code.
49989 * ----------------------------------------------------------------------------- */
49990
49991 typedef struct swig_globalvar {
49992 char *name; /* Name of global variable */
49993 PyObject *(*get_attr)(void); /* Return the current value */
49994 int (*set_attr)(PyObject *); /* Set the value */
49995 struct swig_globalvar *next;
49996 } swig_globalvar;
49997
49998 typedef struct swig_varlinkobject {
49999 PyObject_HEAD
50000 swig_globalvar *vars;
50001 } swig_varlinkobject;
50002
50003 SWIGINTERN PyObject *
50004 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
50005 return PyString_FromString("<Swig global variables>");
50006 }
50007
50008 SWIGINTERN PyObject *
50009 swig_varlink_str(swig_varlinkobject *v) {
50010 PyObject *str = PyString_FromString("(");
50011 swig_globalvar *var;
50012 for (var = v->vars; var; var=var->next) {
50013 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
50014 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
50015 }
50016 PyString_ConcatAndDel(&str,PyString_FromString(")"));
50017 return str;
50018 }
50019
50020 SWIGINTERN int
50021 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
50022 PyObject *str = swig_varlink_str(v);
50023 fprintf(fp,"Swig global variables ");
50024 fprintf(fp,"%s\n", PyString_AsString(str));
50025 Py_DECREF(str);
50026 return 0;
50027 }
50028
50029 SWIGINTERN void
50030 swig_varlink_dealloc(swig_varlinkobject *v) {
50031 swig_globalvar *var = v->vars;
50032 while (var) {
50033 swig_globalvar *n = var->next;
50034 free(var->name);
50035 free(var);
50036 var = n;
50037 }
50038 }
50039
50040 SWIGINTERN PyObject *
50041 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
50042 PyObject *res = NULL;
50043 swig_globalvar *var = v->vars;
50044 while (var) {
50045 if (strcmp(var->name,n) == 0) {
50046 res = (*var->get_attr)();
50047 break;
50048 }
50049 var = var->next;
50050 }
50051 if (res == NULL && !PyErr_Occurred()) {
50052 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50053 }
50054 return res;
50055 }
50056
50057 SWIGINTERN int
50058 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
50059 int res = 1;
50060 swig_globalvar *var = v->vars;
50061 while (var) {
50062 if (strcmp(var->name,n) == 0) {
50063 res = (*var->set_attr)(p);
50064 break;
50065 }
50066 var = var->next;
50067 }
50068 if (res == 1 && !PyErr_Occurred()) {
50069 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50070 }
50071 return res;
50072 }
50073
50074 SWIGINTERN PyTypeObject*
50075 swig_varlink_type(void) {
50076 static char varlink__doc__[] = "Swig var link object";
50077 static PyTypeObject varlink_type;
50078 static int type_init = 0;
50079 if (!type_init) {
50080 const PyTypeObject tmp
50081 = {
50082 PyObject_HEAD_INIT(NULL)
50083 0, /* Number of items in variable part (ob_size) */
50084 (char *)"swigvarlink", /* Type name (tp_name) */
50085 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
50086 0, /* Itemsize (tp_itemsize) */
50087 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
50088 (printfunc) swig_varlink_print, /* Print (tp_print) */
50089 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
50090 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
50091 0, /* tp_compare */
50092 (reprfunc) swig_varlink_repr, /* tp_repr */
50093 0, /* tp_as_number */
50094 0, /* tp_as_sequence */
50095 0, /* tp_as_mapping */
50096 0, /* tp_hash */
50097 0, /* tp_call */
50098 (reprfunc)swig_varlink_str, /* tp_str */
50099 0, /* tp_getattro */
50100 0, /* tp_setattro */
50101 0, /* tp_as_buffer */
50102 0, /* tp_flags */
50103 varlink__doc__, /* tp_doc */
50104 0, /* tp_traverse */
50105 0, /* tp_clear */
50106 0, /* tp_richcompare */
50107 0, /* tp_weaklistoffset */
50108 #if PY_VERSION_HEX >= 0x02020000
50109 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
50110 #endif
50111 #if PY_VERSION_HEX >= 0x02030000
50112 0, /* tp_del */
50113 #endif
50114 #ifdef COUNT_ALLOCS
50115 0,0,0,0 /* tp_alloc -> tp_next */
50116 #endif
50117 };
50118 varlink_type = tmp;
50119 varlink_type.ob_type = &PyType_Type;
50120 type_init = 1;
50121 }
50122 return &varlink_type;
50123 }
50124
50125 /* Create a variable linking object for use later */
50126 SWIGINTERN PyObject *
50127 SWIG_Python_newvarlink(void) {
50128 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
50129 if (result) {
50130 result->vars = 0;
50131 }
50132 return ((PyObject*) result);
50133 }
50134
50135 SWIGINTERN void
50136 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
50137 swig_varlinkobject *v = (swig_varlinkobject *) p;
50138 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
50139 if (gv) {
50140 size_t size = strlen(name)+1;
50141 gv->name = (char *)malloc(size);
50142 if (gv->name) {
50143 strncpy(gv->name,name,size);
50144 gv->get_attr = get_attr;
50145 gv->set_attr = set_attr;
50146 gv->next = v->vars;
50147 }
50148 }
50149 v->vars = gv;
50150 }
50151
50152 SWIGINTERN PyObject *
50153 SWIG_globals() {
50154 static PyObject *_SWIG_globals = 0;
50155 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50156 return _SWIG_globals;
50157 }
50158
50159 /* -----------------------------------------------------------------------------
50160 * constants/methods manipulation
50161 * ----------------------------------------------------------------------------- */
50162
50163 /* Install Constants */
50164 SWIGINTERN void
50165 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50166 PyObject *obj = 0;
50167 size_t i;
50168 for (i = 0; constants[i].type; ++i) {
50169 switch(constants[i].type) {
50170 case SWIG_PY_POINTER:
50171 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50172 break;
50173 case SWIG_PY_BINARY:
50174 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50175 break;
50176 default:
50177 obj = 0;
50178 break;
50179 }
50180 if (obj) {
50181 PyDict_SetItemString(d, constants[i].name, obj);
50182 Py_DECREF(obj);
50183 }
50184 }
50185 }
50186
50187 /* -----------------------------------------------------------------------------*/
50188 /* Fix SwigMethods to carry the callback ptrs when needed */
50189 /* -----------------------------------------------------------------------------*/
50190
50191 SWIGINTERN void
50192 SWIG_Python_FixMethods(PyMethodDef *methods,
50193 swig_const_info *const_table,
50194 swig_type_info **types,
50195 swig_type_info **types_initial) {
50196 size_t i;
50197 for (i = 0; methods[i].ml_name; ++i) {
50198 const char *c = methods[i].ml_doc;
50199 if (c && (c = strstr(c, "swig_ptr: "))) {
50200 int j;
50201 swig_const_info *ci = 0;
50202 const char *name = c + 10;
50203 for (j = 0; const_table[j].type; ++j) {
50204 if (strncmp(const_table[j].name, name,
50205 strlen(const_table[j].name)) == 0) {
50206 ci = &(const_table[j]);
50207 break;
50208 }
50209 }
50210 if (ci) {
50211 size_t shift = (ci->ptype) - types;
50212 swig_type_info *ty = types_initial[shift];
50213 size_t ldoc = (c - methods[i].ml_doc);
50214 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50215 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50216 if (ndoc) {
50217 char *buff = ndoc;
50218 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50219 if (ptr) {
50220 strncpy(buff, methods[i].ml_doc, ldoc);
50221 buff += ldoc;
50222 strncpy(buff, "swig_ptr: ", 10);
50223 buff += 10;
50224 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50225 methods[i].ml_doc = ndoc;
50226 }
50227 }
50228 }
50229 }
50230 }
50231 }
50232
50233 #ifdef __cplusplus
50234 }
50235 #endif
50236
50237 /* -----------------------------------------------------------------------------*
50238 * Partial Init method
50239 * -----------------------------------------------------------------------------*/
50240
50241 #ifdef __cplusplus
50242 extern "C"
50243 #endif
50244 SWIGEXPORT void SWIG_init(void) {
50245 PyObject *m, *d;
50246
50247 /* Fix SwigMethods to carry the callback ptrs when needed */
50248 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50249
50250 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50251 d = PyModule_GetDict(m);
50252
50253 SWIG_InitializeModule(0);
50254 SWIG_InstallConstants(d,swig_const_table);
50255
50256
50257 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50258 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50259 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50260 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50261 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50262 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50263 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50264 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50265 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50266 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50267 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50268 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50269 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50270 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50271 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50272 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50273 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50274 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50275 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50276 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50277 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50278 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
50279 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50280 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50281 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
50282 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
50283 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50284 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50285 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50286 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50287 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50288 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50289 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50290 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50291 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50292 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50293 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50294 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50295 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50296 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50297 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50298 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50299 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50300 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50301 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50302 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
50303 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50304 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50305 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50306 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50307 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50308 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50309 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50310 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50311 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50312 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50313 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50314 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50315 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50316 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50317 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50318 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50319 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50320 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50321 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50322 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50323 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50324 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50325 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50326 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50327 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50328 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50329 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
50330 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
50331 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50332 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50333 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50334 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50335 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50336 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50337 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50338 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50339 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50340 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50341 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50342 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
50343 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
50344 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
50345 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
50346 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
50347 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
50348 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
50349 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
50350 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
50351 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
50352 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
50353 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
50354 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
50355 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
50356 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
50357 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
50358 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
50359 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
50360 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
50361 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
50362 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
50363 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
50364 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
50365 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
50366 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
50367 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
50368 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
50369 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
50370 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
50371 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
50372 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
50373 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
50374 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
50375 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
50376 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
50377 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
50378 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
50379 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
50380 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
50381 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
50382 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
50383 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
50384 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
50385 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
50386 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
50387 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
50388 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
50389 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
50390 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
50391 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
50392 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
50393 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
50394 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
50395 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
50396 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
50397 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
50398 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
50399 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
50400 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
50401 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
50402 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
50403 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
50404 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
50405 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
50406 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
50407 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
50408 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
50409 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
50410 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
50411 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
50412 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
50413 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
50414 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
50415 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
50416 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
50417 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
50418 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
50419 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
50420 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
50421 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
50422 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
50423 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
50424 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
50425 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
50426 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
50427 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
50428 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
50429 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
50430 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
50431 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
50432 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
50433 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
50434 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
50435 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
50436 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
50437 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
50438 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
50439 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
50440 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
50441 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
50442 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
50443 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
50444 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
50445 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
50446 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
50447 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
50448 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
50449 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
50450 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
50451 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
50452 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
50453 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
50454 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
50455 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
50456 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
50457 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
50458 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
50459 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
50460 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
50461 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
50462 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
50463 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
50464 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
50465 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
50466 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
50467 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
50468 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
50469 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
50470 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
50471 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
50472 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
50473 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
50474 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
50475 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
50476 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
50477 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
50478 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
50479 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
50480 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
50481 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
50482 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
50483 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
50484 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
50485 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
50486 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
50487 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
50488 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
50489 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
50490 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
50491 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
50492 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
50493 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
50494 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
50495 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
50496 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
50497 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
50498 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
50499 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
50500 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
50501 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
50502 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
50503 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
50504 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
50505 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
50506 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
50507 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
50508 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
50509 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
50510 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
50511 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
50512 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
50513 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
50514 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
50515 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
50516 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
50517 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
50518
50519 // Map renamed classes back to their common name for OOR
50520 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
50521
50522 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
50523 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
50524 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
50525 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
50526 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
50527 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
50528 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
50529 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
50530 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
50531 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
50532 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
50533 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
50534 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
50535 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
50536 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
50537 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
50538 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
50539 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
50540 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
50541 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
50542 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
50543 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
50544 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
50545 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
50546 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
50547 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
50548 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
50549 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
50550 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
50551 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
50552 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
50553 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
50554 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
50555 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
50556 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
50557 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
50558 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
50559 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
50560 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
50561 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
50562 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
50563 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
50564 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
50565 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
50566 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
50567 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
50568 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
50569 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
50570 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
50571 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
50572 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
50573 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
50574 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
50575 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
50576 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
50577 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
50578
50579 // Map renamed classes back to their common name for OOR
50580 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
50581 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
50582
50583 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
50584 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
50585 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
50586 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
50587 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
50588 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
50589 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
50590 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
50591 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
50592 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
50593 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
50594
50595 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
50596
50597 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
50598 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
50599 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
50600 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
50601 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
50602 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
50603 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
50604 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
50605 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
50606 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
50607 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
50608 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
50609 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
50610 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
50611 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
50612 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
50613 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
50614 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
50615 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
50616 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
50617 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
50618 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
50619 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
50620 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
50621 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
50622 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
50623 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
50624 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
50625 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
50626 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
50627 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
50628 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
50629 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
50630 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
50631 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
50632 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
50633 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
50634 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
50635 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
50636 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
50637 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
50638 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
50639 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
50640 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
50641 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
50642 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
50643 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
50644 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
50645 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN));
50646 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN));
50647 }
50648