]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497 #define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498 #define SWIGTYPE_p_wxColour swig_types[32]
2499 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500 #define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501 #define SWIGTYPE_p_wxComboBox swig_types[35]
2502 #define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503 #define SWIGTYPE_p_wxContextHelp swig_types[37]
2504 #define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505 #define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506 #define SWIGTYPE_p_wxControl swig_types[40]
2507 #define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508 #define SWIGTYPE_p_wxCursor swig_types[42]
2509 #define SWIGTYPE_p_wxDC swig_types[43]
2510 #define SWIGTYPE_p_wxDateEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDateTime swig_types[46]
2513 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516 #define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517 #define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518 #define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519 #define SWIGTYPE_p_wxEvent swig_types[53]
2520 #define SWIGTYPE_p_wxEventBlocker swig_types[54]
2521 #define SWIGTYPE_p_wxEvtHandler swig_types[55]
2522 #define SWIGTYPE_p_wxFSFile swig_types[56]
2523 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[57]
2524 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[58]
2525 #define SWIGTYPE_p_wxFileSystem swig_types[59]
2526 #define SWIGTYPE_p_wxFlexGridSizer swig_types[60]
2527 #define SWIGTYPE_p_wxFocusEvent swig_types[61]
2528 #define SWIGTYPE_p_wxFont swig_types[62]
2529 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[63]
2530 #define SWIGTYPE_p_wxFontPickerEvent swig_types[64]
2531 #define SWIGTYPE_p_wxGBSizerItem swig_types[65]
2532 #define SWIGTYPE_p_wxGIFHandler swig_types[66]
2533 #define SWIGTYPE_p_wxGauge swig_types[67]
2534 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[68]
2535 #define SWIGTYPE_p_wxGenericDragImage swig_types[69]
2536 #define SWIGTYPE_p_wxGridBagSizer swig_types[70]
2537 #define SWIGTYPE_p_wxGridSizer swig_types[71]
2538 #define SWIGTYPE_p_wxHelpEvent swig_types[72]
2539 #define SWIGTYPE_p_wxHelpProvider swig_types[73]
2540 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[74]
2541 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[75]
2542 #define SWIGTYPE_p_wxICOHandler swig_types[76]
2543 #define SWIGTYPE_p_wxIcon swig_types[77]
2544 #define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545 #define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546 #define SWIGTYPE_p_wxImage swig_types[80]
2547 #define SWIGTYPE_p_wxImageHandler swig_types[81]
2548 #define SWIGTYPE_p_wxImageList swig_types[82]
2549 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550 #define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551 #define SWIGTYPE_p_wxItemContainer swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555 #define SWIGTYPE_p_wxListBox swig_types[89]
2556 #define SWIGTYPE_p_wxListEvent swig_types[90]
2557 #define SWIGTYPE_p_wxListItem swig_types[91]
2558 #define SWIGTYPE_p_wxListItemAttr swig_types[92]
2559 #define SWIGTYPE_p_wxListView swig_types[93]
2560 #define SWIGTYPE_p_wxListbook swig_types[94]
2561 #define SWIGTYPE_p_wxListbookEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMaximizeEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMemoryDC swig_types[97]
2564 #define SWIGTYPE_p_wxMenu swig_types[98]
2565 #define SWIGTYPE_p_wxMenuBar swig_types[99]
2566 #define SWIGTYPE_p_wxMenuEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMenuItem swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMouseEvent swig_types[104]
2571 #define SWIGTYPE_p_wxMoveEvent swig_types[105]
2572 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[106]
2573 #define SWIGTYPE_p_wxNcPaintEvent swig_types[107]
2574 #define SWIGTYPE_p_wxNotebook swig_types[108]
2575 #define SWIGTYPE_p_wxNotebookEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577 #define SWIGTYPE_p_wxObject swig_types[111]
2578 #define SWIGTYPE_p_wxPCXHandler swig_types[112]
2579 #define SWIGTYPE_p_wxPNGHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPNMHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPaintEvent swig_types[115]
2582 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[116]
2583 #define SWIGTYPE_p_wxPaperSize swig_types[117]
2584 #define SWIGTYPE_p_wxPickerBase swig_types[118]
2585 #define SWIGTYPE_p_wxPoint swig_types[119]
2586 #define SWIGTYPE_p_wxPyApp swig_types[120]
2587 #define SWIGTYPE_p_wxPyCommandEvent swig_types[121]
2588 #define SWIGTYPE_p_wxPyControl swig_types[122]
2589 #define SWIGTYPE_p_wxPyEvent swig_types[123]
2590 #define SWIGTYPE_p_wxPyImageHandler swig_types[124]
2591 #define SWIGTYPE_p_wxPyListCtrl swig_types[125]
2592 #define SWIGTYPE_p_wxPySizer swig_types[126]
2593 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[127]
2594 #define SWIGTYPE_p_wxPyTreeItemData swig_types[128]
2595 #define SWIGTYPE_p_wxPyValidator swig_types[129]
2596 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[130]
2597 #define SWIGTYPE_p_wxRadioBox swig_types[131]
2598 #define SWIGTYPE_p_wxRadioButton swig_types[132]
2599 #define SWIGTYPE_p_wxRect swig_types[133]
2600 #define SWIGTYPE_p_wxScrollBar swig_types[134]
2601 #define SWIGTYPE_p_wxScrollEvent swig_types[135]
2602 #define SWIGTYPE_p_wxScrollWinEvent swig_types[136]
2603 #define SWIGTYPE_p_wxSearchCtrl swig_types[137]
2604 #define SWIGTYPE_p_wxSetCursorEvent swig_types[138]
2605 #define SWIGTYPE_p_wxShowEvent swig_types[139]
2606 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[140]
2607 #define SWIGTYPE_p_wxSize swig_types[141]
2608 #define SWIGTYPE_p_wxSizeEvent swig_types[142]
2609 #define SWIGTYPE_p_wxSizer swig_types[143]
2610 #define SWIGTYPE_p_wxSizerItem swig_types[144]
2611 #define SWIGTYPE_p_wxSlider swig_types[145]
2612 #define SWIGTYPE_p_wxSpinButton swig_types[146]
2613 #define SWIGTYPE_p_wxSpinCtrl swig_types[147]
2614 #define SWIGTYPE_p_wxSpinEvent swig_types[148]
2615 #define SWIGTYPE_p_wxStaticBitmap swig_types[149]
2616 #define SWIGTYPE_p_wxStaticBox swig_types[150]
2617 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[151]
2618 #define SWIGTYPE_p_wxStaticLine swig_types[152]
2619 #define SWIGTYPE_p_wxStaticText swig_types[153]
2620 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[154]
2621 #define SWIGTYPE_p_wxString swig_types[155]
2622 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[156]
2623 #define SWIGTYPE_p_wxTGAHandler swig_types[157]
2624 #define SWIGTYPE_p_wxTIFFHandler swig_types[158]
2625 #define SWIGTYPE_p_wxTextAttr swig_types[159]
2626 #define SWIGTYPE_p_wxTextCtrl swig_types[160]
2627 #define SWIGTYPE_p_wxTextUrlEvent swig_types[161]
2628 #define SWIGTYPE_p_wxToggleButton swig_types[162]
2629 #define SWIGTYPE_p_wxToolBar swig_types[163]
2630 #define SWIGTYPE_p_wxToolBarBase swig_types[164]
2631 #define SWIGTYPE_p_wxToolBarToolBase swig_types[165]
2632 #define SWIGTYPE_p_wxToolbook swig_types[166]
2633 #define SWIGTYPE_p_wxToolbookEvent swig_types[167]
2634 #define SWIGTYPE_p_wxTreeEvent swig_types[168]
2635 #define SWIGTYPE_p_wxTreeItemId swig_types[169]
2636 #define SWIGTYPE_p_wxTreebook swig_types[170]
2637 #define SWIGTYPE_p_wxTreebookEvent swig_types[171]
2638 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[172]
2639 #define SWIGTYPE_p_wxValidator swig_types[173]
2640 #define SWIGTYPE_p_wxVisualAttributes swig_types[174]
2641 #define SWIGTYPE_p_wxWindow swig_types[175]
2642 #define SWIGTYPE_p_wxWindowBase swig_types[176]
2643 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[177]
2644 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[178]
2645 #define SWIGTYPE_p_wxXPMHandler swig_types[179]
2646 static swig_type_info *swig_types[181];
2647 static swig_module_info swig_module = {swig_types, 180, 0, 0, 0, 0};
2648 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2649 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2650
2651 /* -------- TYPES TABLE (END) -------- */
2652
2653 #if (PY_VERSION_HEX <= 0x02000000)
2654 # if !defined(SWIG_PYTHON_CLASSIC)
2655 # error "This python version requires to use swig with the '-classic' option"
2656 # endif
2657 #endif
2658 #if (PY_VERSION_HEX <= 0x02020000)
2659 # error "This python version requires to use swig with the '-nomodern' option"
2660 #endif
2661 #if (PY_VERSION_HEX <= 0x02020000)
2662 # error "This python version requires to use swig with the '-nomodernargs' option"
2663 #endif
2664 #ifndef METH_O
2665 # error "This python version requires to use swig with the '-nofastunpack' option"
2666 #endif
2667
2668 /*-----------------------------------------------
2669 @(target):= _controls_.so
2670 ------------------------------------------------*/
2671 #define SWIG_init init_controls_
2672
2673 #define SWIG_name "_controls_"
2674
2675 #define SWIGVERSION 0x010329
2676
2677
2678 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2679 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2680
2681
2682 #include <stdexcept>
2683
2684
2685 namespace swig {
2686 class PyObject_ptr {
2687 protected:
2688 PyObject *_obj;
2689
2690 public:
2691 PyObject_ptr() :_obj(0)
2692 {
2693 }
2694
2695 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2696 {
2697 Py_XINCREF(_obj);
2698 }
2699
2700 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2701 {
2702 if (initial_ref) Py_XINCREF(_obj);
2703 }
2704
2705 PyObject_ptr & operator=(const PyObject_ptr& item)
2706 {
2707 Py_XINCREF(item._obj);
2708 Py_XDECREF(_obj);
2709 _obj = item._obj;
2710 return *this;
2711 }
2712
2713 ~PyObject_ptr()
2714 {
2715 Py_XDECREF(_obj);
2716 }
2717
2718 operator PyObject *() const
2719 {
2720 return _obj;
2721 }
2722
2723 PyObject *operator->() const
2724 {
2725 return _obj;
2726 }
2727 };
2728 }
2729
2730
2731 namespace swig {
2732 struct PyObject_var : PyObject_ptr {
2733 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2734
2735 PyObject_var & operator = (PyObject* obj)
2736 {
2737 Py_XDECREF(_obj);
2738 _obj = obj;
2739 return *this;
2740 }
2741 };
2742 }
2743
2744
2745 #include "wx/wxPython/wxPython.h"
2746 #include "wx/wxPython/pyclasses.h"
2747
2748 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2749 static const wxString wxPyEmptyString(wxEmptyString);
2750 static const wxString wxPyControlNameStr(wxControlNameStr);
2751
2752 const wxArrayString wxPyEmptyStringArray;
2753
2754 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2755
2756 #define SWIG_From_long PyInt_FromLong
2757
2758
2759 SWIGINTERNINLINE PyObject *
2760 SWIG_From_int (int value)
2761 {
2762 return SWIG_From_long (value);
2763 }
2764
2765
2766 #include <limits.h>
2767 #ifndef LLONG_MIN
2768 # define LLONG_MIN LONG_LONG_MIN
2769 #endif
2770 #ifndef LLONG_MAX
2771 # define LLONG_MAX LONG_LONG_MAX
2772 #endif
2773 #ifndef ULLONG_MAX
2774 # define ULLONG_MAX ULONG_LONG_MAX
2775 #endif
2776
2777
2778 SWIGINTERN int
2779 SWIG_AsVal_long (PyObject* obj, long* val)
2780 {
2781 if (PyNumber_Check(obj)) {
2782 if (val) *val = PyInt_AsLong(obj);
2783 return SWIG_OK;
2784 }
2785 return SWIG_TypeError;
2786 }
2787
2788
2789 SWIGINTERN int
2790 SWIG_AsVal_int (PyObject * obj, int *val)
2791 {
2792 long v;
2793 int res = SWIG_AsVal_long (obj, &v);
2794 if (SWIG_IsOK(res)) {
2795 if ((v < INT_MIN || v > INT_MAX)) {
2796 return SWIG_OverflowError;
2797 } else {
2798 if (val) *val = static_cast< int >(v);
2799 }
2800 }
2801 return res;
2802 }
2803
2804 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2805
2806 SWIGINTERN int
2807 SWIG_AsVal_bool (PyObject *obj, bool *val)
2808 {
2809 if (obj == Py_True) {
2810 if (val) *val = true;
2811 return SWIG_OK;
2812 } else if (obj == Py_False) {
2813 if (val) *val = false;
2814 return SWIG_OK;
2815 } else {
2816 long v = 0;
2817 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2818 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2819 return res;
2820 }
2821 }
2822
2823 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2824 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2825 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2826 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2827 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2828 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2829 static const wxString wxPyStaticLineNameStr(wxStaticLineNameStr);
2830
2831 #include <wx/checklst.h>
2832
2833 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2834 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2835 if (clientData)
2836 {
2837 wxPyClientData* data = new wxPyClientData(clientData);
2838 self->Insert(item, pos, data);
2839 }
2840 else
2841 self->Insert(item, pos);
2842 }
2843
2844 SWIGINTERN int
2845 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2846 {
2847 long v = 0;
2848 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2849 return SWIG_TypeError;
2850 }
2851 else if (val)
2852 *val = (unsigned long)v;
2853 return SWIG_OK;
2854 }
2855
2856
2857 SWIGINTERN int
2858 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2859 {
2860 unsigned long v;
2861 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2862 if (SWIG_IsOK(res)) {
2863 if ((v > UINT_MAX)) {
2864 return SWIG_OverflowError;
2865 } else {
2866 if (val) *val = static_cast< unsigned int >(v);
2867 }
2868 }
2869 return res;
2870 }
2871
2872 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2873 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2874 wxArrayInt lst;
2875 self->GetSelections(lst);
2876 PyObject *tup = PyTuple_New(lst.GetCount());
2877 for (size_t i=0; i<lst.GetCount(); i++)
2878 {
2879 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2880 }
2881 wxPyEndBlockThreads(blocked);
2882 return tup;
2883 }
2884 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2885 #ifdef __WXMSW__
2886 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2887 self->GetItem(item)->SetTextColour(c);
2888 #endif
2889 }
2890 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2891 #ifdef __WXMSW__
2892 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2893 self->GetItem(item)->SetBackgroundColour(c);
2894 #endif
2895 }
2896 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2897 #ifdef __WXMSW__
2898 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2899 self->GetItem(item)->SetFont(f);
2900 #endif
2901 }
2902 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2903 SWIGINTERN void wxTextCtrl_MacCheckSpelling(wxTextCtrl *self,bool check){}
2904 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2905 self->AppendText(text);
2906 }
2907 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2908 return self->GetValue().Mid(from, to - from);
2909 }
2910 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2911 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2912 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2913 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2914 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2915
2916 SWIGINTERNINLINE PyObject*
2917 SWIG_From_unsigned_SS_long (unsigned long value)
2918 {
2919 return (value > LONG_MAX) ?
2920 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2921 }
2922
2923
2924 SWIGINTERNINLINE PyObject *
2925 SWIG_From_size_t (size_t value)
2926 {
2927 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2928 }
2929
2930
2931 SWIGINTERNINLINE PyObject *
2932 SWIG_From_unsigned_SS_int (unsigned int value)
2933 {
2934 return SWIG_From_unsigned_SS_long (value);
2935 }
2936
2937
2938 #include <wx/slider.h>
2939
2940
2941 static const wxString wxPySliderNameStr(wxSliderNameStr);
2942 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2943
2944 #if !wxUSE_TOGGLEBTN
2945 // implement dummy items for platforms that don't have this class
2946
2947 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2948
2949 class wxToggleButton : public wxControl
2950 {
2951 public:
2952 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2953 const wxPoint&, const wxSize&, long,
2954 const wxValidator&, const wxString&)
2955 { wxPyRaiseNotImplemented(); }
2956
2957 wxToggleButton()
2958 { wxPyRaiseNotImplemented(); }
2959 };
2960 #endif
2961
2962 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2963
2964 SWIGINTERNINLINE int
2965 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2966 {
2967 unsigned long v;
2968 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2969 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2970 return res;
2971 }
2972
2973 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2974 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2975 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2976 if (udata) {
2977 Py_INCREF(udata->m_obj);
2978 return udata->m_obj;
2979 } else {
2980 Py_INCREF(Py_None);
2981 return Py_None;
2982 }
2983 }
2984 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2985 self->SetClientData(new wxPyUserData(clientData));
2986 }
2987 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){
2988 wxPyUserData* udata = NULL;
2989 if (clientData && clientData != Py_None)
2990 udata = new wxPyUserData(clientData);
2991 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2992 shortHelp, longHelp, udata);
2993 }
2994 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){
2995 wxPyUserData* udata = NULL;
2996 if (clientData && clientData != Py_None)
2997 udata = new wxPyUserData(clientData);
2998 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2999 shortHelp, longHelp, udata);
3000 }
3001 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
3002 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
3003 if (udata) {
3004 Py_INCREF(udata->m_obj);
3005 return udata->m_obj;
3006 } else {
3007 Py_INCREF(Py_None);
3008 return Py_None;
3009 }
3010 }
3011 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3012 self->SetToolClientData(id, new wxPyUserData(clientData));
3013 }
3014
3015 #include <wx/listctrl.h>
3016
3017 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3018 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3019 // Python aware sorting function for wxPyListCtrl
3020 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3021 int retval = 0;
3022 PyObject* func = (PyObject*)funcPtr;
3023 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3024
3025 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3026 PyObject* result = PyEval_CallObject(func, args);
3027 Py_DECREF(args);
3028 if (result) {
3029 retval = PyInt_AsLong(result);
3030 Py_DECREF(result);
3031 }
3032
3033 wxPyEndBlockThreads(blocked);
3034 return retval;
3035 }
3036
3037 // C++ Version of a Python aware class
3038 class wxPyListCtrl : public wxListCtrl {
3039 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3040 public:
3041 wxPyListCtrl() : wxListCtrl() {}
3042 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3043 const wxPoint& pos,
3044 const wxSize& size,
3045 long style,
3046 const wxValidator& validator,
3047 const wxString& name) :
3048 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3049
3050 bool Create(wxWindow* parent, wxWindowID id,
3051 const wxPoint& pos,
3052 const wxSize& size,
3053 long style,
3054 const wxValidator& validator,
3055 const wxString& name) {
3056 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3057 }
3058
3059 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3060 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3061
3062 // use the virtual version to avoid a confusing assert in the base class
3063 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3064 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3065
3066 PYPRIVATE;
3067 };
3068
3069 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3070
3071 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3072 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3073 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3074 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3075
3076
3077 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3078 wxListItem item;
3079 item.SetMask( wxLIST_MASK_STATE |
3080 wxLIST_MASK_TEXT |
3081 wxLIST_MASK_IMAGE |
3082 wxLIST_MASK_DATA |
3083 wxLIST_SET_ITEM |
3084 wxLIST_MASK_WIDTH |
3085 wxLIST_MASK_FORMAT
3086 );
3087 if (self->GetColumn(col, item))
3088 return new wxListItem(item);
3089 else
3090 return NULL;
3091 }
3092 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3093 wxListItem* info = new wxListItem;
3094 info->m_itemId = itemId;
3095 info->m_col = col;
3096 info->m_mask = 0xFFFF;
3097 self->GetItem(*info);
3098 return info;
3099 }
3100 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3101 wxPoint pos;
3102 self->GetItemPosition(item, pos);
3103 return pos;
3104 }
3105 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3106 wxRect rect;
3107 self->GetItemRect(item, rect, code);
3108 return rect;
3109 }
3110 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3111 if (!PyCallable_Check(func))
3112 return false;
3113 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3114 }
3115 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3116
3117 return self;
3118
3119
3120
3121 }
3122
3123 #include <wx/treectrl.h>
3124 #include "wx/wxPython/pytree.h"
3125
3126 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3127 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3128 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3129 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3130
3131 static wxTreeItemId wxNullTreeItemId;
3132
3133 // C++ version of Python aware wxTreeCtrl
3134 class wxPyTreeCtrl : public wxTreeCtrl {
3135 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3136 public:
3137 wxPyTreeCtrl() : wxTreeCtrl() {}
3138 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3139 const wxPoint& pos,
3140 const wxSize& size,
3141 long style,
3142 const wxValidator& validator,
3143 const wxString& name) :
3144 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3145
3146 bool Create(wxWindow *parent, wxWindowID id,
3147 const wxPoint& pos,
3148 const wxSize& size,
3149 long style,
3150 const wxValidator& validator,
3151 const wxString& name) {
3152 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3153 }
3154
3155
3156 int OnCompareItems(const wxTreeItemId& item1,
3157 const wxTreeItemId& item2) {
3158 int rval = 0;
3159 bool found;
3160 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3161 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3162 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3163 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3164 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3165 Py_DECREF(o1);
3166 Py_DECREF(o2);
3167 }
3168 wxPyEndBlockThreads(blocked);
3169 if (! found)
3170 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3171 return rval;
3172 }
3173 PYPRIVATE;
3174 };
3175
3176 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3177
3178
3179 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3180 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3181 if (data == NULL) {
3182 data = new wxPyTreeItemData();
3183 data->SetId(item); // set the id
3184 self->SetItemData(item, data);
3185 }
3186 return data;
3187 }
3188 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3189 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3190 if (data == NULL) {
3191 data = new wxPyTreeItemData();
3192 data->SetId(item); // set the id
3193 self->SetItemData(item, data);
3194 }
3195 return data->GetData();
3196 }
3197 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3198 data->SetId(item); // set the id
3199 self->SetItemData(item, data);
3200 }
3201 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3202 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3203 if (data == NULL) {
3204 data = new wxPyTreeItemData(obj);
3205 data->SetId(item); // set the id
3206 self->SetItemData(item, data);
3207 } else
3208 data->SetData(obj);
3209 }
3210 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3211 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3212 PyObject* rval = PyList_New(0);
3213 wxArrayTreeItemIds array;
3214 size_t num, x;
3215 num = self->GetSelections(array);
3216 for (x=0; x < num; x++) {
3217 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3218 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3219 PyList_Append(rval, item);
3220 Py_DECREF(item);
3221 }
3222 wxPyEndBlockThreads(blocked);
3223 return rval;
3224 }
3225 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3226 void* cookie = 0;
3227 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3228 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3229 PyObject* tup = PyTuple_New(2);
3230 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3231 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3232 wxPyEndBlockThreads(blocked);
3233 return tup;
3234 }
3235 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3236 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3237 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3238 PyObject* tup = PyTuple_New(2);
3239 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3240 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3241 wxPyEndBlockThreads(blocked);
3242 return tup;
3243 }
3244 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3245 wxRect rect;
3246 if (self->GetBoundingRect(item, rect, textOnly)) {
3247 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3248 wxRect* r = new wxRect(rect);
3249 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3250 wxPyEndBlockThreads(blocked);
3251 return val;
3252 }
3253 else
3254 RETURN_NONE();
3255 }
3256 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3257
3258 SWIGINTERNINLINE PyObject*
3259 SWIG_From_bool (bool value)
3260 {
3261 return PyBool_FromLong(value ? 1 : 0);
3262 }
3263
3264 // C++ version of Python aware wxControl
3265 class wxPyControl : public wxControl
3266 {
3267 DECLARE_DYNAMIC_CLASS(wxPyControl)
3268 public:
3269 wxPyControl() : wxControl() {}
3270 wxPyControl(wxWindow* parent, const wxWindowID id,
3271 const wxPoint& pos = wxDefaultPosition,
3272 const wxSize& size = wxDefaultSize,
3273 long style = 0,
3274 const wxValidator& validator=wxDefaultValidator,
3275 const wxString& name = wxPyControlNameStr)
3276 : wxControl(parent, id, pos, size, style, validator, name) {}
3277
3278
3279 bool DoEraseBackground(wxDC* dc) {
3280 #ifdef __WXMSW__
3281 return wxWindow::DoEraseBackground(dc->GetHDC());
3282 #else
3283 dc->SetBackground(wxBrush(GetBackgroundColour()));
3284 dc->Clear();
3285 return true;
3286 #endif
3287 }
3288
3289 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3290 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3291 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3292 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3293
3294 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3295 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3296 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3297
3298 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3299 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3300
3301 DEC_PYCALLBACK__(InitDialog);
3302 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3303 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3304 DEC_PYCALLBACK_BOOL_(Validate);
3305
3306 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3307 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3308 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3309
3310 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3311 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3312
3313 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3314 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3315
3316 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3317
3318 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3319
3320 PYPRIVATE;
3321 };
3322
3323 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3324
3325 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3326 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3327 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3328 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3329
3330 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3331 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3332 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3333
3334 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3335 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3336
3337 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3338 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3339 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3340 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3341
3342 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3343 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3344 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3345
3346 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3347 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3348
3349 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3350 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3351
3352 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3353
3354 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3355
3356
3357
3358 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3359
3360 #include <wx/generic/dragimgg.h>
3361
3362 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3363 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3364 wxDateTime rv;
3365 self->GetRange(&rv, NULL);
3366 return rv;
3367 }
3368 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3369 wxDateTime rv;
3370 self->GetRange(NULL, &rv);
3371 return rv;
3372 }
3373 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3374 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3375 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3376 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3377 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3378 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3379 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3380 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3381 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
3382 static const wxString wxPySearchCtrlNameStr(wxSearchCtrlNameStr);
3383
3384 #if !defined(wxUSE_SEARCHCTRL) || !wxUSE_SEARCHCTRL
3385 // define a dummy class for builds that don't have wxSearchCtrl
3386
3387 enum {
3388 wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN,
3389 wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN
3390 };
3391
3392 class wxSearchCtrl : public wxTextCtrl
3393 {
3394 public:
3395 wxSearchCtrl() { wxPyRaiseNotImplemented(); }
3396 wxSearchCtrl(wxWindow*, wxWindowID,
3397 const wxString&,
3398 const wxPoint&,
3399 const wxSize&,
3400 long style,
3401 const wxValidator&,
3402 const wxString& name)
3403 { wxPyRaiseNotImplemented(); }
3404
3405 bool Create( wxWindow*, wxWindowID,
3406 const wxString&,
3407 const wxPoint&,
3408 const wxSize&,
3409 long style,
3410 const wxValidator&,
3411 const wxString& name) {}
3412
3413 virtual void SetMenu( wxMenu* ) {}
3414 virtual wxMenu* GetMenu() { return NULL; }
3415
3416 // get/set search options
3417 // ----------------------
3418 virtual void ShowSearchButton( bool ) {}
3419 virtual bool IsSearchButtonVisible() const { return false; }
3420
3421 virtual void ShowCancelButton( bool ) {}
3422 virtual bool IsCancelButtonVisible() const { return false; }
3423
3424 virtual void SetDescriptiveText(const wxString& text);
3425 virtual wxString GetDescriptiveText() const;
3426 };
3427 #endif
3428
3429 #ifdef __cplusplus
3430 extern "C" {
3431 #endif
3432 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3433 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3434 return 1;
3435 }
3436
3437
3438 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3439 PyObject *pyobj = 0;
3440
3441 {
3442 #if wxUSE_UNICODE
3443 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3444 #else
3445 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3446 #endif
3447 }
3448 return pyobj;
3449 }
3450
3451
3452 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3453 PyObject *resultobj = 0;
3454 wxWindow *arg1 = (wxWindow *) 0 ;
3455 int arg2 = (int) -1 ;
3456 wxString const &arg3_defvalue = wxPyEmptyString ;
3457 wxString *arg3 = (wxString *) &arg3_defvalue ;
3458 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3459 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3460 wxSize const &arg5_defvalue = wxDefaultSize ;
3461 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3462 long arg6 = (long) 0 ;
3463 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3464 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3465 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3466 wxString *arg8 = (wxString *) &arg8_defvalue ;
3467 wxButton *result = 0 ;
3468 void *argp1 = 0 ;
3469 int res1 = 0 ;
3470 int val2 ;
3471 int ecode2 = 0 ;
3472 bool temp3 = false ;
3473 wxPoint temp4 ;
3474 wxSize temp5 ;
3475 long val6 ;
3476 int ecode6 = 0 ;
3477 void *argp7 = 0 ;
3478 int res7 = 0 ;
3479 bool temp8 = false ;
3480 PyObject * obj0 = 0 ;
3481 PyObject * obj1 = 0 ;
3482 PyObject * obj2 = 0 ;
3483 PyObject * obj3 = 0 ;
3484 PyObject * obj4 = 0 ;
3485 PyObject * obj5 = 0 ;
3486 PyObject * obj6 = 0 ;
3487 PyObject * obj7 = 0 ;
3488 char * kwnames[] = {
3489 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3490 };
3491
3492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3494 if (!SWIG_IsOK(res1)) {
3495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3496 }
3497 arg1 = reinterpret_cast< wxWindow * >(argp1);
3498 if (obj1) {
3499 ecode2 = SWIG_AsVal_int(obj1, &val2);
3500 if (!SWIG_IsOK(ecode2)) {
3501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3502 }
3503 arg2 = static_cast< int >(val2);
3504 }
3505 if (obj2) {
3506 {
3507 arg3 = wxString_in_helper(obj2);
3508 if (arg3 == NULL) SWIG_fail;
3509 temp3 = true;
3510 }
3511 }
3512 if (obj3) {
3513 {
3514 arg4 = &temp4;
3515 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3516 }
3517 }
3518 if (obj4) {
3519 {
3520 arg5 = &temp5;
3521 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3522 }
3523 }
3524 if (obj5) {
3525 ecode6 = SWIG_AsVal_long(obj5, &val6);
3526 if (!SWIG_IsOK(ecode6)) {
3527 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3528 }
3529 arg6 = static_cast< long >(val6);
3530 }
3531 if (obj6) {
3532 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3533 if (!SWIG_IsOK(res7)) {
3534 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3535 }
3536 if (!argp7) {
3537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3538 }
3539 arg7 = reinterpret_cast< wxValidator * >(argp7);
3540 }
3541 if (obj7) {
3542 {
3543 arg8 = wxString_in_helper(obj7);
3544 if (arg8 == NULL) SWIG_fail;
3545 temp8 = true;
3546 }
3547 }
3548 {
3549 if (!wxPyCheckForApp()) SWIG_fail;
3550 PyThreadState* __tstate = wxPyBeginAllowThreads();
3551 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3552 wxPyEndAllowThreads(__tstate);
3553 if (PyErr_Occurred()) SWIG_fail;
3554 }
3555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3556 {
3557 if (temp3)
3558 delete arg3;
3559 }
3560 {
3561 if (temp8)
3562 delete arg8;
3563 }
3564 return resultobj;
3565 fail:
3566 {
3567 if (temp3)
3568 delete arg3;
3569 }
3570 {
3571 if (temp8)
3572 delete arg8;
3573 }
3574 return NULL;
3575 }
3576
3577
3578 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3579 PyObject *resultobj = 0;
3580 wxButton *result = 0 ;
3581
3582 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3583 {
3584 if (!wxPyCheckForApp()) SWIG_fail;
3585 PyThreadState* __tstate = wxPyBeginAllowThreads();
3586 result = (wxButton *)new wxButton();
3587 wxPyEndAllowThreads(__tstate);
3588 if (PyErr_Occurred()) SWIG_fail;
3589 }
3590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3591 return resultobj;
3592 fail:
3593 return NULL;
3594 }
3595
3596
3597 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3598 PyObject *resultobj = 0;
3599 wxButton *arg1 = (wxButton *) 0 ;
3600 wxWindow *arg2 = (wxWindow *) 0 ;
3601 int arg3 = (int) -1 ;
3602 wxString const &arg4_defvalue = wxPyEmptyString ;
3603 wxString *arg4 = (wxString *) &arg4_defvalue ;
3604 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3605 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3606 wxSize const &arg6_defvalue = wxDefaultSize ;
3607 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3608 long arg7 = (long) 0 ;
3609 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3610 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3611 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3612 wxString *arg9 = (wxString *) &arg9_defvalue ;
3613 bool result;
3614 void *argp1 = 0 ;
3615 int res1 = 0 ;
3616 void *argp2 = 0 ;
3617 int res2 = 0 ;
3618 int val3 ;
3619 int ecode3 = 0 ;
3620 bool temp4 = false ;
3621 wxPoint temp5 ;
3622 wxSize temp6 ;
3623 long val7 ;
3624 int ecode7 = 0 ;
3625 void *argp8 = 0 ;
3626 int res8 = 0 ;
3627 bool temp9 = false ;
3628 PyObject * obj0 = 0 ;
3629 PyObject * obj1 = 0 ;
3630 PyObject * obj2 = 0 ;
3631 PyObject * obj3 = 0 ;
3632 PyObject * obj4 = 0 ;
3633 PyObject * obj5 = 0 ;
3634 PyObject * obj6 = 0 ;
3635 PyObject * obj7 = 0 ;
3636 PyObject * obj8 = 0 ;
3637 char * kwnames[] = {
3638 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3639 };
3640
3641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3643 if (!SWIG_IsOK(res1)) {
3644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3645 }
3646 arg1 = reinterpret_cast< wxButton * >(argp1);
3647 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3648 if (!SWIG_IsOK(res2)) {
3649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3650 }
3651 arg2 = reinterpret_cast< wxWindow * >(argp2);
3652 if (obj2) {
3653 ecode3 = SWIG_AsVal_int(obj2, &val3);
3654 if (!SWIG_IsOK(ecode3)) {
3655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3656 }
3657 arg3 = static_cast< int >(val3);
3658 }
3659 if (obj3) {
3660 {
3661 arg4 = wxString_in_helper(obj3);
3662 if (arg4 == NULL) SWIG_fail;
3663 temp4 = true;
3664 }
3665 }
3666 if (obj4) {
3667 {
3668 arg5 = &temp5;
3669 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3670 }
3671 }
3672 if (obj5) {
3673 {
3674 arg6 = &temp6;
3675 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3676 }
3677 }
3678 if (obj6) {
3679 ecode7 = SWIG_AsVal_long(obj6, &val7);
3680 if (!SWIG_IsOK(ecode7)) {
3681 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3682 }
3683 arg7 = static_cast< long >(val7);
3684 }
3685 if (obj7) {
3686 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3687 if (!SWIG_IsOK(res8)) {
3688 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3689 }
3690 if (!argp8) {
3691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3692 }
3693 arg8 = reinterpret_cast< wxValidator * >(argp8);
3694 }
3695 if (obj8) {
3696 {
3697 arg9 = wxString_in_helper(obj8);
3698 if (arg9 == NULL) SWIG_fail;
3699 temp9 = true;
3700 }
3701 }
3702 {
3703 PyThreadState* __tstate = wxPyBeginAllowThreads();
3704 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3705 wxPyEndAllowThreads(__tstate);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 }
3708 {
3709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3710 }
3711 {
3712 if (temp4)
3713 delete arg4;
3714 }
3715 {
3716 if (temp9)
3717 delete arg9;
3718 }
3719 return resultobj;
3720 fail:
3721 {
3722 if (temp4)
3723 delete arg4;
3724 }
3725 {
3726 if (temp9)
3727 delete arg9;
3728 }
3729 return NULL;
3730 }
3731
3732
3733 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3734 PyObject *resultobj = 0;
3735 wxButton *arg1 = (wxButton *) 0 ;
3736 void *argp1 = 0 ;
3737 int res1 = 0 ;
3738 PyObject *swig_obj[1] ;
3739
3740 if (!args) SWIG_fail;
3741 swig_obj[0] = args;
3742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3743 if (!SWIG_IsOK(res1)) {
3744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3745 }
3746 arg1 = reinterpret_cast< wxButton * >(argp1);
3747 {
3748 PyThreadState* __tstate = wxPyBeginAllowThreads();
3749 (arg1)->SetDefault();
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 resultobj = SWIG_Py_Void();
3754 return resultobj;
3755 fail:
3756 return NULL;
3757 }
3758
3759
3760 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3761 PyObject *resultobj = 0;
3762 wxSize result;
3763
3764 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3765 {
3766 PyThreadState* __tstate = wxPyBeginAllowThreads();
3767 result = wxButton::GetDefaultSize();
3768 wxPyEndAllowThreads(__tstate);
3769 if (PyErr_Occurred()) SWIG_fail;
3770 }
3771 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3772 return resultobj;
3773 fail:
3774 return NULL;
3775 }
3776
3777
3778 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3779 PyObject *resultobj = 0;
3780 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3781 SwigValueWrapper<wxVisualAttributes > result;
3782 int val1 ;
3783 int ecode1 = 0 ;
3784 PyObject * obj0 = 0 ;
3785 char * kwnames[] = {
3786 (char *) "variant", NULL
3787 };
3788
3789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3790 if (obj0) {
3791 ecode1 = SWIG_AsVal_int(obj0, &val1);
3792 if (!SWIG_IsOK(ecode1)) {
3793 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3794 }
3795 arg1 = static_cast< wxWindowVariant >(val1);
3796 }
3797 {
3798 if (!wxPyCheckForApp()) SWIG_fail;
3799 PyThreadState* __tstate = wxPyBeginAllowThreads();
3800 result = wxButton::GetClassDefaultAttributes(arg1);
3801 wxPyEndAllowThreads(__tstate);
3802 if (PyErr_Occurred()) SWIG_fail;
3803 }
3804 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3805 return resultobj;
3806 fail:
3807 return NULL;
3808 }
3809
3810
3811 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3812 PyObject *obj;
3813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3814 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3815 return SWIG_Py_Void();
3816 }
3817
3818 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3819 return SWIG_Python_InitShadowInstance(args);
3820 }
3821
3822 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3823 PyObject *resultobj = 0;
3824 wxWindow *arg1 = (wxWindow *) 0 ;
3825 int arg2 = (int) -1 ;
3826 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3827 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3828 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3829 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3830 wxSize const &arg5_defvalue = wxDefaultSize ;
3831 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3832 long arg6 = (long) wxBU_AUTODRAW ;
3833 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3834 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3835 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3836 wxString *arg8 = (wxString *) &arg8_defvalue ;
3837 wxBitmapButton *result = 0 ;
3838 void *argp1 = 0 ;
3839 int res1 = 0 ;
3840 int val2 ;
3841 int ecode2 = 0 ;
3842 void *argp3 = 0 ;
3843 int res3 = 0 ;
3844 wxPoint temp4 ;
3845 wxSize temp5 ;
3846 long val6 ;
3847 int ecode6 = 0 ;
3848 void *argp7 = 0 ;
3849 int res7 = 0 ;
3850 bool temp8 = false ;
3851 PyObject * obj0 = 0 ;
3852 PyObject * obj1 = 0 ;
3853 PyObject * obj2 = 0 ;
3854 PyObject * obj3 = 0 ;
3855 PyObject * obj4 = 0 ;
3856 PyObject * obj5 = 0 ;
3857 PyObject * obj6 = 0 ;
3858 PyObject * obj7 = 0 ;
3859 char * kwnames[] = {
3860 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3861 };
3862
3863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3865 if (!SWIG_IsOK(res1)) {
3866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3867 }
3868 arg1 = reinterpret_cast< wxWindow * >(argp1);
3869 if (obj1) {
3870 ecode2 = SWIG_AsVal_int(obj1, &val2);
3871 if (!SWIG_IsOK(ecode2)) {
3872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3873 }
3874 arg2 = static_cast< int >(val2);
3875 }
3876 if (obj2) {
3877 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3878 if (!SWIG_IsOK(res3)) {
3879 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3880 }
3881 if (!argp3) {
3882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3883 }
3884 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3885 }
3886 if (obj3) {
3887 {
3888 arg4 = &temp4;
3889 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3890 }
3891 }
3892 if (obj4) {
3893 {
3894 arg5 = &temp5;
3895 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3896 }
3897 }
3898 if (obj5) {
3899 ecode6 = SWIG_AsVal_long(obj5, &val6);
3900 if (!SWIG_IsOK(ecode6)) {
3901 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3902 }
3903 arg6 = static_cast< long >(val6);
3904 }
3905 if (obj6) {
3906 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3907 if (!SWIG_IsOK(res7)) {
3908 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3909 }
3910 if (!argp7) {
3911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3912 }
3913 arg7 = reinterpret_cast< wxValidator * >(argp7);
3914 }
3915 if (obj7) {
3916 {
3917 arg8 = wxString_in_helper(obj7);
3918 if (arg8 == NULL) SWIG_fail;
3919 temp8 = true;
3920 }
3921 }
3922 {
3923 if (!wxPyCheckForApp()) SWIG_fail;
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3926 wxPyEndAllowThreads(__tstate);
3927 if (PyErr_Occurred()) SWIG_fail;
3928 }
3929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3930 {
3931 if (temp8)
3932 delete arg8;
3933 }
3934 return resultobj;
3935 fail:
3936 {
3937 if (temp8)
3938 delete arg8;
3939 }
3940 return NULL;
3941 }
3942
3943
3944 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3945 PyObject *resultobj = 0;
3946 wxBitmapButton *result = 0 ;
3947
3948 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3949 {
3950 if (!wxPyCheckForApp()) SWIG_fail;
3951 PyThreadState* __tstate = wxPyBeginAllowThreads();
3952 result = (wxBitmapButton *)new wxBitmapButton();
3953 wxPyEndAllowThreads(__tstate);
3954 if (PyErr_Occurred()) SWIG_fail;
3955 }
3956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3957 return resultobj;
3958 fail:
3959 return NULL;
3960 }
3961
3962
3963 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3964 PyObject *resultobj = 0;
3965 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3966 wxWindow *arg2 = (wxWindow *) 0 ;
3967 int arg3 = (int) -1 ;
3968 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3969 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3970 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3971 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3972 wxSize const &arg6_defvalue = wxDefaultSize ;
3973 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3974 long arg7 = (long) wxBU_AUTODRAW ;
3975 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3976 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3977 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3978 wxString *arg9 = (wxString *) &arg9_defvalue ;
3979 bool result;
3980 void *argp1 = 0 ;
3981 int res1 = 0 ;
3982 void *argp2 = 0 ;
3983 int res2 = 0 ;
3984 int val3 ;
3985 int ecode3 = 0 ;
3986 void *argp4 = 0 ;
3987 int res4 = 0 ;
3988 wxPoint temp5 ;
3989 wxSize temp6 ;
3990 long val7 ;
3991 int ecode7 = 0 ;
3992 void *argp8 = 0 ;
3993 int res8 = 0 ;
3994 bool temp9 = false ;
3995 PyObject * obj0 = 0 ;
3996 PyObject * obj1 = 0 ;
3997 PyObject * obj2 = 0 ;
3998 PyObject * obj3 = 0 ;
3999 PyObject * obj4 = 0 ;
4000 PyObject * obj5 = 0 ;
4001 PyObject * obj6 = 0 ;
4002 PyObject * obj7 = 0 ;
4003 PyObject * obj8 = 0 ;
4004 char * kwnames[] = {
4005 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4006 };
4007
4008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4010 if (!SWIG_IsOK(res1)) {
4011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4012 }
4013 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4014 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4015 if (!SWIG_IsOK(res2)) {
4016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4017 }
4018 arg2 = reinterpret_cast< wxWindow * >(argp2);
4019 if (obj2) {
4020 ecode3 = SWIG_AsVal_int(obj2, &val3);
4021 if (!SWIG_IsOK(ecode3)) {
4022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
4023 }
4024 arg3 = static_cast< int >(val3);
4025 }
4026 if (obj3) {
4027 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
4028 if (!SWIG_IsOK(res4)) {
4029 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4030 }
4031 if (!argp4) {
4032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
4033 }
4034 arg4 = reinterpret_cast< wxBitmap * >(argp4);
4035 }
4036 if (obj4) {
4037 {
4038 arg5 = &temp5;
4039 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4040 }
4041 }
4042 if (obj5) {
4043 {
4044 arg6 = &temp6;
4045 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4046 }
4047 }
4048 if (obj6) {
4049 ecode7 = SWIG_AsVal_long(obj6, &val7);
4050 if (!SWIG_IsOK(ecode7)) {
4051 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4052 }
4053 arg7 = static_cast< long >(val7);
4054 }
4055 if (obj7) {
4056 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4057 if (!SWIG_IsOK(res8)) {
4058 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4059 }
4060 if (!argp8) {
4061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4062 }
4063 arg8 = reinterpret_cast< wxValidator * >(argp8);
4064 }
4065 if (obj8) {
4066 {
4067 arg9 = wxString_in_helper(obj8);
4068 if (arg9 == NULL) SWIG_fail;
4069 temp9 = true;
4070 }
4071 }
4072 {
4073 PyThreadState* __tstate = wxPyBeginAllowThreads();
4074 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4075 wxPyEndAllowThreads(__tstate);
4076 if (PyErr_Occurred()) SWIG_fail;
4077 }
4078 {
4079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4080 }
4081 {
4082 if (temp9)
4083 delete arg9;
4084 }
4085 return resultobj;
4086 fail:
4087 {
4088 if (temp9)
4089 delete arg9;
4090 }
4091 return NULL;
4092 }
4093
4094
4095 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4096 PyObject *resultobj = 0;
4097 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4098 wxBitmap result;
4099 void *argp1 = 0 ;
4100 int res1 = 0 ;
4101 PyObject *swig_obj[1] ;
4102
4103 if (!args) SWIG_fail;
4104 swig_obj[0] = args;
4105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4106 if (!SWIG_IsOK(res1)) {
4107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4108 }
4109 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4110 {
4111 PyThreadState* __tstate = wxPyBeginAllowThreads();
4112 result = (arg1)->GetBitmapLabel();
4113 wxPyEndAllowThreads(__tstate);
4114 if (PyErr_Occurred()) SWIG_fail;
4115 }
4116 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4117 return resultobj;
4118 fail:
4119 return NULL;
4120 }
4121
4122
4123 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4124 PyObject *resultobj = 0;
4125 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4126 wxBitmap result;
4127 void *argp1 = 0 ;
4128 int res1 = 0 ;
4129 PyObject *swig_obj[1] ;
4130
4131 if (!args) SWIG_fail;
4132 swig_obj[0] = args;
4133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4134 if (!SWIG_IsOK(res1)) {
4135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4136 }
4137 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4138 {
4139 PyThreadState* __tstate = wxPyBeginAllowThreads();
4140 result = (arg1)->GetBitmapDisabled();
4141 wxPyEndAllowThreads(__tstate);
4142 if (PyErr_Occurred()) SWIG_fail;
4143 }
4144 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4145 return resultobj;
4146 fail:
4147 return NULL;
4148 }
4149
4150
4151 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4152 PyObject *resultobj = 0;
4153 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4154 wxBitmap result;
4155 void *argp1 = 0 ;
4156 int res1 = 0 ;
4157 PyObject *swig_obj[1] ;
4158
4159 if (!args) SWIG_fail;
4160 swig_obj[0] = args;
4161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4162 if (!SWIG_IsOK(res1)) {
4163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4164 }
4165 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4166 {
4167 PyThreadState* __tstate = wxPyBeginAllowThreads();
4168 result = (arg1)->GetBitmapFocus();
4169 wxPyEndAllowThreads(__tstate);
4170 if (PyErr_Occurred()) SWIG_fail;
4171 }
4172 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4173 return resultobj;
4174 fail:
4175 return NULL;
4176 }
4177
4178
4179 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4180 PyObject *resultobj = 0;
4181 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4182 wxBitmap result;
4183 void *argp1 = 0 ;
4184 int res1 = 0 ;
4185 PyObject *swig_obj[1] ;
4186
4187 if (!args) SWIG_fail;
4188 swig_obj[0] = args;
4189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4190 if (!SWIG_IsOK(res1)) {
4191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4192 }
4193 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4194 {
4195 PyThreadState* __tstate = wxPyBeginAllowThreads();
4196 result = (arg1)->GetBitmapSelected();
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4201 return resultobj;
4202 fail:
4203 return NULL;
4204 }
4205
4206
4207 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4208 PyObject *resultobj = 0;
4209 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4210 wxBitmap result;
4211 void *argp1 = 0 ;
4212 int res1 = 0 ;
4213 PyObject *swig_obj[1] ;
4214
4215 if (!args) SWIG_fail;
4216 swig_obj[0] = args;
4217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4218 if (!SWIG_IsOK(res1)) {
4219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4220 }
4221 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4222 {
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 result = (arg1)->GetBitmapHover();
4225 wxPyEndAllowThreads(__tstate);
4226 if (PyErr_Occurred()) SWIG_fail;
4227 }
4228 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4229 return resultobj;
4230 fail:
4231 return NULL;
4232 }
4233
4234
4235 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj = 0;
4237 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4238 wxBitmap *arg2 = 0 ;
4239 void *argp1 = 0 ;
4240 int res1 = 0 ;
4241 void *argp2 = 0 ;
4242 int res2 = 0 ;
4243 PyObject * obj0 = 0 ;
4244 PyObject * obj1 = 0 ;
4245 char * kwnames[] = {
4246 (char *) "self",(char *) "bitmap", NULL
4247 };
4248
4249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4251 if (!SWIG_IsOK(res1)) {
4252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4253 }
4254 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4256 if (!SWIG_IsOK(res2)) {
4257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4258 }
4259 if (!argp2) {
4260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4261 }
4262 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4263 {
4264 PyThreadState* __tstate = wxPyBeginAllowThreads();
4265 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 resultobj = SWIG_Py_Void();
4270 return resultobj;
4271 fail:
4272 return NULL;
4273 }
4274
4275
4276 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4277 PyObject *resultobj = 0;
4278 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4279 wxBitmap *arg2 = 0 ;
4280 void *argp1 = 0 ;
4281 int res1 = 0 ;
4282 void *argp2 = 0 ;
4283 int res2 = 0 ;
4284 PyObject * obj0 = 0 ;
4285 PyObject * obj1 = 0 ;
4286 char * kwnames[] = {
4287 (char *) "self",(char *) "bitmap", NULL
4288 };
4289
4290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4292 if (!SWIG_IsOK(res1)) {
4293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4294 }
4295 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4297 if (!SWIG_IsOK(res2)) {
4298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4299 }
4300 if (!argp2) {
4301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4302 }
4303 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4304 {
4305 PyThreadState* __tstate = wxPyBeginAllowThreads();
4306 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4307 wxPyEndAllowThreads(__tstate);
4308 if (PyErr_Occurred()) SWIG_fail;
4309 }
4310 resultobj = SWIG_Py_Void();
4311 return resultobj;
4312 fail:
4313 return NULL;
4314 }
4315
4316
4317 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4318 PyObject *resultobj = 0;
4319 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4320 wxBitmap *arg2 = 0 ;
4321 void *argp1 = 0 ;
4322 int res1 = 0 ;
4323 void *argp2 = 0 ;
4324 int res2 = 0 ;
4325 PyObject * obj0 = 0 ;
4326 PyObject * obj1 = 0 ;
4327 char * kwnames[] = {
4328 (char *) "self",(char *) "bitmap", NULL
4329 };
4330
4331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4333 if (!SWIG_IsOK(res1)) {
4334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4335 }
4336 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4338 if (!SWIG_IsOK(res2)) {
4339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4340 }
4341 if (!argp2) {
4342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4343 }
4344 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4345 {
4346 PyThreadState* __tstate = wxPyBeginAllowThreads();
4347 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4348 wxPyEndAllowThreads(__tstate);
4349 if (PyErr_Occurred()) SWIG_fail;
4350 }
4351 resultobj = SWIG_Py_Void();
4352 return resultobj;
4353 fail:
4354 return NULL;
4355 }
4356
4357
4358 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4359 PyObject *resultobj = 0;
4360 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4361 wxBitmap *arg2 = 0 ;
4362 void *argp1 = 0 ;
4363 int res1 = 0 ;
4364 void *argp2 = 0 ;
4365 int res2 = 0 ;
4366 PyObject * obj0 = 0 ;
4367 PyObject * obj1 = 0 ;
4368 char * kwnames[] = {
4369 (char *) "self",(char *) "bitmap", NULL
4370 };
4371
4372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4374 if (!SWIG_IsOK(res1)) {
4375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4376 }
4377 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4379 if (!SWIG_IsOK(res2)) {
4380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4381 }
4382 if (!argp2) {
4383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4384 }
4385 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4386 {
4387 PyThreadState* __tstate = wxPyBeginAllowThreads();
4388 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4389 wxPyEndAllowThreads(__tstate);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 resultobj = SWIG_Py_Void();
4393 return resultobj;
4394 fail:
4395 return NULL;
4396 }
4397
4398
4399 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4400 PyObject *resultobj = 0;
4401 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4402 wxBitmap *arg2 = 0 ;
4403 void *argp1 = 0 ;
4404 int res1 = 0 ;
4405 void *argp2 = 0 ;
4406 int res2 = 0 ;
4407 PyObject * obj0 = 0 ;
4408 PyObject * obj1 = 0 ;
4409 char * kwnames[] = {
4410 (char *) "self",(char *) "hover", NULL
4411 };
4412
4413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4415 if (!SWIG_IsOK(res1)) {
4416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4417 }
4418 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4420 if (!SWIG_IsOK(res2)) {
4421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4422 }
4423 if (!argp2) {
4424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4425 }
4426 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4427 {
4428 PyThreadState* __tstate = wxPyBeginAllowThreads();
4429 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4430 wxPyEndAllowThreads(__tstate);
4431 if (PyErr_Occurred()) SWIG_fail;
4432 }
4433 resultobj = SWIG_Py_Void();
4434 return resultobj;
4435 fail:
4436 return NULL;
4437 }
4438
4439
4440 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4441 PyObject *resultobj = 0;
4442 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4443 int arg2 ;
4444 int arg3 ;
4445 void *argp1 = 0 ;
4446 int res1 = 0 ;
4447 int val2 ;
4448 int ecode2 = 0 ;
4449 int val3 ;
4450 int ecode3 = 0 ;
4451 PyObject * obj0 = 0 ;
4452 PyObject * obj1 = 0 ;
4453 PyObject * obj2 = 0 ;
4454 char * kwnames[] = {
4455 (char *) "self",(char *) "x",(char *) "y", NULL
4456 };
4457
4458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4460 if (!SWIG_IsOK(res1)) {
4461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4462 }
4463 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4464 ecode2 = SWIG_AsVal_int(obj1, &val2);
4465 if (!SWIG_IsOK(ecode2)) {
4466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4467 }
4468 arg2 = static_cast< int >(val2);
4469 ecode3 = SWIG_AsVal_int(obj2, &val3);
4470 if (!SWIG_IsOK(ecode3)) {
4471 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4472 }
4473 arg3 = static_cast< int >(val3);
4474 {
4475 PyThreadState* __tstate = wxPyBeginAllowThreads();
4476 (arg1)->SetMargins(arg2,arg3);
4477 wxPyEndAllowThreads(__tstate);
4478 if (PyErr_Occurred()) SWIG_fail;
4479 }
4480 resultobj = SWIG_Py_Void();
4481 return resultobj;
4482 fail:
4483 return NULL;
4484 }
4485
4486
4487 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4488 PyObject *resultobj = 0;
4489 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4490 int result;
4491 void *argp1 = 0 ;
4492 int res1 = 0 ;
4493 PyObject *swig_obj[1] ;
4494
4495 if (!args) SWIG_fail;
4496 swig_obj[0] = args;
4497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4498 if (!SWIG_IsOK(res1)) {
4499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4500 }
4501 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4502 {
4503 PyThreadState* __tstate = wxPyBeginAllowThreads();
4504 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4505 wxPyEndAllowThreads(__tstate);
4506 if (PyErr_Occurred()) SWIG_fail;
4507 }
4508 resultobj = SWIG_From_int(static_cast< int >(result));
4509 return resultobj;
4510 fail:
4511 return NULL;
4512 }
4513
4514
4515 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4516 PyObject *resultobj = 0;
4517 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4518 int result;
4519 void *argp1 = 0 ;
4520 int res1 = 0 ;
4521 PyObject *swig_obj[1] ;
4522
4523 if (!args) SWIG_fail;
4524 swig_obj[0] = args;
4525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4526 if (!SWIG_IsOK(res1)) {
4527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4528 }
4529 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4530 {
4531 PyThreadState* __tstate = wxPyBeginAllowThreads();
4532 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4533 wxPyEndAllowThreads(__tstate);
4534 if (PyErr_Occurred()) SWIG_fail;
4535 }
4536 resultobj = SWIG_From_int(static_cast< int >(result));
4537 return resultobj;
4538 fail:
4539 return NULL;
4540 }
4541
4542
4543 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4544 PyObject *obj;
4545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4546 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4547 return SWIG_Py_Void();
4548 }
4549
4550 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4551 return SWIG_Python_InitShadowInstance(args);
4552 }
4553
4554 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4555 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4556 return 1;
4557 }
4558
4559
4560 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4561 PyObject *pyobj = 0;
4562
4563 {
4564 #if wxUSE_UNICODE
4565 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4566 #else
4567 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4568 #endif
4569 }
4570 return pyobj;
4571 }
4572
4573
4574 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4575 PyObject *resultobj = 0;
4576 wxWindow *arg1 = (wxWindow *) 0 ;
4577 int arg2 = (int) -1 ;
4578 wxString const &arg3_defvalue = wxPyEmptyString ;
4579 wxString *arg3 = (wxString *) &arg3_defvalue ;
4580 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4581 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4582 wxSize const &arg5_defvalue = wxDefaultSize ;
4583 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4584 long arg6 = (long) 0 ;
4585 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4586 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4587 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4588 wxString *arg8 = (wxString *) &arg8_defvalue ;
4589 wxCheckBox *result = 0 ;
4590 void *argp1 = 0 ;
4591 int res1 = 0 ;
4592 int val2 ;
4593 int ecode2 = 0 ;
4594 bool temp3 = false ;
4595 wxPoint temp4 ;
4596 wxSize temp5 ;
4597 long val6 ;
4598 int ecode6 = 0 ;
4599 void *argp7 = 0 ;
4600 int res7 = 0 ;
4601 bool temp8 = false ;
4602 PyObject * obj0 = 0 ;
4603 PyObject * obj1 = 0 ;
4604 PyObject * obj2 = 0 ;
4605 PyObject * obj3 = 0 ;
4606 PyObject * obj4 = 0 ;
4607 PyObject * obj5 = 0 ;
4608 PyObject * obj6 = 0 ;
4609 PyObject * obj7 = 0 ;
4610 char * kwnames[] = {
4611 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4612 };
4613
4614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4616 if (!SWIG_IsOK(res1)) {
4617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4618 }
4619 arg1 = reinterpret_cast< wxWindow * >(argp1);
4620 if (obj1) {
4621 ecode2 = SWIG_AsVal_int(obj1, &val2);
4622 if (!SWIG_IsOK(ecode2)) {
4623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4624 }
4625 arg2 = static_cast< int >(val2);
4626 }
4627 if (obj2) {
4628 {
4629 arg3 = wxString_in_helper(obj2);
4630 if (arg3 == NULL) SWIG_fail;
4631 temp3 = true;
4632 }
4633 }
4634 if (obj3) {
4635 {
4636 arg4 = &temp4;
4637 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4638 }
4639 }
4640 if (obj4) {
4641 {
4642 arg5 = &temp5;
4643 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4644 }
4645 }
4646 if (obj5) {
4647 ecode6 = SWIG_AsVal_long(obj5, &val6);
4648 if (!SWIG_IsOK(ecode6)) {
4649 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4650 }
4651 arg6 = static_cast< long >(val6);
4652 }
4653 if (obj6) {
4654 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4655 if (!SWIG_IsOK(res7)) {
4656 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4657 }
4658 if (!argp7) {
4659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4660 }
4661 arg7 = reinterpret_cast< wxValidator * >(argp7);
4662 }
4663 if (obj7) {
4664 {
4665 arg8 = wxString_in_helper(obj7);
4666 if (arg8 == NULL) SWIG_fail;
4667 temp8 = true;
4668 }
4669 }
4670 {
4671 if (!wxPyCheckForApp()) SWIG_fail;
4672 PyThreadState* __tstate = wxPyBeginAllowThreads();
4673 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4678 {
4679 if (temp3)
4680 delete arg3;
4681 }
4682 {
4683 if (temp8)
4684 delete arg8;
4685 }
4686 return resultobj;
4687 fail:
4688 {
4689 if (temp3)
4690 delete arg3;
4691 }
4692 {
4693 if (temp8)
4694 delete arg8;
4695 }
4696 return NULL;
4697 }
4698
4699
4700 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4701 PyObject *resultobj = 0;
4702 wxCheckBox *result = 0 ;
4703
4704 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4705 {
4706 if (!wxPyCheckForApp()) SWIG_fail;
4707 PyThreadState* __tstate = wxPyBeginAllowThreads();
4708 result = (wxCheckBox *)new wxCheckBox();
4709 wxPyEndAllowThreads(__tstate);
4710 if (PyErr_Occurred()) SWIG_fail;
4711 }
4712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4713 return resultobj;
4714 fail:
4715 return NULL;
4716 }
4717
4718
4719 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4720 PyObject *resultobj = 0;
4721 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4722 wxWindow *arg2 = (wxWindow *) 0 ;
4723 int arg3 = (int) -1 ;
4724 wxString const &arg4_defvalue = wxPyEmptyString ;
4725 wxString *arg4 = (wxString *) &arg4_defvalue ;
4726 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4727 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4728 wxSize const &arg6_defvalue = wxDefaultSize ;
4729 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4730 long arg7 = (long) 0 ;
4731 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4732 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4733 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4734 wxString *arg9 = (wxString *) &arg9_defvalue ;
4735 bool result;
4736 void *argp1 = 0 ;
4737 int res1 = 0 ;
4738 void *argp2 = 0 ;
4739 int res2 = 0 ;
4740 int val3 ;
4741 int ecode3 = 0 ;
4742 bool temp4 = false ;
4743 wxPoint temp5 ;
4744 wxSize temp6 ;
4745 long val7 ;
4746 int ecode7 = 0 ;
4747 void *argp8 = 0 ;
4748 int res8 = 0 ;
4749 bool temp9 = false ;
4750 PyObject * obj0 = 0 ;
4751 PyObject * obj1 = 0 ;
4752 PyObject * obj2 = 0 ;
4753 PyObject * obj3 = 0 ;
4754 PyObject * obj4 = 0 ;
4755 PyObject * obj5 = 0 ;
4756 PyObject * obj6 = 0 ;
4757 PyObject * obj7 = 0 ;
4758 PyObject * obj8 = 0 ;
4759 char * kwnames[] = {
4760 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4761 };
4762
4763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4765 if (!SWIG_IsOK(res1)) {
4766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4767 }
4768 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4769 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4770 if (!SWIG_IsOK(res2)) {
4771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4772 }
4773 arg2 = reinterpret_cast< wxWindow * >(argp2);
4774 if (obj2) {
4775 ecode3 = SWIG_AsVal_int(obj2, &val3);
4776 if (!SWIG_IsOK(ecode3)) {
4777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4778 }
4779 arg3 = static_cast< int >(val3);
4780 }
4781 if (obj3) {
4782 {
4783 arg4 = wxString_in_helper(obj3);
4784 if (arg4 == NULL) SWIG_fail;
4785 temp4 = true;
4786 }
4787 }
4788 if (obj4) {
4789 {
4790 arg5 = &temp5;
4791 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4792 }
4793 }
4794 if (obj5) {
4795 {
4796 arg6 = &temp6;
4797 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4798 }
4799 }
4800 if (obj6) {
4801 ecode7 = SWIG_AsVal_long(obj6, &val7);
4802 if (!SWIG_IsOK(ecode7)) {
4803 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4804 }
4805 arg7 = static_cast< long >(val7);
4806 }
4807 if (obj7) {
4808 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4809 if (!SWIG_IsOK(res8)) {
4810 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4811 }
4812 if (!argp8) {
4813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4814 }
4815 arg8 = reinterpret_cast< wxValidator * >(argp8);
4816 }
4817 if (obj8) {
4818 {
4819 arg9 = wxString_in_helper(obj8);
4820 if (arg9 == NULL) SWIG_fail;
4821 temp9 = true;
4822 }
4823 }
4824 {
4825 PyThreadState* __tstate = wxPyBeginAllowThreads();
4826 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 {
4831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4832 }
4833 {
4834 if (temp4)
4835 delete arg4;
4836 }
4837 {
4838 if (temp9)
4839 delete arg9;
4840 }
4841 return resultobj;
4842 fail:
4843 {
4844 if (temp4)
4845 delete arg4;
4846 }
4847 {
4848 if (temp9)
4849 delete arg9;
4850 }
4851 return NULL;
4852 }
4853
4854
4855 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4856 PyObject *resultobj = 0;
4857 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4858 bool result;
4859 void *argp1 = 0 ;
4860 int res1 = 0 ;
4861 PyObject *swig_obj[1] ;
4862
4863 if (!args) SWIG_fail;
4864 swig_obj[0] = args;
4865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4866 if (!SWIG_IsOK(res1)) {
4867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4868 }
4869 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4870 {
4871 PyThreadState* __tstate = wxPyBeginAllowThreads();
4872 result = (bool)(arg1)->GetValue();
4873 wxPyEndAllowThreads(__tstate);
4874 if (PyErr_Occurred()) SWIG_fail;
4875 }
4876 {
4877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4878 }
4879 return resultobj;
4880 fail:
4881 return NULL;
4882 }
4883
4884
4885 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4886 PyObject *resultobj = 0;
4887 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4888 bool result;
4889 void *argp1 = 0 ;
4890 int res1 = 0 ;
4891 PyObject *swig_obj[1] ;
4892
4893 if (!args) SWIG_fail;
4894 swig_obj[0] = args;
4895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4896 if (!SWIG_IsOK(res1)) {
4897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4898 }
4899 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4900 {
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 result = (bool)(arg1)->IsChecked();
4903 wxPyEndAllowThreads(__tstate);
4904 if (PyErr_Occurred()) SWIG_fail;
4905 }
4906 {
4907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4908 }
4909 return resultobj;
4910 fail:
4911 return NULL;
4912 }
4913
4914
4915 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4916 PyObject *resultobj = 0;
4917 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4918 bool arg2 ;
4919 void *argp1 = 0 ;
4920 int res1 = 0 ;
4921 bool val2 ;
4922 int ecode2 = 0 ;
4923 PyObject * obj0 = 0 ;
4924 PyObject * obj1 = 0 ;
4925 char * kwnames[] = {
4926 (char *) "self",(char *) "state", NULL
4927 };
4928
4929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4931 if (!SWIG_IsOK(res1)) {
4932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4933 }
4934 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4935 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4936 if (!SWIG_IsOK(ecode2)) {
4937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4938 }
4939 arg2 = static_cast< bool >(val2);
4940 {
4941 PyThreadState* __tstate = wxPyBeginAllowThreads();
4942 (arg1)->SetValue(arg2);
4943 wxPyEndAllowThreads(__tstate);
4944 if (PyErr_Occurred()) SWIG_fail;
4945 }
4946 resultobj = SWIG_Py_Void();
4947 return resultobj;
4948 fail:
4949 return NULL;
4950 }
4951
4952
4953 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4954 PyObject *resultobj = 0;
4955 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4956 wxCheckBoxState result;
4957 void *argp1 = 0 ;
4958 int res1 = 0 ;
4959 PyObject *swig_obj[1] ;
4960
4961 if (!args) SWIG_fail;
4962 swig_obj[0] = args;
4963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4964 if (!SWIG_IsOK(res1)) {
4965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4966 }
4967 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4968 {
4969 PyThreadState* __tstate = wxPyBeginAllowThreads();
4970 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4971 wxPyEndAllowThreads(__tstate);
4972 if (PyErr_Occurred()) SWIG_fail;
4973 }
4974 resultobj = SWIG_From_int(static_cast< int >(result));
4975 return resultobj;
4976 fail:
4977 return NULL;
4978 }
4979
4980
4981 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4982 PyObject *resultobj = 0;
4983 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4984 wxCheckBoxState arg2 ;
4985 void *argp1 = 0 ;
4986 int res1 = 0 ;
4987 int val2 ;
4988 int ecode2 = 0 ;
4989 PyObject * obj0 = 0 ;
4990 PyObject * obj1 = 0 ;
4991 char * kwnames[] = {
4992 (char *) "self",(char *) "state", NULL
4993 };
4994
4995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4997 if (!SWIG_IsOK(res1)) {
4998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4999 }
5000 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5001 ecode2 = SWIG_AsVal_int(obj1, &val2);
5002 if (!SWIG_IsOK(ecode2)) {
5003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
5004 }
5005 arg2 = static_cast< wxCheckBoxState >(val2);
5006 {
5007 PyThreadState* __tstate = wxPyBeginAllowThreads();
5008 (arg1)->Set3StateValue(arg2);
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 resultobj = SWIG_Py_Void();
5013 return resultobj;
5014 fail:
5015 return NULL;
5016 }
5017
5018
5019 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5020 PyObject *resultobj = 0;
5021 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5022 bool result;
5023 void *argp1 = 0 ;
5024 int res1 = 0 ;
5025 PyObject *swig_obj[1] ;
5026
5027 if (!args) SWIG_fail;
5028 swig_obj[0] = args;
5029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5030 if (!SWIG_IsOK(res1)) {
5031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5032 }
5033 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5034 {
5035 PyThreadState* __tstate = wxPyBeginAllowThreads();
5036 result = (bool)((wxCheckBox const *)arg1)->Is3State();
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) SWIG_fail;
5039 }
5040 {
5041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5042 }
5043 return resultobj;
5044 fail:
5045 return NULL;
5046 }
5047
5048
5049 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5050 PyObject *resultobj = 0;
5051 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5052 bool result;
5053 void *argp1 = 0 ;
5054 int res1 = 0 ;
5055 PyObject *swig_obj[1] ;
5056
5057 if (!args) SWIG_fail;
5058 swig_obj[0] = args;
5059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5060 if (!SWIG_IsOK(res1)) {
5061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5062 }
5063 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5064 {
5065 PyThreadState* __tstate = wxPyBeginAllowThreads();
5066 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5067 wxPyEndAllowThreads(__tstate);
5068 if (PyErr_Occurred()) SWIG_fail;
5069 }
5070 {
5071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5072 }
5073 return resultobj;
5074 fail:
5075 return NULL;
5076 }
5077
5078
5079 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5080 PyObject *resultobj = 0;
5081 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5082 SwigValueWrapper<wxVisualAttributes > result;
5083 int val1 ;
5084 int ecode1 = 0 ;
5085 PyObject * obj0 = 0 ;
5086 char * kwnames[] = {
5087 (char *) "variant", NULL
5088 };
5089
5090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5091 if (obj0) {
5092 ecode1 = SWIG_AsVal_int(obj0, &val1);
5093 if (!SWIG_IsOK(ecode1)) {
5094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5095 }
5096 arg1 = static_cast< wxWindowVariant >(val1);
5097 }
5098 {
5099 if (!wxPyCheckForApp()) SWIG_fail;
5100 PyThreadState* __tstate = wxPyBeginAllowThreads();
5101 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5102 wxPyEndAllowThreads(__tstate);
5103 if (PyErr_Occurred()) SWIG_fail;
5104 }
5105 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5106 return resultobj;
5107 fail:
5108 return NULL;
5109 }
5110
5111
5112 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5113 PyObject *obj;
5114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5115 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5116 return SWIG_Py_Void();
5117 }
5118
5119 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5120 return SWIG_Python_InitShadowInstance(args);
5121 }
5122
5123 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5124 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5125 return 1;
5126 }
5127
5128
5129 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5130 PyObject *pyobj = 0;
5131
5132 {
5133 #if wxUSE_UNICODE
5134 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5135 #else
5136 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5137 #endif
5138 }
5139 return pyobj;
5140 }
5141
5142
5143 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5144 PyObject *resultobj = 0;
5145 wxWindow *arg1 = (wxWindow *) 0 ;
5146 int arg2 = (int) -1 ;
5147 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5148 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5149 wxSize const &arg4_defvalue = wxDefaultSize ;
5150 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5151 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5152 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5153 long arg6 = (long) 0 ;
5154 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5155 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5156 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5157 wxString *arg8 = (wxString *) &arg8_defvalue ;
5158 wxChoice *result = 0 ;
5159 void *argp1 = 0 ;
5160 int res1 = 0 ;
5161 int val2 ;
5162 int ecode2 = 0 ;
5163 wxPoint temp3 ;
5164 wxSize temp4 ;
5165 bool temp5 = false ;
5166 long val6 ;
5167 int ecode6 = 0 ;
5168 void *argp7 = 0 ;
5169 int res7 = 0 ;
5170 bool temp8 = false ;
5171 PyObject * obj0 = 0 ;
5172 PyObject * obj1 = 0 ;
5173 PyObject * obj2 = 0 ;
5174 PyObject * obj3 = 0 ;
5175 PyObject * obj4 = 0 ;
5176 PyObject * obj5 = 0 ;
5177 PyObject * obj6 = 0 ;
5178 PyObject * obj7 = 0 ;
5179 char * kwnames[] = {
5180 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5181 };
5182
5183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5185 if (!SWIG_IsOK(res1)) {
5186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5187 }
5188 arg1 = reinterpret_cast< wxWindow * >(argp1);
5189 if (obj1) {
5190 ecode2 = SWIG_AsVal_int(obj1, &val2);
5191 if (!SWIG_IsOK(ecode2)) {
5192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5193 }
5194 arg2 = static_cast< int >(val2);
5195 }
5196 if (obj2) {
5197 {
5198 arg3 = &temp3;
5199 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5200 }
5201 }
5202 if (obj3) {
5203 {
5204 arg4 = &temp4;
5205 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5206 }
5207 }
5208 if (obj4) {
5209 {
5210 if (! PySequence_Check(obj4)) {
5211 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5212 SWIG_fail;
5213 }
5214 arg5 = new wxArrayString;
5215 temp5 = true;
5216 int i, len=PySequence_Length(obj4);
5217 for (i=0; i<len; i++) {
5218 PyObject* item = PySequence_GetItem(obj4, i);
5219 wxString* s = wxString_in_helper(item);
5220 if (PyErr_Occurred()) SWIG_fail;
5221 arg5->Add(*s);
5222 delete s;
5223 Py_DECREF(item);
5224 }
5225 }
5226 }
5227 if (obj5) {
5228 ecode6 = SWIG_AsVal_long(obj5, &val6);
5229 if (!SWIG_IsOK(ecode6)) {
5230 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5231 }
5232 arg6 = static_cast< long >(val6);
5233 }
5234 if (obj6) {
5235 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5236 if (!SWIG_IsOK(res7)) {
5237 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5238 }
5239 if (!argp7) {
5240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5241 }
5242 arg7 = reinterpret_cast< wxValidator * >(argp7);
5243 }
5244 if (obj7) {
5245 {
5246 arg8 = wxString_in_helper(obj7);
5247 if (arg8 == NULL) SWIG_fail;
5248 temp8 = true;
5249 }
5250 }
5251 {
5252 if (!wxPyCheckForApp()) SWIG_fail;
5253 PyThreadState* __tstate = wxPyBeginAllowThreads();
5254 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5255 wxPyEndAllowThreads(__tstate);
5256 if (PyErr_Occurred()) SWIG_fail;
5257 }
5258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5259 {
5260 if (temp5) delete arg5;
5261 }
5262 {
5263 if (temp8)
5264 delete arg8;
5265 }
5266 return resultobj;
5267 fail:
5268 {
5269 if (temp5) delete arg5;
5270 }
5271 {
5272 if (temp8)
5273 delete arg8;
5274 }
5275 return NULL;
5276 }
5277
5278
5279 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5280 PyObject *resultobj = 0;
5281 wxChoice *result = 0 ;
5282
5283 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5284 {
5285 if (!wxPyCheckForApp()) SWIG_fail;
5286 PyThreadState* __tstate = wxPyBeginAllowThreads();
5287 result = (wxChoice *)new wxChoice();
5288 wxPyEndAllowThreads(__tstate);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 }
5291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5292 return resultobj;
5293 fail:
5294 return NULL;
5295 }
5296
5297
5298 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5299 PyObject *resultobj = 0;
5300 wxChoice *arg1 = (wxChoice *) 0 ;
5301 wxWindow *arg2 = (wxWindow *) 0 ;
5302 int arg3 = (int) -1 ;
5303 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5304 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5305 wxSize const &arg5_defvalue = wxDefaultSize ;
5306 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5307 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5308 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5309 long arg7 = (long) 0 ;
5310 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5311 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5312 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5313 wxString *arg9 = (wxString *) &arg9_defvalue ;
5314 bool result;
5315 void *argp1 = 0 ;
5316 int res1 = 0 ;
5317 void *argp2 = 0 ;
5318 int res2 = 0 ;
5319 int val3 ;
5320 int ecode3 = 0 ;
5321 wxPoint temp4 ;
5322 wxSize temp5 ;
5323 bool temp6 = false ;
5324 long val7 ;
5325 int ecode7 = 0 ;
5326 void *argp8 = 0 ;
5327 int res8 = 0 ;
5328 bool temp9 = false ;
5329 PyObject * obj0 = 0 ;
5330 PyObject * obj1 = 0 ;
5331 PyObject * obj2 = 0 ;
5332 PyObject * obj3 = 0 ;
5333 PyObject * obj4 = 0 ;
5334 PyObject * obj5 = 0 ;
5335 PyObject * obj6 = 0 ;
5336 PyObject * obj7 = 0 ;
5337 PyObject * obj8 = 0 ;
5338 char * kwnames[] = {
5339 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5340 };
5341
5342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5344 if (!SWIG_IsOK(res1)) {
5345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5346 }
5347 arg1 = reinterpret_cast< wxChoice * >(argp1);
5348 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5349 if (!SWIG_IsOK(res2)) {
5350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5351 }
5352 arg2 = reinterpret_cast< wxWindow * >(argp2);
5353 if (obj2) {
5354 ecode3 = SWIG_AsVal_int(obj2, &val3);
5355 if (!SWIG_IsOK(ecode3)) {
5356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5357 }
5358 arg3 = static_cast< int >(val3);
5359 }
5360 if (obj3) {
5361 {
5362 arg4 = &temp4;
5363 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5364 }
5365 }
5366 if (obj4) {
5367 {
5368 arg5 = &temp5;
5369 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5370 }
5371 }
5372 if (obj5) {
5373 {
5374 if (! PySequence_Check(obj5)) {
5375 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5376 SWIG_fail;
5377 }
5378 arg6 = new wxArrayString;
5379 temp6 = true;
5380 int i, len=PySequence_Length(obj5);
5381 for (i=0; i<len; i++) {
5382 PyObject* item = PySequence_GetItem(obj5, i);
5383 wxString* s = wxString_in_helper(item);
5384 if (PyErr_Occurred()) SWIG_fail;
5385 arg6->Add(*s);
5386 delete s;
5387 Py_DECREF(item);
5388 }
5389 }
5390 }
5391 if (obj6) {
5392 ecode7 = SWIG_AsVal_long(obj6, &val7);
5393 if (!SWIG_IsOK(ecode7)) {
5394 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5395 }
5396 arg7 = static_cast< long >(val7);
5397 }
5398 if (obj7) {
5399 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5400 if (!SWIG_IsOK(res8)) {
5401 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5402 }
5403 if (!argp8) {
5404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5405 }
5406 arg8 = reinterpret_cast< wxValidator * >(argp8);
5407 }
5408 if (obj8) {
5409 {
5410 arg9 = wxString_in_helper(obj8);
5411 if (arg9 == NULL) SWIG_fail;
5412 temp9 = true;
5413 }
5414 }
5415 {
5416 PyThreadState* __tstate = wxPyBeginAllowThreads();
5417 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5418 wxPyEndAllowThreads(__tstate);
5419 if (PyErr_Occurred()) SWIG_fail;
5420 }
5421 {
5422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5423 }
5424 {
5425 if (temp6) delete arg6;
5426 }
5427 {
5428 if (temp9)
5429 delete arg9;
5430 }
5431 return resultobj;
5432 fail:
5433 {
5434 if (temp6) delete arg6;
5435 }
5436 {
5437 if (temp9)
5438 delete arg9;
5439 }
5440 return NULL;
5441 }
5442
5443
5444 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5445 PyObject *resultobj = 0;
5446 wxChoice *arg1 = (wxChoice *) 0 ;
5447 int result;
5448 void *argp1 = 0 ;
5449 int res1 = 0 ;
5450 PyObject *swig_obj[1] ;
5451
5452 if (!args) SWIG_fail;
5453 swig_obj[0] = args;
5454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5455 if (!SWIG_IsOK(res1)) {
5456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5457 }
5458 arg1 = reinterpret_cast< wxChoice * >(argp1);
5459 {
5460 PyThreadState* __tstate = wxPyBeginAllowThreads();
5461 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5462 wxPyEndAllowThreads(__tstate);
5463 if (PyErr_Occurred()) SWIG_fail;
5464 }
5465 resultobj = SWIG_From_int(static_cast< int >(result));
5466 return resultobj;
5467 fail:
5468 return NULL;
5469 }
5470
5471
5472 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5473 PyObject *resultobj = 0;
5474 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5475 SwigValueWrapper<wxVisualAttributes > result;
5476 int val1 ;
5477 int ecode1 = 0 ;
5478 PyObject * obj0 = 0 ;
5479 char * kwnames[] = {
5480 (char *) "variant", NULL
5481 };
5482
5483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5484 if (obj0) {
5485 ecode1 = SWIG_AsVal_int(obj0, &val1);
5486 if (!SWIG_IsOK(ecode1)) {
5487 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5488 }
5489 arg1 = static_cast< wxWindowVariant >(val1);
5490 }
5491 {
5492 if (!wxPyCheckForApp()) SWIG_fail;
5493 PyThreadState* __tstate = wxPyBeginAllowThreads();
5494 result = wxChoice::GetClassDefaultAttributes(arg1);
5495 wxPyEndAllowThreads(__tstate);
5496 if (PyErr_Occurred()) SWIG_fail;
5497 }
5498 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5499 return resultobj;
5500 fail:
5501 return NULL;
5502 }
5503
5504
5505 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5506 PyObject *obj;
5507 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5508 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5509 return SWIG_Py_Void();
5510 }
5511
5512 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5513 return SWIG_Python_InitShadowInstance(args);
5514 }
5515
5516 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5517 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5518 return 1;
5519 }
5520
5521
5522 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5523 PyObject *pyobj = 0;
5524
5525 {
5526 #if wxUSE_UNICODE
5527 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5528 #else
5529 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5530 #endif
5531 }
5532 return pyobj;
5533 }
5534
5535
5536 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5537 PyObject *resultobj = 0;
5538 wxWindow *arg1 = (wxWindow *) 0 ;
5539 int arg2 = (int) -1 ;
5540 wxString const &arg3_defvalue = wxPyEmptyString ;
5541 wxString *arg3 = (wxString *) &arg3_defvalue ;
5542 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5543 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5544 wxSize const &arg5_defvalue = wxDefaultSize ;
5545 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5546 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5547 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5548 long arg7 = (long) 0 ;
5549 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5550 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5551 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5552 wxString *arg9 = (wxString *) &arg9_defvalue ;
5553 wxComboBox *result = 0 ;
5554 void *argp1 = 0 ;
5555 int res1 = 0 ;
5556 int val2 ;
5557 int ecode2 = 0 ;
5558 bool temp3 = false ;
5559 wxPoint temp4 ;
5560 wxSize temp5 ;
5561 bool temp6 = false ;
5562 long val7 ;
5563 int ecode7 = 0 ;
5564 void *argp8 = 0 ;
5565 int res8 = 0 ;
5566 bool temp9 = false ;
5567 PyObject * obj0 = 0 ;
5568 PyObject * obj1 = 0 ;
5569 PyObject * obj2 = 0 ;
5570 PyObject * obj3 = 0 ;
5571 PyObject * obj4 = 0 ;
5572 PyObject * obj5 = 0 ;
5573 PyObject * obj6 = 0 ;
5574 PyObject * obj7 = 0 ;
5575 PyObject * obj8 = 0 ;
5576 char * kwnames[] = {
5577 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5578 };
5579
5580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5582 if (!SWIG_IsOK(res1)) {
5583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5584 }
5585 arg1 = reinterpret_cast< wxWindow * >(argp1);
5586 if (obj1) {
5587 ecode2 = SWIG_AsVal_int(obj1, &val2);
5588 if (!SWIG_IsOK(ecode2)) {
5589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5590 }
5591 arg2 = static_cast< int >(val2);
5592 }
5593 if (obj2) {
5594 {
5595 arg3 = wxString_in_helper(obj2);
5596 if (arg3 == NULL) SWIG_fail;
5597 temp3 = true;
5598 }
5599 }
5600 if (obj3) {
5601 {
5602 arg4 = &temp4;
5603 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5604 }
5605 }
5606 if (obj4) {
5607 {
5608 arg5 = &temp5;
5609 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5610 }
5611 }
5612 if (obj5) {
5613 {
5614 if (! PySequence_Check(obj5)) {
5615 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5616 SWIG_fail;
5617 }
5618 arg6 = new wxArrayString;
5619 temp6 = true;
5620 int i, len=PySequence_Length(obj5);
5621 for (i=0; i<len; i++) {
5622 PyObject* item = PySequence_GetItem(obj5, i);
5623 wxString* s = wxString_in_helper(item);
5624 if (PyErr_Occurred()) SWIG_fail;
5625 arg6->Add(*s);
5626 delete s;
5627 Py_DECREF(item);
5628 }
5629 }
5630 }
5631 if (obj6) {
5632 ecode7 = SWIG_AsVal_long(obj6, &val7);
5633 if (!SWIG_IsOK(ecode7)) {
5634 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5635 }
5636 arg7 = static_cast< long >(val7);
5637 }
5638 if (obj7) {
5639 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5640 if (!SWIG_IsOK(res8)) {
5641 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5642 }
5643 if (!argp8) {
5644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5645 }
5646 arg8 = reinterpret_cast< wxValidator * >(argp8);
5647 }
5648 if (obj8) {
5649 {
5650 arg9 = wxString_in_helper(obj8);
5651 if (arg9 == NULL) SWIG_fail;
5652 temp9 = true;
5653 }
5654 }
5655 {
5656 if (!wxPyCheckForApp()) SWIG_fail;
5657 PyThreadState* __tstate = wxPyBeginAllowThreads();
5658 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);
5659 wxPyEndAllowThreads(__tstate);
5660 if (PyErr_Occurred()) SWIG_fail;
5661 }
5662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5663 {
5664 if (temp3)
5665 delete arg3;
5666 }
5667 {
5668 if (temp6) delete arg6;
5669 }
5670 {
5671 if (temp9)
5672 delete arg9;
5673 }
5674 return resultobj;
5675 fail:
5676 {
5677 if (temp3)
5678 delete arg3;
5679 }
5680 {
5681 if (temp6) delete arg6;
5682 }
5683 {
5684 if (temp9)
5685 delete arg9;
5686 }
5687 return NULL;
5688 }
5689
5690
5691 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5692 PyObject *resultobj = 0;
5693 wxComboBox *result = 0 ;
5694
5695 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5696 {
5697 if (!wxPyCheckForApp()) SWIG_fail;
5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
5699 result = (wxComboBox *)new wxComboBox();
5700 wxPyEndAllowThreads(__tstate);
5701 if (PyErr_Occurred()) SWIG_fail;
5702 }
5703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5704 return resultobj;
5705 fail:
5706 return NULL;
5707 }
5708
5709
5710 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5711 PyObject *resultobj = 0;
5712 wxComboBox *arg1 = (wxComboBox *) 0 ;
5713 wxWindow *arg2 = (wxWindow *) 0 ;
5714 int arg3 = (int) -1 ;
5715 wxString const &arg4_defvalue = wxPyEmptyString ;
5716 wxString *arg4 = (wxString *) &arg4_defvalue ;
5717 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5718 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5719 wxSize const &arg6_defvalue = wxDefaultSize ;
5720 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5721 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5722 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5723 long arg8 = (long) 0 ;
5724 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5725 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5726 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5727 wxString *arg10 = (wxString *) &arg10_defvalue ;
5728 bool result;
5729 void *argp1 = 0 ;
5730 int res1 = 0 ;
5731 void *argp2 = 0 ;
5732 int res2 = 0 ;
5733 int val3 ;
5734 int ecode3 = 0 ;
5735 bool temp4 = false ;
5736 wxPoint temp5 ;
5737 wxSize temp6 ;
5738 bool temp7 = false ;
5739 long val8 ;
5740 int ecode8 = 0 ;
5741 void *argp9 = 0 ;
5742 int res9 = 0 ;
5743 bool temp10 = false ;
5744 PyObject * obj0 = 0 ;
5745 PyObject * obj1 = 0 ;
5746 PyObject * obj2 = 0 ;
5747 PyObject * obj3 = 0 ;
5748 PyObject * obj4 = 0 ;
5749 PyObject * obj5 = 0 ;
5750 PyObject * obj6 = 0 ;
5751 PyObject * obj7 = 0 ;
5752 PyObject * obj8 = 0 ;
5753 PyObject * obj9 = 0 ;
5754 char * kwnames[] = {
5755 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5756 };
5757
5758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5760 if (!SWIG_IsOK(res1)) {
5761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5762 }
5763 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5764 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5765 if (!SWIG_IsOK(res2)) {
5766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5767 }
5768 arg2 = reinterpret_cast< wxWindow * >(argp2);
5769 if (obj2) {
5770 ecode3 = SWIG_AsVal_int(obj2, &val3);
5771 if (!SWIG_IsOK(ecode3)) {
5772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5773 }
5774 arg3 = static_cast< int >(val3);
5775 }
5776 if (obj3) {
5777 {
5778 arg4 = wxString_in_helper(obj3);
5779 if (arg4 == NULL) SWIG_fail;
5780 temp4 = true;
5781 }
5782 }
5783 if (obj4) {
5784 {
5785 arg5 = &temp5;
5786 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5787 }
5788 }
5789 if (obj5) {
5790 {
5791 arg6 = &temp6;
5792 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5793 }
5794 }
5795 if (obj6) {
5796 {
5797 if (! PySequence_Check(obj6)) {
5798 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5799 SWIG_fail;
5800 }
5801 arg7 = new wxArrayString;
5802 temp7 = true;
5803 int i, len=PySequence_Length(obj6);
5804 for (i=0; i<len; i++) {
5805 PyObject* item = PySequence_GetItem(obj6, i);
5806 wxString* s = wxString_in_helper(item);
5807 if (PyErr_Occurred()) SWIG_fail;
5808 arg7->Add(*s);
5809 delete s;
5810 Py_DECREF(item);
5811 }
5812 }
5813 }
5814 if (obj7) {
5815 ecode8 = SWIG_AsVal_long(obj7, &val8);
5816 if (!SWIG_IsOK(ecode8)) {
5817 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5818 }
5819 arg8 = static_cast< long >(val8);
5820 }
5821 if (obj8) {
5822 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5823 if (!SWIG_IsOK(res9)) {
5824 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5825 }
5826 if (!argp9) {
5827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5828 }
5829 arg9 = reinterpret_cast< wxValidator * >(argp9);
5830 }
5831 if (obj9) {
5832 {
5833 arg10 = wxString_in_helper(obj9);
5834 if (arg10 == NULL) SWIG_fail;
5835 temp10 = true;
5836 }
5837 }
5838 {
5839 PyThreadState* __tstate = wxPyBeginAllowThreads();
5840 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);
5841 wxPyEndAllowThreads(__tstate);
5842 if (PyErr_Occurred()) SWIG_fail;
5843 }
5844 {
5845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5846 }
5847 {
5848 if (temp4)
5849 delete arg4;
5850 }
5851 {
5852 if (temp7) delete arg7;
5853 }
5854 {
5855 if (temp10)
5856 delete arg10;
5857 }
5858 return resultobj;
5859 fail:
5860 {
5861 if (temp4)
5862 delete arg4;
5863 }
5864 {
5865 if (temp7) delete arg7;
5866 }
5867 {
5868 if (temp10)
5869 delete arg10;
5870 }
5871 return NULL;
5872 }
5873
5874
5875 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5876 PyObject *resultobj = 0;
5877 wxComboBox *arg1 = (wxComboBox *) 0 ;
5878 wxString result;
5879 void *argp1 = 0 ;
5880 int res1 = 0 ;
5881 PyObject *swig_obj[1] ;
5882
5883 if (!args) SWIG_fail;
5884 swig_obj[0] = args;
5885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5886 if (!SWIG_IsOK(res1)) {
5887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5888 }
5889 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5890 {
5891 PyThreadState* __tstate = wxPyBeginAllowThreads();
5892 result = ((wxComboBox const *)arg1)->GetValue();
5893 wxPyEndAllowThreads(__tstate);
5894 if (PyErr_Occurred()) SWIG_fail;
5895 }
5896 {
5897 #if wxUSE_UNICODE
5898 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5899 #else
5900 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5901 #endif
5902 }
5903 return resultobj;
5904 fail:
5905 return NULL;
5906 }
5907
5908
5909 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5910 PyObject *resultobj = 0;
5911 wxComboBox *arg1 = (wxComboBox *) 0 ;
5912 wxString *arg2 = 0 ;
5913 void *argp1 = 0 ;
5914 int res1 = 0 ;
5915 bool temp2 = false ;
5916 PyObject * obj0 = 0 ;
5917 PyObject * obj1 = 0 ;
5918 char * kwnames[] = {
5919 (char *) "self",(char *) "value", NULL
5920 };
5921
5922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5924 if (!SWIG_IsOK(res1)) {
5925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5926 }
5927 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5928 {
5929 arg2 = wxString_in_helper(obj1);
5930 if (arg2 == NULL) SWIG_fail;
5931 temp2 = true;
5932 }
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 (arg1)->SetValue((wxString const &)*arg2);
5936 wxPyEndAllowThreads(__tstate);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 resultobj = SWIG_Py_Void();
5940 {
5941 if (temp2)
5942 delete arg2;
5943 }
5944 return resultobj;
5945 fail:
5946 {
5947 if (temp2)
5948 delete arg2;
5949 }
5950 return NULL;
5951 }
5952
5953
5954 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 PyObject *swig_obj[1] ;
5960
5961 if (!args) SWIG_fail;
5962 swig_obj[0] = args;
5963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5966 }
5967 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 (arg1)->Copy();
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_Py_Void();
5975 return resultobj;
5976 fail:
5977 return NULL;
5978 }
5979
5980
5981 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5982 PyObject *resultobj = 0;
5983 wxComboBox *arg1 = (wxComboBox *) 0 ;
5984 void *argp1 = 0 ;
5985 int res1 = 0 ;
5986 PyObject *swig_obj[1] ;
5987
5988 if (!args) SWIG_fail;
5989 swig_obj[0] = args;
5990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5991 if (!SWIG_IsOK(res1)) {
5992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5993 }
5994 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5995 {
5996 PyThreadState* __tstate = wxPyBeginAllowThreads();
5997 (arg1)->Cut();
5998 wxPyEndAllowThreads(__tstate);
5999 if (PyErr_Occurred()) SWIG_fail;
6000 }
6001 resultobj = SWIG_Py_Void();
6002 return resultobj;
6003 fail:
6004 return NULL;
6005 }
6006
6007
6008 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6009 PyObject *resultobj = 0;
6010 wxComboBox *arg1 = (wxComboBox *) 0 ;
6011 void *argp1 = 0 ;
6012 int res1 = 0 ;
6013 PyObject *swig_obj[1] ;
6014
6015 if (!args) SWIG_fail;
6016 swig_obj[0] = args;
6017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6018 if (!SWIG_IsOK(res1)) {
6019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
6020 }
6021 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6022 {
6023 PyThreadState* __tstate = wxPyBeginAllowThreads();
6024 (arg1)->Paste();
6025 wxPyEndAllowThreads(__tstate);
6026 if (PyErr_Occurred()) SWIG_fail;
6027 }
6028 resultobj = SWIG_Py_Void();
6029 return resultobj;
6030 fail:
6031 return NULL;
6032 }
6033
6034
6035 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6036 PyObject *resultobj = 0;
6037 wxComboBox *arg1 = (wxComboBox *) 0 ;
6038 long arg2 ;
6039 void *argp1 = 0 ;
6040 int res1 = 0 ;
6041 long val2 ;
6042 int ecode2 = 0 ;
6043 PyObject * obj0 = 0 ;
6044 PyObject * obj1 = 0 ;
6045 char * kwnames[] = {
6046 (char *) "self",(char *) "pos", NULL
6047 };
6048
6049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
6050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6051 if (!SWIG_IsOK(res1)) {
6052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6053 }
6054 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6055 ecode2 = SWIG_AsVal_long(obj1, &val2);
6056 if (!SWIG_IsOK(ecode2)) {
6057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6058 }
6059 arg2 = static_cast< long >(val2);
6060 {
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 (arg1)->SetInsertionPoint(arg2);
6063 wxPyEndAllowThreads(__tstate);
6064 if (PyErr_Occurred()) SWIG_fail;
6065 }
6066 resultobj = SWIG_Py_Void();
6067 return resultobj;
6068 fail:
6069 return NULL;
6070 }
6071
6072
6073 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6074 PyObject *resultobj = 0;
6075 wxComboBox *arg1 = (wxComboBox *) 0 ;
6076 long result;
6077 void *argp1 = 0 ;
6078 int res1 = 0 ;
6079 PyObject *swig_obj[1] ;
6080
6081 if (!args) SWIG_fail;
6082 swig_obj[0] = args;
6083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6084 if (!SWIG_IsOK(res1)) {
6085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6086 }
6087 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6088 {
6089 PyThreadState* __tstate = wxPyBeginAllowThreads();
6090 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6091 wxPyEndAllowThreads(__tstate);
6092 if (PyErr_Occurred()) SWIG_fail;
6093 }
6094 resultobj = SWIG_From_long(static_cast< long >(result));
6095 return resultobj;
6096 fail:
6097 return NULL;
6098 }
6099
6100
6101 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6102 PyObject *resultobj = 0;
6103 wxComboBox *arg1 = (wxComboBox *) 0 ;
6104 long result;
6105 void *argp1 = 0 ;
6106 int res1 = 0 ;
6107 PyObject *swig_obj[1] ;
6108
6109 if (!args) SWIG_fail;
6110 swig_obj[0] = args;
6111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6112 if (!SWIG_IsOK(res1)) {
6113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6114 }
6115 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6116 {
6117 PyThreadState* __tstate = wxPyBeginAllowThreads();
6118 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6119 wxPyEndAllowThreads(__tstate);
6120 if (PyErr_Occurred()) SWIG_fail;
6121 }
6122 resultobj = SWIG_From_long(static_cast< long >(result));
6123 return resultobj;
6124 fail:
6125 return NULL;
6126 }
6127
6128
6129 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6130 PyObject *resultobj = 0;
6131 wxComboBox *arg1 = (wxComboBox *) 0 ;
6132 long arg2 ;
6133 long arg3 ;
6134 wxString *arg4 = 0 ;
6135 void *argp1 = 0 ;
6136 int res1 = 0 ;
6137 long val2 ;
6138 int ecode2 = 0 ;
6139 long val3 ;
6140 int ecode3 = 0 ;
6141 bool temp4 = false ;
6142 PyObject * obj0 = 0 ;
6143 PyObject * obj1 = 0 ;
6144 PyObject * obj2 = 0 ;
6145 PyObject * obj3 = 0 ;
6146 char * kwnames[] = {
6147 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6148 };
6149
6150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6152 if (!SWIG_IsOK(res1)) {
6153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6154 }
6155 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6156 ecode2 = SWIG_AsVal_long(obj1, &val2);
6157 if (!SWIG_IsOK(ecode2)) {
6158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6159 }
6160 arg2 = static_cast< long >(val2);
6161 ecode3 = SWIG_AsVal_long(obj2, &val3);
6162 if (!SWIG_IsOK(ecode3)) {
6163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6164 }
6165 arg3 = static_cast< long >(val3);
6166 {
6167 arg4 = wxString_in_helper(obj3);
6168 if (arg4 == NULL) SWIG_fail;
6169 temp4 = true;
6170 }
6171 {
6172 PyThreadState* __tstate = wxPyBeginAllowThreads();
6173 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6174 wxPyEndAllowThreads(__tstate);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 resultobj = SWIG_Py_Void();
6178 {
6179 if (temp4)
6180 delete arg4;
6181 }
6182 return resultobj;
6183 fail:
6184 {
6185 if (temp4)
6186 delete arg4;
6187 }
6188 return NULL;
6189 }
6190
6191
6192 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6193 PyObject *resultobj = 0;
6194 wxComboBox *arg1 = (wxComboBox *) 0 ;
6195 long arg2 ;
6196 long arg3 ;
6197 void *argp1 = 0 ;
6198 int res1 = 0 ;
6199 long val2 ;
6200 int ecode2 = 0 ;
6201 long val3 ;
6202 int ecode3 = 0 ;
6203 PyObject * obj0 = 0 ;
6204 PyObject * obj1 = 0 ;
6205 PyObject * obj2 = 0 ;
6206 char * kwnames[] = {
6207 (char *) "self",(char *) "from",(char *) "to", NULL
6208 };
6209
6210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6212 if (!SWIG_IsOK(res1)) {
6213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6214 }
6215 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6216 ecode2 = SWIG_AsVal_long(obj1, &val2);
6217 if (!SWIG_IsOK(ecode2)) {
6218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6219 }
6220 arg2 = static_cast< long >(val2);
6221 ecode3 = SWIG_AsVal_long(obj2, &val3);
6222 if (!SWIG_IsOK(ecode3)) {
6223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6224 }
6225 arg3 = static_cast< long >(val3);
6226 {
6227 PyThreadState* __tstate = wxPyBeginAllowThreads();
6228 (arg1)->SetSelection(arg2,arg3);
6229 wxPyEndAllowThreads(__tstate);
6230 if (PyErr_Occurred()) SWIG_fail;
6231 }
6232 resultobj = SWIG_Py_Void();
6233 return resultobj;
6234 fail:
6235 return NULL;
6236 }
6237
6238
6239 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6240 PyObject *resultobj = 0;
6241 wxComboBox *arg1 = (wxComboBox *) 0 ;
6242 long *arg2 = (long *) 0 ;
6243 long *arg3 = (long *) 0 ;
6244 void *argp1 = 0 ;
6245 int res1 = 0 ;
6246 long temp2 ;
6247 int res2 = SWIG_TMPOBJ ;
6248 long temp3 ;
6249 int res3 = SWIG_TMPOBJ ;
6250 PyObject *swig_obj[1] ;
6251
6252 arg2 = &temp2;
6253 arg3 = &temp3;
6254 if (!args) SWIG_fail;
6255 swig_obj[0] = args;
6256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6257 if (!SWIG_IsOK(res1)) {
6258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6259 }
6260 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6261 {
6262 PyThreadState* __tstate = wxPyBeginAllowThreads();
6263 (arg1)->GetSelection(arg2,arg3);
6264 wxPyEndAllowThreads(__tstate);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 resultobj = SWIG_Py_Void();
6268 if (SWIG_IsTmpObj(res2)) {
6269 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6270 } else {
6271 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6272 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6273 }
6274 if (SWIG_IsTmpObj(res3)) {
6275 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6276 } else {
6277 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6278 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6279 }
6280 return resultobj;
6281 fail:
6282 return NULL;
6283 }
6284
6285
6286 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6287 PyObject *resultobj = 0;
6288 wxComboBox *arg1 = (wxComboBox *) 0 ;
6289 int result;
6290 void *argp1 = 0 ;
6291 int res1 = 0 ;
6292 PyObject *swig_obj[1] ;
6293
6294 if (!args) SWIG_fail;
6295 swig_obj[0] = args;
6296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6297 if (!SWIG_IsOK(res1)) {
6298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6299 }
6300 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6301 {
6302 PyThreadState* __tstate = wxPyBeginAllowThreads();
6303 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6304 wxPyEndAllowThreads(__tstate);
6305 if (PyErr_Occurred()) SWIG_fail;
6306 }
6307 resultobj = SWIG_From_int(static_cast< int >(result));
6308 return resultobj;
6309 fail:
6310 return NULL;
6311 }
6312
6313
6314 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6315 PyObject *resultobj = 0;
6316 wxComboBox *arg1 = (wxComboBox *) 0 ;
6317 wxString *arg2 = 0 ;
6318 bool result;
6319 void *argp1 = 0 ;
6320 int res1 = 0 ;
6321 bool temp2 = false ;
6322 PyObject * obj0 = 0 ;
6323 PyObject * obj1 = 0 ;
6324 char * kwnames[] = {
6325 (char *) "self",(char *) "string", NULL
6326 };
6327
6328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6330 if (!SWIG_IsOK(res1)) {
6331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6332 }
6333 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6334 {
6335 arg2 = wxString_in_helper(obj1);
6336 if (arg2 == NULL) SWIG_fail;
6337 temp2 = true;
6338 }
6339 {
6340 PyThreadState* __tstate = wxPyBeginAllowThreads();
6341 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6342 wxPyEndAllowThreads(__tstate);
6343 if (PyErr_Occurred()) SWIG_fail;
6344 }
6345 {
6346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6347 }
6348 {
6349 if (temp2)
6350 delete arg2;
6351 }
6352 return resultobj;
6353 fail:
6354 {
6355 if (temp2)
6356 delete arg2;
6357 }
6358 return NULL;
6359 }
6360
6361
6362 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj = 0;
6364 wxComboBox *arg1 = (wxComboBox *) 0 ;
6365 bool arg2 ;
6366 void *argp1 = 0 ;
6367 int res1 = 0 ;
6368 bool val2 ;
6369 int ecode2 = 0 ;
6370 PyObject * obj0 = 0 ;
6371 PyObject * obj1 = 0 ;
6372 char * kwnames[] = {
6373 (char *) "self",(char *) "editable", NULL
6374 };
6375
6376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6378 if (!SWIG_IsOK(res1)) {
6379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6380 }
6381 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6382 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6383 if (!SWIG_IsOK(ecode2)) {
6384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6385 }
6386 arg2 = static_cast< bool >(val2);
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 (arg1)->SetEditable(arg2);
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_Py_Void();
6394 return resultobj;
6395 fail:
6396 return NULL;
6397 }
6398
6399
6400 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6401 PyObject *resultobj = 0;
6402 wxComboBox *arg1 = (wxComboBox *) 0 ;
6403 void *argp1 = 0 ;
6404 int res1 = 0 ;
6405 PyObject *swig_obj[1] ;
6406
6407 if (!args) SWIG_fail;
6408 swig_obj[0] = args;
6409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6410 if (!SWIG_IsOK(res1)) {
6411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6412 }
6413 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->SetInsertionPointEnd();
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 resultobj = SWIG_Py_Void();
6421 return resultobj;
6422 fail:
6423 return NULL;
6424 }
6425
6426
6427 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj = 0;
6429 wxComboBox *arg1 = (wxComboBox *) 0 ;
6430 long arg2 ;
6431 long arg3 ;
6432 void *argp1 = 0 ;
6433 int res1 = 0 ;
6434 long val2 ;
6435 int ecode2 = 0 ;
6436 long val3 ;
6437 int ecode3 = 0 ;
6438 PyObject * obj0 = 0 ;
6439 PyObject * obj1 = 0 ;
6440 PyObject * obj2 = 0 ;
6441 char * kwnames[] = {
6442 (char *) "self",(char *) "from",(char *) "to", NULL
6443 };
6444
6445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6447 if (!SWIG_IsOK(res1)) {
6448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6449 }
6450 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6451 ecode2 = SWIG_AsVal_long(obj1, &val2);
6452 if (!SWIG_IsOK(ecode2)) {
6453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6454 }
6455 arg2 = static_cast< long >(val2);
6456 ecode3 = SWIG_AsVal_long(obj2, &val3);
6457 if (!SWIG_IsOK(ecode3)) {
6458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6459 }
6460 arg3 = static_cast< long >(val3);
6461 {
6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
6463 (arg1)->Remove(arg2,arg3);
6464 wxPyEndAllowThreads(__tstate);
6465 if (PyErr_Occurred()) SWIG_fail;
6466 }
6467 resultobj = SWIG_Py_Void();
6468 return resultobj;
6469 fail:
6470 return NULL;
6471 }
6472
6473
6474 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 wxComboBox *arg1 = (wxComboBox *) 0 ;
6477 bool result;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject *swig_obj[1] ;
6481
6482 if (!args) SWIG_fail;
6483 swig_obj[0] = args;
6484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6487 }
6488 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6489 {
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6492 wxPyEndAllowThreads(__tstate);
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 {
6496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6497 }
6498 return resultobj;
6499 fail:
6500 return NULL;
6501 }
6502
6503
6504 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxComboBox *arg1 = (wxComboBox *) 0 ;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 PyObject *swig_obj[1] ;
6510
6511 if (!args) SWIG_fail;
6512 swig_obj[0] = args;
6513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6516 }
6517 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 (arg1)->Undo();
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 resultobj = SWIG_Py_Void();
6525 return resultobj;
6526 fail:
6527 return NULL;
6528 }
6529
6530
6531 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6532 PyObject *resultobj = 0;
6533 wxComboBox *arg1 = (wxComboBox *) 0 ;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 PyObject *swig_obj[1] ;
6537
6538 if (!args) SWIG_fail;
6539 swig_obj[0] = args;
6540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6543 }
6544 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->Redo();
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_Py_Void();
6552 return resultobj;
6553 fail:
6554 return NULL;
6555 }
6556
6557
6558 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6559 PyObject *resultobj = 0;
6560 wxComboBox *arg1 = (wxComboBox *) 0 ;
6561 void *argp1 = 0 ;
6562 int res1 = 0 ;
6563 PyObject *swig_obj[1] ;
6564
6565 if (!args) SWIG_fail;
6566 swig_obj[0] = args;
6567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6568 if (!SWIG_IsOK(res1)) {
6569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6570 }
6571 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 (arg1)->SelectAll();
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 resultobj = SWIG_Py_Void();
6579 return resultobj;
6580 fail:
6581 return NULL;
6582 }
6583
6584
6585 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6586 PyObject *resultobj = 0;
6587 wxComboBox *arg1 = (wxComboBox *) 0 ;
6588 bool result;
6589 void *argp1 = 0 ;
6590 int res1 = 0 ;
6591 PyObject *swig_obj[1] ;
6592
6593 if (!args) SWIG_fail;
6594 swig_obj[0] = args;
6595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6596 if (!SWIG_IsOK(res1)) {
6597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6598 }
6599 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6600 {
6601 PyThreadState* __tstate = wxPyBeginAllowThreads();
6602 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) SWIG_fail;
6605 }
6606 {
6607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6608 }
6609 return resultobj;
6610 fail:
6611 return NULL;
6612 }
6613
6614
6615 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6616 PyObject *resultobj = 0;
6617 wxComboBox *arg1 = (wxComboBox *) 0 ;
6618 bool result;
6619 void *argp1 = 0 ;
6620 int res1 = 0 ;
6621 PyObject *swig_obj[1] ;
6622
6623 if (!args) SWIG_fail;
6624 swig_obj[0] = args;
6625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6626 if (!SWIG_IsOK(res1)) {
6627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6628 }
6629 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 result = (bool)((wxComboBox const *)arg1)->CanCut();
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 {
6637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6638 }
6639 return resultobj;
6640 fail:
6641 return NULL;
6642 }
6643
6644
6645 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6646 PyObject *resultobj = 0;
6647 wxComboBox *arg1 = (wxComboBox *) 0 ;
6648 bool result;
6649 void *argp1 = 0 ;
6650 int res1 = 0 ;
6651 PyObject *swig_obj[1] ;
6652
6653 if (!args) SWIG_fail;
6654 swig_obj[0] = args;
6655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6656 if (!SWIG_IsOK(res1)) {
6657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6658 }
6659 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6660 {
6661 PyThreadState* __tstate = wxPyBeginAllowThreads();
6662 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6663 wxPyEndAllowThreads(__tstate);
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 {
6667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6668 }
6669 return resultobj;
6670 fail:
6671 return NULL;
6672 }
6673
6674
6675 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6676 PyObject *resultobj = 0;
6677 wxComboBox *arg1 = (wxComboBox *) 0 ;
6678 bool result;
6679 void *argp1 = 0 ;
6680 int res1 = 0 ;
6681 PyObject *swig_obj[1] ;
6682
6683 if (!args) SWIG_fail;
6684 swig_obj[0] = args;
6685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6686 if (!SWIG_IsOK(res1)) {
6687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6688 }
6689 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6690 {
6691 PyThreadState* __tstate = wxPyBeginAllowThreads();
6692 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 {
6697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6698 }
6699 return resultobj;
6700 fail:
6701 return NULL;
6702 }
6703
6704
6705 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6706 PyObject *resultobj = 0;
6707 wxComboBox *arg1 = (wxComboBox *) 0 ;
6708 bool result;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 PyObject *swig_obj[1] ;
6712
6713 if (!args) SWIG_fail;
6714 swig_obj[0] = args;
6715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6716 if (!SWIG_IsOK(res1)) {
6717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6718 }
6719 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6720 {
6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
6722 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6723 wxPyEndAllowThreads(__tstate);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 {
6727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6728 }
6729 return resultobj;
6730 fail:
6731 return NULL;
6732 }
6733
6734
6735 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6736 PyObject *resultobj = 0;
6737 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6738 SwigValueWrapper<wxVisualAttributes > result;
6739 int val1 ;
6740 int ecode1 = 0 ;
6741 PyObject * obj0 = 0 ;
6742 char * kwnames[] = {
6743 (char *) "variant", NULL
6744 };
6745
6746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6747 if (obj0) {
6748 ecode1 = SWIG_AsVal_int(obj0, &val1);
6749 if (!SWIG_IsOK(ecode1)) {
6750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6751 }
6752 arg1 = static_cast< wxWindowVariant >(val1);
6753 }
6754 {
6755 if (!wxPyCheckForApp()) SWIG_fail;
6756 PyThreadState* __tstate = wxPyBeginAllowThreads();
6757 result = wxComboBox::GetClassDefaultAttributes(arg1);
6758 wxPyEndAllowThreads(__tstate);
6759 if (PyErr_Occurred()) SWIG_fail;
6760 }
6761 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6762 return resultobj;
6763 fail:
6764 return NULL;
6765 }
6766
6767
6768 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6769 PyObject *obj;
6770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6771 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6772 return SWIG_Py_Void();
6773 }
6774
6775 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6776 return SWIG_Python_InitShadowInstance(args);
6777 }
6778
6779 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6780 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6781 return 1;
6782 }
6783
6784
6785 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6786 PyObject *pyobj = 0;
6787
6788 {
6789 #if wxUSE_UNICODE
6790 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6791 #else
6792 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6793 #endif
6794 }
6795 return pyobj;
6796 }
6797
6798
6799 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj = 0;
6801 wxWindow *arg1 = (wxWindow *) 0 ;
6802 int arg2 = (int) -1 ;
6803 int arg3 = (int) 100 ;
6804 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6805 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6806 wxSize const &arg5_defvalue = wxDefaultSize ;
6807 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6808 long arg6 = (long) wxGA_HORIZONTAL ;
6809 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6810 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6811 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6812 wxString *arg8 = (wxString *) &arg8_defvalue ;
6813 wxGauge *result = 0 ;
6814 void *argp1 = 0 ;
6815 int res1 = 0 ;
6816 int val2 ;
6817 int ecode2 = 0 ;
6818 int val3 ;
6819 int ecode3 = 0 ;
6820 wxPoint temp4 ;
6821 wxSize temp5 ;
6822 long val6 ;
6823 int ecode6 = 0 ;
6824 void *argp7 = 0 ;
6825 int res7 = 0 ;
6826 bool temp8 = false ;
6827 PyObject * obj0 = 0 ;
6828 PyObject * obj1 = 0 ;
6829 PyObject * obj2 = 0 ;
6830 PyObject * obj3 = 0 ;
6831 PyObject * obj4 = 0 ;
6832 PyObject * obj5 = 0 ;
6833 PyObject * obj6 = 0 ;
6834 PyObject * obj7 = 0 ;
6835 char * kwnames[] = {
6836 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6837 };
6838
6839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6841 if (!SWIG_IsOK(res1)) {
6842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6843 }
6844 arg1 = reinterpret_cast< wxWindow * >(argp1);
6845 if (obj1) {
6846 ecode2 = SWIG_AsVal_int(obj1, &val2);
6847 if (!SWIG_IsOK(ecode2)) {
6848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6849 }
6850 arg2 = static_cast< int >(val2);
6851 }
6852 if (obj2) {
6853 ecode3 = SWIG_AsVal_int(obj2, &val3);
6854 if (!SWIG_IsOK(ecode3)) {
6855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6856 }
6857 arg3 = static_cast< int >(val3);
6858 }
6859 if (obj3) {
6860 {
6861 arg4 = &temp4;
6862 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6863 }
6864 }
6865 if (obj4) {
6866 {
6867 arg5 = &temp5;
6868 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6869 }
6870 }
6871 if (obj5) {
6872 ecode6 = SWIG_AsVal_long(obj5, &val6);
6873 if (!SWIG_IsOK(ecode6)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6875 }
6876 arg6 = static_cast< long >(val6);
6877 }
6878 if (obj6) {
6879 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6880 if (!SWIG_IsOK(res7)) {
6881 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6882 }
6883 if (!argp7) {
6884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6885 }
6886 arg7 = reinterpret_cast< wxValidator * >(argp7);
6887 }
6888 if (obj7) {
6889 {
6890 arg8 = wxString_in_helper(obj7);
6891 if (arg8 == NULL) SWIG_fail;
6892 temp8 = true;
6893 }
6894 }
6895 {
6896 if (!wxPyCheckForApp()) SWIG_fail;
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6899 wxPyEndAllowThreads(__tstate);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6903 {
6904 if (temp8)
6905 delete arg8;
6906 }
6907 return resultobj;
6908 fail:
6909 {
6910 if (temp8)
6911 delete arg8;
6912 }
6913 return NULL;
6914 }
6915
6916
6917 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6918 PyObject *resultobj = 0;
6919 wxGauge *result = 0 ;
6920
6921 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6922 {
6923 if (!wxPyCheckForApp()) SWIG_fail;
6924 PyThreadState* __tstate = wxPyBeginAllowThreads();
6925 result = (wxGauge *)new wxGauge();
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6930 return resultobj;
6931 fail:
6932 return NULL;
6933 }
6934
6935
6936 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj = 0;
6938 wxGauge *arg1 = (wxGauge *) 0 ;
6939 wxWindow *arg2 = (wxWindow *) 0 ;
6940 int arg3 = (int) -1 ;
6941 int arg4 = (int) 100 ;
6942 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6943 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6944 wxSize const &arg6_defvalue = wxDefaultSize ;
6945 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6946 long arg7 = (long) wxGA_HORIZONTAL ;
6947 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6948 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6949 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6950 wxString *arg9 = (wxString *) &arg9_defvalue ;
6951 bool result;
6952 void *argp1 = 0 ;
6953 int res1 = 0 ;
6954 void *argp2 = 0 ;
6955 int res2 = 0 ;
6956 int val3 ;
6957 int ecode3 = 0 ;
6958 int val4 ;
6959 int ecode4 = 0 ;
6960 wxPoint temp5 ;
6961 wxSize temp6 ;
6962 long val7 ;
6963 int ecode7 = 0 ;
6964 void *argp8 = 0 ;
6965 int res8 = 0 ;
6966 bool temp9 = false ;
6967 PyObject * obj0 = 0 ;
6968 PyObject * obj1 = 0 ;
6969 PyObject * obj2 = 0 ;
6970 PyObject * obj3 = 0 ;
6971 PyObject * obj4 = 0 ;
6972 PyObject * obj5 = 0 ;
6973 PyObject * obj6 = 0 ;
6974 PyObject * obj7 = 0 ;
6975 PyObject * obj8 = 0 ;
6976 char * kwnames[] = {
6977 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6978 };
6979
6980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6982 if (!SWIG_IsOK(res1)) {
6983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6984 }
6985 arg1 = reinterpret_cast< wxGauge * >(argp1);
6986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6987 if (!SWIG_IsOK(res2)) {
6988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6989 }
6990 arg2 = reinterpret_cast< wxWindow * >(argp2);
6991 if (obj2) {
6992 ecode3 = SWIG_AsVal_int(obj2, &val3);
6993 if (!SWIG_IsOK(ecode3)) {
6994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6995 }
6996 arg3 = static_cast< int >(val3);
6997 }
6998 if (obj3) {
6999 ecode4 = SWIG_AsVal_int(obj3, &val4);
7000 if (!SWIG_IsOK(ecode4)) {
7001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7002 }
7003 arg4 = static_cast< int >(val4);
7004 }
7005 if (obj4) {
7006 {
7007 arg5 = &temp5;
7008 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7009 }
7010 }
7011 if (obj5) {
7012 {
7013 arg6 = &temp6;
7014 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7015 }
7016 }
7017 if (obj6) {
7018 ecode7 = SWIG_AsVal_long(obj6, &val7);
7019 if (!SWIG_IsOK(ecode7)) {
7020 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7021 }
7022 arg7 = static_cast< long >(val7);
7023 }
7024 if (obj7) {
7025 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7026 if (!SWIG_IsOK(res8)) {
7027 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7028 }
7029 if (!argp8) {
7030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7031 }
7032 arg8 = reinterpret_cast< wxValidator * >(argp8);
7033 }
7034 if (obj8) {
7035 {
7036 arg9 = wxString_in_helper(obj8);
7037 if (arg9 == NULL) SWIG_fail;
7038 temp9 = true;
7039 }
7040 }
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7044 wxPyEndAllowThreads(__tstate);
7045 if (PyErr_Occurred()) SWIG_fail;
7046 }
7047 {
7048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7049 }
7050 {
7051 if (temp9)
7052 delete arg9;
7053 }
7054 return resultobj;
7055 fail:
7056 {
7057 if (temp9)
7058 delete arg9;
7059 }
7060 return NULL;
7061 }
7062
7063
7064 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj = 0;
7066 wxGauge *arg1 = (wxGauge *) 0 ;
7067 int arg2 ;
7068 void *argp1 = 0 ;
7069 int res1 = 0 ;
7070 int val2 ;
7071 int ecode2 = 0 ;
7072 PyObject * obj0 = 0 ;
7073 PyObject * obj1 = 0 ;
7074 char * kwnames[] = {
7075 (char *) "self",(char *) "range", NULL
7076 };
7077
7078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7080 if (!SWIG_IsOK(res1)) {
7081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7082 }
7083 arg1 = reinterpret_cast< wxGauge * >(argp1);
7084 ecode2 = SWIG_AsVal_int(obj1, &val2);
7085 if (!SWIG_IsOK(ecode2)) {
7086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7087 }
7088 arg2 = static_cast< int >(val2);
7089 {
7090 PyThreadState* __tstate = wxPyBeginAllowThreads();
7091 (arg1)->SetRange(arg2);
7092 wxPyEndAllowThreads(__tstate);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 resultobj = SWIG_Py_Void();
7096 return resultobj;
7097 fail:
7098 return NULL;
7099 }
7100
7101
7102 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7103 PyObject *resultobj = 0;
7104 wxGauge *arg1 = (wxGauge *) 0 ;
7105 int result;
7106 void *argp1 = 0 ;
7107 int res1 = 0 ;
7108 PyObject *swig_obj[1] ;
7109
7110 if (!args) SWIG_fail;
7111 swig_obj[0] = args;
7112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7113 if (!SWIG_IsOK(res1)) {
7114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7115 }
7116 arg1 = reinterpret_cast< wxGauge * >(argp1);
7117 {
7118 PyThreadState* __tstate = wxPyBeginAllowThreads();
7119 result = (int)((wxGauge const *)arg1)->GetRange();
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 resultobj = SWIG_From_int(static_cast< int >(result));
7124 return resultobj;
7125 fail:
7126 return NULL;
7127 }
7128
7129
7130 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7131 PyObject *resultobj = 0;
7132 wxGauge *arg1 = (wxGauge *) 0 ;
7133 int arg2 ;
7134 void *argp1 = 0 ;
7135 int res1 = 0 ;
7136 int val2 ;
7137 int ecode2 = 0 ;
7138 PyObject * obj0 = 0 ;
7139 PyObject * obj1 = 0 ;
7140 char * kwnames[] = {
7141 (char *) "self",(char *) "pos", NULL
7142 };
7143
7144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7146 if (!SWIG_IsOK(res1)) {
7147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7148 }
7149 arg1 = reinterpret_cast< wxGauge * >(argp1);
7150 ecode2 = SWIG_AsVal_int(obj1, &val2);
7151 if (!SWIG_IsOK(ecode2)) {
7152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7153 }
7154 arg2 = static_cast< int >(val2);
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 (arg1)->SetValue(arg2);
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
7161 resultobj = SWIG_Py_Void();
7162 return resultobj;
7163 fail:
7164 return NULL;
7165 }
7166
7167
7168 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7169 PyObject *resultobj = 0;
7170 wxGauge *arg1 = (wxGauge *) 0 ;
7171 int result;
7172 void *argp1 = 0 ;
7173 int res1 = 0 ;
7174 PyObject *swig_obj[1] ;
7175
7176 if (!args) SWIG_fail;
7177 swig_obj[0] = args;
7178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7179 if (!SWIG_IsOK(res1)) {
7180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7181 }
7182 arg1 = reinterpret_cast< wxGauge * >(argp1);
7183 {
7184 PyThreadState* __tstate = wxPyBeginAllowThreads();
7185 result = (int)((wxGauge const *)arg1)->GetValue();
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_From_int(static_cast< int >(result));
7190 return resultobj;
7191 fail:
7192 return NULL;
7193 }
7194
7195
7196 SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7197 PyObject *resultobj = 0;
7198 wxGauge *arg1 = (wxGauge *) 0 ;
7199 void *argp1 = 0 ;
7200 int res1 = 0 ;
7201 PyObject *swig_obj[1] ;
7202
7203 if (!args) SWIG_fail;
7204 swig_obj[0] = args;
7205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7206 if (!SWIG_IsOK(res1)) {
7207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7208 }
7209 arg1 = reinterpret_cast< wxGauge * >(argp1);
7210 {
7211 PyThreadState* __tstate = wxPyBeginAllowThreads();
7212 (arg1)->Pulse();
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 resultobj = SWIG_Py_Void();
7217 return resultobj;
7218 fail:
7219 return NULL;
7220 }
7221
7222
7223 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7224 PyObject *resultobj = 0;
7225 wxGauge *arg1 = (wxGauge *) 0 ;
7226 bool result;
7227 void *argp1 = 0 ;
7228 int res1 = 0 ;
7229 PyObject *swig_obj[1] ;
7230
7231 if (!args) SWIG_fail;
7232 swig_obj[0] = args;
7233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7234 if (!SWIG_IsOK(res1)) {
7235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7236 }
7237 arg1 = reinterpret_cast< wxGauge * >(argp1);
7238 {
7239 PyThreadState* __tstate = wxPyBeginAllowThreads();
7240 result = (bool)((wxGauge const *)arg1)->IsVertical();
7241 wxPyEndAllowThreads(__tstate);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 {
7245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7246 }
7247 return resultobj;
7248 fail:
7249 return NULL;
7250 }
7251
7252
7253 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7254 PyObject *resultobj = 0;
7255 wxGauge *arg1 = (wxGauge *) 0 ;
7256 int arg2 ;
7257 void *argp1 = 0 ;
7258 int res1 = 0 ;
7259 int val2 ;
7260 int ecode2 = 0 ;
7261 PyObject * obj0 = 0 ;
7262 PyObject * obj1 = 0 ;
7263 char * kwnames[] = {
7264 (char *) "self",(char *) "w", NULL
7265 };
7266
7267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7269 if (!SWIG_IsOK(res1)) {
7270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7271 }
7272 arg1 = reinterpret_cast< wxGauge * >(argp1);
7273 ecode2 = SWIG_AsVal_int(obj1, &val2);
7274 if (!SWIG_IsOK(ecode2)) {
7275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7276 }
7277 arg2 = static_cast< int >(val2);
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 (arg1)->SetShadowWidth(arg2);
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_Py_Void();
7285 return resultobj;
7286 fail:
7287 return NULL;
7288 }
7289
7290
7291 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7292 PyObject *resultobj = 0;
7293 wxGauge *arg1 = (wxGauge *) 0 ;
7294 int result;
7295 void *argp1 = 0 ;
7296 int res1 = 0 ;
7297 PyObject *swig_obj[1] ;
7298
7299 if (!args) SWIG_fail;
7300 swig_obj[0] = args;
7301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7302 if (!SWIG_IsOK(res1)) {
7303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7304 }
7305 arg1 = reinterpret_cast< wxGauge * >(argp1);
7306 {
7307 PyThreadState* __tstate = wxPyBeginAllowThreads();
7308 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 resultobj = SWIG_From_int(static_cast< int >(result));
7313 return resultobj;
7314 fail:
7315 return NULL;
7316 }
7317
7318
7319 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7320 PyObject *resultobj = 0;
7321 wxGauge *arg1 = (wxGauge *) 0 ;
7322 int arg2 ;
7323 void *argp1 = 0 ;
7324 int res1 = 0 ;
7325 int val2 ;
7326 int ecode2 = 0 ;
7327 PyObject * obj0 = 0 ;
7328 PyObject * obj1 = 0 ;
7329 char * kwnames[] = {
7330 (char *) "self",(char *) "w", NULL
7331 };
7332
7333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7335 if (!SWIG_IsOK(res1)) {
7336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7337 }
7338 arg1 = reinterpret_cast< wxGauge * >(argp1);
7339 ecode2 = SWIG_AsVal_int(obj1, &val2);
7340 if (!SWIG_IsOK(ecode2)) {
7341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7342 }
7343 arg2 = static_cast< int >(val2);
7344 {
7345 PyThreadState* __tstate = wxPyBeginAllowThreads();
7346 (arg1)->SetBezelFace(arg2);
7347 wxPyEndAllowThreads(__tstate);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 resultobj = SWIG_Py_Void();
7351 return resultobj;
7352 fail:
7353 return NULL;
7354 }
7355
7356
7357 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7358 PyObject *resultobj = 0;
7359 wxGauge *arg1 = (wxGauge *) 0 ;
7360 int result;
7361 void *argp1 = 0 ;
7362 int res1 = 0 ;
7363 PyObject *swig_obj[1] ;
7364
7365 if (!args) SWIG_fail;
7366 swig_obj[0] = args;
7367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7368 if (!SWIG_IsOK(res1)) {
7369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7370 }
7371 arg1 = reinterpret_cast< wxGauge * >(argp1);
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7375 wxPyEndAllowThreads(__tstate);
7376 if (PyErr_Occurred()) SWIG_fail;
7377 }
7378 resultobj = SWIG_From_int(static_cast< int >(result));
7379 return resultobj;
7380 fail:
7381 return NULL;
7382 }
7383
7384
7385 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7386 PyObject *resultobj = 0;
7387 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7388 SwigValueWrapper<wxVisualAttributes > result;
7389 int val1 ;
7390 int ecode1 = 0 ;
7391 PyObject * obj0 = 0 ;
7392 char * kwnames[] = {
7393 (char *) "variant", NULL
7394 };
7395
7396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7397 if (obj0) {
7398 ecode1 = SWIG_AsVal_int(obj0, &val1);
7399 if (!SWIG_IsOK(ecode1)) {
7400 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7401 }
7402 arg1 = static_cast< wxWindowVariant >(val1);
7403 }
7404 {
7405 if (!wxPyCheckForApp()) SWIG_fail;
7406 PyThreadState* __tstate = wxPyBeginAllowThreads();
7407 result = wxGauge::GetClassDefaultAttributes(arg1);
7408 wxPyEndAllowThreads(__tstate);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7412 return resultobj;
7413 fail:
7414 return NULL;
7415 }
7416
7417
7418 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7419 PyObject *obj;
7420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7421 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7422 return SWIG_Py_Void();
7423 }
7424
7425 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7426 return SWIG_Python_InitShadowInstance(args);
7427 }
7428
7429 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7430 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7431 return 1;
7432 }
7433
7434
7435 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7436 PyObject *pyobj = 0;
7437
7438 {
7439 #if wxUSE_UNICODE
7440 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7441 #else
7442 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7443 #endif
7444 }
7445 return pyobj;
7446 }
7447
7448
7449 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7450 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7451 return 1;
7452 }
7453
7454
7455 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7456 PyObject *pyobj = 0;
7457
7458 {
7459 #if wxUSE_UNICODE
7460 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7461 #else
7462 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7463 #endif
7464 }
7465 return pyobj;
7466 }
7467
7468
7469 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7470 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7471 return 1;
7472 }
7473
7474
7475 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7476 PyObject *pyobj = 0;
7477
7478 {
7479 #if wxUSE_UNICODE
7480 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7481 #else
7482 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7483 #endif
7484 }
7485 return pyobj;
7486 }
7487
7488
7489 SWIGINTERN int StaticLineNameStr_set(PyObject *) {
7490 SWIG_Error(SWIG_AttributeError,"Variable StaticLineNameStr is read-only.");
7491 return 1;
7492 }
7493
7494
7495 SWIGINTERN PyObject *StaticLineNameStr_get(void) {
7496 PyObject *pyobj = 0;
7497
7498 {
7499 #if wxUSE_UNICODE
7500 pyobj = PyUnicode_FromWideChar((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7501 #else
7502 pyobj = PyString_FromStringAndSize((&wxPyStaticLineNameStr)->c_str(), (&wxPyStaticLineNameStr)->Len());
7503 #endif
7504 }
7505 return pyobj;
7506 }
7507
7508
7509 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7510 PyObject *resultobj = 0;
7511 wxWindow *arg1 = (wxWindow *) 0 ;
7512 int arg2 = (int) -1 ;
7513 wxString const &arg3_defvalue = wxPyEmptyString ;
7514 wxString *arg3 = (wxString *) &arg3_defvalue ;
7515 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7516 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7517 wxSize const &arg5_defvalue = wxDefaultSize ;
7518 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7519 long arg6 = (long) 0 ;
7520 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7521 wxString *arg7 = (wxString *) &arg7_defvalue ;
7522 wxStaticBox *result = 0 ;
7523 void *argp1 = 0 ;
7524 int res1 = 0 ;
7525 int val2 ;
7526 int ecode2 = 0 ;
7527 bool temp3 = false ;
7528 wxPoint temp4 ;
7529 wxSize temp5 ;
7530 long val6 ;
7531 int ecode6 = 0 ;
7532 bool temp7 = false ;
7533 PyObject * obj0 = 0 ;
7534 PyObject * obj1 = 0 ;
7535 PyObject * obj2 = 0 ;
7536 PyObject * obj3 = 0 ;
7537 PyObject * obj4 = 0 ;
7538 PyObject * obj5 = 0 ;
7539 PyObject * obj6 = 0 ;
7540 char * kwnames[] = {
7541 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7542 };
7543
7544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7546 if (!SWIG_IsOK(res1)) {
7547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7548 }
7549 arg1 = reinterpret_cast< wxWindow * >(argp1);
7550 if (obj1) {
7551 ecode2 = SWIG_AsVal_int(obj1, &val2);
7552 if (!SWIG_IsOK(ecode2)) {
7553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7554 }
7555 arg2 = static_cast< int >(val2);
7556 }
7557 if (obj2) {
7558 {
7559 arg3 = wxString_in_helper(obj2);
7560 if (arg3 == NULL) SWIG_fail;
7561 temp3 = true;
7562 }
7563 }
7564 if (obj3) {
7565 {
7566 arg4 = &temp4;
7567 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7568 }
7569 }
7570 if (obj4) {
7571 {
7572 arg5 = &temp5;
7573 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7574 }
7575 }
7576 if (obj5) {
7577 ecode6 = SWIG_AsVal_long(obj5, &val6);
7578 if (!SWIG_IsOK(ecode6)) {
7579 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7580 }
7581 arg6 = static_cast< long >(val6);
7582 }
7583 if (obj6) {
7584 {
7585 arg7 = wxString_in_helper(obj6);
7586 if (arg7 == NULL) SWIG_fail;
7587 temp7 = true;
7588 }
7589 }
7590 {
7591 if (!wxPyCheckForApp()) SWIG_fail;
7592 PyThreadState* __tstate = wxPyBeginAllowThreads();
7593 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7594 wxPyEndAllowThreads(__tstate);
7595 if (PyErr_Occurred()) SWIG_fail;
7596 }
7597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7598 {
7599 if (temp3)
7600 delete arg3;
7601 }
7602 {
7603 if (temp7)
7604 delete arg7;
7605 }
7606 return resultobj;
7607 fail:
7608 {
7609 if (temp3)
7610 delete arg3;
7611 }
7612 {
7613 if (temp7)
7614 delete arg7;
7615 }
7616 return NULL;
7617 }
7618
7619
7620 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7621 PyObject *resultobj = 0;
7622 wxStaticBox *result = 0 ;
7623
7624 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7625 {
7626 if (!wxPyCheckForApp()) SWIG_fail;
7627 PyThreadState* __tstate = wxPyBeginAllowThreads();
7628 result = (wxStaticBox *)new wxStaticBox();
7629 wxPyEndAllowThreads(__tstate);
7630 if (PyErr_Occurred()) SWIG_fail;
7631 }
7632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7633 return resultobj;
7634 fail:
7635 return NULL;
7636 }
7637
7638
7639 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7640 PyObject *resultobj = 0;
7641 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7642 wxWindow *arg2 = (wxWindow *) 0 ;
7643 int arg3 = (int) -1 ;
7644 wxString const &arg4_defvalue = wxPyEmptyString ;
7645 wxString *arg4 = (wxString *) &arg4_defvalue ;
7646 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7647 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7648 wxSize const &arg6_defvalue = wxDefaultSize ;
7649 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7650 long arg7 = (long) 0 ;
7651 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7652 wxString *arg8 = (wxString *) &arg8_defvalue ;
7653 bool result;
7654 void *argp1 = 0 ;
7655 int res1 = 0 ;
7656 void *argp2 = 0 ;
7657 int res2 = 0 ;
7658 int val3 ;
7659 int ecode3 = 0 ;
7660 bool temp4 = false ;
7661 wxPoint temp5 ;
7662 wxSize temp6 ;
7663 long val7 ;
7664 int ecode7 = 0 ;
7665 bool temp8 = false ;
7666 PyObject * obj0 = 0 ;
7667 PyObject * obj1 = 0 ;
7668 PyObject * obj2 = 0 ;
7669 PyObject * obj3 = 0 ;
7670 PyObject * obj4 = 0 ;
7671 PyObject * obj5 = 0 ;
7672 PyObject * obj6 = 0 ;
7673 PyObject * obj7 = 0 ;
7674 char * kwnames[] = {
7675 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7676 };
7677
7678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7680 if (!SWIG_IsOK(res1)) {
7681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7682 }
7683 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7685 if (!SWIG_IsOK(res2)) {
7686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7687 }
7688 arg2 = reinterpret_cast< wxWindow * >(argp2);
7689 if (obj2) {
7690 ecode3 = SWIG_AsVal_int(obj2, &val3);
7691 if (!SWIG_IsOK(ecode3)) {
7692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7693 }
7694 arg3 = static_cast< int >(val3);
7695 }
7696 if (obj3) {
7697 {
7698 arg4 = wxString_in_helper(obj3);
7699 if (arg4 == NULL) SWIG_fail;
7700 temp4 = true;
7701 }
7702 }
7703 if (obj4) {
7704 {
7705 arg5 = &temp5;
7706 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7707 }
7708 }
7709 if (obj5) {
7710 {
7711 arg6 = &temp6;
7712 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7713 }
7714 }
7715 if (obj6) {
7716 ecode7 = SWIG_AsVal_long(obj6, &val7);
7717 if (!SWIG_IsOK(ecode7)) {
7718 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7719 }
7720 arg7 = static_cast< long >(val7);
7721 }
7722 if (obj7) {
7723 {
7724 arg8 = wxString_in_helper(obj7);
7725 if (arg8 == NULL) SWIG_fail;
7726 temp8 = true;
7727 }
7728 }
7729 {
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7732 wxPyEndAllowThreads(__tstate);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 {
7736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7737 }
7738 {
7739 if (temp4)
7740 delete arg4;
7741 }
7742 {
7743 if (temp8)
7744 delete arg8;
7745 }
7746 return resultobj;
7747 fail:
7748 {
7749 if (temp4)
7750 delete arg4;
7751 }
7752 {
7753 if (temp8)
7754 delete arg8;
7755 }
7756 return NULL;
7757 }
7758
7759
7760 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7761 PyObject *resultobj = 0;
7762 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7763 SwigValueWrapper<wxVisualAttributes > result;
7764 int val1 ;
7765 int ecode1 = 0 ;
7766 PyObject * obj0 = 0 ;
7767 char * kwnames[] = {
7768 (char *) "variant", NULL
7769 };
7770
7771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7772 if (obj0) {
7773 ecode1 = SWIG_AsVal_int(obj0, &val1);
7774 if (!SWIG_IsOK(ecode1)) {
7775 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7776 }
7777 arg1 = static_cast< wxWindowVariant >(val1);
7778 }
7779 {
7780 if (!wxPyCheckForApp()) SWIG_fail;
7781 PyThreadState* __tstate = wxPyBeginAllowThreads();
7782 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7783 wxPyEndAllowThreads(__tstate);
7784 if (PyErr_Occurred()) SWIG_fail;
7785 }
7786 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7787 return resultobj;
7788 fail:
7789 return NULL;
7790 }
7791
7792
7793 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7794 PyObject *obj;
7795 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7796 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7797 return SWIG_Py_Void();
7798 }
7799
7800 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7801 return SWIG_Python_InitShadowInstance(args);
7802 }
7803
7804 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7805 PyObject *resultobj = 0;
7806 wxWindow *arg1 = (wxWindow *) 0 ;
7807 int arg2 = (int) -1 ;
7808 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7809 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7810 wxSize const &arg4_defvalue = wxDefaultSize ;
7811 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7812 long arg5 = (long) wxLI_HORIZONTAL ;
7813 wxString const &arg6_defvalue = wxPyStaticLineNameStr ;
7814 wxString *arg6 = (wxString *) &arg6_defvalue ;
7815 wxStaticLine *result = 0 ;
7816 void *argp1 = 0 ;
7817 int res1 = 0 ;
7818 int val2 ;
7819 int ecode2 = 0 ;
7820 wxPoint temp3 ;
7821 wxSize temp4 ;
7822 long val5 ;
7823 int ecode5 = 0 ;
7824 bool temp6 = false ;
7825 PyObject * obj0 = 0 ;
7826 PyObject * obj1 = 0 ;
7827 PyObject * obj2 = 0 ;
7828 PyObject * obj3 = 0 ;
7829 PyObject * obj4 = 0 ;
7830 PyObject * obj5 = 0 ;
7831 char * kwnames[] = {
7832 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7833 };
7834
7835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7837 if (!SWIG_IsOK(res1)) {
7838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7839 }
7840 arg1 = reinterpret_cast< wxWindow * >(argp1);
7841 if (obj1) {
7842 ecode2 = SWIG_AsVal_int(obj1, &val2);
7843 if (!SWIG_IsOK(ecode2)) {
7844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7845 }
7846 arg2 = static_cast< int >(val2);
7847 }
7848 if (obj2) {
7849 {
7850 arg3 = &temp3;
7851 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7852 }
7853 }
7854 if (obj3) {
7855 {
7856 arg4 = &temp4;
7857 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7858 }
7859 }
7860 if (obj4) {
7861 ecode5 = SWIG_AsVal_long(obj4, &val5);
7862 if (!SWIG_IsOK(ecode5)) {
7863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7864 }
7865 arg5 = static_cast< long >(val5);
7866 }
7867 if (obj5) {
7868 {
7869 arg6 = wxString_in_helper(obj5);
7870 if (arg6 == NULL) SWIG_fail;
7871 temp6 = true;
7872 }
7873 }
7874 {
7875 if (!wxPyCheckForApp()) SWIG_fail;
7876 PyThreadState* __tstate = wxPyBeginAllowThreads();
7877 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7878 wxPyEndAllowThreads(__tstate);
7879 if (PyErr_Occurred()) SWIG_fail;
7880 }
7881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7882 {
7883 if (temp6)
7884 delete arg6;
7885 }
7886 return resultobj;
7887 fail:
7888 {
7889 if (temp6)
7890 delete arg6;
7891 }
7892 return NULL;
7893 }
7894
7895
7896 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7897 PyObject *resultobj = 0;
7898 wxStaticLine *result = 0 ;
7899
7900 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7901 {
7902 if (!wxPyCheckForApp()) SWIG_fail;
7903 PyThreadState* __tstate = wxPyBeginAllowThreads();
7904 result = (wxStaticLine *)new wxStaticLine();
7905 wxPyEndAllowThreads(__tstate);
7906 if (PyErr_Occurred()) SWIG_fail;
7907 }
7908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7909 return resultobj;
7910 fail:
7911 return NULL;
7912 }
7913
7914
7915 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7916 PyObject *resultobj = 0;
7917 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7918 wxWindow *arg2 = (wxWindow *) 0 ;
7919 int arg3 = (int) -1 ;
7920 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7921 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7922 wxSize const &arg5_defvalue = wxDefaultSize ;
7923 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7924 long arg6 = (long) wxLI_HORIZONTAL ;
7925 wxString const &arg7_defvalue = wxPyStaticLineNameStr ;
7926 wxString *arg7 = (wxString *) &arg7_defvalue ;
7927 bool result;
7928 void *argp1 = 0 ;
7929 int res1 = 0 ;
7930 void *argp2 = 0 ;
7931 int res2 = 0 ;
7932 int val3 ;
7933 int ecode3 = 0 ;
7934 wxPoint temp4 ;
7935 wxSize temp5 ;
7936 long val6 ;
7937 int ecode6 = 0 ;
7938 bool temp7 = false ;
7939 PyObject * obj0 = 0 ;
7940 PyObject * obj1 = 0 ;
7941 PyObject * obj2 = 0 ;
7942 PyObject * obj3 = 0 ;
7943 PyObject * obj4 = 0 ;
7944 PyObject * obj5 = 0 ;
7945 PyObject * obj6 = 0 ;
7946 char * kwnames[] = {
7947 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7948 };
7949
7950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7952 if (!SWIG_IsOK(res1)) {
7953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7954 }
7955 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7956 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7957 if (!SWIG_IsOK(res2)) {
7958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7959 }
7960 arg2 = reinterpret_cast< wxWindow * >(argp2);
7961 if (obj2) {
7962 ecode3 = SWIG_AsVal_int(obj2, &val3);
7963 if (!SWIG_IsOK(ecode3)) {
7964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7965 }
7966 arg3 = static_cast< int >(val3);
7967 }
7968 if (obj3) {
7969 {
7970 arg4 = &temp4;
7971 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7972 }
7973 }
7974 if (obj4) {
7975 {
7976 arg5 = &temp5;
7977 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7978 }
7979 }
7980 if (obj5) {
7981 ecode6 = SWIG_AsVal_long(obj5, &val6);
7982 if (!SWIG_IsOK(ecode6)) {
7983 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7984 }
7985 arg6 = static_cast< long >(val6);
7986 }
7987 if (obj6) {
7988 {
7989 arg7 = wxString_in_helper(obj6);
7990 if (arg7 == NULL) SWIG_fail;
7991 temp7 = true;
7992 }
7993 }
7994 {
7995 PyThreadState* __tstate = wxPyBeginAllowThreads();
7996 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7997 wxPyEndAllowThreads(__tstate);
7998 if (PyErr_Occurred()) SWIG_fail;
7999 }
8000 {
8001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8002 }
8003 {
8004 if (temp7)
8005 delete arg7;
8006 }
8007 return resultobj;
8008 fail:
8009 {
8010 if (temp7)
8011 delete arg7;
8012 }
8013 return NULL;
8014 }
8015
8016
8017 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8018 PyObject *resultobj = 0;
8019 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
8020 bool result;
8021 void *argp1 = 0 ;
8022 int res1 = 0 ;
8023 PyObject *swig_obj[1] ;
8024
8025 if (!args) SWIG_fail;
8026 swig_obj[0] = args;
8027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
8028 if (!SWIG_IsOK(res1)) {
8029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
8030 }
8031 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
8035 wxPyEndAllowThreads(__tstate);
8036 if (PyErr_Occurred()) SWIG_fail;
8037 }
8038 {
8039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8040 }
8041 return resultobj;
8042 fail:
8043 return NULL;
8044 }
8045
8046
8047 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8048 PyObject *resultobj = 0;
8049 int result;
8050
8051 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8052 {
8053 PyThreadState* __tstate = wxPyBeginAllowThreads();
8054 result = (int)wxStaticLine::GetDefaultSize();
8055 wxPyEndAllowThreads(__tstate);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 }
8058 resultobj = SWIG_From_int(static_cast< int >(result));
8059 return resultobj;
8060 fail:
8061 return NULL;
8062 }
8063
8064
8065 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8066 PyObject *resultobj = 0;
8067 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8068 SwigValueWrapper<wxVisualAttributes > result;
8069 int val1 ;
8070 int ecode1 = 0 ;
8071 PyObject * obj0 = 0 ;
8072 char * kwnames[] = {
8073 (char *) "variant", NULL
8074 };
8075
8076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8077 if (obj0) {
8078 ecode1 = SWIG_AsVal_int(obj0, &val1);
8079 if (!SWIG_IsOK(ecode1)) {
8080 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8081 }
8082 arg1 = static_cast< wxWindowVariant >(val1);
8083 }
8084 {
8085 if (!wxPyCheckForApp()) SWIG_fail;
8086 PyThreadState* __tstate = wxPyBeginAllowThreads();
8087 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8088 wxPyEndAllowThreads(__tstate);
8089 if (PyErr_Occurred()) SWIG_fail;
8090 }
8091 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8092 return resultobj;
8093 fail:
8094 return NULL;
8095 }
8096
8097
8098 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8099 PyObject *obj;
8100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8101 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8102 return SWIG_Py_Void();
8103 }
8104
8105 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8106 return SWIG_Python_InitShadowInstance(args);
8107 }
8108
8109 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8110 PyObject *resultobj = 0;
8111 wxWindow *arg1 = (wxWindow *) 0 ;
8112 int arg2 = (int) -1 ;
8113 wxString const &arg3_defvalue = wxPyEmptyString ;
8114 wxString *arg3 = (wxString *) &arg3_defvalue ;
8115 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8116 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8117 wxSize const &arg5_defvalue = wxDefaultSize ;
8118 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8119 long arg6 = (long) 0 ;
8120 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8121 wxString *arg7 = (wxString *) &arg7_defvalue ;
8122 wxStaticText *result = 0 ;
8123 void *argp1 = 0 ;
8124 int res1 = 0 ;
8125 int val2 ;
8126 int ecode2 = 0 ;
8127 bool temp3 = false ;
8128 wxPoint temp4 ;
8129 wxSize temp5 ;
8130 long val6 ;
8131 int ecode6 = 0 ;
8132 bool temp7 = false ;
8133 PyObject * obj0 = 0 ;
8134 PyObject * obj1 = 0 ;
8135 PyObject * obj2 = 0 ;
8136 PyObject * obj3 = 0 ;
8137 PyObject * obj4 = 0 ;
8138 PyObject * obj5 = 0 ;
8139 PyObject * obj6 = 0 ;
8140 char * kwnames[] = {
8141 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8142 };
8143
8144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8146 if (!SWIG_IsOK(res1)) {
8147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8148 }
8149 arg1 = reinterpret_cast< wxWindow * >(argp1);
8150 if (obj1) {
8151 ecode2 = SWIG_AsVal_int(obj1, &val2);
8152 if (!SWIG_IsOK(ecode2)) {
8153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8154 }
8155 arg2 = static_cast< int >(val2);
8156 }
8157 if (obj2) {
8158 {
8159 arg3 = wxString_in_helper(obj2);
8160 if (arg3 == NULL) SWIG_fail;
8161 temp3 = true;
8162 }
8163 }
8164 if (obj3) {
8165 {
8166 arg4 = &temp4;
8167 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8168 }
8169 }
8170 if (obj4) {
8171 {
8172 arg5 = &temp5;
8173 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8174 }
8175 }
8176 if (obj5) {
8177 ecode6 = SWIG_AsVal_long(obj5, &val6);
8178 if (!SWIG_IsOK(ecode6)) {
8179 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8180 }
8181 arg6 = static_cast< long >(val6);
8182 }
8183 if (obj6) {
8184 {
8185 arg7 = wxString_in_helper(obj6);
8186 if (arg7 == NULL) SWIG_fail;
8187 temp7 = true;
8188 }
8189 }
8190 {
8191 if (!wxPyCheckForApp()) SWIG_fail;
8192 PyThreadState* __tstate = wxPyBeginAllowThreads();
8193 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8194 wxPyEndAllowThreads(__tstate);
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8198 {
8199 if (temp3)
8200 delete arg3;
8201 }
8202 {
8203 if (temp7)
8204 delete arg7;
8205 }
8206 return resultobj;
8207 fail:
8208 {
8209 if (temp3)
8210 delete arg3;
8211 }
8212 {
8213 if (temp7)
8214 delete arg7;
8215 }
8216 return NULL;
8217 }
8218
8219
8220 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8221 PyObject *resultobj = 0;
8222 wxStaticText *result = 0 ;
8223
8224 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8225 {
8226 if (!wxPyCheckForApp()) SWIG_fail;
8227 PyThreadState* __tstate = wxPyBeginAllowThreads();
8228 result = (wxStaticText *)new wxStaticText();
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8233 return resultobj;
8234 fail:
8235 return NULL;
8236 }
8237
8238
8239 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8240 PyObject *resultobj = 0;
8241 wxStaticText *arg1 = (wxStaticText *) 0 ;
8242 wxWindow *arg2 = (wxWindow *) 0 ;
8243 int arg3 = (int) -1 ;
8244 wxString const &arg4_defvalue = wxPyEmptyString ;
8245 wxString *arg4 = (wxString *) &arg4_defvalue ;
8246 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8247 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8248 wxSize const &arg6_defvalue = wxDefaultSize ;
8249 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8250 long arg7 = (long) 0 ;
8251 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8252 wxString *arg8 = (wxString *) &arg8_defvalue ;
8253 bool result;
8254 void *argp1 = 0 ;
8255 int res1 = 0 ;
8256 void *argp2 = 0 ;
8257 int res2 = 0 ;
8258 int val3 ;
8259 int ecode3 = 0 ;
8260 bool temp4 = false ;
8261 wxPoint temp5 ;
8262 wxSize temp6 ;
8263 long val7 ;
8264 int ecode7 = 0 ;
8265 bool temp8 = false ;
8266 PyObject * obj0 = 0 ;
8267 PyObject * obj1 = 0 ;
8268 PyObject * obj2 = 0 ;
8269 PyObject * obj3 = 0 ;
8270 PyObject * obj4 = 0 ;
8271 PyObject * obj5 = 0 ;
8272 PyObject * obj6 = 0 ;
8273 PyObject * obj7 = 0 ;
8274 char * kwnames[] = {
8275 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8276 };
8277
8278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8280 if (!SWIG_IsOK(res1)) {
8281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8282 }
8283 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8284 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8285 if (!SWIG_IsOK(res2)) {
8286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8287 }
8288 arg2 = reinterpret_cast< wxWindow * >(argp2);
8289 if (obj2) {
8290 ecode3 = SWIG_AsVal_int(obj2, &val3);
8291 if (!SWIG_IsOK(ecode3)) {
8292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8293 }
8294 arg3 = static_cast< int >(val3);
8295 }
8296 if (obj3) {
8297 {
8298 arg4 = wxString_in_helper(obj3);
8299 if (arg4 == NULL) SWIG_fail;
8300 temp4 = true;
8301 }
8302 }
8303 if (obj4) {
8304 {
8305 arg5 = &temp5;
8306 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8307 }
8308 }
8309 if (obj5) {
8310 {
8311 arg6 = &temp6;
8312 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8313 }
8314 }
8315 if (obj6) {
8316 ecode7 = SWIG_AsVal_long(obj6, &val7);
8317 if (!SWIG_IsOK(ecode7)) {
8318 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8319 }
8320 arg7 = static_cast< long >(val7);
8321 }
8322 if (obj7) {
8323 {
8324 arg8 = wxString_in_helper(obj7);
8325 if (arg8 == NULL) SWIG_fail;
8326 temp8 = true;
8327 }
8328 }
8329 {
8330 PyThreadState* __tstate = wxPyBeginAllowThreads();
8331 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8332 wxPyEndAllowThreads(__tstate);
8333 if (PyErr_Occurred()) SWIG_fail;
8334 }
8335 {
8336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8337 }
8338 {
8339 if (temp4)
8340 delete arg4;
8341 }
8342 {
8343 if (temp8)
8344 delete arg8;
8345 }
8346 return resultobj;
8347 fail:
8348 {
8349 if (temp4)
8350 delete arg4;
8351 }
8352 {
8353 if (temp8)
8354 delete arg8;
8355 }
8356 return NULL;
8357 }
8358
8359
8360 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8361 PyObject *resultobj = 0;
8362 wxStaticText *arg1 = (wxStaticText *) 0 ;
8363 int arg2 ;
8364 void *argp1 = 0 ;
8365 int res1 = 0 ;
8366 int val2 ;
8367 int ecode2 = 0 ;
8368 PyObject * obj0 = 0 ;
8369 PyObject * obj1 = 0 ;
8370 char * kwnames[] = {
8371 (char *) "self",(char *) "width", NULL
8372 };
8373
8374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8376 if (!SWIG_IsOK(res1)) {
8377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8378 }
8379 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8380 ecode2 = SWIG_AsVal_int(obj1, &val2);
8381 if (!SWIG_IsOK(ecode2)) {
8382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8383 }
8384 arg2 = static_cast< int >(val2);
8385 {
8386 PyThreadState* __tstate = wxPyBeginAllowThreads();
8387 (arg1)->Wrap(arg2);
8388 wxPyEndAllowThreads(__tstate);
8389 if (PyErr_Occurred()) SWIG_fail;
8390 }
8391 resultobj = SWIG_Py_Void();
8392 return resultobj;
8393 fail:
8394 return NULL;
8395 }
8396
8397
8398 SWIGINTERN PyObject *_wrap_StaticText_IsEllipsized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8399 PyObject *resultobj = 0;
8400 wxStaticText *arg1 = (wxStaticText *) 0 ;
8401 bool result;
8402 void *argp1 = 0 ;
8403 int res1 = 0 ;
8404 PyObject *swig_obj[1] ;
8405
8406 if (!args) SWIG_fail;
8407 swig_obj[0] = args;
8408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8409 if (!SWIG_IsOK(res1)) {
8410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_IsEllipsized" "', expected argument " "1"" of type '" "wxStaticText const *""'");
8411 }
8412 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8413 {
8414 PyThreadState* __tstate = wxPyBeginAllowThreads();
8415 result = (bool)((wxStaticText const *)arg1)->IsEllipsized();
8416 wxPyEndAllowThreads(__tstate);
8417 if (PyErr_Occurred()) SWIG_fail;
8418 }
8419 {
8420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8421 }
8422 return resultobj;
8423 fail:
8424 return NULL;
8425 }
8426
8427
8428 SWIGINTERN PyObject *_wrap_StaticText_RemoveMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8429 PyObject *resultobj = 0;
8430 wxString *arg1 = 0 ;
8431 wxString result;
8432 bool temp1 = false ;
8433 PyObject * obj0 = 0 ;
8434 char * kwnames[] = {
8435 (char *) "str", NULL
8436 };
8437
8438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_RemoveMarkup",kwnames,&obj0)) SWIG_fail;
8439 {
8440 arg1 = wxString_in_helper(obj0);
8441 if (arg1 == NULL) SWIG_fail;
8442 temp1 = true;
8443 }
8444 {
8445 PyThreadState* __tstate = wxPyBeginAllowThreads();
8446 result = wxStaticText::RemoveMarkup((wxString const &)*arg1);
8447 wxPyEndAllowThreads(__tstate);
8448 if (PyErr_Occurred()) SWIG_fail;
8449 }
8450 {
8451 #if wxUSE_UNICODE
8452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8453 #else
8454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8455 #endif
8456 }
8457 {
8458 if (temp1)
8459 delete arg1;
8460 }
8461 return resultobj;
8462 fail:
8463 {
8464 if (temp1)
8465 delete arg1;
8466 }
8467 return NULL;
8468 }
8469
8470
8471 SWIGINTERN PyObject *_wrap_StaticText_EscapeMarkup(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8472 PyObject *resultobj = 0;
8473 wxString *arg1 = 0 ;
8474 wxString result;
8475 bool temp1 = false ;
8476 PyObject * obj0 = 0 ;
8477 char * kwnames[] = {
8478 (char *) "str", NULL
8479 };
8480
8481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticText_EscapeMarkup",kwnames,&obj0)) SWIG_fail;
8482 {
8483 arg1 = wxString_in_helper(obj0);
8484 if (arg1 == NULL) SWIG_fail;
8485 temp1 = true;
8486 }
8487 {
8488 PyThreadState* __tstate = wxPyBeginAllowThreads();
8489 result = wxStaticText::EscapeMarkup((wxString const &)*arg1);
8490 wxPyEndAllowThreads(__tstate);
8491 if (PyErr_Occurred()) SWIG_fail;
8492 }
8493 {
8494 #if wxUSE_UNICODE
8495 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8496 #else
8497 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8498 #endif
8499 }
8500 {
8501 if (temp1)
8502 delete arg1;
8503 }
8504 return resultobj;
8505 fail:
8506 {
8507 if (temp1)
8508 delete arg1;
8509 }
8510 return NULL;
8511 }
8512
8513
8514 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8515 PyObject *resultobj = 0;
8516 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8517 SwigValueWrapper<wxVisualAttributes > result;
8518 int val1 ;
8519 int ecode1 = 0 ;
8520 PyObject * obj0 = 0 ;
8521 char * kwnames[] = {
8522 (char *) "variant", NULL
8523 };
8524
8525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8526 if (obj0) {
8527 ecode1 = SWIG_AsVal_int(obj0, &val1);
8528 if (!SWIG_IsOK(ecode1)) {
8529 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8530 }
8531 arg1 = static_cast< wxWindowVariant >(val1);
8532 }
8533 {
8534 if (!wxPyCheckForApp()) SWIG_fail;
8535 PyThreadState* __tstate = wxPyBeginAllowThreads();
8536 result = wxStaticText::GetClassDefaultAttributes(arg1);
8537 wxPyEndAllowThreads(__tstate);
8538 if (PyErr_Occurred()) SWIG_fail;
8539 }
8540 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8541 return resultobj;
8542 fail:
8543 return NULL;
8544 }
8545
8546
8547 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8548 PyObject *obj;
8549 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8550 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8551 return SWIG_Py_Void();
8552 }
8553
8554 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8555 return SWIG_Python_InitShadowInstance(args);
8556 }
8557
8558 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8559 PyObject *resultobj = 0;
8560 wxWindow *arg1 = (wxWindow *) 0 ;
8561 int arg2 = (int) -1 ;
8562 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8563 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8564 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8565 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8566 wxSize const &arg5_defvalue = wxDefaultSize ;
8567 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8568 long arg6 = (long) 0 ;
8569 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8570 wxString *arg7 = (wxString *) &arg7_defvalue ;
8571 wxStaticBitmap *result = 0 ;
8572 void *argp1 = 0 ;
8573 int res1 = 0 ;
8574 int val2 ;
8575 int ecode2 = 0 ;
8576 void *argp3 = 0 ;
8577 int res3 = 0 ;
8578 wxPoint temp4 ;
8579 wxSize temp5 ;
8580 long val6 ;
8581 int ecode6 = 0 ;
8582 bool temp7 = false ;
8583 PyObject * obj0 = 0 ;
8584 PyObject * obj1 = 0 ;
8585 PyObject * obj2 = 0 ;
8586 PyObject * obj3 = 0 ;
8587 PyObject * obj4 = 0 ;
8588 PyObject * obj5 = 0 ;
8589 PyObject * obj6 = 0 ;
8590 char * kwnames[] = {
8591 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8592 };
8593
8594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8596 if (!SWIG_IsOK(res1)) {
8597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8598 }
8599 arg1 = reinterpret_cast< wxWindow * >(argp1);
8600 if (obj1) {
8601 ecode2 = SWIG_AsVal_int(obj1, &val2);
8602 if (!SWIG_IsOK(ecode2)) {
8603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8604 }
8605 arg2 = static_cast< int >(val2);
8606 }
8607 if (obj2) {
8608 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8609 if (!SWIG_IsOK(res3)) {
8610 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8611 }
8612 if (!argp3) {
8613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8614 }
8615 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8616 }
8617 if (obj3) {
8618 {
8619 arg4 = &temp4;
8620 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8621 }
8622 }
8623 if (obj4) {
8624 {
8625 arg5 = &temp5;
8626 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8627 }
8628 }
8629 if (obj5) {
8630 ecode6 = SWIG_AsVal_long(obj5, &val6);
8631 if (!SWIG_IsOK(ecode6)) {
8632 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8633 }
8634 arg6 = static_cast< long >(val6);
8635 }
8636 if (obj6) {
8637 {
8638 arg7 = wxString_in_helper(obj6);
8639 if (arg7 == NULL) SWIG_fail;
8640 temp7 = true;
8641 }
8642 }
8643 {
8644 if (!wxPyCheckForApp()) SWIG_fail;
8645 PyThreadState* __tstate = wxPyBeginAllowThreads();
8646 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8647 wxPyEndAllowThreads(__tstate);
8648 if (PyErr_Occurred()) SWIG_fail;
8649 }
8650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8651 {
8652 if (temp7)
8653 delete arg7;
8654 }
8655 return resultobj;
8656 fail:
8657 {
8658 if (temp7)
8659 delete arg7;
8660 }
8661 return NULL;
8662 }
8663
8664
8665 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8666 PyObject *resultobj = 0;
8667 wxStaticBitmap *result = 0 ;
8668
8669 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8670 {
8671 if (!wxPyCheckForApp()) SWIG_fail;
8672 PyThreadState* __tstate = wxPyBeginAllowThreads();
8673 result = (wxStaticBitmap *)new wxStaticBitmap();
8674 wxPyEndAllowThreads(__tstate);
8675 if (PyErr_Occurred()) SWIG_fail;
8676 }
8677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8678 return resultobj;
8679 fail:
8680 return NULL;
8681 }
8682
8683
8684 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8685 PyObject *resultobj = 0;
8686 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8687 wxWindow *arg2 = (wxWindow *) 0 ;
8688 int arg3 = (int) -1 ;
8689 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8690 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8691 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8692 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8693 wxSize const &arg6_defvalue = wxDefaultSize ;
8694 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8695 long arg7 = (long) 0 ;
8696 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8697 wxString *arg8 = (wxString *) &arg8_defvalue ;
8698 bool result;
8699 void *argp1 = 0 ;
8700 int res1 = 0 ;
8701 void *argp2 = 0 ;
8702 int res2 = 0 ;
8703 int val3 ;
8704 int ecode3 = 0 ;
8705 void *argp4 = 0 ;
8706 int res4 = 0 ;
8707 wxPoint temp5 ;
8708 wxSize temp6 ;
8709 long val7 ;
8710 int ecode7 = 0 ;
8711 bool temp8 = false ;
8712 PyObject * obj0 = 0 ;
8713 PyObject * obj1 = 0 ;
8714 PyObject * obj2 = 0 ;
8715 PyObject * obj3 = 0 ;
8716 PyObject * obj4 = 0 ;
8717 PyObject * obj5 = 0 ;
8718 PyObject * obj6 = 0 ;
8719 PyObject * obj7 = 0 ;
8720 char * kwnames[] = {
8721 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8722 };
8723
8724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8726 if (!SWIG_IsOK(res1)) {
8727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8728 }
8729 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8730 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8731 if (!SWIG_IsOK(res2)) {
8732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8733 }
8734 arg2 = reinterpret_cast< wxWindow * >(argp2);
8735 if (obj2) {
8736 ecode3 = SWIG_AsVal_int(obj2, &val3);
8737 if (!SWIG_IsOK(ecode3)) {
8738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8739 }
8740 arg3 = static_cast< int >(val3);
8741 }
8742 if (obj3) {
8743 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8744 if (!SWIG_IsOK(res4)) {
8745 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8746 }
8747 if (!argp4) {
8748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8749 }
8750 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8751 }
8752 if (obj4) {
8753 {
8754 arg5 = &temp5;
8755 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8756 }
8757 }
8758 if (obj5) {
8759 {
8760 arg6 = &temp6;
8761 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8762 }
8763 }
8764 if (obj6) {
8765 ecode7 = SWIG_AsVal_long(obj6, &val7);
8766 if (!SWIG_IsOK(ecode7)) {
8767 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8768 }
8769 arg7 = static_cast< long >(val7);
8770 }
8771 if (obj7) {
8772 {
8773 arg8 = wxString_in_helper(obj7);
8774 if (arg8 == NULL) SWIG_fail;
8775 temp8 = true;
8776 }
8777 }
8778 {
8779 PyThreadState* __tstate = wxPyBeginAllowThreads();
8780 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8781 wxPyEndAllowThreads(__tstate);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 {
8785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8786 }
8787 {
8788 if (temp8)
8789 delete arg8;
8790 }
8791 return resultobj;
8792 fail:
8793 {
8794 if (temp8)
8795 delete arg8;
8796 }
8797 return NULL;
8798 }
8799
8800
8801 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8802 PyObject *resultobj = 0;
8803 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8804 wxBitmap result;
8805 void *argp1 = 0 ;
8806 int res1 = 0 ;
8807 PyObject *swig_obj[1] ;
8808
8809 if (!args) SWIG_fail;
8810 swig_obj[0] = args;
8811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8812 if (!SWIG_IsOK(res1)) {
8813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8814 }
8815 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8816 {
8817 PyThreadState* __tstate = wxPyBeginAllowThreads();
8818 result = (arg1)->GetBitmap();
8819 wxPyEndAllowThreads(__tstate);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 }
8822 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8823 return resultobj;
8824 fail:
8825 return NULL;
8826 }
8827
8828
8829 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8830 PyObject *resultobj = 0;
8831 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8832 wxBitmap *arg2 = 0 ;
8833 void *argp1 = 0 ;
8834 int res1 = 0 ;
8835 void *argp2 = 0 ;
8836 int res2 = 0 ;
8837 PyObject * obj0 = 0 ;
8838 PyObject * obj1 = 0 ;
8839 char * kwnames[] = {
8840 (char *) "self",(char *) "bitmap", NULL
8841 };
8842
8843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8845 if (!SWIG_IsOK(res1)) {
8846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8847 }
8848 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8849 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8850 if (!SWIG_IsOK(res2)) {
8851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8852 }
8853 if (!argp2) {
8854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8855 }
8856 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8857 {
8858 PyThreadState* __tstate = wxPyBeginAllowThreads();
8859 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8860 wxPyEndAllowThreads(__tstate);
8861 if (PyErr_Occurred()) SWIG_fail;
8862 }
8863 resultobj = SWIG_Py_Void();
8864 return resultobj;
8865 fail:
8866 return NULL;
8867 }
8868
8869
8870 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8871 PyObject *resultobj = 0;
8872 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8873 wxIcon *arg2 = 0 ;
8874 void *argp1 = 0 ;
8875 int res1 = 0 ;
8876 void *argp2 = 0 ;
8877 int res2 = 0 ;
8878 PyObject * obj0 = 0 ;
8879 PyObject * obj1 = 0 ;
8880 char * kwnames[] = {
8881 (char *) "self",(char *) "icon", NULL
8882 };
8883
8884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8886 if (!SWIG_IsOK(res1)) {
8887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8888 }
8889 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8891 if (!SWIG_IsOK(res2)) {
8892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8893 }
8894 if (!argp2) {
8895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8896 }
8897 arg2 = reinterpret_cast< wxIcon * >(argp2);
8898 {
8899 PyThreadState* __tstate = wxPyBeginAllowThreads();
8900 (arg1)->SetIcon((wxIcon const &)*arg2);
8901 wxPyEndAllowThreads(__tstate);
8902 if (PyErr_Occurred()) SWIG_fail;
8903 }
8904 resultobj = SWIG_Py_Void();
8905 return resultobj;
8906 fail:
8907 return NULL;
8908 }
8909
8910
8911 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8912 PyObject *resultobj = 0;
8913 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8914 SwigValueWrapper<wxVisualAttributes > result;
8915 int val1 ;
8916 int ecode1 = 0 ;
8917 PyObject * obj0 = 0 ;
8918 char * kwnames[] = {
8919 (char *) "variant", NULL
8920 };
8921
8922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8923 if (obj0) {
8924 ecode1 = SWIG_AsVal_int(obj0, &val1);
8925 if (!SWIG_IsOK(ecode1)) {
8926 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8927 }
8928 arg1 = static_cast< wxWindowVariant >(val1);
8929 }
8930 {
8931 if (!wxPyCheckForApp()) SWIG_fail;
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8945 PyObject *obj;
8946 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8947 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8948 return SWIG_Py_Void();
8949 }
8950
8951 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8952 return SWIG_Python_InitShadowInstance(args);
8953 }
8954
8955 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8956 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8957 return 1;
8958 }
8959
8960
8961 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8962 PyObject *pyobj = 0;
8963
8964 {
8965 #if wxUSE_UNICODE
8966 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8967 #else
8968 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8969 #endif
8970 }
8971 return pyobj;
8972 }
8973
8974
8975 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8976 PyObject *resultobj = 0;
8977 wxWindow *arg1 = (wxWindow *) 0 ;
8978 int arg2 = (int) -1 ;
8979 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8980 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8981 wxSize const &arg4_defvalue = wxDefaultSize ;
8982 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8983 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8984 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8985 long arg6 = (long) 0 ;
8986 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8987 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8988 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8989 wxString *arg8 = (wxString *) &arg8_defvalue ;
8990 wxListBox *result = 0 ;
8991 void *argp1 = 0 ;
8992 int res1 = 0 ;
8993 int val2 ;
8994 int ecode2 = 0 ;
8995 wxPoint temp3 ;
8996 wxSize temp4 ;
8997 bool temp5 = false ;
8998 long val6 ;
8999 int ecode6 = 0 ;
9000 void *argp7 = 0 ;
9001 int res7 = 0 ;
9002 bool temp8 = false ;
9003 PyObject * obj0 = 0 ;
9004 PyObject * obj1 = 0 ;
9005 PyObject * obj2 = 0 ;
9006 PyObject * obj3 = 0 ;
9007 PyObject * obj4 = 0 ;
9008 PyObject * obj5 = 0 ;
9009 PyObject * obj6 = 0 ;
9010 PyObject * obj7 = 0 ;
9011 char * kwnames[] = {
9012 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9013 };
9014
9015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9017 if (!SWIG_IsOK(res1)) {
9018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9019 }
9020 arg1 = reinterpret_cast< wxWindow * >(argp1);
9021 if (obj1) {
9022 ecode2 = SWIG_AsVal_int(obj1, &val2);
9023 if (!SWIG_IsOK(ecode2)) {
9024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
9025 }
9026 arg2 = static_cast< int >(val2);
9027 }
9028 if (obj2) {
9029 {
9030 arg3 = &temp3;
9031 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9032 }
9033 }
9034 if (obj3) {
9035 {
9036 arg4 = &temp4;
9037 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9038 }
9039 }
9040 if (obj4) {
9041 {
9042 if (! PySequence_Check(obj4)) {
9043 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9044 SWIG_fail;
9045 }
9046 arg5 = new wxArrayString;
9047 temp5 = true;
9048 int i, len=PySequence_Length(obj4);
9049 for (i=0; i<len; i++) {
9050 PyObject* item = PySequence_GetItem(obj4, i);
9051 wxString* s = wxString_in_helper(item);
9052 if (PyErr_Occurred()) SWIG_fail;
9053 arg5->Add(*s);
9054 delete s;
9055 Py_DECREF(item);
9056 }
9057 }
9058 }
9059 if (obj5) {
9060 ecode6 = SWIG_AsVal_long(obj5, &val6);
9061 if (!SWIG_IsOK(ecode6)) {
9062 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
9063 }
9064 arg6 = static_cast< long >(val6);
9065 }
9066 if (obj6) {
9067 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
9068 if (!SWIG_IsOK(res7)) {
9069 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
9070 }
9071 if (!argp7) {
9072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
9073 }
9074 arg7 = reinterpret_cast< wxValidator * >(argp7);
9075 }
9076 if (obj7) {
9077 {
9078 arg8 = wxString_in_helper(obj7);
9079 if (arg8 == NULL) SWIG_fail;
9080 temp8 = true;
9081 }
9082 }
9083 {
9084 if (!wxPyCheckForApp()) SWIG_fail;
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
9087 wxPyEndAllowThreads(__tstate);
9088 if (PyErr_Occurred()) SWIG_fail;
9089 }
9090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
9091 {
9092 if (temp5) delete arg5;
9093 }
9094 {
9095 if (temp8)
9096 delete arg8;
9097 }
9098 return resultobj;
9099 fail:
9100 {
9101 if (temp5) delete arg5;
9102 }
9103 {
9104 if (temp8)
9105 delete arg8;
9106 }
9107 return NULL;
9108 }
9109
9110
9111 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9112 PyObject *resultobj = 0;
9113 wxListBox *result = 0 ;
9114
9115 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
9116 {
9117 if (!wxPyCheckForApp()) SWIG_fail;
9118 PyThreadState* __tstate = wxPyBeginAllowThreads();
9119 result = (wxListBox *)new wxListBox();
9120 wxPyEndAllowThreads(__tstate);
9121 if (PyErr_Occurred()) SWIG_fail;
9122 }
9123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
9124 return resultobj;
9125 fail:
9126 return NULL;
9127 }
9128
9129
9130 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9131 PyObject *resultobj = 0;
9132 wxListBox *arg1 = (wxListBox *) 0 ;
9133 wxWindow *arg2 = (wxWindow *) 0 ;
9134 int arg3 = (int) -1 ;
9135 wxPoint const &arg4_defvalue = wxDefaultPosition ;
9136 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
9137 wxSize const &arg5_defvalue = wxDefaultSize ;
9138 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
9139 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
9140 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
9141 long arg7 = (long) 0 ;
9142 wxValidator const &arg8_defvalue = wxDefaultValidator ;
9143 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
9144 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
9145 wxString *arg9 = (wxString *) &arg9_defvalue ;
9146 bool result;
9147 void *argp1 = 0 ;
9148 int res1 = 0 ;
9149 void *argp2 = 0 ;
9150 int res2 = 0 ;
9151 int val3 ;
9152 int ecode3 = 0 ;
9153 wxPoint temp4 ;
9154 wxSize temp5 ;
9155 bool temp6 = false ;
9156 long val7 ;
9157 int ecode7 = 0 ;
9158 void *argp8 = 0 ;
9159 int res8 = 0 ;
9160 bool temp9 = false ;
9161 PyObject * obj0 = 0 ;
9162 PyObject * obj1 = 0 ;
9163 PyObject * obj2 = 0 ;
9164 PyObject * obj3 = 0 ;
9165 PyObject * obj4 = 0 ;
9166 PyObject * obj5 = 0 ;
9167 PyObject * obj6 = 0 ;
9168 PyObject * obj7 = 0 ;
9169 PyObject * obj8 = 0 ;
9170 char * kwnames[] = {
9171 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9172 };
9173
9174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9176 if (!SWIG_IsOK(res1)) {
9177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9178 }
9179 arg1 = reinterpret_cast< wxListBox * >(argp1);
9180 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9181 if (!SWIG_IsOK(res2)) {
9182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9183 }
9184 arg2 = reinterpret_cast< wxWindow * >(argp2);
9185 if (obj2) {
9186 ecode3 = SWIG_AsVal_int(obj2, &val3);
9187 if (!SWIG_IsOK(ecode3)) {
9188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9189 }
9190 arg3 = static_cast< int >(val3);
9191 }
9192 if (obj3) {
9193 {
9194 arg4 = &temp4;
9195 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9196 }
9197 }
9198 if (obj4) {
9199 {
9200 arg5 = &temp5;
9201 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9202 }
9203 }
9204 if (obj5) {
9205 {
9206 if (! PySequence_Check(obj5)) {
9207 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9208 SWIG_fail;
9209 }
9210 arg6 = new wxArrayString;
9211 temp6 = true;
9212 int i, len=PySequence_Length(obj5);
9213 for (i=0; i<len; i++) {
9214 PyObject* item = PySequence_GetItem(obj5, i);
9215 wxString* s = wxString_in_helper(item);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 arg6->Add(*s);
9218 delete s;
9219 Py_DECREF(item);
9220 }
9221 }
9222 }
9223 if (obj6) {
9224 ecode7 = SWIG_AsVal_long(obj6, &val7);
9225 if (!SWIG_IsOK(ecode7)) {
9226 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9227 }
9228 arg7 = static_cast< long >(val7);
9229 }
9230 if (obj7) {
9231 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9232 if (!SWIG_IsOK(res8)) {
9233 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9234 }
9235 if (!argp8) {
9236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9237 }
9238 arg8 = reinterpret_cast< wxValidator * >(argp8);
9239 }
9240 if (obj8) {
9241 {
9242 arg9 = wxString_in_helper(obj8);
9243 if (arg9 == NULL) SWIG_fail;
9244 temp9 = true;
9245 }
9246 }
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 {
9254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9255 }
9256 {
9257 if (temp6) delete arg6;
9258 }
9259 {
9260 if (temp9)
9261 delete arg9;
9262 }
9263 return resultobj;
9264 fail:
9265 {
9266 if (temp6) delete arg6;
9267 }
9268 {
9269 if (temp9)
9270 delete arg9;
9271 }
9272 return NULL;
9273 }
9274
9275
9276 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9277 PyObject *resultobj = 0;
9278 wxListBox *arg1 = (wxListBox *) 0 ;
9279 wxString *arg2 = 0 ;
9280 int arg3 ;
9281 PyObject *arg4 = (PyObject *) NULL ;
9282 void *argp1 = 0 ;
9283 int res1 = 0 ;
9284 bool temp2 = false ;
9285 int val3 ;
9286 int ecode3 = 0 ;
9287 PyObject * obj0 = 0 ;
9288 PyObject * obj1 = 0 ;
9289 PyObject * obj2 = 0 ;
9290 PyObject * obj3 = 0 ;
9291 char * kwnames[] = {
9292 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9293 };
9294
9295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9297 if (!SWIG_IsOK(res1)) {
9298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9299 }
9300 arg1 = reinterpret_cast< wxListBox * >(argp1);
9301 {
9302 arg2 = wxString_in_helper(obj1);
9303 if (arg2 == NULL) SWIG_fail;
9304 temp2 = true;
9305 }
9306 ecode3 = SWIG_AsVal_int(obj2, &val3);
9307 if (!SWIG_IsOK(ecode3)) {
9308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9309 }
9310 arg3 = static_cast< int >(val3);
9311 if (obj3) {
9312 arg4 = obj3;
9313 }
9314 {
9315 PyThreadState* __tstate = wxPyBeginAllowThreads();
9316 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9317 wxPyEndAllowThreads(__tstate);
9318 if (PyErr_Occurred()) SWIG_fail;
9319 }
9320 resultobj = SWIG_Py_Void();
9321 {
9322 if (temp2)
9323 delete arg2;
9324 }
9325 return resultobj;
9326 fail:
9327 {
9328 if (temp2)
9329 delete arg2;
9330 }
9331 return NULL;
9332 }
9333
9334
9335 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9336 PyObject *resultobj = 0;
9337 wxListBox *arg1 = (wxListBox *) 0 ;
9338 wxArrayString *arg2 = 0 ;
9339 unsigned int arg3 ;
9340 void *argp1 = 0 ;
9341 int res1 = 0 ;
9342 bool temp2 = false ;
9343 unsigned int val3 ;
9344 int ecode3 = 0 ;
9345 PyObject * obj0 = 0 ;
9346 PyObject * obj1 = 0 ;
9347 PyObject * obj2 = 0 ;
9348 char * kwnames[] = {
9349 (char *) "self",(char *) "items",(char *) "pos", NULL
9350 };
9351
9352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9354 if (!SWIG_IsOK(res1)) {
9355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9356 }
9357 arg1 = reinterpret_cast< wxListBox * >(argp1);
9358 {
9359 if (! PySequence_Check(obj1)) {
9360 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9361 SWIG_fail;
9362 }
9363 arg2 = new wxArrayString;
9364 temp2 = true;
9365 int i, len=PySequence_Length(obj1);
9366 for (i=0; i<len; i++) {
9367 PyObject* item = PySequence_GetItem(obj1, i);
9368 wxString* s = wxString_in_helper(item);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 arg2->Add(*s);
9371 delete s;
9372 Py_DECREF(item);
9373 }
9374 }
9375 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9376 if (!SWIG_IsOK(ecode3)) {
9377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9378 }
9379 arg3 = static_cast< unsigned int >(val3);
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 resultobj = SWIG_Py_Void();
9387 {
9388 if (temp2) delete arg2;
9389 }
9390 return resultobj;
9391 fail:
9392 {
9393 if (temp2) delete arg2;
9394 }
9395 return NULL;
9396 }
9397
9398
9399 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj = 0;
9401 wxListBox *arg1 = (wxListBox *) 0 ;
9402 wxArrayString *arg2 = 0 ;
9403 void *argp1 = 0 ;
9404 int res1 = 0 ;
9405 bool temp2 = false ;
9406 PyObject * obj0 = 0 ;
9407 PyObject * obj1 = 0 ;
9408 char * kwnames[] = {
9409 (char *) "self",(char *) "items", NULL
9410 };
9411
9412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9414 if (!SWIG_IsOK(res1)) {
9415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9416 }
9417 arg1 = reinterpret_cast< wxListBox * >(argp1);
9418 {
9419 if (! PySequence_Check(obj1)) {
9420 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9421 SWIG_fail;
9422 }
9423 arg2 = new wxArrayString;
9424 temp2 = true;
9425 int i, len=PySequence_Length(obj1);
9426 for (i=0; i<len; i++) {
9427 PyObject* item = PySequence_GetItem(obj1, i);
9428 wxString* s = wxString_in_helper(item);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 arg2->Add(*s);
9431 delete s;
9432 Py_DECREF(item);
9433 }
9434 }
9435 {
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 (arg1)->Set((wxArrayString const &)*arg2);
9438 wxPyEndAllowThreads(__tstate);
9439 if (PyErr_Occurred()) SWIG_fail;
9440 }
9441 resultobj = SWIG_Py_Void();
9442 {
9443 if (temp2) delete arg2;
9444 }
9445 return resultobj;
9446 fail:
9447 {
9448 if (temp2) delete arg2;
9449 }
9450 return NULL;
9451 }
9452
9453
9454 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9455 PyObject *resultobj = 0;
9456 wxListBox *arg1 = (wxListBox *) 0 ;
9457 int arg2 ;
9458 bool result;
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 *) "n", NULL
9467 };
9468
9469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",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_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9473 }
9474 arg1 = reinterpret_cast< wxListBox * >(argp1);
9475 ecode2 = SWIG_AsVal_int(obj1, &val2);
9476 if (!SWIG_IsOK(ecode2)) {
9477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9478 }
9479 arg2 = static_cast< int >(val2);
9480 {
9481 PyThreadState* __tstate = wxPyBeginAllowThreads();
9482 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9483 wxPyEndAllowThreads(__tstate);
9484 if (PyErr_Occurred()) SWIG_fail;
9485 }
9486 {
9487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9488 }
9489 return resultobj;
9490 fail:
9491 return NULL;
9492 }
9493
9494
9495 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9496 PyObject *resultobj = 0;
9497 wxListBox *arg1 = (wxListBox *) 0 ;
9498 int arg2 ;
9499 bool arg3 = (bool) true ;
9500 void *argp1 = 0 ;
9501 int res1 = 0 ;
9502 int val2 ;
9503 int ecode2 = 0 ;
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 *) "n",(char *) "select", NULL
9511 };
9512
9513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",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_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9517 }
9518 arg1 = reinterpret_cast< wxListBox * >(argp1);
9519 ecode2 = SWIG_AsVal_int(obj1, &val2);
9520 if (!SWIG_IsOK(ecode2)) {
9521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9522 }
9523 arg2 = static_cast< int >(val2);
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_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9528 }
9529 arg3 = static_cast< bool >(val3);
9530 }
9531 {
9532 PyThreadState* __tstate = wxPyBeginAllowThreads();
9533 (arg1)->SetSelection(arg2,arg3);
9534 wxPyEndAllowThreads(__tstate);
9535 if (PyErr_Occurred()) SWIG_fail;
9536 }
9537 resultobj = SWIG_Py_Void();
9538 return resultobj;
9539 fail:
9540 return NULL;
9541 }
9542
9543
9544 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9545 PyObject *resultobj = 0;
9546 wxListBox *arg1 = (wxListBox *) 0 ;
9547 int arg2 ;
9548 void *argp1 = 0 ;
9549 int res1 = 0 ;
9550 int val2 ;
9551 int ecode2 = 0 ;
9552 PyObject * obj0 = 0 ;
9553 PyObject * obj1 = 0 ;
9554 char * kwnames[] = {
9555 (char *) "self",(char *) "n", NULL
9556 };
9557
9558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9560 if (!SWIG_IsOK(res1)) {
9561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9562 }
9563 arg1 = reinterpret_cast< wxListBox * >(argp1);
9564 ecode2 = SWIG_AsVal_int(obj1, &val2);
9565 if (!SWIG_IsOK(ecode2)) {
9566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9567 }
9568 arg2 = static_cast< int >(val2);
9569 {
9570 PyThreadState* __tstate = wxPyBeginAllowThreads();
9571 (arg1)->Select(arg2);
9572 wxPyEndAllowThreads(__tstate);
9573 if (PyErr_Occurred()) SWIG_fail;
9574 }
9575 resultobj = SWIG_Py_Void();
9576 return resultobj;
9577 fail:
9578 return NULL;
9579 }
9580
9581
9582 SWIGINTERN PyObject *_wrap_ListBox_Deselect(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_Deselect",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_Deselect" "', 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_Deselect" "', expected argument " "2"" of type '" "int""'");
9605 }
9606 arg2 = static_cast< int >(val2);
9607 {
9608 PyThreadState* __tstate = wxPyBeginAllowThreads();
9609 (arg1)->Deselect(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_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9621 PyObject *resultobj = 0;
9622 wxListBox *arg1 = (wxListBox *) 0 ;
9623 int arg2 = (int) -1 ;
9624 void *argp1 = 0 ;
9625 int res1 = 0 ;
9626 int val2 ;
9627 int ecode2 = 0 ;
9628 PyObject * obj0 = 0 ;
9629 PyObject * obj1 = 0 ;
9630 char * kwnames[] = {
9631 (char *) "self",(char *) "itemToLeaveSelected", NULL
9632 };
9633
9634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9638 }
9639 arg1 = reinterpret_cast< wxListBox * >(argp1);
9640 if (obj1) {
9641 ecode2 = SWIG_AsVal_int(obj1, &val2);
9642 if (!SWIG_IsOK(ecode2)) {
9643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9644 }
9645 arg2 = static_cast< int >(val2);
9646 }
9647 {
9648 PyThreadState* __tstate = wxPyBeginAllowThreads();
9649 (arg1)->DeselectAll(arg2);
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 resultobj = SWIG_Py_Void();
9654 return resultobj;
9655 fail:
9656 return NULL;
9657 }
9658
9659
9660 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9661 PyObject *resultobj = 0;
9662 wxListBox *arg1 = (wxListBox *) 0 ;
9663 wxString *arg2 = 0 ;
9664 bool arg3 = (bool) true ;
9665 bool result;
9666 void *argp1 = 0 ;
9667 int res1 = 0 ;
9668 bool temp2 = false ;
9669 bool val3 ;
9670 int ecode3 = 0 ;
9671 PyObject * obj0 = 0 ;
9672 PyObject * obj1 = 0 ;
9673 PyObject * obj2 = 0 ;
9674 char * kwnames[] = {
9675 (char *) "self",(char *) "s",(char *) "select", NULL
9676 };
9677
9678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9680 if (!SWIG_IsOK(res1)) {
9681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9682 }
9683 arg1 = reinterpret_cast< wxListBox * >(argp1);
9684 {
9685 arg2 = wxString_in_helper(obj1);
9686 if (arg2 == NULL) SWIG_fail;
9687 temp2 = true;
9688 }
9689 if (obj2) {
9690 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9691 if (!SWIG_IsOK(ecode3)) {
9692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9693 }
9694 arg3 = static_cast< bool >(val3);
9695 }
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9699 wxPyEndAllowThreads(__tstate);
9700 if (PyErr_Occurred()) SWIG_fail;
9701 }
9702 {
9703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9704 }
9705 {
9706 if (temp2)
9707 delete arg2;
9708 }
9709 return resultobj;
9710 fail:
9711 {
9712 if (temp2)
9713 delete arg2;
9714 }
9715 return NULL;
9716 }
9717
9718
9719 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9720 PyObject *resultobj = 0;
9721 wxListBox *arg1 = (wxListBox *) 0 ;
9722 PyObject *result = 0 ;
9723 void *argp1 = 0 ;
9724 int res1 = 0 ;
9725 PyObject *swig_obj[1] ;
9726
9727 if (!args) SWIG_fail;
9728 swig_obj[0] = args;
9729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9730 if (!SWIG_IsOK(res1)) {
9731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9732 }
9733 arg1 = reinterpret_cast< wxListBox * >(argp1);
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (PyObject *)wxListBox_GetSelections(arg1);
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 resultobj = result;
9741 return resultobj;
9742 fail:
9743 return NULL;
9744 }
9745
9746
9747 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9748 PyObject *resultobj = 0;
9749 wxListBox *arg1 = (wxListBox *) 0 ;
9750 int arg2 ;
9751 void *argp1 = 0 ;
9752 int res1 = 0 ;
9753 int val2 ;
9754 int ecode2 = 0 ;
9755 PyObject * obj0 = 0 ;
9756 PyObject * obj1 = 0 ;
9757 char * kwnames[] = {
9758 (char *) "self",(char *) "n", NULL
9759 };
9760
9761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9763 if (!SWIG_IsOK(res1)) {
9764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9765 }
9766 arg1 = reinterpret_cast< wxListBox * >(argp1);
9767 ecode2 = SWIG_AsVal_int(obj1, &val2);
9768 if (!SWIG_IsOK(ecode2)) {
9769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9770 }
9771 arg2 = static_cast< int >(val2);
9772 {
9773 PyThreadState* __tstate = wxPyBeginAllowThreads();
9774 (arg1)->SetFirstItem(arg2);
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) SWIG_fail;
9777 }
9778 resultobj = SWIG_Py_Void();
9779 return resultobj;
9780 fail:
9781 return NULL;
9782 }
9783
9784
9785 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9786 PyObject *resultobj = 0;
9787 wxListBox *arg1 = (wxListBox *) 0 ;
9788 wxString *arg2 = 0 ;
9789 void *argp1 = 0 ;
9790 int res1 = 0 ;
9791 bool temp2 = false ;
9792 PyObject * obj0 = 0 ;
9793 PyObject * obj1 = 0 ;
9794 char * kwnames[] = {
9795 (char *) "self",(char *) "s", NULL
9796 };
9797
9798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9800 if (!SWIG_IsOK(res1)) {
9801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9802 }
9803 arg1 = reinterpret_cast< wxListBox * >(argp1);
9804 {
9805 arg2 = wxString_in_helper(obj1);
9806 if (arg2 == NULL) SWIG_fail;
9807 temp2 = true;
9808 }
9809 {
9810 PyThreadState* __tstate = wxPyBeginAllowThreads();
9811 (arg1)->SetFirstItem((wxString const &)*arg2);
9812 wxPyEndAllowThreads(__tstate);
9813 if (PyErr_Occurred()) SWIG_fail;
9814 }
9815 resultobj = SWIG_Py_Void();
9816 {
9817 if (temp2)
9818 delete arg2;
9819 }
9820 return resultobj;
9821 fail:
9822 {
9823 if (temp2)
9824 delete arg2;
9825 }
9826 return NULL;
9827 }
9828
9829
9830 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9831 PyObject *resultobj = 0;
9832 wxListBox *arg1 = (wxListBox *) 0 ;
9833 int arg2 ;
9834 void *argp1 = 0 ;
9835 int res1 = 0 ;
9836 int val2 ;
9837 int ecode2 = 0 ;
9838 PyObject * obj0 = 0 ;
9839 PyObject * obj1 = 0 ;
9840 char * kwnames[] = {
9841 (char *) "self",(char *) "n", NULL
9842 };
9843
9844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9846 if (!SWIG_IsOK(res1)) {
9847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9848 }
9849 arg1 = reinterpret_cast< wxListBox * >(argp1);
9850 ecode2 = SWIG_AsVal_int(obj1, &val2);
9851 if (!SWIG_IsOK(ecode2)) {
9852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9853 }
9854 arg2 = static_cast< int >(val2);
9855 {
9856 PyThreadState* __tstate = wxPyBeginAllowThreads();
9857 (arg1)->EnsureVisible(arg2);
9858 wxPyEndAllowThreads(__tstate);
9859 if (PyErr_Occurred()) SWIG_fail;
9860 }
9861 resultobj = SWIG_Py_Void();
9862 return resultobj;
9863 fail:
9864 return NULL;
9865 }
9866
9867
9868 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj = 0;
9870 wxListBox *arg1 = (wxListBox *) 0 ;
9871 wxString *arg2 = 0 ;
9872 void *argp1 = 0 ;
9873 int res1 = 0 ;
9874 bool temp2 = false ;
9875 PyObject * obj0 = 0 ;
9876 PyObject * obj1 = 0 ;
9877 char * kwnames[] = {
9878 (char *) "self",(char *) "s", NULL
9879 };
9880
9881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9883 if (!SWIG_IsOK(res1)) {
9884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9885 }
9886 arg1 = reinterpret_cast< wxListBox * >(argp1);
9887 {
9888 arg2 = wxString_in_helper(obj1);
9889 if (arg2 == NULL) SWIG_fail;
9890 temp2 = true;
9891 }
9892 {
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9895 wxPyEndAllowThreads(__tstate);
9896 if (PyErr_Occurred()) SWIG_fail;
9897 }
9898 resultobj = SWIG_Py_Void();
9899 {
9900 if (temp2)
9901 delete arg2;
9902 }
9903 return resultobj;
9904 fail:
9905 {
9906 if (temp2)
9907 delete arg2;
9908 }
9909 return NULL;
9910 }
9911
9912
9913 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9914 PyObject *resultobj = 0;
9915 wxListBox *arg1 = (wxListBox *) 0 ;
9916 bool result;
9917 void *argp1 = 0 ;
9918 int res1 = 0 ;
9919 PyObject *swig_obj[1] ;
9920
9921 if (!args) SWIG_fail;
9922 swig_obj[0] = args;
9923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9924 if (!SWIG_IsOK(res1)) {
9925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9926 }
9927 arg1 = reinterpret_cast< wxListBox * >(argp1);
9928 {
9929 PyThreadState* __tstate = wxPyBeginAllowThreads();
9930 result = (bool)((wxListBox const *)arg1)->IsSorted();
9931 wxPyEndAllowThreads(__tstate);
9932 if (PyErr_Occurred()) SWIG_fail;
9933 }
9934 {
9935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9936 }
9937 return resultobj;
9938 fail:
9939 return NULL;
9940 }
9941
9942
9943 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9944 PyObject *resultobj = 0;
9945 wxListBox *arg1 = (wxListBox *) 0 ;
9946 wxPoint *arg2 = 0 ;
9947 int result;
9948 void *argp1 = 0 ;
9949 int res1 = 0 ;
9950 wxPoint temp2 ;
9951 PyObject * obj0 = 0 ;
9952 PyObject * obj1 = 0 ;
9953 char * kwnames[] = {
9954 (char *) "self",(char *) "pt", NULL
9955 };
9956
9957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9959 if (!SWIG_IsOK(res1)) {
9960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9961 }
9962 arg1 = reinterpret_cast< wxListBox * >(argp1);
9963 {
9964 arg2 = &temp2;
9965 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9966 }
9967 {
9968 PyThreadState* __tstate = wxPyBeginAllowThreads();
9969 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9970 wxPyEndAllowThreads(__tstate);
9971 if (PyErr_Occurred()) SWIG_fail;
9972 }
9973 resultobj = SWIG_From_int(static_cast< int >(result));
9974 return resultobj;
9975 fail:
9976 return NULL;
9977 }
9978
9979
9980 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9981 PyObject *resultobj = 0;
9982 wxListBox *arg1 = (wxListBox *) 0 ;
9983 int arg2 ;
9984 wxColour *arg3 = 0 ;
9985 void *argp1 = 0 ;
9986 int res1 = 0 ;
9987 int val2 ;
9988 int ecode2 = 0 ;
9989 wxColour temp3 ;
9990 PyObject * obj0 = 0 ;
9991 PyObject * obj1 = 0 ;
9992 PyObject * obj2 = 0 ;
9993 char * kwnames[] = {
9994 (char *) "self",(char *) "item",(char *) "c", NULL
9995 };
9996
9997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9999 if (!SWIG_IsOK(res1)) {
10000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
10001 }
10002 arg1 = reinterpret_cast< wxListBox * >(argp1);
10003 ecode2 = SWIG_AsVal_int(obj1, &val2);
10004 if (!SWIG_IsOK(ecode2)) {
10005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
10006 }
10007 arg2 = static_cast< int >(val2);
10008 {
10009 arg3 = &temp3;
10010 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10011 }
10012 {
10013 PyThreadState* __tstate = wxPyBeginAllowThreads();
10014 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
10015 wxPyEndAllowThreads(__tstate);
10016 if (PyErr_Occurred()) SWIG_fail;
10017 }
10018 resultobj = SWIG_Py_Void();
10019 return resultobj;
10020 fail:
10021 return NULL;
10022 }
10023
10024
10025 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10026 PyObject *resultobj = 0;
10027 wxListBox *arg1 = (wxListBox *) 0 ;
10028 int arg2 ;
10029 wxColour *arg3 = 0 ;
10030 void *argp1 = 0 ;
10031 int res1 = 0 ;
10032 int val2 ;
10033 int ecode2 = 0 ;
10034 wxColour temp3 ;
10035 PyObject * obj0 = 0 ;
10036 PyObject * obj1 = 0 ;
10037 PyObject * obj2 = 0 ;
10038 char * kwnames[] = {
10039 (char *) "self",(char *) "item",(char *) "c", NULL
10040 };
10041
10042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
10044 if (!SWIG_IsOK(res1)) {
10045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
10046 }
10047 arg1 = reinterpret_cast< wxListBox * >(argp1);
10048 ecode2 = SWIG_AsVal_int(obj1, &val2);
10049 if (!SWIG_IsOK(ecode2)) {
10050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
10051 }
10052 arg2 = static_cast< int >(val2);
10053 {
10054 arg3 = &temp3;
10055 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10056 }
10057 {
10058 PyThreadState* __tstate = wxPyBeginAllowThreads();
10059 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
10060 wxPyEndAllowThreads(__tstate);
10061 if (PyErr_Occurred()) SWIG_fail;
10062 }
10063 resultobj = SWIG_Py_Void();
10064 return resultobj;
10065 fail:
10066 return NULL;
10067 }
10068
10069
10070 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10071 PyObject *resultobj = 0;
10072 wxListBox *arg1 = (wxListBox *) 0 ;
10073 int arg2 ;
10074 wxFont *arg3 = 0 ;
10075 void *argp1 = 0 ;
10076 int res1 = 0 ;
10077 int val2 ;
10078 int ecode2 = 0 ;
10079 void *argp3 = 0 ;
10080 int res3 = 0 ;
10081 PyObject * obj0 = 0 ;
10082 PyObject * obj1 = 0 ;
10083 PyObject * obj2 = 0 ;
10084 char * kwnames[] = {
10085 (char *) "self",(char *) "item",(char *) "f", NULL
10086 };
10087
10088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
10090 if (!SWIG_IsOK(res1)) {
10091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
10092 }
10093 arg1 = reinterpret_cast< wxListBox * >(argp1);
10094 ecode2 = SWIG_AsVal_int(obj1, &val2);
10095 if (!SWIG_IsOK(ecode2)) {
10096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
10097 }
10098 arg2 = static_cast< int >(val2);
10099 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10100 if (!SWIG_IsOK(res3)) {
10101 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
10102 }
10103 if (!argp3) {
10104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
10105 }
10106 arg3 = reinterpret_cast< wxFont * >(argp3);
10107 {
10108 PyThreadState* __tstate = wxPyBeginAllowThreads();
10109 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
10110 wxPyEndAllowThreads(__tstate);
10111 if (PyErr_Occurred()) SWIG_fail;
10112 }
10113 resultobj = SWIG_Py_Void();
10114 return resultobj;
10115 fail:
10116 return NULL;
10117 }
10118
10119
10120 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10121 PyObject *resultobj = 0;
10122 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
10123 SwigValueWrapper<wxVisualAttributes > result;
10124 int val1 ;
10125 int ecode1 = 0 ;
10126 PyObject * obj0 = 0 ;
10127 char * kwnames[] = {
10128 (char *) "variant", NULL
10129 };
10130
10131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
10132 if (obj0) {
10133 ecode1 = SWIG_AsVal_int(obj0, &val1);
10134 if (!SWIG_IsOK(ecode1)) {
10135 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
10136 }
10137 arg1 = static_cast< wxWindowVariant >(val1);
10138 }
10139 {
10140 if (!wxPyCheckForApp()) SWIG_fail;
10141 PyThreadState* __tstate = wxPyBeginAllowThreads();
10142 result = wxListBox::GetClassDefaultAttributes(arg1);
10143 wxPyEndAllowThreads(__tstate);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 }
10146 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
10147 return resultobj;
10148 fail:
10149 return NULL;
10150 }
10151
10152
10153 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10154 PyObject *obj;
10155 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10156 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
10157 return SWIG_Py_Void();
10158 }
10159
10160 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10161 return SWIG_Python_InitShadowInstance(args);
10162 }
10163
10164 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10165 PyObject *resultobj = 0;
10166 wxWindow *arg1 = (wxWindow *) 0 ;
10167 int arg2 = (int) -1 ;
10168 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10169 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10170 wxSize const &arg4_defvalue = wxDefaultSize ;
10171 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10172 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10173 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10174 long arg6 = (long) 0 ;
10175 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10176 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10177 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10178 wxString *arg8 = (wxString *) &arg8_defvalue ;
10179 wxCheckListBox *result = 0 ;
10180 void *argp1 = 0 ;
10181 int res1 = 0 ;
10182 int val2 ;
10183 int ecode2 = 0 ;
10184 wxPoint temp3 ;
10185 wxSize temp4 ;
10186 bool temp5 = false ;
10187 long val6 ;
10188 int ecode6 = 0 ;
10189 void *argp7 = 0 ;
10190 int res7 = 0 ;
10191 bool temp8 = false ;
10192 PyObject * obj0 = 0 ;
10193 PyObject * obj1 = 0 ;
10194 PyObject * obj2 = 0 ;
10195 PyObject * obj3 = 0 ;
10196 PyObject * obj4 = 0 ;
10197 PyObject * obj5 = 0 ;
10198 PyObject * obj6 = 0 ;
10199 PyObject * obj7 = 0 ;
10200 char * kwnames[] = {
10201 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10202 };
10203
10204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10206 if (!SWIG_IsOK(res1)) {
10207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10208 }
10209 arg1 = reinterpret_cast< wxWindow * >(argp1);
10210 if (obj1) {
10211 ecode2 = SWIG_AsVal_int(obj1, &val2);
10212 if (!SWIG_IsOK(ecode2)) {
10213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10214 }
10215 arg2 = static_cast< int >(val2);
10216 }
10217 if (obj2) {
10218 {
10219 arg3 = &temp3;
10220 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10221 }
10222 }
10223 if (obj3) {
10224 {
10225 arg4 = &temp4;
10226 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10227 }
10228 }
10229 if (obj4) {
10230 {
10231 if (! PySequence_Check(obj4)) {
10232 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10233 SWIG_fail;
10234 }
10235 arg5 = new wxArrayString;
10236 temp5 = true;
10237 int i, len=PySequence_Length(obj4);
10238 for (i=0; i<len; i++) {
10239 PyObject* item = PySequence_GetItem(obj4, i);
10240 wxString* s = wxString_in_helper(item);
10241 if (PyErr_Occurred()) SWIG_fail;
10242 arg5->Add(*s);
10243 delete s;
10244 Py_DECREF(item);
10245 }
10246 }
10247 }
10248 if (obj5) {
10249 ecode6 = SWIG_AsVal_long(obj5, &val6);
10250 if (!SWIG_IsOK(ecode6)) {
10251 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10252 }
10253 arg6 = static_cast< long >(val6);
10254 }
10255 if (obj6) {
10256 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10257 if (!SWIG_IsOK(res7)) {
10258 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10259 }
10260 if (!argp7) {
10261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10262 }
10263 arg7 = reinterpret_cast< wxValidator * >(argp7);
10264 }
10265 if (obj7) {
10266 {
10267 arg8 = wxString_in_helper(obj7);
10268 if (arg8 == NULL) SWIG_fail;
10269 temp8 = true;
10270 }
10271 }
10272 {
10273 if (!wxPyCheckForApp()) SWIG_fail;
10274 PyThreadState* __tstate = wxPyBeginAllowThreads();
10275 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10276 wxPyEndAllowThreads(__tstate);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10280 {
10281 if (temp5) delete arg5;
10282 }
10283 {
10284 if (temp8)
10285 delete arg8;
10286 }
10287 return resultobj;
10288 fail:
10289 {
10290 if (temp5) delete arg5;
10291 }
10292 {
10293 if (temp8)
10294 delete arg8;
10295 }
10296 return NULL;
10297 }
10298
10299
10300 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10301 PyObject *resultobj = 0;
10302 wxCheckListBox *result = 0 ;
10303
10304 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10305 {
10306 if (!wxPyCheckForApp()) SWIG_fail;
10307 PyThreadState* __tstate = wxPyBeginAllowThreads();
10308 result = (wxCheckListBox *)new wxCheckListBox();
10309 wxPyEndAllowThreads(__tstate);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
10312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10313 return resultobj;
10314 fail:
10315 return NULL;
10316 }
10317
10318
10319 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10320 PyObject *resultobj = 0;
10321 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10322 wxWindow *arg2 = (wxWindow *) 0 ;
10323 int arg3 = (int) -1 ;
10324 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10325 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10326 wxSize const &arg5_defvalue = wxDefaultSize ;
10327 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10328 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10329 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10330 long arg7 = (long) 0 ;
10331 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10332 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10333 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10334 wxString *arg9 = (wxString *) &arg9_defvalue ;
10335 bool result;
10336 void *argp1 = 0 ;
10337 int res1 = 0 ;
10338 void *argp2 = 0 ;
10339 int res2 = 0 ;
10340 int val3 ;
10341 int ecode3 = 0 ;
10342 wxPoint temp4 ;
10343 wxSize temp5 ;
10344 bool temp6 = false ;
10345 long val7 ;
10346 int ecode7 = 0 ;
10347 void *argp8 = 0 ;
10348 int res8 = 0 ;
10349 bool temp9 = false ;
10350 PyObject * obj0 = 0 ;
10351 PyObject * obj1 = 0 ;
10352 PyObject * obj2 = 0 ;
10353 PyObject * obj3 = 0 ;
10354 PyObject * obj4 = 0 ;
10355 PyObject * obj5 = 0 ;
10356 PyObject * obj6 = 0 ;
10357 PyObject * obj7 = 0 ;
10358 PyObject * obj8 = 0 ;
10359 char * kwnames[] = {
10360 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10361 };
10362
10363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10365 if (!SWIG_IsOK(res1)) {
10366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10367 }
10368 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10369 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10370 if (!SWIG_IsOK(res2)) {
10371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10372 }
10373 arg2 = reinterpret_cast< wxWindow * >(argp2);
10374 if (obj2) {
10375 ecode3 = SWIG_AsVal_int(obj2, &val3);
10376 if (!SWIG_IsOK(ecode3)) {
10377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10378 }
10379 arg3 = static_cast< int >(val3);
10380 }
10381 if (obj3) {
10382 {
10383 arg4 = &temp4;
10384 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10385 }
10386 }
10387 if (obj4) {
10388 {
10389 arg5 = &temp5;
10390 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10391 }
10392 }
10393 if (obj5) {
10394 {
10395 if (! PySequence_Check(obj5)) {
10396 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10397 SWIG_fail;
10398 }
10399 arg6 = new wxArrayString;
10400 temp6 = true;
10401 int i, len=PySequence_Length(obj5);
10402 for (i=0; i<len; i++) {
10403 PyObject* item = PySequence_GetItem(obj5, i);
10404 wxString* s = wxString_in_helper(item);
10405 if (PyErr_Occurred()) SWIG_fail;
10406 arg6->Add(*s);
10407 delete s;
10408 Py_DECREF(item);
10409 }
10410 }
10411 }
10412 if (obj6) {
10413 ecode7 = SWIG_AsVal_long(obj6, &val7);
10414 if (!SWIG_IsOK(ecode7)) {
10415 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10416 }
10417 arg7 = static_cast< long >(val7);
10418 }
10419 if (obj7) {
10420 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10421 if (!SWIG_IsOK(res8)) {
10422 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10423 }
10424 if (!argp8) {
10425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10426 }
10427 arg8 = reinterpret_cast< wxValidator * >(argp8);
10428 }
10429 if (obj8) {
10430 {
10431 arg9 = wxString_in_helper(obj8);
10432 if (arg9 == NULL) SWIG_fail;
10433 temp9 = true;
10434 }
10435 }
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10439 wxPyEndAllowThreads(__tstate);
10440 if (PyErr_Occurred()) SWIG_fail;
10441 }
10442 {
10443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10444 }
10445 {
10446 if (temp6) delete arg6;
10447 }
10448 {
10449 if (temp9)
10450 delete arg9;
10451 }
10452 return resultobj;
10453 fail:
10454 {
10455 if (temp6) delete arg6;
10456 }
10457 {
10458 if (temp9)
10459 delete arg9;
10460 }
10461 return NULL;
10462 }
10463
10464
10465 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10466 PyObject *resultobj = 0;
10467 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10468 unsigned int arg2 ;
10469 bool result;
10470 void *argp1 = 0 ;
10471 int res1 = 0 ;
10472 unsigned int val2 ;
10473 int ecode2 = 0 ;
10474 PyObject * obj0 = 0 ;
10475 PyObject * obj1 = 0 ;
10476 char * kwnames[] = {
10477 (char *) "self",(char *) "index", NULL
10478 };
10479
10480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10482 if (!SWIG_IsOK(res1)) {
10483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10484 }
10485 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10486 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10487 if (!SWIG_IsOK(ecode2)) {
10488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10489 }
10490 arg2 = static_cast< unsigned int >(val2);
10491 {
10492 PyThreadState* __tstate = wxPyBeginAllowThreads();
10493 result = (bool)(arg1)->IsChecked(arg2);
10494 wxPyEndAllowThreads(__tstate);
10495 if (PyErr_Occurred()) SWIG_fail;
10496 }
10497 {
10498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10499 }
10500 return resultobj;
10501 fail:
10502 return NULL;
10503 }
10504
10505
10506 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10507 PyObject *resultobj = 0;
10508 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10509 unsigned int arg2 ;
10510 int arg3 = (int) true ;
10511 void *argp1 = 0 ;
10512 int res1 = 0 ;
10513 unsigned int val2 ;
10514 int ecode2 = 0 ;
10515 int val3 ;
10516 int ecode3 = 0 ;
10517 PyObject * obj0 = 0 ;
10518 PyObject * obj1 = 0 ;
10519 PyObject * obj2 = 0 ;
10520 char * kwnames[] = {
10521 (char *) "self",(char *) "index",(char *) "check", NULL
10522 };
10523
10524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10526 if (!SWIG_IsOK(res1)) {
10527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10528 }
10529 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10530 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10531 if (!SWIG_IsOK(ecode2)) {
10532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10533 }
10534 arg2 = static_cast< unsigned int >(val2);
10535 if (obj2) {
10536 ecode3 = SWIG_AsVal_int(obj2, &val3);
10537 if (!SWIG_IsOK(ecode3)) {
10538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10539 }
10540 arg3 = static_cast< int >(val3);
10541 }
10542 {
10543 PyThreadState* __tstate = wxPyBeginAllowThreads();
10544 (arg1)->Check(arg2,arg3);
10545 wxPyEndAllowThreads(__tstate);
10546 if (PyErr_Occurred()) SWIG_fail;
10547 }
10548 resultobj = SWIG_Py_Void();
10549 return resultobj;
10550 fail:
10551 return NULL;
10552 }
10553
10554
10555 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10556 PyObject *resultobj = 0;
10557 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10558 int result;
10559 void *argp1 = 0 ;
10560 int res1 = 0 ;
10561 PyObject *swig_obj[1] ;
10562
10563 if (!args) SWIG_fail;
10564 swig_obj[0] = args;
10565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10566 if (!SWIG_IsOK(res1)) {
10567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10568 }
10569 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10570 {
10571 PyThreadState* __tstate = wxPyBeginAllowThreads();
10572 result = (int)(arg1)->GetItemHeight();
10573 wxPyEndAllowThreads(__tstate);
10574 if (PyErr_Occurred()) SWIG_fail;
10575 }
10576 resultobj = SWIG_From_int(static_cast< int >(result));
10577 return resultobj;
10578 fail:
10579 return NULL;
10580 }
10581
10582
10583 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10584 PyObject *obj;
10585 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10586 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10587 return SWIG_Py_Void();
10588 }
10589
10590 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10591 return SWIG_Python_InitShadowInstance(args);
10592 }
10593
10594 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10595 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10596 return 1;
10597 }
10598
10599
10600 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10601 PyObject *pyobj = 0;
10602
10603 {
10604 #if wxUSE_UNICODE
10605 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10606 #else
10607 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10608 #endif
10609 }
10610 return pyobj;
10611 }
10612
10613
10614 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj = 0;
10616 wxColour const &arg1_defvalue = wxNullColour ;
10617 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10618 wxColour const &arg2_defvalue = wxNullColour ;
10619 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10620 wxFont const &arg3_defvalue = wxNullFont ;
10621 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10622 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10623 wxTextAttr *result = 0 ;
10624 wxColour temp1 ;
10625 wxColour temp2 ;
10626 void *argp3 = 0 ;
10627 int res3 = 0 ;
10628 int val4 ;
10629 int ecode4 = 0 ;
10630 PyObject * obj0 = 0 ;
10631 PyObject * obj1 = 0 ;
10632 PyObject * obj2 = 0 ;
10633 PyObject * obj3 = 0 ;
10634 char * kwnames[] = {
10635 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10636 };
10637
10638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10639 if (obj0) {
10640 {
10641 arg1 = &temp1;
10642 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10643 }
10644 }
10645 if (obj1) {
10646 {
10647 arg2 = &temp2;
10648 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10649 }
10650 }
10651 if (obj2) {
10652 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10653 if (!SWIG_IsOK(res3)) {
10654 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10655 }
10656 if (!argp3) {
10657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10658 }
10659 arg3 = reinterpret_cast< wxFont * >(argp3);
10660 }
10661 if (obj3) {
10662 ecode4 = SWIG_AsVal_int(obj3, &val4);
10663 if (!SWIG_IsOK(ecode4)) {
10664 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10665 }
10666 arg4 = static_cast< wxTextAttrAlignment >(val4);
10667 }
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10671 wxPyEndAllowThreads(__tstate);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10675 return resultobj;
10676 fail:
10677 return NULL;
10678 }
10679
10680
10681 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10682 PyObject *resultobj = 0;
10683 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10684 void *argp1 = 0 ;
10685 int res1 = 0 ;
10686 PyObject *swig_obj[1] ;
10687
10688 if (!args) SWIG_fail;
10689 swig_obj[0] = args;
10690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10691 if (!SWIG_IsOK(res1)) {
10692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10693 }
10694 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10695 {
10696 PyThreadState* __tstate = wxPyBeginAllowThreads();
10697 delete arg1;
10698
10699 wxPyEndAllowThreads(__tstate);
10700 if (PyErr_Occurred()) SWIG_fail;
10701 }
10702 resultobj = SWIG_Py_Void();
10703 return resultobj;
10704 fail:
10705 return NULL;
10706 }
10707
10708
10709 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10710 PyObject *resultobj = 0;
10711 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10712 void *argp1 = 0 ;
10713 int res1 = 0 ;
10714 PyObject *swig_obj[1] ;
10715
10716 if (!args) SWIG_fail;
10717 swig_obj[0] = args;
10718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10719 if (!SWIG_IsOK(res1)) {
10720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10721 }
10722 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10723 {
10724 PyThreadState* __tstate = wxPyBeginAllowThreads();
10725 (arg1)->Init();
10726 wxPyEndAllowThreads(__tstate);
10727 if (PyErr_Occurred()) SWIG_fail;
10728 }
10729 resultobj = SWIG_Py_Void();
10730 return resultobj;
10731 fail:
10732 return NULL;
10733 }
10734
10735
10736 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10737 PyObject *resultobj = 0;
10738 wxTextAttr *arg1 = 0 ;
10739 wxTextAttr *arg2 = 0 ;
10740 wxTextAttr result;
10741 void *argp1 = 0 ;
10742 int res1 = 0 ;
10743 void *argp2 = 0 ;
10744 int res2 = 0 ;
10745 PyObject * obj0 = 0 ;
10746 PyObject * obj1 = 0 ;
10747 char * kwnames[] = {
10748 (char *) "base",(char *) "overlay", NULL
10749 };
10750
10751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10752 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10753 if (!SWIG_IsOK(res1)) {
10754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10755 }
10756 if (!argp1) {
10757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10758 }
10759 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10761 if (!SWIG_IsOK(res2)) {
10762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10763 }
10764 if (!argp2) {
10765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10766 }
10767 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10768 {
10769 PyThreadState* __tstate = wxPyBeginAllowThreads();
10770 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10771 wxPyEndAllowThreads(__tstate);
10772 if (PyErr_Occurred()) SWIG_fail;
10773 }
10774 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10775 return resultobj;
10776 fail:
10777 return NULL;
10778 }
10779
10780
10781 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10782 PyObject *resultobj = 0;
10783 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10784 wxColour *arg2 = 0 ;
10785 void *argp1 = 0 ;
10786 int res1 = 0 ;
10787 wxColour temp2 ;
10788 PyObject * obj0 = 0 ;
10789 PyObject * obj1 = 0 ;
10790 char * kwnames[] = {
10791 (char *) "self",(char *) "colText", NULL
10792 };
10793
10794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10796 if (!SWIG_IsOK(res1)) {
10797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10798 }
10799 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10800 {
10801 arg2 = &temp2;
10802 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10803 }
10804 {
10805 PyThreadState* __tstate = wxPyBeginAllowThreads();
10806 (arg1)->SetTextColour((wxColour const &)*arg2);
10807 wxPyEndAllowThreads(__tstate);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 }
10810 resultobj = SWIG_Py_Void();
10811 return resultobj;
10812 fail:
10813 return NULL;
10814 }
10815
10816
10817 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10818 PyObject *resultobj = 0;
10819 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10820 wxColour *arg2 = 0 ;
10821 void *argp1 = 0 ;
10822 int res1 = 0 ;
10823 wxColour temp2 ;
10824 PyObject * obj0 = 0 ;
10825 PyObject * obj1 = 0 ;
10826 char * kwnames[] = {
10827 (char *) "self",(char *) "colBack", NULL
10828 };
10829
10830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10832 if (!SWIG_IsOK(res1)) {
10833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10834 }
10835 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10836 {
10837 arg2 = &temp2;
10838 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10839 }
10840 {
10841 PyThreadState* __tstate = wxPyBeginAllowThreads();
10842 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10843 wxPyEndAllowThreads(__tstate);
10844 if (PyErr_Occurred()) SWIG_fail;
10845 }
10846 resultobj = SWIG_Py_Void();
10847 return resultobj;
10848 fail:
10849 return NULL;
10850 }
10851
10852
10853 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10854 PyObject *resultobj = 0;
10855 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10856 wxFont *arg2 = 0 ;
10857 long arg3 = (long) wxTEXT_ATTR_FONT ;
10858 void *argp1 = 0 ;
10859 int res1 = 0 ;
10860 void *argp2 = 0 ;
10861 int res2 = 0 ;
10862 long val3 ;
10863 int ecode3 = 0 ;
10864 PyObject * obj0 = 0 ;
10865 PyObject * obj1 = 0 ;
10866 PyObject * obj2 = 0 ;
10867 char * kwnames[] = {
10868 (char *) "self",(char *) "font",(char *) "flags", NULL
10869 };
10870
10871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) 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_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10875 }
10876 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10878 if (!SWIG_IsOK(res2)) {
10879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10880 }
10881 if (!argp2) {
10882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10883 }
10884 arg2 = reinterpret_cast< wxFont * >(argp2);
10885 if (obj2) {
10886 ecode3 = SWIG_AsVal_long(obj2, &val3);
10887 if (!SWIG_IsOK(ecode3)) {
10888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10889 }
10890 arg3 = static_cast< long >(val3);
10891 }
10892 {
10893 PyThreadState* __tstate = wxPyBeginAllowThreads();
10894 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 resultobj = SWIG_Py_Void();
10899 return resultobj;
10900 fail:
10901 return NULL;
10902 }
10903
10904
10905 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10906 PyObject *resultobj = 0;
10907 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10908 wxTextAttrAlignment arg2 ;
10909 void *argp1 = 0 ;
10910 int res1 = 0 ;
10911 int val2 ;
10912 int ecode2 = 0 ;
10913 PyObject * obj0 = 0 ;
10914 PyObject * obj1 = 0 ;
10915 char * kwnames[] = {
10916 (char *) "self",(char *) "alignment", NULL
10917 };
10918
10919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10921 if (!SWIG_IsOK(res1)) {
10922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10923 }
10924 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10925 ecode2 = SWIG_AsVal_int(obj1, &val2);
10926 if (!SWIG_IsOK(ecode2)) {
10927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10928 }
10929 arg2 = static_cast< wxTextAttrAlignment >(val2);
10930 {
10931 PyThreadState* __tstate = wxPyBeginAllowThreads();
10932 (arg1)->SetAlignment(arg2);
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 resultobj = SWIG_Py_Void();
10937 return resultobj;
10938 fail:
10939 return NULL;
10940 }
10941
10942
10943 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10944 PyObject *resultobj = 0;
10945 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10946 wxArrayInt *arg2 = 0 ;
10947 void *argp1 = 0 ;
10948 int res1 = 0 ;
10949 bool temp2 = false ;
10950 PyObject * obj0 = 0 ;
10951 PyObject * obj1 = 0 ;
10952 char * kwnames[] = {
10953 (char *) "self",(char *) "tabs", NULL
10954 };
10955
10956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10958 if (!SWIG_IsOK(res1)) {
10959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10960 }
10961 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10962 {
10963 if (! PySequence_Check(obj1)) {
10964 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10965 SWIG_fail;
10966 }
10967 arg2 = new wxArrayInt;
10968 temp2 = true;
10969 int i, len=PySequence_Length(obj1);
10970 for (i=0; i<len; i++) {
10971 PyObject* item = PySequence_GetItem(obj1, i);
10972 PyObject* number = PyNumber_Int(item);
10973 if (!number) {
10974 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10975 SWIG_fail;
10976 }
10977 arg2->Add(PyInt_AS_LONG(number));
10978 Py_DECREF(item);
10979 Py_DECREF(number);
10980 }
10981 }
10982 {
10983 PyThreadState* __tstate = wxPyBeginAllowThreads();
10984 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10985 wxPyEndAllowThreads(__tstate);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 }
10988 resultobj = SWIG_Py_Void();
10989 {
10990 if (temp2) delete arg2;
10991 }
10992 return resultobj;
10993 fail:
10994 {
10995 if (temp2) delete arg2;
10996 }
10997 return NULL;
10998 }
10999
11000
11001 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11002 PyObject *resultobj = 0;
11003 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11004 int arg2 ;
11005 int arg3 = (int) 0 ;
11006 void *argp1 = 0 ;
11007 int res1 = 0 ;
11008 int val2 ;
11009 int ecode2 = 0 ;
11010 int val3 ;
11011 int ecode3 = 0 ;
11012 PyObject * obj0 = 0 ;
11013 PyObject * obj1 = 0 ;
11014 PyObject * obj2 = 0 ;
11015 char * kwnames[] = {
11016 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
11017 };
11018
11019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11021 if (!SWIG_IsOK(res1)) {
11022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
11023 }
11024 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11025 ecode2 = SWIG_AsVal_int(obj1, &val2);
11026 if (!SWIG_IsOK(ecode2)) {
11027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
11028 }
11029 arg2 = static_cast< int >(val2);
11030 if (obj2) {
11031 ecode3 = SWIG_AsVal_int(obj2, &val3);
11032 if (!SWIG_IsOK(ecode3)) {
11033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
11034 }
11035 arg3 = static_cast< int >(val3);
11036 }
11037 {
11038 PyThreadState* __tstate = wxPyBeginAllowThreads();
11039 (arg1)->SetLeftIndent(arg2,arg3);
11040 wxPyEndAllowThreads(__tstate);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 }
11043 resultobj = SWIG_Py_Void();
11044 return resultobj;
11045 fail:
11046 return NULL;
11047 }
11048
11049
11050 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11051 PyObject *resultobj = 0;
11052 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11053 int arg2 ;
11054 void *argp1 = 0 ;
11055 int res1 = 0 ;
11056 int val2 ;
11057 int ecode2 = 0 ;
11058 PyObject * obj0 = 0 ;
11059 PyObject * obj1 = 0 ;
11060 char * kwnames[] = {
11061 (char *) "self",(char *) "indent", NULL
11062 };
11063
11064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
11065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11066 if (!SWIG_IsOK(res1)) {
11067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
11068 }
11069 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11070 ecode2 = SWIG_AsVal_int(obj1, &val2);
11071 if (!SWIG_IsOK(ecode2)) {
11072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
11073 }
11074 arg2 = static_cast< int >(val2);
11075 {
11076 PyThreadState* __tstate = wxPyBeginAllowThreads();
11077 (arg1)->SetRightIndent(arg2);
11078 wxPyEndAllowThreads(__tstate);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 }
11081 resultobj = SWIG_Py_Void();
11082 return resultobj;
11083 fail:
11084 return NULL;
11085 }
11086
11087
11088 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11089 PyObject *resultobj = 0;
11090 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11091 long arg2 ;
11092 void *argp1 = 0 ;
11093 int res1 = 0 ;
11094 long val2 ;
11095 int ecode2 = 0 ;
11096 PyObject * obj0 = 0 ;
11097 PyObject * obj1 = 0 ;
11098 char * kwnames[] = {
11099 (char *) "self",(char *) "flags", NULL
11100 };
11101
11102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
11103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11104 if (!SWIG_IsOK(res1)) {
11105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
11106 }
11107 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11108 ecode2 = SWIG_AsVal_long(obj1, &val2);
11109 if (!SWIG_IsOK(ecode2)) {
11110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
11111 }
11112 arg2 = static_cast< long >(val2);
11113 {
11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
11115 (arg1)->SetFlags(arg2);
11116 wxPyEndAllowThreads(__tstate);
11117 if (PyErr_Occurred()) SWIG_fail;
11118 }
11119 resultobj = SWIG_Py_Void();
11120 return resultobj;
11121 fail:
11122 return NULL;
11123 }
11124
11125
11126 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11127 PyObject *resultobj = 0;
11128 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11129 bool result;
11130 void *argp1 = 0 ;
11131 int res1 = 0 ;
11132 PyObject *swig_obj[1] ;
11133
11134 if (!args) SWIG_fail;
11135 swig_obj[0] = args;
11136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11137 if (!SWIG_IsOK(res1)) {
11138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11139 }
11140 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11141 {
11142 PyThreadState* __tstate = wxPyBeginAllowThreads();
11143 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
11144 wxPyEndAllowThreads(__tstate);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 }
11147 {
11148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11149 }
11150 return resultobj;
11151 fail:
11152 return NULL;
11153 }
11154
11155
11156 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11157 PyObject *resultobj = 0;
11158 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11159 bool result;
11160 void *argp1 = 0 ;
11161 int res1 = 0 ;
11162 PyObject *swig_obj[1] ;
11163
11164 if (!args) SWIG_fail;
11165 swig_obj[0] = args;
11166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11167 if (!SWIG_IsOK(res1)) {
11168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11169 }
11170 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 {
11178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11179 }
11180 return resultobj;
11181 fail:
11182 return NULL;
11183 }
11184
11185
11186 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11187 PyObject *resultobj = 0;
11188 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11189 bool result;
11190 void *argp1 = 0 ;
11191 int res1 = 0 ;
11192 PyObject *swig_obj[1] ;
11193
11194 if (!args) SWIG_fail;
11195 swig_obj[0] = args;
11196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11197 if (!SWIG_IsOK(res1)) {
11198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11199 }
11200 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11201 {
11202 PyThreadState* __tstate = wxPyBeginAllowThreads();
11203 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11204 wxPyEndAllowThreads(__tstate);
11205 if (PyErr_Occurred()) SWIG_fail;
11206 }
11207 {
11208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11209 }
11210 return resultobj;
11211 fail:
11212 return NULL;
11213 }
11214
11215
11216 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11217 PyObject *resultobj = 0;
11218 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11219 bool result;
11220 void *argp1 = 0 ;
11221 int res1 = 0 ;
11222 PyObject *swig_obj[1] ;
11223
11224 if (!args) SWIG_fail;
11225 swig_obj[0] = args;
11226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11227 if (!SWIG_IsOK(res1)) {
11228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11229 }
11230 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11231 {
11232 PyThreadState* __tstate = wxPyBeginAllowThreads();
11233 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11234 wxPyEndAllowThreads(__tstate);
11235 if (PyErr_Occurred()) SWIG_fail;
11236 }
11237 {
11238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11239 }
11240 return resultobj;
11241 fail:
11242 return NULL;
11243 }
11244
11245
11246 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11247 PyObject *resultobj = 0;
11248 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11249 bool result;
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_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11259 }
11260 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11261 {
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
11263 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11264 wxPyEndAllowThreads(__tstate);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 }
11267 {
11268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11269 }
11270 return resultobj;
11271 fail:
11272 return NULL;
11273 }
11274
11275
11276 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11277 PyObject *resultobj = 0;
11278 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11279 bool result;
11280 void *argp1 = 0 ;
11281 int res1 = 0 ;
11282 PyObject *swig_obj[1] ;
11283
11284 if (!args) SWIG_fail;
11285 swig_obj[0] = args;
11286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11287 if (!SWIG_IsOK(res1)) {
11288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11289 }
11290 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11291 {
11292 PyThreadState* __tstate = wxPyBeginAllowThreads();
11293 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11294 wxPyEndAllowThreads(__tstate);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 }
11297 {
11298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11299 }
11300 return resultobj;
11301 fail:
11302 return NULL;
11303 }
11304
11305
11306 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11307 PyObject *resultobj = 0;
11308 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11309 bool result;
11310 void *argp1 = 0 ;
11311 int res1 = 0 ;
11312 PyObject *swig_obj[1] ;
11313
11314 if (!args) SWIG_fail;
11315 swig_obj[0] = args;
11316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11317 if (!SWIG_IsOK(res1)) {
11318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11319 }
11320 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 {
11328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11329 }
11330 return resultobj;
11331 fail:
11332 return NULL;
11333 }
11334
11335
11336 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11337 PyObject *resultobj = 0;
11338 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11339 long arg2 ;
11340 bool result;
11341 void *argp1 = 0 ;
11342 int res1 = 0 ;
11343 long val2 ;
11344 int ecode2 = 0 ;
11345 PyObject * obj0 = 0 ;
11346 PyObject * obj1 = 0 ;
11347 char * kwnames[] = {
11348 (char *) "self",(char *) "flag", NULL
11349 };
11350
11351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11353 if (!SWIG_IsOK(res1)) {
11354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11355 }
11356 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11357 ecode2 = SWIG_AsVal_long(obj1, &val2);
11358 if (!SWIG_IsOK(ecode2)) {
11359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11360 }
11361 arg2 = static_cast< long >(val2);
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 {
11369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11370 }
11371 return resultobj;
11372 fail:
11373 return NULL;
11374 }
11375
11376
11377 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11378 PyObject *resultobj = 0;
11379 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11380 wxColour *result = 0 ;
11381 void *argp1 = 0 ;
11382 int res1 = 0 ;
11383 PyObject *swig_obj[1] ;
11384
11385 if (!args) SWIG_fail;
11386 swig_obj[0] = args;
11387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11388 if (!SWIG_IsOK(res1)) {
11389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11390 }
11391 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11392 {
11393 PyThreadState* __tstate = wxPyBeginAllowThreads();
11394 {
11395 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11396 result = (wxColour *) &_result_ref;
11397 }
11398 wxPyEndAllowThreads(__tstate);
11399 if (PyErr_Occurred()) SWIG_fail;
11400 }
11401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11402 return resultobj;
11403 fail:
11404 return NULL;
11405 }
11406
11407
11408 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11409 PyObject *resultobj = 0;
11410 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11411 wxColour *result = 0 ;
11412 void *argp1 = 0 ;
11413 int res1 = 0 ;
11414 PyObject *swig_obj[1] ;
11415
11416 if (!args) SWIG_fail;
11417 swig_obj[0] = args;
11418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11419 if (!SWIG_IsOK(res1)) {
11420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11421 }
11422 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11423 {
11424 PyThreadState* __tstate = wxPyBeginAllowThreads();
11425 {
11426 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11427 result = (wxColour *) &_result_ref;
11428 }
11429 wxPyEndAllowThreads(__tstate);
11430 if (PyErr_Occurred()) SWIG_fail;
11431 }
11432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11433 return resultobj;
11434 fail:
11435 return NULL;
11436 }
11437
11438
11439 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11440 PyObject *resultobj = 0;
11441 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11442 wxFont *result = 0 ;
11443 void *argp1 = 0 ;
11444 int res1 = 0 ;
11445 PyObject *swig_obj[1] ;
11446
11447 if (!args) SWIG_fail;
11448 swig_obj[0] = args;
11449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11450 if (!SWIG_IsOK(res1)) {
11451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11452 }
11453 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11454 {
11455 PyThreadState* __tstate = wxPyBeginAllowThreads();
11456 {
11457 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11458 result = (wxFont *) &_result_ref;
11459 }
11460 wxPyEndAllowThreads(__tstate);
11461 if (PyErr_Occurred()) SWIG_fail;
11462 }
11463 {
11464 wxFont* resultptr = new wxFont(*result);
11465 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11466 }
11467 return resultobj;
11468 fail:
11469 return NULL;
11470 }
11471
11472
11473 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11474 PyObject *resultobj = 0;
11475 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11476 wxTextAttrAlignment result;
11477 void *argp1 = 0 ;
11478 int res1 = 0 ;
11479 PyObject *swig_obj[1] ;
11480
11481 if (!args) SWIG_fail;
11482 swig_obj[0] = args;
11483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11484 if (!SWIG_IsOK(res1)) {
11485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11486 }
11487 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11488 {
11489 PyThreadState* __tstate = wxPyBeginAllowThreads();
11490 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 resultobj = SWIG_From_int(static_cast< int >(result));
11495 return resultobj;
11496 fail:
11497 return NULL;
11498 }
11499
11500
11501 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11502 PyObject *resultobj = 0;
11503 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11504 wxArrayInt *result = 0 ;
11505 void *argp1 = 0 ;
11506 int res1 = 0 ;
11507 PyObject *swig_obj[1] ;
11508
11509 if (!args) SWIG_fail;
11510 swig_obj[0] = args;
11511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11512 if (!SWIG_IsOK(res1)) {
11513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11514 }
11515 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 {
11519 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11520 result = (wxArrayInt *) &_result_ref;
11521 }
11522 wxPyEndAllowThreads(__tstate);
11523 if (PyErr_Occurred()) SWIG_fail;
11524 }
11525 {
11526 resultobj = wxArrayInt2PyList_helper(*result);
11527 }
11528 return resultobj;
11529 fail:
11530 return NULL;
11531 }
11532
11533
11534 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11535 PyObject *resultobj = 0;
11536 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11537 long result;
11538 void *argp1 = 0 ;
11539 int res1 = 0 ;
11540 PyObject *swig_obj[1] ;
11541
11542 if (!args) SWIG_fail;
11543 swig_obj[0] = args;
11544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11545 if (!SWIG_IsOK(res1)) {
11546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11547 }
11548 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11549 {
11550 PyThreadState* __tstate = wxPyBeginAllowThreads();
11551 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11552 wxPyEndAllowThreads(__tstate);
11553 if (PyErr_Occurred()) SWIG_fail;
11554 }
11555 resultobj = SWIG_From_long(static_cast< long >(result));
11556 return resultobj;
11557 fail:
11558 return NULL;
11559 }
11560
11561
11562 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11563 PyObject *resultobj = 0;
11564 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11565 long result;
11566 void *argp1 = 0 ;
11567 int res1 = 0 ;
11568 PyObject *swig_obj[1] ;
11569
11570 if (!args) SWIG_fail;
11571 swig_obj[0] = args;
11572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11573 if (!SWIG_IsOK(res1)) {
11574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11575 }
11576 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11577 {
11578 PyThreadState* __tstate = wxPyBeginAllowThreads();
11579 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11580 wxPyEndAllowThreads(__tstate);
11581 if (PyErr_Occurred()) SWIG_fail;
11582 }
11583 resultobj = SWIG_From_long(static_cast< long >(result));
11584 return resultobj;
11585 fail:
11586 return NULL;
11587 }
11588
11589
11590 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11591 PyObject *resultobj = 0;
11592 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11593 long result;
11594 void *argp1 = 0 ;
11595 int res1 = 0 ;
11596 PyObject *swig_obj[1] ;
11597
11598 if (!args) SWIG_fail;
11599 swig_obj[0] = args;
11600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11601 if (!SWIG_IsOK(res1)) {
11602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11603 }
11604 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11605 {
11606 PyThreadState* __tstate = wxPyBeginAllowThreads();
11607 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11608 wxPyEndAllowThreads(__tstate);
11609 if (PyErr_Occurred()) SWIG_fail;
11610 }
11611 resultobj = SWIG_From_long(static_cast< long >(result));
11612 return resultobj;
11613 fail:
11614 return NULL;
11615 }
11616
11617
11618 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11619 PyObject *resultobj = 0;
11620 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11621 long result;
11622 void *argp1 = 0 ;
11623 int res1 = 0 ;
11624 PyObject *swig_obj[1] ;
11625
11626 if (!args) SWIG_fail;
11627 swig_obj[0] = args;
11628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11629 if (!SWIG_IsOK(res1)) {
11630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11631 }
11632 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11633 {
11634 PyThreadState* __tstate = wxPyBeginAllowThreads();
11635 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11636 wxPyEndAllowThreads(__tstate);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 }
11639 resultobj = SWIG_From_long(static_cast< long >(result));
11640 return resultobj;
11641 fail:
11642 return NULL;
11643 }
11644
11645
11646 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11647 PyObject *resultobj = 0;
11648 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11649 bool result;
11650 void *argp1 = 0 ;
11651 int res1 = 0 ;
11652 PyObject *swig_obj[1] ;
11653
11654 if (!args) SWIG_fail;
11655 swig_obj[0] = args;
11656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11657 if (!SWIG_IsOK(res1)) {
11658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11659 }
11660 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11661 {
11662 PyThreadState* __tstate = wxPyBeginAllowThreads();
11663 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11664 wxPyEndAllowThreads(__tstate);
11665 if (PyErr_Occurred()) SWIG_fail;
11666 }
11667 {
11668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11669 }
11670 return resultobj;
11671 fail:
11672 return NULL;
11673 }
11674
11675
11676 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11677 PyObject *resultobj = 0;
11678 wxTextAttr *arg1 = 0 ;
11679 wxTextAttr *arg2 = 0 ;
11680 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11681 wxTextAttr result;
11682 void *argp1 = 0 ;
11683 int res1 = 0 ;
11684 void *argp2 = 0 ;
11685 int res2 = 0 ;
11686 void *argp3 = 0 ;
11687 int res3 = 0 ;
11688 PyObject * obj0 = 0 ;
11689 PyObject * obj1 = 0 ;
11690 PyObject * obj2 = 0 ;
11691 char * kwnames[] = {
11692 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11693 };
11694
11695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11696 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11697 if (!SWIG_IsOK(res1)) {
11698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11699 }
11700 if (!argp1) {
11701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11702 }
11703 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11705 if (!SWIG_IsOK(res2)) {
11706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11707 }
11708 if (!argp2) {
11709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11710 }
11711 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11712 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11713 if (!SWIG_IsOK(res3)) {
11714 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11715 }
11716 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11717 {
11718 PyThreadState* __tstate = wxPyBeginAllowThreads();
11719 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11720 wxPyEndAllowThreads(__tstate);
11721 if (PyErr_Occurred()) SWIG_fail;
11722 }
11723 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11724 return resultobj;
11725 fail:
11726 return NULL;
11727 }
11728
11729
11730 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11731 PyObject *obj;
11732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11733 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11734 return SWIG_Py_Void();
11735 }
11736
11737 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11738 return SWIG_Python_InitShadowInstance(args);
11739 }
11740
11741 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11742 PyObject *resultobj = 0;
11743 wxWindow *arg1 = (wxWindow *) 0 ;
11744 int arg2 = (int) -1 ;
11745 wxString const &arg3_defvalue = wxPyEmptyString ;
11746 wxString *arg3 = (wxString *) &arg3_defvalue ;
11747 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11748 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11749 wxSize const &arg5_defvalue = wxDefaultSize ;
11750 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11751 long arg6 = (long) 0 ;
11752 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11753 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11754 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11755 wxString *arg8 = (wxString *) &arg8_defvalue ;
11756 wxTextCtrl *result = 0 ;
11757 void *argp1 = 0 ;
11758 int res1 = 0 ;
11759 int val2 ;
11760 int ecode2 = 0 ;
11761 bool temp3 = false ;
11762 wxPoint temp4 ;
11763 wxSize temp5 ;
11764 long val6 ;
11765 int ecode6 = 0 ;
11766 void *argp7 = 0 ;
11767 int res7 = 0 ;
11768 bool temp8 = false ;
11769 PyObject * obj0 = 0 ;
11770 PyObject * obj1 = 0 ;
11771 PyObject * obj2 = 0 ;
11772 PyObject * obj3 = 0 ;
11773 PyObject * obj4 = 0 ;
11774 PyObject * obj5 = 0 ;
11775 PyObject * obj6 = 0 ;
11776 PyObject * obj7 = 0 ;
11777 char * kwnames[] = {
11778 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11779 };
11780
11781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11783 if (!SWIG_IsOK(res1)) {
11784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11785 }
11786 arg1 = reinterpret_cast< wxWindow * >(argp1);
11787 if (obj1) {
11788 ecode2 = SWIG_AsVal_int(obj1, &val2);
11789 if (!SWIG_IsOK(ecode2)) {
11790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11791 }
11792 arg2 = static_cast< int >(val2);
11793 }
11794 if (obj2) {
11795 {
11796 arg3 = wxString_in_helper(obj2);
11797 if (arg3 == NULL) SWIG_fail;
11798 temp3 = true;
11799 }
11800 }
11801 if (obj3) {
11802 {
11803 arg4 = &temp4;
11804 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11805 }
11806 }
11807 if (obj4) {
11808 {
11809 arg5 = &temp5;
11810 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11811 }
11812 }
11813 if (obj5) {
11814 ecode6 = SWIG_AsVal_long(obj5, &val6);
11815 if (!SWIG_IsOK(ecode6)) {
11816 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11817 }
11818 arg6 = static_cast< long >(val6);
11819 }
11820 if (obj6) {
11821 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11822 if (!SWIG_IsOK(res7)) {
11823 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11824 }
11825 if (!argp7) {
11826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11827 }
11828 arg7 = reinterpret_cast< wxValidator * >(argp7);
11829 }
11830 if (obj7) {
11831 {
11832 arg8 = wxString_in_helper(obj7);
11833 if (arg8 == NULL) SWIG_fail;
11834 temp8 = true;
11835 }
11836 }
11837 {
11838 if (!wxPyCheckForApp()) SWIG_fail;
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11841 wxPyEndAllowThreads(__tstate);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 }
11844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11845 {
11846 if (temp3)
11847 delete arg3;
11848 }
11849 {
11850 if (temp8)
11851 delete arg8;
11852 }
11853 return resultobj;
11854 fail:
11855 {
11856 if (temp3)
11857 delete arg3;
11858 }
11859 {
11860 if (temp8)
11861 delete arg8;
11862 }
11863 return NULL;
11864 }
11865
11866
11867 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11868 PyObject *resultobj = 0;
11869 wxTextCtrl *result = 0 ;
11870
11871 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11872 {
11873 if (!wxPyCheckForApp()) SWIG_fail;
11874 PyThreadState* __tstate = wxPyBeginAllowThreads();
11875 result = (wxTextCtrl *)new wxTextCtrl();
11876 wxPyEndAllowThreads(__tstate);
11877 if (PyErr_Occurred()) SWIG_fail;
11878 }
11879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11880 return resultobj;
11881 fail:
11882 return NULL;
11883 }
11884
11885
11886 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11887 PyObject *resultobj = 0;
11888 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11889 wxWindow *arg2 = (wxWindow *) 0 ;
11890 int arg3 = (int) -1 ;
11891 wxString const &arg4_defvalue = wxPyEmptyString ;
11892 wxString *arg4 = (wxString *) &arg4_defvalue ;
11893 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11894 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11895 wxSize const &arg6_defvalue = wxDefaultSize ;
11896 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11897 long arg7 = (long) 0 ;
11898 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11899 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11900 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11901 wxString *arg9 = (wxString *) &arg9_defvalue ;
11902 bool result;
11903 void *argp1 = 0 ;
11904 int res1 = 0 ;
11905 void *argp2 = 0 ;
11906 int res2 = 0 ;
11907 int val3 ;
11908 int ecode3 = 0 ;
11909 bool temp4 = false ;
11910 wxPoint temp5 ;
11911 wxSize temp6 ;
11912 long val7 ;
11913 int ecode7 = 0 ;
11914 void *argp8 = 0 ;
11915 int res8 = 0 ;
11916 bool temp9 = false ;
11917 PyObject * obj0 = 0 ;
11918 PyObject * obj1 = 0 ;
11919 PyObject * obj2 = 0 ;
11920 PyObject * obj3 = 0 ;
11921 PyObject * obj4 = 0 ;
11922 PyObject * obj5 = 0 ;
11923 PyObject * obj6 = 0 ;
11924 PyObject * obj7 = 0 ;
11925 PyObject * obj8 = 0 ;
11926 char * kwnames[] = {
11927 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11928 };
11929
11930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11932 if (!SWIG_IsOK(res1)) {
11933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11934 }
11935 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11936 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11937 if (!SWIG_IsOK(res2)) {
11938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11939 }
11940 arg2 = reinterpret_cast< wxWindow * >(argp2);
11941 if (obj2) {
11942 ecode3 = SWIG_AsVal_int(obj2, &val3);
11943 if (!SWIG_IsOK(ecode3)) {
11944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11945 }
11946 arg3 = static_cast< int >(val3);
11947 }
11948 if (obj3) {
11949 {
11950 arg4 = wxString_in_helper(obj3);
11951 if (arg4 == NULL) SWIG_fail;
11952 temp4 = true;
11953 }
11954 }
11955 if (obj4) {
11956 {
11957 arg5 = &temp5;
11958 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11959 }
11960 }
11961 if (obj5) {
11962 {
11963 arg6 = &temp6;
11964 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11965 }
11966 }
11967 if (obj6) {
11968 ecode7 = SWIG_AsVal_long(obj6, &val7);
11969 if (!SWIG_IsOK(ecode7)) {
11970 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11971 }
11972 arg7 = static_cast< long >(val7);
11973 }
11974 if (obj7) {
11975 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11976 if (!SWIG_IsOK(res8)) {
11977 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11978 }
11979 if (!argp8) {
11980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11981 }
11982 arg8 = reinterpret_cast< wxValidator * >(argp8);
11983 }
11984 if (obj8) {
11985 {
11986 arg9 = wxString_in_helper(obj8);
11987 if (arg9 == NULL) SWIG_fail;
11988 temp9 = true;
11989 }
11990 }
11991 {
11992 PyThreadState* __tstate = wxPyBeginAllowThreads();
11993 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 }
11997 {
11998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11999 }
12000 {
12001 if (temp4)
12002 delete arg4;
12003 }
12004 {
12005 if (temp9)
12006 delete arg9;
12007 }
12008 return resultobj;
12009 fail:
12010 {
12011 if (temp4)
12012 delete arg4;
12013 }
12014 {
12015 if (temp9)
12016 delete arg9;
12017 }
12018 return NULL;
12019 }
12020
12021
12022 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12023 PyObject *resultobj = 0;
12024 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12025 wxString result;
12026 void *argp1 = 0 ;
12027 int res1 = 0 ;
12028 PyObject *swig_obj[1] ;
12029
12030 if (!args) SWIG_fail;
12031 swig_obj[0] = args;
12032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12033 if (!SWIG_IsOK(res1)) {
12034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12035 }
12036 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12037 {
12038 PyThreadState* __tstate = wxPyBeginAllowThreads();
12039 result = ((wxTextCtrl const *)arg1)->GetValue();
12040 wxPyEndAllowThreads(__tstate);
12041 if (PyErr_Occurred()) SWIG_fail;
12042 }
12043 {
12044 #if wxUSE_UNICODE
12045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12046 #else
12047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12048 #endif
12049 }
12050 return resultobj;
12051 fail:
12052 return NULL;
12053 }
12054
12055
12056 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12057 PyObject *resultobj = 0;
12058 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12059 wxString *arg2 = 0 ;
12060 void *argp1 = 0 ;
12061 int res1 = 0 ;
12062 bool temp2 = false ;
12063 PyObject * obj0 = 0 ;
12064 PyObject * obj1 = 0 ;
12065 char * kwnames[] = {
12066 (char *) "self",(char *) "value", NULL
12067 };
12068
12069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
12070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12071 if (!SWIG_IsOK(res1)) {
12072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12073 }
12074 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12075 {
12076 arg2 = wxString_in_helper(obj1);
12077 if (arg2 == NULL) SWIG_fail;
12078 temp2 = true;
12079 }
12080 {
12081 PyThreadState* __tstate = wxPyBeginAllowThreads();
12082 (arg1)->SetValue((wxString const &)*arg2);
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 resultobj = SWIG_Py_Void();
12087 {
12088 if (temp2)
12089 delete arg2;
12090 }
12091 return resultobj;
12092 fail:
12093 {
12094 if (temp2)
12095 delete arg2;
12096 }
12097 return NULL;
12098 }
12099
12100
12101 SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12102 PyObject *resultobj = 0;
12103 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12104 bool result;
12105 void *argp1 = 0 ;
12106 int res1 = 0 ;
12107 PyObject *swig_obj[1] ;
12108
12109 if (!args) SWIG_fail;
12110 swig_obj[0] = args;
12111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12112 if (!SWIG_IsOK(res1)) {
12113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12114 }
12115 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12116 {
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 {
12123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12124 }
12125 return resultobj;
12126 fail:
12127 return NULL;
12128 }
12129
12130
12131 SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12132 PyObject *resultobj = 0;
12133 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12134 wxString *arg2 = 0 ;
12135 void *argp1 = 0 ;
12136 int res1 = 0 ;
12137 bool temp2 = false ;
12138 PyObject * obj0 = 0 ;
12139 PyObject * obj1 = 0 ;
12140 char * kwnames[] = {
12141 (char *) "self",(char *) "value", NULL
12142 };
12143
12144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
12145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12146 if (!SWIG_IsOK(res1)) {
12147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12148 }
12149 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12150 {
12151 arg2 = wxString_in_helper(obj1);
12152 if (arg2 == NULL) SWIG_fail;
12153 temp2 = true;
12154 }
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 (arg1)->ChangeValue((wxString const &)*arg2);
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 resultobj = SWIG_Py_Void();
12162 {
12163 if (temp2)
12164 delete arg2;
12165 }
12166 return resultobj;
12167 fail:
12168 {
12169 if (temp2)
12170 delete arg2;
12171 }
12172 return NULL;
12173 }
12174
12175
12176 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12177 PyObject *resultobj = 0;
12178 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12179 long arg2 ;
12180 long arg3 ;
12181 wxString result;
12182 void *argp1 = 0 ;
12183 int res1 = 0 ;
12184 long val2 ;
12185 int ecode2 = 0 ;
12186 long val3 ;
12187 int ecode3 = 0 ;
12188 PyObject * obj0 = 0 ;
12189 PyObject * obj1 = 0 ;
12190 PyObject * obj2 = 0 ;
12191 char * kwnames[] = {
12192 (char *) "self",(char *) "from",(char *) "to", NULL
12193 };
12194
12195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12197 if (!SWIG_IsOK(res1)) {
12198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12199 }
12200 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12201 ecode2 = SWIG_AsVal_long(obj1, &val2);
12202 if (!SWIG_IsOK(ecode2)) {
12203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
12204 }
12205 arg2 = static_cast< long >(val2);
12206 ecode3 = SWIG_AsVal_long(obj2, &val3);
12207 if (!SWIG_IsOK(ecode3)) {
12208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
12209 }
12210 arg3 = static_cast< long >(val3);
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
12214 wxPyEndAllowThreads(__tstate);
12215 if (PyErr_Occurred()) SWIG_fail;
12216 }
12217 {
12218 #if wxUSE_UNICODE
12219 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12220 #else
12221 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12222 #endif
12223 }
12224 return resultobj;
12225 fail:
12226 return NULL;
12227 }
12228
12229
12230 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12231 PyObject *resultobj = 0;
12232 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12233 long arg2 ;
12234 int result;
12235 void *argp1 = 0 ;
12236 int res1 = 0 ;
12237 long val2 ;
12238 int ecode2 = 0 ;
12239 PyObject * obj0 = 0 ;
12240 PyObject * obj1 = 0 ;
12241 char * kwnames[] = {
12242 (char *) "self",(char *) "lineNo", NULL
12243 };
12244
12245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12247 if (!SWIG_IsOK(res1)) {
12248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12249 }
12250 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12251 ecode2 = SWIG_AsVal_long(obj1, &val2);
12252 if (!SWIG_IsOK(ecode2)) {
12253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12254 }
12255 arg2 = static_cast< long >(val2);
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
12258 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12259 wxPyEndAllowThreads(__tstate);
12260 if (PyErr_Occurred()) SWIG_fail;
12261 }
12262 resultobj = SWIG_From_int(static_cast< int >(result));
12263 return resultobj;
12264 fail:
12265 return NULL;
12266 }
12267
12268
12269 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12270 PyObject *resultobj = 0;
12271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12272 long arg2 ;
12273 wxString result;
12274 void *argp1 = 0 ;
12275 int res1 = 0 ;
12276 long val2 ;
12277 int ecode2 = 0 ;
12278 PyObject * obj0 = 0 ;
12279 PyObject * obj1 = 0 ;
12280 char * kwnames[] = {
12281 (char *) "self",(char *) "lineNo", NULL
12282 };
12283
12284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12286 if (!SWIG_IsOK(res1)) {
12287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12288 }
12289 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12290 ecode2 = SWIG_AsVal_long(obj1, &val2);
12291 if (!SWIG_IsOK(ecode2)) {
12292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12293 }
12294 arg2 = static_cast< long >(val2);
12295 {
12296 PyThreadState* __tstate = wxPyBeginAllowThreads();
12297 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12298 wxPyEndAllowThreads(__tstate);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 {
12302 #if wxUSE_UNICODE
12303 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12304 #else
12305 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12306 #endif
12307 }
12308 return resultobj;
12309 fail:
12310 return NULL;
12311 }
12312
12313
12314 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12315 PyObject *resultobj = 0;
12316 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12317 int result;
12318 void *argp1 = 0 ;
12319 int res1 = 0 ;
12320 PyObject *swig_obj[1] ;
12321
12322 if (!args) SWIG_fail;
12323 swig_obj[0] = args;
12324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12325 if (!SWIG_IsOK(res1)) {
12326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12327 }
12328 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12329 {
12330 PyThreadState* __tstate = wxPyBeginAllowThreads();
12331 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12332 wxPyEndAllowThreads(__tstate);
12333 if (PyErr_Occurred()) SWIG_fail;
12334 }
12335 resultobj = SWIG_From_int(static_cast< int >(result));
12336 return resultobj;
12337 fail:
12338 return NULL;
12339 }
12340
12341
12342 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12343 PyObject *resultobj = 0;
12344 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12345 bool result;
12346 void *argp1 = 0 ;
12347 int res1 = 0 ;
12348 PyObject *swig_obj[1] ;
12349
12350 if (!args) SWIG_fail;
12351 swig_obj[0] = args;
12352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12353 if (!SWIG_IsOK(res1)) {
12354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12355 }
12356 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12357 {
12358 PyThreadState* __tstate = wxPyBeginAllowThreads();
12359 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12360 wxPyEndAllowThreads(__tstate);
12361 if (PyErr_Occurred()) SWIG_fail;
12362 }
12363 {
12364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12365 }
12366 return resultobj;
12367 fail:
12368 return NULL;
12369 }
12370
12371
12372 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12373 PyObject *resultobj = 0;
12374 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12375 bool result;
12376 void *argp1 = 0 ;
12377 int res1 = 0 ;
12378 PyObject *swig_obj[1] ;
12379
12380 if (!args) SWIG_fail;
12381 swig_obj[0] = args;
12382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12383 if (!SWIG_IsOK(res1)) {
12384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12385 }
12386 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12387 {
12388 PyThreadState* __tstate = wxPyBeginAllowThreads();
12389 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12390 wxPyEndAllowThreads(__tstate);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 }
12393 {
12394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12395 }
12396 return resultobj;
12397 fail:
12398 return NULL;
12399 }
12400
12401
12402 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12403 PyObject *resultobj = 0;
12404 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12405 bool result;
12406 void *argp1 = 0 ;
12407 int res1 = 0 ;
12408 PyObject *swig_obj[1] ;
12409
12410 if (!args) SWIG_fail;
12411 swig_obj[0] = args;
12412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12413 if (!SWIG_IsOK(res1)) {
12414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12415 }
12416 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12417 {
12418 PyThreadState* __tstate = wxPyBeginAllowThreads();
12419 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12420 wxPyEndAllowThreads(__tstate);
12421 if (PyErr_Occurred()) SWIG_fail;
12422 }
12423 {
12424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12425 }
12426 return resultobj;
12427 fail:
12428 return NULL;
12429 }
12430
12431
12432 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12433 PyObject *resultobj = 0;
12434 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12435 bool result;
12436 void *argp1 = 0 ;
12437 int res1 = 0 ;
12438 PyObject *swig_obj[1] ;
12439
12440 if (!args) SWIG_fail;
12441 swig_obj[0] = args;
12442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12443 if (!SWIG_IsOK(res1)) {
12444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12445 }
12446 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12447 {
12448 PyThreadState* __tstate = wxPyBeginAllowThreads();
12449 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 {
12454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12455 }
12456 return resultobj;
12457 fail:
12458 return NULL;
12459 }
12460
12461
12462 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12463 PyObject *resultobj = 0;
12464 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12465 long *arg2 = (long *) 0 ;
12466 long *arg3 = (long *) 0 ;
12467 void *argp1 = 0 ;
12468 int res1 = 0 ;
12469 long temp2 ;
12470 int res2 = SWIG_TMPOBJ ;
12471 long temp3 ;
12472 int res3 = SWIG_TMPOBJ ;
12473 PyObject *swig_obj[1] ;
12474
12475 arg2 = &temp2;
12476 arg3 = &temp3;
12477 if (!args) SWIG_fail;
12478 swig_obj[0] = args;
12479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12480 if (!SWIG_IsOK(res1)) {
12481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12482 }
12483 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12484 {
12485 PyThreadState* __tstate = wxPyBeginAllowThreads();
12486 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12487 wxPyEndAllowThreads(__tstate);
12488 if (PyErr_Occurred()) SWIG_fail;
12489 }
12490 resultobj = SWIG_Py_Void();
12491 if (SWIG_IsTmpObj(res2)) {
12492 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12493 } else {
12494 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12496 }
12497 if (SWIG_IsTmpObj(res3)) {
12498 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12499 } else {
12500 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12502 }
12503 return resultobj;
12504 fail:
12505 return NULL;
12506 }
12507
12508
12509 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12510 PyObject *resultobj = 0;
12511 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12512 wxString result;
12513 void *argp1 = 0 ;
12514 int res1 = 0 ;
12515 PyObject *swig_obj[1] ;
12516
12517 if (!args) SWIG_fail;
12518 swig_obj[0] = args;
12519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12520 if (!SWIG_IsOK(res1)) {
12521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12522 }
12523 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12524 {
12525 PyThreadState* __tstate = wxPyBeginAllowThreads();
12526 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12527 wxPyEndAllowThreads(__tstate);
12528 if (PyErr_Occurred()) SWIG_fail;
12529 }
12530 {
12531 #if wxUSE_UNICODE
12532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12533 #else
12534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12535 #endif
12536 }
12537 return resultobj;
12538 fail:
12539 return NULL;
12540 }
12541
12542
12543 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12544 PyObject *resultobj = 0;
12545 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12546 void *argp1 = 0 ;
12547 int res1 = 0 ;
12548 PyObject *swig_obj[1] ;
12549
12550 if (!args) SWIG_fail;
12551 swig_obj[0] = args;
12552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12553 if (!SWIG_IsOK(res1)) {
12554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12555 }
12556 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 (arg1)->Clear();
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 resultobj = SWIG_Py_Void();
12564 return resultobj;
12565 fail:
12566 return NULL;
12567 }
12568
12569
12570 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12571 PyObject *resultobj = 0;
12572 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12573 long arg2 ;
12574 long arg3 ;
12575 wxString *arg4 = 0 ;
12576 void *argp1 = 0 ;
12577 int res1 = 0 ;
12578 long val2 ;
12579 int ecode2 = 0 ;
12580 long val3 ;
12581 int ecode3 = 0 ;
12582 bool temp4 = false ;
12583 PyObject * obj0 = 0 ;
12584 PyObject * obj1 = 0 ;
12585 PyObject * obj2 = 0 ;
12586 PyObject * obj3 = 0 ;
12587 char * kwnames[] = {
12588 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12589 };
12590
12591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12593 if (!SWIG_IsOK(res1)) {
12594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12595 }
12596 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12597 ecode2 = SWIG_AsVal_long(obj1, &val2);
12598 if (!SWIG_IsOK(ecode2)) {
12599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12600 }
12601 arg2 = static_cast< long >(val2);
12602 ecode3 = SWIG_AsVal_long(obj2, &val3);
12603 if (!SWIG_IsOK(ecode3)) {
12604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12605 }
12606 arg3 = static_cast< long >(val3);
12607 {
12608 arg4 = wxString_in_helper(obj3);
12609 if (arg4 == NULL) SWIG_fail;
12610 temp4 = true;
12611 }
12612 {
12613 PyThreadState* __tstate = wxPyBeginAllowThreads();
12614 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12615 wxPyEndAllowThreads(__tstate);
12616 if (PyErr_Occurred()) SWIG_fail;
12617 }
12618 resultobj = SWIG_Py_Void();
12619 {
12620 if (temp4)
12621 delete arg4;
12622 }
12623 return resultobj;
12624 fail:
12625 {
12626 if (temp4)
12627 delete arg4;
12628 }
12629 return NULL;
12630 }
12631
12632
12633 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12634 PyObject *resultobj = 0;
12635 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12636 long arg2 ;
12637 long arg3 ;
12638 void *argp1 = 0 ;
12639 int res1 = 0 ;
12640 long val2 ;
12641 int ecode2 = 0 ;
12642 long val3 ;
12643 int ecode3 = 0 ;
12644 PyObject * obj0 = 0 ;
12645 PyObject * obj1 = 0 ;
12646 PyObject * obj2 = 0 ;
12647 char * kwnames[] = {
12648 (char *) "self",(char *) "from",(char *) "to", NULL
12649 };
12650
12651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12653 if (!SWIG_IsOK(res1)) {
12654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12655 }
12656 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12657 ecode2 = SWIG_AsVal_long(obj1, &val2);
12658 if (!SWIG_IsOK(ecode2)) {
12659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12660 }
12661 arg2 = static_cast< long >(val2);
12662 ecode3 = SWIG_AsVal_long(obj2, &val3);
12663 if (!SWIG_IsOK(ecode3)) {
12664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12665 }
12666 arg3 = static_cast< long >(val3);
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 (arg1)->Remove(arg2,arg3);
12670 wxPyEndAllowThreads(__tstate);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
12673 resultobj = SWIG_Py_Void();
12674 return resultobj;
12675 fail:
12676 return NULL;
12677 }
12678
12679
12680 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12681 PyObject *resultobj = 0;
12682 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12683 wxString *arg2 = 0 ;
12684 int arg3 = (int) wxTEXT_TYPE_ANY ;
12685 bool result;
12686 void *argp1 = 0 ;
12687 int res1 = 0 ;
12688 bool temp2 = false ;
12689 int val3 ;
12690 int ecode3 = 0 ;
12691 PyObject * obj0 = 0 ;
12692 PyObject * obj1 = 0 ;
12693 PyObject * obj2 = 0 ;
12694 char * kwnames[] = {
12695 (char *) "self",(char *) "file",(char *) "fileType", NULL
12696 };
12697
12698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12700 if (!SWIG_IsOK(res1)) {
12701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12702 }
12703 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12704 {
12705 arg2 = wxString_in_helper(obj1);
12706 if (arg2 == NULL) SWIG_fail;
12707 temp2 = true;
12708 }
12709 if (obj2) {
12710 ecode3 = SWIG_AsVal_int(obj2, &val3);
12711 if (!SWIG_IsOK(ecode3)) {
12712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12713 }
12714 arg3 = static_cast< int >(val3);
12715 }
12716 {
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 {
12723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12724 }
12725 {
12726 if (temp2)
12727 delete arg2;
12728 }
12729 return resultobj;
12730 fail:
12731 {
12732 if (temp2)
12733 delete arg2;
12734 }
12735 return NULL;
12736 }
12737
12738
12739 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12740 PyObject *resultobj = 0;
12741 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12742 wxString const &arg2_defvalue = wxPyEmptyString ;
12743 wxString *arg2 = (wxString *) &arg2_defvalue ;
12744 int arg3 = (int) wxTEXT_TYPE_ANY ;
12745 bool result;
12746 void *argp1 = 0 ;
12747 int res1 = 0 ;
12748 bool temp2 = false ;
12749 int val3 ;
12750 int ecode3 = 0 ;
12751 PyObject * obj0 = 0 ;
12752 PyObject * obj1 = 0 ;
12753 PyObject * obj2 = 0 ;
12754 char * kwnames[] = {
12755 (char *) "self",(char *) "file",(char *) "fileType", NULL
12756 };
12757
12758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12760 if (!SWIG_IsOK(res1)) {
12761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12762 }
12763 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12764 if (obj1) {
12765 {
12766 arg2 = wxString_in_helper(obj1);
12767 if (arg2 == NULL) SWIG_fail;
12768 temp2 = true;
12769 }
12770 }
12771 if (obj2) {
12772 ecode3 = SWIG_AsVal_int(obj2, &val3);
12773 if (!SWIG_IsOK(ecode3)) {
12774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12775 }
12776 arg3 = static_cast< int >(val3);
12777 }
12778 {
12779 PyThreadState* __tstate = wxPyBeginAllowThreads();
12780 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
12781 wxPyEndAllowThreads(__tstate);
12782 if (PyErr_Occurred()) SWIG_fail;
12783 }
12784 {
12785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12786 }
12787 {
12788 if (temp2)
12789 delete arg2;
12790 }
12791 return resultobj;
12792 fail:
12793 {
12794 if (temp2)
12795 delete arg2;
12796 }
12797 return NULL;
12798 }
12799
12800
12801 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12802 PyObject *resultobj = 0;
12803 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12804 void *argp1 = 0 ;
12805 int res1 = 0 ;
12806 PyObject *swig_obj[1] ;
12807
12808 if (!args) SWIG_fail;
12809 swig_obj[0] = args;
12810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12811 if (!SWIG_IsOK(res1)) {
12812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12813 }
12814 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12815 {
12816 PyThreadState* __tstate = wxPyBeginAllowThreads();
12817 (arg1)->MarkDirty();
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 resultobj = SWIG_Py_Void();
12822 return resultobj;
12823 fail:
12824 return NULL;
12825 }
12826
12827
12828 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12829 PyObject *resultobj = 0;
12830 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12831 void *argp1 = 0 ;
12832 int res1 = 0 ;
12833 PyObject *swig_obj[1] ;
12834
12835 if (!args) SWIG_fail;
12836 swig_obj[0] = args;
12837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12838 if (!SWIG_IsOK(res1)) {
12839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12840 }
12841 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12842 {
12843 PyThreadState* __tstate = wxPyBeginAllowThreads();
12844 (arg1)->DiscardEdits();
12845 wxPyEndAllowThreads(__tstate);
12846 if (PyErr_Occurred()) SWIG_fail;
12847 }
12848 resultobj = SWIG_Py_Void();
12849 return resultobj;
12850 fail:
12851 return NULL;
12852 }
12853
12854
12855 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12856 PyObject *resultobj = 0;
12857 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12858 bool arg2 ;
12859 void *argp1 = 0 ;
12860 int res1 = 0 ;
12861 bool val2 ;
12862 int ecode2 = 0 ;
12863 PyObject * obj0 = 0 ;
12864 PyObject * obj1 = 0 ;
12865 char * kwnames[] = {
12866 (char *) "self",(char *) "modified", NULL
12867 };
12868
12869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12871 if (!SWIG_IsOK(res1)) {
12872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12873 }
12874 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12875 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12876 if (!SWIG_IsOK(ecode2)) {
12877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12878 }
12879 arg2 = static_cast< bool >(val2);
12880 {
12881 PyThreadState* __tstate = wxPyBeginAllowThreads();
12882 (arg1)->SetModified(arg2);
12883 wxPyEndAllowThreads(__tstate);
12884 if (PyErr_Occurred()) SWIG_fail;
12885 }
12886 resultobj = SWIG_Py_Void();
12887 return resultobj;
12888 fail:
12889 return NULL;
12890 }
12891
12892
12893 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12894 PyObject *resultobj = 0;
12895 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12896 unsigned long arg2 ;
12897 void *argp1 = 0 ;
12898 int res1 = 0 ;
12899 unsigned long val2 ;
12900 int ecode2 = 0 ;
12901 PyObject * obj0 = 0 ;
12902 PyObject * obj1 = 0 ;
12903 char * kwnames[] = {
12904 (char *) "self",(char *) "len", NULL
12905 };
12906
12907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12909 if (!SWIG_IsOK(res1)) {
12910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12911 }
12912 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12913 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12914 if (!SWIG_IsOK(ecode2)) {
12915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12916 }
12917 arg2 = static_cast< unsigned long >(val2);
12918 {
12919 PyThreadState* __tstate = wxPyBeginAllowThreads();
12920 (arg1)->SetMaxLength(arg2);
12921 wxPyEndAllowThreads(__tstate);
12922 if (PyErr_Occurred()) SWIG_fail;
12923 }
12924 resultobj = SWIG_Py_Void();
12925 return resultobj;
12926 fail:
12927 return NULL;
12928 }
12929
12930
12931 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12932 PyObject *resultobj = 0;
12933 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12934 wxString *arg2 = 0 ;
12935 void *argp1 = 0 ;
12936 int res1 = 0 ;
12937 bool temp2 = false ;
12938 PyObject * obj0 = 0 ;
12939 PyObject * obj1 = 0 ;
12940 char * kwnames[] = {
12941 (char *) "self",(char *) "text", NULL
12942 };
12943
12944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12946 if (!SWIG_IsOK(res1)) {
12947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12948 }
12949 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12950 {
12951 arg2 = wxString_in_helper(obj1);
12952 if (arg2 == NULL) SWIG_fail;
12953 temp2 = true;
12954 }
12955 {
12956 PyThreadState* __tstate = wxPyBeginAllowThreads();
12957 (arg1)->WriteText((wxString const &)*arg2);
12958 wxPyEndAllowThreads(__tstate);
12959 if (PyErr_Occurred()) SWIG_fail;
12960 }
12961 resultobj = SWIG_Py_Void();
12962 {
12963 if (temp2)
12964 delete arg2;
12965 }
12966 return resultobj;
12967 fail:
12968 {
12969 if (temp2)
12970 delete arg2;
12971 }
12972 return NULL;
12973 }
12974
12975
12976 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12977 PyObject *resultobj = 0;
12978 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12979 wxString *arg2 = 0 ;
12980 void *argp1 = 0 ;
12981 int res1 = 0 ;
12982 bool temp2 = false ;
12983 PyObject * obj0 = 0 ;
12984 PyObject * obj1 = 0 ;
12985 char * kwnames[] = {
12986 (char *) "self",(char *) "text", NULL
12987 };
12988
12989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12991 if (!SWIG_IsOK(res1)) {
12992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12993 }
12994 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12995 {
12996 arg2 = wxString_in_helper(obj1);
12997 if (arg2 == NULL) SWIG_fail;
12998 temp2 = true;
12999 }
13000 {
13001 PyThreadState* __tstate = wxPyBeginAllowThreads();
13002 (arg1)->AppendText((wxString const &)*arg2);
13003 wxPyEndAllowThreads(__tstate);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
13006 resultobj = SWIG_Py_Void();
13007 {
13008 if (temp2)
13009 delete arg2;
13010 }
13011 return resultobj;
13012 fail:
13013 {
13014 if (temp2)
13015 delete arg2;
13016 }
13017 return NULL;
13018 }
13019
13020
13021 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13022 PyObject *resultobj = 0;
13023 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13024 wxKeyEvent *arg2 = 0 ;
13025 bool result;
13026 void *argp1 = 0 ;
13027 int res1 = 0 ;
13028 void *argp2 = 0 ;
13029 int res2 = 0 ;
13030 PyObject * obj0 = 0 ;
13031 PyObject * obj1 = 0 ;
13032 char * kwnames[] = {
13033 (char *) "self",(char *) "event", NULL
13034 };
13035
13036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
13037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13038 if (!SWIG_IsOK(res1)) {
13039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13040 }
13041 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13042 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
13043 if (!SWIG_IsOK(res2)) {
13044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
13045 }
13046 if (!argp2) {
13047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
13048 }
13049 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
13050 {
13051 PyThreadState* __tstate = wxPyBeginAllowThreads();
13052 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
13053 wxPyEndAllowThreads(__tstate);
13054 if (PyErr_Occurred()) SWIG_fail;
13055 }
13056 {
13057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13058 }
13059 return resultobj;
13060 fail:
13061 return NULL;
13062 }
13063
13064
13065 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13066 PyObject *resultobj = 0;
13067 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13068 long arg2 ;
13069 long arg3 ;
13070 wxTextAttr *arg4 = 0 ;
13071 bool result;
13072 void *argp1 = 0 ;
13073 int res1 = 0 ;
13074 long val2 ;
13075 int ecode2 = 0 ;
13076 long val3 ;
13077 int ecode3 = 0 ;
13078 void *argp4 = 0 ;
13079 int res4 = 0 ;
13080 PyObject * obj0 = 0 ;
13081 PyObject * obj1 = 0 ;
13082 PyObject * obj2 = 0 ;
13083 PyObject * obj3 = 0 ;
13084 char * kwnames[] = {
13085 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
13086 };
13087
13088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13090 if (!SWIG_IsOK(res1)) {
13091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13092 }
13093 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13094 ecode2 = SWIG_AsVal_long(obj1, &val2);
13095 if (!SWIG_IsOK(ecode2)) {
13096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
13097 }
13098 arg2 = static_cast< long >(val2);
13099 ecode3 = SWIG_AsVal_long(obj2, &val3);
13100 if (!SWIG_IsOK(ecode3)) {
13101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
13102 }
13103 arg3 = static_cast< long >(val3);
13104 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
13105 if (!SWIG_IsOK(res4)) {
13106 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
13107 }
13108 if (!argp4) {
13109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
13110 }
13111 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
13115 wxPyEndAllowThreads(__tstate);
13116 if (PyErr_Occurred()) SWIG_fail;
13117 }
13118 {
13119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13120 }
13121 return resultobj;
13122 fail:
13123 return NULL;
13124 }
13125
13126
13127 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13128 PyObject *resultobj = 0;
13129 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13130 long arg2 ;
13131 wxTextAttr *arg3 = 0 ;
13132 bool result;
13133 void *argp1 = 0 ;
13134 int res1 = 0 ;
13135 long val2 ;
13136 int ecode2 = 0 ;
13137 void *argp3 = 0 ;
13138 int res3 = 0 ;
13139 PyObject * obj0 = 0 ;
13140 PyObject * obj1 = 0 ;
13141 PyObject * obj2 = 0 ;
13142 char * kwnames[] = {
13143 (char *) "self",(char *) "position",(char *) "style", NULL
13144 };
13145
13146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13148 if (!SWIG_IsOK(res1)) {
13149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13150 }
13151 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13152 ecode2 = SWIG_AsVal_long(obj1, &val2);
13153 if (!SWIG_IsOK(ecode2)) {
13154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
13155 }
13156 arg2 = static_cast< long >(val2);
13157 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
13158 if (!SWIG_IsOK(res3)) {
13159 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13160 }
13161 if (!argp3) {
13162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
13163 }
13164 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
13165 {
13166 PyThreadState* __tstate = wxPyBeginAllowThreads();
13167 result = (bool)(arg1)->GetStyle(arg2,*arg3);
13168 wxPyEndAllowThreads(__tstate);
13169 if (PyErr_Occurred()) SWIG_fail;
13170 }
13171 {
13172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13173 }
13174 return resultobj;
13175 fail:
13176 return NULL;
13177 }
13178
13179
13180 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13181 PyObject *resultobj = 0;
13182 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13183 wxTextAttr *arg2 = 0 ;
13184 bool result;
13185 void *argp1 = 0 ;
13186 int res1 = 0 ;
13187 void *argp2 = 0 ;
13188 int res2 = 0 ;
13189 PyObject * obj0 = 0 ;
13190 PyObject * obj1 = 0 ;
13191 char * kwnames[] = {
13192 (char *) "self",(char *) "style", NULL
13193 };
13194
13195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13197 if (!SWIG_IsOK(res1)) {
13198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13199 }
13200 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
13202 if (!SWIG_IsOK(res2)) {
13203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13204 }
13205 if (!argp2) {
13206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
13207 }
13208 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
13209 {
13210 PyThreadState* __tstate = wxPyBeginAllowThreads();
13211 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
13212 wxPyEndAllowThreads(__tstate);
13213 if (PyErr_Occurred()) SWIG_fail;
13214 }
13215 {
13216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13217 }
13218 return resultobj;
13219 fail:
13220 return NULL;
13221 }
13222
13223
13224 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13225 PyObject *resultobj = 0;
13226 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13227 wxTextAttr *result = 0 ;
13228 void *argp1 = 0 ;
13229 int res1 = 0 ;
13230 PyObject *swig_obj[1] ;
13231
13232 if (!args) SWIG_fail;
13233 swig_obj[0] = args;
13234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13235 if (!SWIG_IsOK(res1)) {
13236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13237 }
13238 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13239 {
13240 PyThreadState* __tstate = wxPyBeginAllowThreads();
13241 {
13242 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
13243 result = (wxTextAttr *) &_result_ref;
13244 }
13245 wxPyEndAllowThreads(__tstate);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 }
13248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
13249 return resultobj;
13250 fail:
13251 return NULL;
13252 }
13253
13254
13255 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13256 PyObject *resultobj = 0;
13257 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13258 long arg2 ;
13259 long arg3 ;
13260 long result;
13261 void *argp1 = 0 ;
13262 int res1 = 0 ;
13263 long val2 ;
13264 int ecode2 = 0 ;
13265 long val3 ;
13266 int ecode3 = 0 ;
13267 PyObject * obj0 = 0 ;
13268 PyObject * obj1 = 0 ;
13269 PyObject * obj2 = 0 ;
13270 char * kwnames[] = {
13271 (char *) "self",(char *) "x",(char *) "y", NULL
13272 };
13273
13274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13276 if (!SWIG_IsOK(res1)) {
13277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13278 }
13279 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13280 ecode2 = SWIG_AsVal_long(obj1, &val2);
13281 if (!SWIG_IsOK(ecode2)) {
13282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13283 }
13284 arg2 = static_cast< long >(val2);
13285 ecode3 = SWIG_AsVal_long(obj2, &val3);
13286 if (!SWIG_IsOK(ecode3)) {
13287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13288 }
13289 arg3 = static_cast< long >(val3);
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 resultobj = SWIG_From_long(static_cast< long >(result));
13297 return resultobj;
13298 fail:
13299 return NULL;
13300 }
13301
13302
13303 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13304 PyObject *resultobj = 0;
13305 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13306 long arg2 ;
13307 long *arg3 = (long *) 0 ;
13308 long *arg4 = (long *) 0 ;
13309 void *argp1 = 0 ;
13310 int res1 = 0 ;
13311 long val2 ;
13312 int ecode2 = 0 ;
13313 long temp3 ;
13314 int res3 = SWIG_TMPOBJ ;
13315 long temp4 ;
13316 int res4 = SWIG_TMPOBJ ;
13317 PyObject * obj0 = 0 ;
13318 PyObject * obj1 = 0 ;
13319 char * kwnames[] = {
13320 (char *) "self",(char *) "pos", NULL
13321 };
13322
13323 arg3 = &temp3;
13324 arg4 = &temp4;
13325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13327 if (!SWIG_IsOK(res1)) {
13328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13329 }
13330 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13331 ecode2 = SWIG_AsVal_long(obj1, &val2);
13332 if (!SWIG_IsOK(ecode2)) {
13333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13334 }
13335 arg2 = static_cast< long >(val2);
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13339 wxPyEndAllowThreads(__tstate);
13340 if (PyErr_Occurred()) SWIG_fail;
13341 }
13342 resultobj = SWIG_Py_Void();
13343 if (SWIG_IsTmpObj(res3)) {
13344 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13345 } else {
13346 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13347 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13348 }
13349 if (SWIG_IsTmpObj(res4)) {
13350 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13351 } else {
13352 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13353 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13354 }
13355 return resultobj;
13356 fail:
13357 return NULL;
13358 }
13359
13360
13361 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13362 PyObject *resultobj = 0;
13363 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13364 long arg2 ;
13365 void *argp1 = 0 ;
13366 int res1 = 0 ;
13367 long val2 ;
13368 int ecode2 = 0 ;
13369 PyObject * obj0 = 0 ;
13370 PyObject * obj1 = 0 ;
13371 char * kwnames[] = {
13372 (char *) "self",(char *) "pos", NULL
13373 };
13374
13375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13377 if (!SWIG_IsOK(res1)) {
13378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13379 }
13380 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13381 ecode2 = SWIG_AsVal_long(obj1, &val2);
13382 if (!SWIG_IsOK(ecode2)) {
13383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13384 }
13385 arg2 = static_cast< long >(val2);
13386 {
13387 PyThreadState* __tstate = wxPyBeginAllowThreads();
13388 (arg1)->ShowPosition(arg2);
13389 wxPyEndAllowThreads(__tstate);
13390 if (PyErr_Occurred()) SWIG_fail;
13391 }
13392 resultobj = SWIG_Py_Void();
13393 return resultobj;
13394 fail:
13395 return NULL;
13396 }
13397
13398
13399 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13400 PyObject *resultobj = 0;
13401 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13402 wxPoint *arg2 = 0 ;
13403 long *arg3 = (long *) 0 ;
13404 long *arg4 = (long *) 0 ;
13405 wxTextCtrlHitTestResult result;
13406 void *argp1 = 0 ;
13407 int res1 = 0 ;
13408 wxPoint temp2 ;
13409 long temp3 ;
13410 int res3 = SWIG_TMPOBJ ;
13411 long temp4 ;
13412 int res4 = SWIG_TMPOBJ ;
13413 PyObject * obj0 = 0 ;
13414 PyObject * obj1 = 0 ;
13415 char * kwnames[] = {
13416 (char *) "self",(char *) "pt", NULL
13417 };
13418
13419 arg3 = &temp3;
13420 arg4 = &temp4;
13421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13423 if (!SWIG_IsOK(res1)) {
13424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13425 }
13426 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13427 {
13428 arg2 = &temp2;
13429 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13430 }
13431 {
13432 PyThreadState* __tstate = wxPyBeginAllowThreads();
13433 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13434 wxPyEndAllowThreads(__tstate);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 }
13437 resultobj = SWIG_From_int(static_cast< int >(result));
13438 if (SWIG_IsTmpObj(res3)) {
13439 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13440 } else {
13441 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13442 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13443 }
13444 if (SWIG_IsTmpObj(res4)) {
13445 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13446 } else {
13447 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13448 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13449 }
13450 return resultobj;
13451 fail:
13452 return NULL;
13453 }
13454
13455
13456 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13457 PyObject *resultobj = 0;
13458 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13459 wxPoint *arg2 = 0 ;
13460 long *arg3 = (long *) 0 ;
13461 wxTextCtrlHitTestResult result;
13462 void *argp1 = 0 ;
13463 int res1 = 0 ;
13464 wxPoint temp2 ;
13465 long temp3 ;
13466 int res3 = SWIG_TMPOBJ ;
13467 PyObject * obj0 = 0 ;
13468 PyObject * obj1 = 0 ;
13469 char * kwnames[] = {
13470 (char *) "self",(char *) "pt", NULL
13471 };
13472
13473 arg3 = &temp3;
13474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13476 if (!SWIG_IsOK(res1)) {
13477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13478 }
13479 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13480 {
13481 arg2 = &temp2;
13482 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13483 }
13484 {
13485 PyThreadState* __tstate = wxPyBeginAllowThreads();
13486 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13487 wxPyEndAllowThreads(__tstate);
13488 if (PyErr_Occurred()) SWIG_fail;
13489 }
13490 resultobj = SWIG_From_int(static_cast< int >(result));
13491 if (SWIG_IsTmpObj(res3)) {
13492 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13493 } else {
13494 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13496 }
13497 return resultobj;
13498 fail:
13499 return NULL;
13500 }
13501
13502
13503 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13504 PyObject *resultobj = 0;
13505 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13506 void *argp1 = 0 ;
13507 int res1 = 0 ;
13508 PyObject *swig_obj[1] ;
13509
13510 if (!args) SWIG_fail;
13511 swig_obj[0] = args;
13512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13513 if (!SWIG_IsOK(res1)) {
13514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13515 }
13516 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 (arg1)->Copy();
13520 wxPyEndAllowThreads(__tstate);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 resultobj = SWIG_Py_Void();
13524 return resultobj;
13525 fail:
13526 return NULL;
13527 }
13528
13529
13530 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13531 PyObject *resultobj = 0;
13532 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13533 void *argp1 = 0 ;
13534 int res1 = 0 ;
13535 PyObject *swig_obj[1] ;
13536
13537 if (!args) SWIG_fail;
13538 swig_obj[0] = args;
13539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13540 if (!SWIG_IsOK(res1)) {
13541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13542 }
13543 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13544 {
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 (arg1)->Cut();
13547 wxPyEndAllowThreads(__tstate);
13548 if (PyErr_Occurred()) SWIG_fail;
13549 }
13550 resultobj = SWIG_Py_Void();
13551 return resultobj;
13552 fail:
13553 return NULL;
13554 }
13555
13556
13557 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13558 PyObject *resultobj = 0;
13559 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13560 void *argp1 = 0 ;
13561 int res1 = 0 ;
13562 PyObject *swig_obj[1] ;
13563
13564 if (!args) SWIG_fail;
13565 swig_obj[0] = args;
13566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13567 if (!SWIG_IsOK(res1)) {
13568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13569 }
13570 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 (arg1)->Paste();
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 resultobj = SWIG_Py_Void();
13578 return resultobj;
13579 fail:
13580 return NULL;
13581 }
13582
13583
13584 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13585 PyObject *resultobj = 0;
13586 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13587 bool result;
13588 void *argp1 = 0 ;
13589 int res1 = 0 ;
13590 PyObject *swig_obj[1] ;
13591
13592 if (!args) SWIG_fail;
13593 swig_obj[0] = args;
13594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13595 if (!SWIG_IsOK(res1)) {
13596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13597 }
13598 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13599 {
13600 PyThreadState* __tstate = wxPyBeginAllowThreads();
13601 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13602 wxPyEndAllowThreads(__tstate);
13603 if (PyErr_Occurred()) SWIG_fail;
13604 }
13605 {
13606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13607 }
13608 return resultobj;
13609 fail:
13610 return NULL;
13611 }
13612
13613
13614 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13615 PyObject *resultobj = 0;
13616 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13617 bool result;
13618 void *argp1 = 0 ;
13619 int res1 = 0 ;
13620 PyObject *swig_obj[1] ;
13621
13622 if (!args) SWIG_fail;
13623 swig_obj[0] = args;
13624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13625 if (!SWIG_IsOK(res1)) {
13626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13627 }
13628 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13629 {
13630 PyThreadState* __tstate = wxPyBeginAllowThreads();
13631 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13632 wxPyEndAllowThreads(__tstate);
13633 if (PyErr_Occurred()) SWIG_fail;
13634 }
13635 {
13636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13637 }
13638 return resultobj;
13639 fail:
13640 return NULL;
13641 }
13642
13643
13644 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13645 PyObject *resultobj = 0;
13646 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13647 bool result;
13648 void *argp1 = 0 ;
13649 int res1 = 0 ;
13650 PyObject *swig_obj[1] ;
13651
13652 if (!args) SWIG_fail;
13653 swig_obj[0] = args;
13654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13655 if (!SWIG_IsOK(res1)) {
13656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13657 }
13658 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13659 {
13660 PyThreadState* __tstate = wxPyBeginAllowThreads();
13661 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13662 wxPyEndAllowThreads(__tstate);
13663 if (PyErr_Occurred()) SWIG_fail;
13664 }
13665 {
13666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13667 }
13668 return resultobj;
13669 fail:
13670 return NULL;
13671 }
13672
13673
13674 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13675 PyObject *resultobj = 0;
13676 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13677 void *argp1 = 0 ;
13678 int res1 = 0 ;
13679 PyObject *swig_obj[1] ;
13680
13681 if (!args) SWIG_fail;
13682 swig_obj[0] = args;
13683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13684 if (!SWIG_IsOK(res1)) {
13685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13686 }
13687 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13688 {
13689 PyThreadState* __tstate = wxPyBeginAllowThreads();
13690 (arg1)->Undo();
13691 wxPyEndAllowThreads(__tstate);
13692 if (PyErr_Occurred()) SWIG_fail;
13693 }
13694 resultobj = SWIG_Py_Void();
13695 return resultobj;
13696 fail:
13697 return NULL;
13698 }
13699
13700
13701 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13702 PyObject *resultobj = 0;
13703 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13704 void *argp1 = 0 ;
13705 int res1 = 0 ;
13706 PyObject *swig_obj[1] ;
13707
13708 if (!args) SWIG_fail;
13709 swig_obj[0] = args;
13710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13711 if (!SWIG_IsOK(res1)) {
13712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13713 }
13714 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13715 {
13716 PyThreadState* __tstate = wxPyBeginAllowThreads();
13717 (arg1)->Redo();
13718 wxPyEndAllowThreads(__tstate);
13719 if (PyErr_Occurred()) SWIG_fail;
13720 }
13721 resultobj = SWIG_Py_Void();
13722 return resultobj;
13723 fail:
13724 return NULL;
13725 }
13726
13727
13728 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13729 PyObject *resultobj = 0;
13730 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13731 bool result;
13732 void *argp1 = 0 ;
13733 int res1 = 0 ;
13734 PyObject *swig_obj[1] ;
13735
13736 if (!args) SWIG_fail;
13737 swig_obj[0] = args;
13738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13739 if (!SWIG_IsOK(res1)) {
13740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13741 }
13742 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13743 {
13744 PyThreadState* __tstate = wxPyBeginAllowThreads();
13745 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13746 wxPyEndAllowThreads(__tstate);
13747 if (PyErr_Occurred()) SWIG_fail;
13748 }
13749 {
13750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13751 }
13752 return resultobj;
13753 fail:
13754 return NULL;
13755 }
13756
13757
13758 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13759 PyObject *resultobj = 0;
13760 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13761 bool result;
13762 void *argp1 = 0 ;
13763 int res1 = 0 ;
13764 PyObject *swig_obj[1] ;
13765
13766 if (!args) SWIG_fail;
13767 swig_obj[0] = args;
13768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13769 if (!SWIG_IsOK(res1)) {
13770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13771 }
13772 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13773 {
13774 PyThreadState* __tstate = wxPyBeginAllowThreads();
13775 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13776 wxPyEndAllowThreads(__tstate);
13777 if (PyErr_Occurred()) SWIG_fail;
13778 }
13779 {
13780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13781 }
13782 return resultobj;
13783 fail:
13784 return NULL;
13785 }
13786
13787
13788 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13789 PyObject *resultobj = 0;
13790 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13791 long arg2 ;
13792 void *argp1 = 0 ;
13793 int res1 = 0 ;
13794 long val2 ;
13795 int ecode2 = 0 ;
13796 PyObject * obj0 = 0 ;
13797 PyObject * obj1 = 0 ;
13798 char * kwnames[] = {
13799 (char *) "self",(char *) "pos", NULL
13800 };
13801
13802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13804 if (!SWIG_IsOK(res1)) {
13805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13806 }
13807 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13808 ecode2 = SWIG_AsVal_long(obj1, &val2);
13809 if (!SWIG_IsOK(ecode2)) {
13810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13811 }
13812 arg2 = static_cast< long >(val2);
13813 {
13814 PyThreadState* __tstate = wxPyBeginAllowThreads();
13815 (arg1)->SetInsertionPoint(arg2);
13816 wxPyEndAllowThreads(__tstate);
13817 if (PyErr_Occurred()) SWIG_fail;
13818 }
13819 resultobj = SWIG_Py_Void();
13820 return resultobj;
13821 fail:
13822 return NULL;
13823 }
13824
13825
13826 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13827 PyObject *resultobj = 0;
13828 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13829 void *argp1 = 0 ;
13830 int res1 = 0 ;
13831 PyObject *swig_obj[1] ;
13832
13833 if (!args) SWIG_fail;
13834 swig_obj[0] = args;
13835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13836 if (!SWIG_IsOK(res1)) {
13837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13838 }
13839 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13840 {
13841 PyThreadState* __tstate = wxPyBeginAllowThreads();
13842 (arg1)->SetInsertionPointEnd();
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 resultobj = SWIG_Py_Void();
13847 return resultobj;
13848 fail:
13849 return NULL;
13850 }
13851
13852
13853 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13854 PyObject *resultobj = 0;
13855 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13856 long result;
13857 void *argp1 = 0 ;
13858 int res1 = 0 ;
13859 PyObject *swig_obj[1] ;
13860
13861 if (!args) SWIG_fail;
13862 swig_obj[0] = args;
13863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13864 if (!SWIG_IsOK(res1)) {
13865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13866 }
13867 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13868 {
13869 PyThreadState* __tstate = wxPyBeginAllowThreads();
13870 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13871 wxPyEndAllowThreads(__tstate);
13872 if (PyErr_Occurred()) SWIG_fail;
13873 }
13874 resultobj = SWIG_From_long(static_cast< long >(result));
13875 return resultobj;
13876 fail:
13877 return NULL;
13878 }
13879
13880
13881 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13882 PyObject *resultobj = 0;
13883 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13884 long result;
13885 void *argp1 = 0 ;
13886 int res1 = 0 ;
13887 PyObject *swig_obj[1] ;
13888
13889 if (!args) SWIG_fail;
13890 swig_obj[0] = args;
13891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13892 if (!SWIG_IsOK(res1)) {
13893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13894 }
13895 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13896 {
13897 PyThreadState* __tstate = wxPyBeginAllowThreads();
13898 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13899 wxPyEndAllowThreads(__tstate);
13900 if (PyErr_Occurred()) SWIG_fail;
13901 }
13902 resultobj = SWIG_From_long(static_cast< long >(result));
13903 return resultobj;
13904 fail:
13905 return NULL;
13906 }
13907
13908
13909 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13910 PyObject *resultobj = 0;
13911 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13912 long arg2 ;
13913 long arg3 ;
13914 void *argp1 = 0 ;
13915 int res1 = 0 ;
13916 long val2 ;
13917 int ecode2 = 0 ;
13918 long val3 ;
13919 int ecode3 = 0 ;
13920 PyObject * obj0 = 0 ;
13921 PyObject * obj1 = 0 ;
13922 PyObject * obj2 = 0 ;
13923 char * kwnames[] = {
13924 (char *) "self",(char *) "from",(char *) "to", NULL
13925 };
13926
13927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13929 if (!SWIG_IsOK(res1)) {
13930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13931 }
13932 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13933 ecode2 = SWIG_AsVal_long(obj1, &val2);
13934 if (!SWIG_IsOK(ecode2)) {
13935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13936 }
13937 arg2 = static_cast< long >(val2);
13938 ecode3 = SWIG_AsVal_long(obj2, &val3);
13939 if (!SWIG_IsOK(ecode3)) {
13940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13941 }
13942 arg3 = static_cast< long >(val3);
13943 {
13944 PyThreadState* __tstate = wxPyBeginAllowThreads();
13945 (arg1)->SetSelection(arg2,arg3);
13946 wxPyEndAllowThreads(__tstate);
13947 if (PyErr_Occurred()) SWIG_fail;
13948 }
13949 resultobj = SWIG_Py_Void();
13950 return resultobj;
13951 fail:
13952 return NULL;
13953 }
13954
13955
13956 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13957 PyObject *resultobj = 0;
13958 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13959 void *argp1 = 0 ;
13960 int res1 = 0 ;
13961 PyObject *swig_obj[1] ;
13962
13963 if (!args) SWIG_fail;
13964 swig_obj[0] = args;
13965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13966 if (!SWIG_IsOK(res1)) {
13967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13968 }
13969 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13970 {
13971 PyThreadState* __tstate = wxPyBeginAllowThreads();
13972 (arg1)->SelectAll();
13973 wxPyEndAllowThreads(__tstate);
13974 if (PyErr_Occurred()) SWIG_fail;
13975 }
13976 resultobj = SWIG_Py_Void();
13977 return resultobj;
13978 fail:
13979 return NULL;
13980 }
13981
13982
13983 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13984 PyObject *resultobj = 0;
13985 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13986 bool arg2 ;
13987 void *argp1 = 0 ;
13988 int res1 = 0 ;
13989 bool val2 ;
13990 int ecode2 = 0 ;
13991 PyObject * obj0 = 0 ;
13992 PyObject * obj1 = 0 ;
13993 char * kwnames[] = {
13994 (char *) "self",(char *) "editable", NULL
13995 };
13996
13997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13999 if (!SWIG_IsOK(res1)) {
14000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14001 }
14002 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14003 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14004 if (!SWIG_IsOK(ecode2)) {
14005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
14006 }
14007 arg2 = static_cast< bool >(val2);
14008 {
14009 PyThreadState* __tstate = wxPyBeginAllowThreads();
14010 (arg1)->SetEditable(arg2);
14011 wxPyEndAllowThreads(__tstate);
14012 if (PyErr_Occurred()) SWIG_fail;
14013 }
14014 resultobj = SWIG_Py_Void();
14015 return resultobj;
14016 fail:
14017 return NULL;
14018 }
14019
14020
14021 SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14022 PyObject *resultobj = 0;
14023 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14024 bool arg2 ;
14025 void *argp1 = 0 ;
14026 int res1 = 0 ;
14027 bool val2 ;
14028 int ecode2 = 0 ;
14029 PyObject * obj0 = 0 ;
14030 PyObject * obj1 = 0 ;
14031 char * kwnames[] = {
14032 (char *) "self",(char *) "check", NULL
14033 };
14034
14035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
14036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14037 if (!SWIG_IsOK(res1)) {
14038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14039 }
14040 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14041 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14042 if (!SWIG_IsOK(ecode2)) {
14043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
14044 }
14045 arg2 = static_cast< bool >(val2);
14046 {
14047 PyThreadState* __tstate = wxPyBeginAllowThreads();
14048 wxTextCtrl_MacCheckSpelling(arg1,arg2);
14049 wxPyEndAllowThreads(__tstate);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 }
14052 resultobj = SWIG_Py_Void();
14053 return resultobj;
14054 fail:
14055 return NULL;
14056 }
14057
14058
14059 SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14060 PyObject *resultobj = 0;
14061 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14062 void *argp1 = 0 ;
14063 int res1 = 0 ;
14064 PyObject *swig_obj[1] ;
14065
14066 if (!args) SWIG_fail;
14067 swig_obj[0] = args;
14068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14069 if (!SWIG_IsOK(res1)) {
14070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14071 }
14072 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14073 {
14074 PyThreadState* __tstate = wxPyBeginAllowThreads();
14075 (arg1)->SendTextUpdatedEvent();
14076 wxPyEndAllowThreads(__tstate);
14077 if (PyErr_Occurred()) SWIG_fail;
14078 }
14079 resultobj = SWIG_Py_Void();
14080 return resultobj;
14081 fail:
14082 return NULL;
14083 }
14084
14085
14086 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14087 PyObject *resultobj = 0;
14088 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14089 bool arg2 = (bool) true ;
14090 bool result;
14091 void *argp1 = 0 ;
14092 int res1 = 0 ;
14093 bool val2 ;
14094 int ecode2 = 0 ;
14095 PyObject * obj0 = 0 ;
14096 PyObject * obj1 = 0 ;
14097 char * kwnames[] = {
14098 (char *) "self",(char *) "show", NULL
14099 };
14100
14101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
14102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14103 if (!SWIG_IsOK(res1)) {
14104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14105 }
14106 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14107 if (obj1) {
14108 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14109 if (!SWIG_IsOK(ecode2)) {
14110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
14111 }
14112 arg2 = static_cast< bool >(val2);
14113 }
14114 {
14115 PyThreadState* __tstate = wxPyBeginAllowThreads();
14116 result = (bool)(arg1)->ShowNativeCaret(arg2);
14117 wxPyEndAllowThreads(__tstate);
14118 if (PyErr_Occurred()) SWIG_fail;
14119 }
14120 {
14121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14122 }
14123 return resultobj;
14124 fail:
14125 return NULL;
14126 }
14127
14128
14129 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14130 PyObject *resultobj = 0;
14131 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14132 bool result;
14133 void *argp1 = 0 ;
14134 int res1 = 0 ;
14135 PyObject *swig_obj[1] ;
14136
14137 if (!args) SWIG_fail;
14138 swig_obj[0] = args;
14139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14140 if (!SWIG_IsOK(res1)) {
14141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14142 }
14143 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14144 {
14145 PyThreadState* __tstate = wxPyBeginAllowThreads();
14146 result = (bool)(arg1)->HideNativeCaret();
14147 wxPyEndAllowThreads(__tstate);
14148 if (PyErr_Occurred()) SWIG_fail;
14149 }
14150 {
14151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14152 }
14153 return resultobj;
14154 fail:
14155 return NULL;
14156 }
14157
14158
14159 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14160 PyObject *resultobj = 0;
14161 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14162 wxString *arg2 = 0 ;
14163 void *argp1 = 0 ;
14164 int res1 = 0 ;
14165 bool temp2 = false ;
14166 PyObject * obj0 = 0 ;
14167 PyObject * obj1 = 0 ;
14168 char * kwnames[] = {
14169 (char *) "self",(char *) "text", NULL
14170 };
14171
14172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
14173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14174 if (!SWIG_IsOK(res1)) {
14175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14176 }
14177 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14178 {
14179 arg2 = wxString_in_helper(obj1);
14180 if (arg2 == NULL) SWIG_fail;
14181 temp2 = true;
14182 }
14183 {
14184 PyThreadState* __tstate = wxPyBeginAllowThreads();
14185 wxTextCtrl_write(arg1,(wxString const &)*arg2);
14186 wxPyEndAllowThreads(__tstate);
14187 if (PyErr_Occurred()) SWIG_fail;
14188 }
14189 resultobj = SWIG_Py_Void();
14190 {
14191 if (temp2)
14192 delete arg2;
14193 }
14194 return resultobj;
14195 fail:
14196 {
14197 if (temp2)
14198 delete arg2;
14199 }
14200 return NULL;
14201 }
14202
14203
14204 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14205 PyObject *resultobj = 0;
14206 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
14207 long arg2 ;
14208 long arg3 ;
14209 wxString result;
14210 void *argp1 = 0 ;
14211 int res1 = 0 ;
14212 long val2 ;
14213 int ecode2 = 0 ;
14214 long val3 ;
14215 int ecode3 = 0 ;
14216 PyObject * obj0 = 0 ;
14217 PyObject * obj1 = 0 ;
14218 PyObject * obj2 = 0 ;
14219 char * kwnames[] = {
14220 (char *) "self",(char *) "from",(char *) "to", NULL
14221 };
14222
14223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
14225 if (!SWIG_IsOK(res1)) {
14226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
14227 }
14228 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
14229 ecode2 = SWIG_AsVal_long(obj1, &val2);
14230 if (!SWIG_IsOK(ecode2)) {
14231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
14232 }
14233 arg2 = static_cast< long >(val2);
14234 ecode3 = SWIG_AsVal_long(obj2, &val3);
14235 if (!SWIG_IsOK(ecode3)) {
14236 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
14237 }
14238 arg3 = static_cast< long >(val3);
14239 {
14240 PyThreadState* __tstate = wxPyBeginAllowThreads();
14241 result = wxTextCtrl_GetString(arg1,arg2,arg3);
14242 wxPyEndAllowThreads(__tstate);
14243 if (PyErr_Occurred()) SWIG_fail;
14244 }
14245 {
14246 #if wxUSE_UNICODE
14247 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14248 #else
14249 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14250 #endif
14251 }
14252 return resultobj;
14253 fail:
14254 return NULL;
14255 }
14256
14257
14258 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14259 PyObject *resultobj = 0;
14260 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14261 SwigValueWrapper<wxVisualAttributes > result;
14262 int val1 ;
14263 int ecode1 = 0 ;
14264 PyObject * obj0 = 0 ;
14265 char * kwnames[] = {
14266 (char *) "variant", NULL
14267 };
14268
14269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14270 if (obj0) {
14271 ecode1 = SWIG_AsVal_int(obj0, &val1);
14272 if (!SWIG_IsOK(ecode1)) {
14273 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14274 }
14275 arg1 = static_cast< wxWindowVariant >(val1);
14276 }
14277 {
14278 if (!wxPyCheckForApp()) SWIG_fail;
14279 PyThreadState* __tstate = wxPyBeginAllowThreads();
14280 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
14281 wxPyEndAllowThreads(__tstate);
14282 if (PyErr_Occurred()) SWIG_fail;
14283 }
14284 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14285 return resultobj;
14286 fail:
14287 return NULL;
14288 }
14289
14290
14291 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14292 PyObject *obj;
14293 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14294 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
14295 return SWIG_Py_Void();
14296 }
14297
14298 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14299 return SWIG_Python_InitShadowInstance(args);
14300 }
14301
14302 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14303 PyObject *resultobj = 0;
14304 int arg1 ;
14305 wxMouseEvent *arg2 = 0 ;
14306 long arg3 ;
14307 long arg4 ;
14308 wxTextUrlEvent *result = 0 ;
14309 int val1 ;
14310 int ecode1 = 0 ;
14311 void *argp2 = 0 ;
14312 int res2 = 0 ;
14313 long val3 ;
14314 int ecode3 = 0 ;
14315 long val4 ;
14316 int ecode4 = 0 ;
14317 PyObject * obj0 = 0 ;
14318 PyObject * obj1 = 0 ;
14319 PyObject * obj2 = 0 ;
14320 PyObject * obj3 = 0 ;
14321 char * kwnames[] = {
14322 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
14323 };
14324
14325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14326 ecode1 = SWIG_AsVal_int(obj0, &val1);
14327 if (!SWIG_IsOK(ecode1)) {
14328 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14329 }
14330 arg1 = static_cast< int >(val1);
14331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14332 if (!SWIG_IsOK(res2)) {
14333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14334 }
14335 if (!argp2) {
14336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14337 }
14338 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14339 ecode3 = SWIG_AsVal_long(obj2, &val3);
14340 if (!SWIG_IsOK(ecode3)) {
14341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14342 }
14343 arg3 = static_cast< long >(val3);
14344 ecode4 = SWIG_AsVal_long(obj3, &val4);
14345 if (!SWIG_IsOK(ecode4)) {
14346 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14347 }
14348 arg4 = static_cast< long >(val4);
14349 {
14350 PyThreadState* __tstate = wxPyBeginAllowThreads();
14351 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
14355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14356 return resultobj;
14357 fail:
14358 return NULL;
14359 }
14360
14361
14362 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14363 PyObject *resultobj = 0;
14364 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14365 wxMouseEvent *result = 0 ;
14366 void *argp1 = 0 ;
14367 int res1 = 0 ;
14368 PyObject *swig_obj[1] ;
14369
14370 if (!args) SWIG_fail;
14371 swig_obj[0] = args;
14372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14373 if (!SWIG_IsOK(res1)) {
14374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14375 }
14376 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14377 {
14378 PyThreadState* __tstate = wxPyBeginAllowThreads();
14379 {
14380 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14381 result = (wxMouseEvent *) &_result_ref;
14382 }
14383 wxPyEndAllowThreads(__tstate);
14384 if (PyErr_Occurred()) SWIG_fail;
14385 }
14386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14387 return resultobj;
14388 fail:
14389 return NULL;
14390 }
14391
14392
14393 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14394 PyObject *resultobj = 0;
14395 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14396 long result;
14397 void *argp1 = 0 ;
14398 int res1 = 0 ;
14399 PyObject *swig_obj[1] ;
14400
14401 if (!args) SWIG_fail;
14402 swig_obj[0] = args;
14403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14404 if (!SWIG_IsOK(res1)) {
14405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14406 }
14407 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14408 {
14409 PyThreadState* __tstate = wxPyBeginAllowThreads();
14410 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14411 wxPyEndAllowThreads(__tstate);
14412 if (PyErr_Occurred()) SWIG_fail;
14413 }
14414 resultobj = SWIG_From_long(static_cast< long >(result));
14415 return resultobj;
14416 fail:
14417 return NULL;
14418 }
14419
14420
14421 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14422 PyObject *resultobj = 0;
14423 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14424 long result;
14425 void *argp1 = 0 ;
14426 int res1 = 0 ;
14427 PyObject *swig_obj[1] ;
14428
14429 if (!args) SWIG_fail;
14430 swig_obj[0] = args;
14431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14432 if (!SWIG_IsOK(res1)) {
14433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14434 }
14435 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14436 {
14437 PyThreadState* __tstate = wxPyBeginAllowThreads();
14438 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14439 wxPyEndAllowThreads(__tstate);
14440 if (PyErr_Occurred()) SWIG_fail;
14441 }
14442 resultobj = SWIG_From_long(static_cast< long >(result));
14443 return resultobj;
14444 fail:
14445 return NULL;
14446 }
14447
14448
14449 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14450 PyObject *obj;
14451 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14452 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14453 return SWIG_Py_Void();
14454 }
14455
14456 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14457 return SWIG_Python_InitShadowInstance(args);
14458 }
14459
14460 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14461 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14462 return 1;
14463 }
14464
14465
14466 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14467 PyObject *pyobj = 0;
14468
14469 {
14470 #if wxUSE_UNICODE
14471 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14472 #else
14473 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14474 #endif
14475 }
14476 return pyobj;
14477 }
14478
14479
14480 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14481 PyObject *resultobj = 0;
14482 wxWindow *arg1 = (wxWindow *) 0 ;
14483 int arg2 = (int) -1 ;
14484 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14485 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14486 wxSize const &arg4_defvalue = wxDefaultSize ;
14487 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14488 long arg5 = (long) wxSB_HORIZONTAL ;
14489 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14490 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14491 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14492 wxString *arg7 = (wxString *) &arg7_defvalue ;
14493 wxScrollBar *result = 0 ;
14494 void *argp1 = 0 ;
14495 int res1 = 0 ;
14496 int val2 ;
14497 int ecode2 = 0 ;
14498 wxPoint temp3 ;
14499 wxSize temp4 ;
14500 long val5 ;
14501 int ecode5 = 0 ;
14502 void *argp6 = 0 ;
14503 int res6 = 0 ;
14504 bool temp7 = false ;
14505 PyObject * obj0 = 0 ;
14506 PyObject * obj1 = 0 ;
14507 PyObject * obj2 = 0 ;
14508 PyObject * obj3 = 0 ;
14509 PyObject * obj4 = 0 ;
14510 PyObject * obj5 = 0 ;
14511 PyObject * obj6 = 0 ;
14512 char * kwnames[] = {
14513 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14514 };
14515
14516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14518 if (!SWIG_IsOK(res1)) {
14519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14520 }
14521 arg1 = reinterpret_cast< wxWindow * >(argp1);
14522 if (obj1) {
14523 ecode2 = SWIG_AsVal_int(obj1, &val2);
14524 if (!SWIG_IsOK(ecode2)) {
14525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14526 }
14527 arg2 = static_cast< int >(val2);
14528 }
14529 if (obj2) {
14530 {
14531 arg3 = &temp3;
14532 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14533 }
14534 }
14535 if (obj3) {
14536 {
14537 arg4 = &temp4;
14538 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14539 }
14540 }
14541 if (obj4) {
14542 ecode5 = SWIG_AsVal_long(obj4, &val5);
14543 if (!SWIG_IsOK(ecode5)) {
14544 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14545 }
14546 arg5 = static_cast< long >(val5);
14547 }
14548 if (obj5) {
14549 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14550 if (!SWIG_IsOK(res6)) {
14551 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14552 }
14553 if (!argp6) {
14554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14555 }
14556 arg6 = reinterpret_cast< wxValidator * >(argp6);
14557 }
14558 if (obj6) {
14559 {
14560 arg7 = wxString_in_helper(obj6);
14561 if (arg7 == NULL) SWIG_fail;
14562 temp7 = true;
14563 }
14564 }
14565 {
14566 if (!wxPyCheckForApp()) SWIG_fail;
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14569 wxPyEndAllowThreads(__tstate);
14570 if (PyErr_Occurred()) SWIG_fail;
14571 }
14572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14573 {
14574 if (temp7)
14575 delete arg7;
14576 }
14577 return resultobj;
14578 fail:
14579 {
14580 if (temp7)
14581 delete arg7;
14582 }
14583 return NULL;
14584 }
14585
14586
14587 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14588 PyObject *resultobj = 0;
14589 wxScrollBar *result = 0 ;
14590
14591 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14592 {
14593 if (!wxPyCheckForApp()) SWIG_fail;
14594 PyThreadState* __tstate = wxPyBeginAllowThreads();
14595 result = (wxScrollBar *)new wxScrollBar();
14596 wxPyEndAllowThreads(__tstate);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 }
14599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14600 return resultobj;
14601 fail:
14602 return NULL;
14603 }
14604
14605
14606 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14607 PyObject *resultobj = 0;
14608 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14609 wxWindow *arg2 = (wxWindow *) 0 ;
14610 int arg3 = (int) -1 ;
14611 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14612 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14613 wxSize const &arg5_defvalue = wxDefaultSize ;
14614 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14615 long arg6 = (long) wxSB_HORIZONTAL ;
14616 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14617 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14618 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14619 wxString *arg8 = (wxString *) &arg8_defvalue ;
14620 bool result;
14621 void *argp1 = 0 ;
14622 int res1 = 0 ;
14623 void *argp2 = 0 ;
14624 int res2 = 0 ;
14625 int val3 ;
14626 int ecode3 = 0 ;
14627 wxPoint temp4 ;
14628 wxSize temp5 ;
14629 long val6 ;
14630 int ecode6 = 0 ;
14631 void *argp7 = 0 ;
14632 int res7 = 0 ;
14633 bool temp8 = false ;
14634 PyObject * obj0 = 0 ;
14635 PyObject * obj1 = 0 ;
14636 PyObject * obj2 = 0 ;
14637 PyObject * obj3 = 0 ;
14638 PyObject * obj4 = 0 ;
14639 PyObject * obj5 = 0 ;
14640 PyObject * obj6 = 0 ;
14641 PyObject * obj7 = 0 ;
14642 char * kwnames[] = {
14643 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14644 };
14645
14646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14648 if (!SWIG_IsOK(res1)) {
14649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14650 }
14651 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14652 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14653 if (!SWIG_IsOK(res2)) {
14654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14655 }
14656 arg2 = reinterpret_cast< wxWindow * >(argp2);
14657 if (obj2) {
14658 ecode3 = SWIG_AsVal_int(obj2, &val3);
14659 if (!SWIG_IsOK(ecode3)) {
14660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14661 }
14662 arg3 = static_cast< int >(val3);
14663 }
14664 if (obj3) {
14665 {
14666 arg4 = &temp4;
14667 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14668 }
14669 }
14670 if (obj4) {
14671 {
14672 arg5 = &temp5;
14673 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14674 }
14675 }
14676 if (obj5) {
14677 ecode6 = SWIG_AsVal_long(obj5, &val6);
14678 if (!SWIG_IsOK(ecode6)) {
14679 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14680 }
14681 arg6 = static_cast< long >(val6);
14682 }
14683 if (obj6) {
14684 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14685 if (!SWIG_IsOK(res7)) {
14686 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14687 }
14688 if (!argp7) {
14689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14690 }
14691 arg7 = reinterpret_cast< wxValidator * >(argp7);
14692 }
14693 if (obj7) {
14694 {
14695 arg8 = wxString_in_helper(obj7);
14696 if (arg8 == NULL) SWIG_fail;
14697 temp8 = true;
14698 }
14699 }
14700 {
14701 PyThreadState* __tstate = wxPyBeginAllowThreads();
14702 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14703 wxPyEndAllowThreads(__tstate);
14704 if (PyErr_Occurred()) SWIG_fail;
14705 }
14706 {
14707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14708 }
14709 {
14710 if (temp8)
14711 delete arg8;
14712 }
14713 return resultobj;
14714 fail:
14715 {
14716 if (temp8)
14717 delete arg8;
14718 }
14719 return NULL;
14720 }
14721
14722
14723 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14724 PyObject *resultobj = 0;
14725 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14726 int result;
14727 void *argp1 = 0 ;
14728 int res1 = 0 ;
14729 PyObject *swig_obj[1] ;
14730
14731 if (!args) SWIG_fail;
14732 swig_obj[0] = args;
14733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14734 if (!SWIG_IsOK(res1)) {
14735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14736 }
14737 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14738 {
14739 PyThreadState* __tstate = wxPyBeginAllowThreads();
14740 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14741 wxPyEndAllowThreads(__tstate);
14742 if (PyErr_Occurred()) SWIG_fail;
14743 }
14744 resultobj = SWIG_From_int(static_cast< int >(result));
14745 return resultobj;
14746 fail:
14747 return NULL;
14748 }
14749
14750
14751 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14752 PyObject *resultobj = 0;
14753 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14754 int result;
14755 void *argp1 = 0 ;
14756 int res1 = 0 ;
14757 PyObject *swig_obj[1] ;
14758
14759 if (!args) SWIG_fail;
14760 swig_obj[0] = args;
14761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14762 if (!SWIG_IsOK(res1)) {
14763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14764 }
14765 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14766 {
14767 PyThreadState* __tstate = wxPyBeginAllowThreads();
14768 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14769 wxPyEndAllowThreads(__tstate);
14770 if (PyErr_Occurred()) SWIG_fail;
14771 }
14772 resultobj = SWIG_From_int(static_cast< int >(result));
14773 return resultobj;
14774 fail:
14775 return NULL;
14776 }
14777
14778
14779 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14780 PyObject *resultobj = 0;
14781 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14782 int result;
14783 void *argp1 = 0 ;
14784 int res1 = 0 ;
14785 PyObject *swig_obj[1] ;
14786
14787 if (!args) SWIG_fail;
14788 swig_obj[0] = args;
14789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14790 if (!SWIG_IsOK(res1)) {
14791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14792 }
14793 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14794 {
14795 PyThreadState* __tstate = wxPyBeginAllowThreads();
14796 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14797 wxPyEndAllowThreads(__tstate);
14798 if (PyErr_Occurred()) SWIG_fail;
14799 }
14800 resultobj = SWIG_From_int(static_cast< int >(result));
14801 return resultobj;
14802 fail:
14803 return NULL;
14804 }
14805
14806
14807 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14808 PyObject *resultobj = 0;
14809 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14810 int result;
14811 void *argp1 = 0 ;
14812 int res1 = 0 ;
14813 PyObject *swig_obj[1] ;
14814
14815 if (!args) SWIG_fail;
14816 swig_obj[0] = args;
14817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14818 if (!SWIG_IsOK(res1)) {
14819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14820 }
14821 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14822 {
14823 PyThreadState* __tstate = wxPyBeginAllowThreads();
14824 result = (int)((wxScrollBar const *)arg1)->GetRange();
14825 wxPyEndAllowThreads(__tstate);
14826 if (PyErr_Occurred()) SWIG_fail;
14827 }
14828 resultobj = SWIG_From_int(static_cast< int >(result));
14829 return resultobj;
14830 fail:
14831 return NULL;
14832 }
14833
14834
14835 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14836 PyObject *resultobj = 0;
14837 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14838 bool result;
14839 void *argp1 = 0 ;
14840 int res1 = 0 ;
14841 PyObject *swig_obj[1] ;
14842
14843 if (!args) SWIG_fail;
14844 swig_obj[0] = args;
14845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14846 if (!SWIG_IsOK(res1)) {
14847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14848 }
14849 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14850 {
14851 PyThreadState* __tstate = wxPyBeginAllowThreads();
14852 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 {
14857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14858 }
14859 return resultobj;
14860 fail:
14861 return NULL;
14862 }
14863
14864
14865 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14866 PyObject *resultobj = 0;
14867 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14868 int arg2 ;
14869 void *argp1 = 0 ;
14870 int res1 = 0 ;
14871 int val2 ;
14872 int ecode2 = 0 ;
14873 PyObject * obj0 = 0 ;
14874 PyObject * obj1 = 0 ;
14875 char * kwnames[] = {
14876 (char *) "self",(char *) "viewStart", NULL
14877 };
14878
14879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14881 if (!SWIG_IsOK(res1)) {
14882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14883 }
14884 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14885 ecode2 = SWIG_AsVal_int(obj1, &val2);
14886 if (!SWIG_IsOK(ecode2)) {
14887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14888 }
14889 arg2 = static_cast< int >(val2);
14890 {
14891 PyThreadState* __tstate = wxPyBeginAllowThreads();
14892 (arg1)->SetThumbPosition(arg2);
14893 wxPyEndAllowThreads(__tstate);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 }
14896 resultobj = SWIG_Py_Void();
14897 return resultobj;
14898 fail:
14899 return NULL;
14900 }
14901
14902
14903 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14904 PyObject *resultobj = 0;
14905 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14906 SwigValueWrapper<wxVisualAttributes > result;
14907 int val1 ;
14908 int ecode1 = 0 ;
14909 PyObject * obj0 = 0 ;
14910 char * kwnames[] = {
14911 (char *) "variant", NULL
14912 };
14913
14914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14915 if (obj0) {
14916 ecode1 = SWIG_AsVal_int(obj0, &val1);
14917 if (!SWIG_IsOK(ecode1)) {
14918 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14919 }
14920 arg1 = static_cast< wxWindowVariant >(val1);
14921 }
14922 {
14923 if (!wxPyCheckForApp()) SWIG_fail;
14924 PyThreadState* __tstate = wxPyBeginAllowThreads();
14925 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14926 wxPyEndAllowThreads(__tstate);
14927 if (PyErr_Occurred()) SWIG_fail;
14928 }
14929 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14930 return resultobj;
14931 fail:
14932 return NULL;
14933 }
14934
14935
14936 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14937 PyObject *obj;
14938 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14939 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14940 return SWIG_Py_Void();
14941 }
14942
14943 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14944 return SWIG_Python_InitShadowInstance(args);
14945 }
14946
14947 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14948 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14949 return 1;
14950 }
14951
14952
14953 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14954 PyObject *pyobj = 0;
14955
14956 {
14957 #if wxUSE_UNICODE
14958 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14959 #else
14960 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14961 #endif
14962 }
14963 return pyobj;
14964 }
14965
14966
14967 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14968 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14969 return 1;
14970 }
14971
14972
14973 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14974 PyObject *pyobj = 0;
14975
14976 {
14977 #if wxUSE_UNICODE
14978 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14979 #else
14980 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14981 #endif
14982 }
14983 return pyobj;
14984 }
14985
14986
14987 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14988 PyObject *resultobj = 0;
14989 wxWindow *arg1 = (wxWindow *) 0 ;
14990 int arg2 = (int) -1 ;
14991 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14992 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14993 wxSize const &arg4_defvalue = wxDefaultSize ;
14994 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14995 long arg5 = (long) wxSP_HORIZONTAL ;
14996 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14997 wxString *arg6 = (wxString *) &arg6_defvalue ;
14998 wxSpinButton *result = 0 ;
14999 void *argp1 = 0 ;
15000 int res1 = 0 ;
15001 int val2 ;
15002 int ecode2 = 0 ;
15003 wxPoint temp3 ;
15004 wxSize temp4 ;
15005 long val5 ;
15006 int ecode5 = 0 ;
15007 bool temp6 = false ;
15008 PyObject * obj0 = 0 ;
15009 PyObject * obj1 = 0 ;
15010 PyObject * obj2 = 0 ;
15011 PyObject * obj3 = 0 ;
15012 PyObject * obj4 = 0 ;
15013 PyObject * obj5 = 0 ;
15014 char * kwnames[] = {
15015 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15016 };
15017
15018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15020 if (!SWIG_IsOK(res1)) {
15021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
15022 }
15023 arg1 = reinterpret_cast< wxWindow * >(argp1);
15024 if (obj1) {
15025 ecode2 = SWIG_AsVal_int(obj1, &val2);
15026 if (!SWIG_IsOK(ecode2)) {
15027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
15028 }
15029 arg2 = static_cast< int >(val2);
15030 }
15031 if (obj2) {
15032 {
15033 arg3 = &temp3;
15034 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15035 }
15036 }
15037 if (obj3) {
15038 {
15039 arg4 = &temp4;
15040 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15041 }
15042 }
15043 if (obj4) {
15044 ecode5 = SWIG_AsVal_long(obj4, &val5);
15045 if (!SWIG_IsOK(ecode5)) {
15046 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
15047 }
15048 arg5 = static_cast< long >(val5);
15049 }
15050 if (obj5) {
15051 {
15052 arg6 = wxString_in_helper(obj5);
15053 if (arg6 == NULL) SWIG_fail;
15054 temp6 = true;
15055 }
15056 }
15057 {
15058 if (!wxPyCheckForApp()) SWIG_fail;
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
15065 {
15066 if (temp6)
15067 delete arg6;
15068 }
15069 return resultobj;
15070 fail:
15071 {
15072 if (temp6)
15073 delete arg6;
15074 }
15075 return NULL;
15076 }
15077
15078
15079 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15080 PyObject *resultobj = 0;
15081 wxSpinButton *result = 0 ;
15082
15083 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
15084 {
15085 if (!wxPyCheckForApp()) SWIG_fail;
15086 PyThreadState* __tstate = wxPyBeginAllowThreads();
15087 result = (wxSpinButton *)new wxSpinButton();
15088 wxPyEndAllowThreads(__tstate);
15089 if (PyErr_Occurred()) SWIG_fail;
15090 }
15091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
15092 return resultobj;
15093 fail:
15094 return NULL;
15095 }
15096
15097
15098 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15099 PyObject *resultobj = 0;
15100 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15101 wxWindow *arg2 = (wxWindow *) 0 ;
15102 int arg3 = (int) -1 ;
15103 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15104 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15105 wxSize const &arg5_defvalue = wxDefaultSize ;
15106 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15107 long arg6 = (long) wxSP_HORIZONTAL ;
15108 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
15109 wxString *arg7 = (wxString *) &arg7_defvalue ;
15110 bool result;
15111 void *argp1 = 0 ;
15112 int res1 = 0 ;
15113 void *argp2 = 0 ;
15114 int res2 = 0 ;
15115 int val3 ;
15116 int ecode3 = 0 ;
15117 wxPoint temp4 ;
15118 wxSize temp5 ;
15119 long val6 ;
15120 int ecode6 = 0 ;
15121 bool temp7 = false ;
15122 PyObject * obj0 = 0 ;
15123 PyObject * obj1 = 0 ;
15124 PyObject * obj2 = 0 ;
15125 PyObject * obj3 = 0 ;
15126 PyObject * obj4 = 0 ;
15127 PyObject * obj5 = 0 ;
15128 PyObject * obj6 = 0 ;
15129 char * kwnames[] = {
15130 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15131 };
15132
15133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15135 if (!SWIG_IsOK(res1)) {
15136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15137 }
15138 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15139 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15140 if (!SWIG_IsOK(res2)) {
15141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15142 }
15143 arg2 = reinterpret_cast< wxWindow * >(argp2);
15144 if (obj2) {
15145 ecode3 = SWIG_AsVal_int(obj2, &val3);
15146 if (!SWIG_IsOK(ecode3)) {
15147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
15148 }
15149 arg3 = static_cast< int >(val3);
15150 }
15151 if (obj3) {
15152 {
15153 arg4 = &temp4;
15154 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15155 }
15156 }
15157 if (obj4) {
15158 {
15159 arg5 = &temp5;
15160 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15161 }
15162 }
15163 if (obj5) {
15164 ecode6 = SWIG_AsVal_long(obj5, &val6);
15165 if (!SWIG_IsOK(ecode6)) {
15166 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
15167 }
15168 arg6 = static_cast< long >(val6);
15169 }
15170 if (obj6) {
15171 {
15172 arg7 = wxString_in_helper(obj6);
15173 if (arg7 == NULL) SWIG_fail;
15174 temp7 = true;
15175 }
15176 }
15177 {
15178 PyThreadState* __tstate = wxPyBeginAllowThreads();
15179 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15180 wxPyEndAllowThreads(__tstate);
15181 if (PyErr_Occurred()) SWIG_fail;
15182 }
15183 {
15184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15185 }
15186 {
15187 if (temp7)
15188 delete arg7;
15189 }
15190 return resultobj;
15191 fail:
15192 {
15193 if (temp7)
15194 delete arg7;
15195 }
15196 return NULL;
15197 }
15198
15199
15200 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15201 PyObject *resultobj = 0;
15202 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15203 int result;
15204 void *argp1 = 0 ;
15205 int res1 = 0 ;
15206 PyObject *swig_obj[1] ;
15207
15208 if (!args) SWIG_fail;
15209 swig_obj[0] = args;
15210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15211 if (!SWIG_IsOK(res1)) {
15212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15213 }
15214 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15215 {
15216 PyThreadState* __tstate = wxPyBeginAllowThreads();
15217 result = (int)((wxSpinButton const *)arg1)->GetValue();
15218 wxPyEndAllowThreads(__tstate);
15219 if (PyErr_Occurred()) SWIG_fail;
15220 }
15221 resultobj = SWIG_From_int(static_cast< int >(result));
15222 return resultobj;
15223 fail:
15224 return NULL;
15225 }
15226
15227
15228 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15229 PyObject *resultobj = 0;
15230 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15231 int result;
15232 void *argp1 = 0 ;
15233 int res1 = 0 ;
15234 PyObject *swig_obj[1] ;
15235
15236 if (!args) SWIG_fail;
15237 swig_obj[0] = args;
15238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15239 if (!SWIG_IsOK(res1)) {
15240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15241 }
15242 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15243 {
15244 PyThreadState* __tstate = wxPyBeginAllowThreads();
15245 result = (int)((wxSpinButton const *)arg1)->GetMin();
15246 wxPyEndAllowThreads(__tstate);
15247 if (PyErr_Occurred()) SWIG_fail;
15248 }
15249 resultobj = SWIG_From_int(static_cast< int >(result));
15250 return resultobj;
15251 fail:
15252 return NULL;
15253 }
15254
15255
15256 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15257 PyObject *resultobj = 0;
15258 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15259 int result;
15260 void *argp1 = 0 ;
15261 int res1 = 0 ;
15262 PyObject *swig_obj[1] ;
15263
15264 if (!args) SWIG_fail;
15265 swig_obj[0] = args;
15266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15267 if (!SWIG_IsOK(res1)) {
15268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15269 }
15270 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15271 {
15272 PyThreadState* __tstate = wxPyBeginAllowThreads();
15273 result = (int)((wxSpinButton const *)arg1)->GetMax();
15274 wxPyEndAllowThreads(__tstate);
15275 if (PyErr_Occurred()) SWIG_fail;
15276 }
15277 resultobj = SWIG_From_int(static_cast< int >(result));
15278 return resultobj;
15279 fail:
15280 return NULL;
15281 }
15282
15283
15284 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15285 PyObject *resultobj = 0;
15286 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15287 int arg2 ;
15288 void *argp1 = 0 ;
15289 int res1 = 0 ;
15290 int val2 ;
15291 int ecode2 = 0 ;
15292 PyObject * obj0 = 0 ;
15293 PyObject * obj1 = 0 ;
15294 char * kwnames[] = {
15295 (char *) "self",(char *) "val", NULL
15296 };
15297
15298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15300 if (!SWIG_IsOK(res1)) {
15301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15302 }
15303 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15304 ecode2 = SWIG_AsVal_int(obj1, &val2);
15305 if (!SWIG_IsOK(ecode2)) {
15306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
15307 }
15308 arg2 = static_cast< int >(val2);
15309 {
15310 PyThreadState* __tstate = wxPyBeginAllowThreads();
15311 (arg1)->SetValue(arg2);
15312 wxPyEndAllowThreads(__tstate);
15313 if (PyErr_Occurred()) SWIG_fail;
15314 }
15315 resultobj = SWIG_Py_Void();
15316 return resultobj;
15317 fail:
15318 return NULL;
15319 }
15320
15321
15322 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15323 PyObject *resultobj = 0;
15324 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15325 int arg2 ;
15326 void *argp1 = 0 ;
15327 int res1 = 0 ;
15328 int val2 ;
15329 int ecode2 = 0 ;
15330 PyObject * obj0 = 0 ;
15331 PyObject * obj1 = 0 ;
15332 char * kwnames[] = {
15333 (char *) "self",(char *) "minVal", NULL
15334 };
15335
15336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15338 if (!SWIG_IsOK(res1)) {
15339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15340 }
15341 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15342 ecode2 = SWIG_AsVal_int(obj1, &val2);
15343 if (!SWIG_IsOK(ecode2)) {
15344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15345 }
15346 arg2 = static_cast< int >(val2);
15347 {
15348 PyThreadState* __tstate = wxPyBeginAllowThreads();
15349 (arg1)->SetMin(arg2);
15350 wxPyEndAllowThreads(__tstate);
15351 if (PyErr_Occurred()) SWIG_fail;
15352 }
15353 resultobj = SWIG_Py_Void();
15354 return resultobj;
15355 fail:
15356 return NULL;
15357 }
15358
15359
15360 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15361 PyObject *resultobj = 0;
15362 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15363 int arg2 ;
15364 void *argp1 = 0 ;
15365 int res1 = 0 ;
15366 int val2 ;
15367 int ecode2 = 0 ;
15368 PyObject * obj0 = 0 ;
15369 PyObject * obj1 = 0 ;
15370 char * kwnames[] = {
15371 (char *) "self",(char *) "maxVal", NULL
15372 };
15373
15374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15376 if (!SWIG_IsOK(res1)) {
15377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15378 }
15379 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15380 ecode2 = SWIG_AsVal_int(obj1, &val2);
15381 if (!SWIG_IsOK(ecode2)) {
15382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15383 }
15384 arg2 = static_cast< int >(val2);
15385 {
15386 PyThreadState* __tstate = wxPyBeginAllowThreads();
15387 (arg1)->SetMax(arg2);
15388 wxPyEndAllowThreads(__tstate);
15389 if (PyErr_Occurred()) SWIG_fail;
15390 }
15391 resultobj = SWIG_Py_Void();
15392 return resultobj;
15393 fail:
15394 return NULL;
15395 }
15396
15397
15398 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15399 PyObject *resultobj = 0;
15400 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15401 int arg2 ;
15402 int arg3 ;
15403 void *argp1 = 0 ;
15404 int res1 = 0 ;
15405 int val2 ;
15406 int ecode2 = 0 ;
15407 int val3 ;
15408 int ecode3 = 0 ;
15409 PyObject * obj0 = 0 ;
15410 PyObject * obj1 = 0 ;
15411 PyObject * obj2 = 0 ;
15412 char * kwnames[] = {
15413 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15414 };
15415
15416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15418 if (!SWIG_IsOK(res1)) {
15419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15420 }
15421 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15422 ecode2 = SWIG_AsVal_int(obj1, &val2);
15423 if (!SWIG_IsOK(ecode2)) {
15424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15425 }
15426 arg2 = static_cast< int >(val2);
15427 ecode3 = SWIG_AsVal_int(obj2, &val3);
15428 if (!SWIG_IsOK(ecode3)) {
15429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15430 }
15431 arg3 = static_cast< int >(val3);
15432 {
15433 PyThreadState* __tstate = wxPyBeginAllowThreads();
15434 (arg1)->SetRange(arg2,arg3);
15435 wxPyEndAllowThreads(__tstate);
15436 if (PyErr_Occurred()) SWIG_fail;
15437 }
15438 resultobj = SWIG_Py_Void();
15439 return resultobj;
15440 fail:
15441 return NULL;
15442 }
15443
15444
15445 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15446 PyObject *resultobj = 0;
15447 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15448 bool result;
15449 void *argp1 = 0 ;
15450 int res1 = 0 ;
15451 PyObject *swig_obj[1] ;
15452
15453 if (!args) SWIG_fail;
15454 swig_obj[0] = args;
15455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15456 if (!SWIG_IsOK(res1)) {
15457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15458 }
15459 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15460 {
15461 PyThreadState* __tstate = wxPyBeginAllowThreads();
15462 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15463 wxPyEndAllowThreads(__tstate);
15464 if (PyErr_Occurred()) SWIG_fail;
15465 }
15466 {
15467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15468 }
15469 return resultobj;
15470 fail:
15471 return NULL;
15472 }
15473
15474
15475 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15476 PyObject *resultobj = 0;
15477 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15478 SwigValueWrapper<wxVisualAttributes > result;
15479 int val1 ;
15480 int ecode1 = 0 ;
15481 PyObject * obj0 = 0 ;
15482 char * kwnames[] = {
15483 (char *) "variant", NULL
15484 };
15485
15486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15487 if (obj0) {
15488 ecode1 = SWIG_AsVal_int(obj0, &val1);
15489 if (!SWIG_IsOK(ecode1)) {
15490 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15491 }
15492 arg1 = static_cast< wxWindowVariant >(val1);
15493 }
15494 {
15495 if (!wxPyCheckForApp()) SWIG_fail;
15496 PyThreadState* __tstate = wxPyBeginAllowThreads();
15497 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15498 wxPyEndAllowThreads(__tstate);
15499 if (PyErr_Occurred()) SWIG_fail;
15500 }
15501 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15502 return resultobj;
15503 fail:
15504 return NULL;
15505 }
15506
15507
15508 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15509 PyObject *obj;
15510 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15511 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15512 return SWIG_Py_Void();
15513 }
15514
15515 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15516 return SWIG_Python_InitShadowInstance(args);
15517 }
15518
15519 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15520 PyObject *resultobj = 0;
15521 wxWindow *arg1 = (wxWindow *) 0 ;
15522 int arg2 = (int) -1 ;
15523 wxString const &arg3_defvalue = wxPyEmptyString ;
15524 wxString *arg3 = (wxString *) &arg3_defvalue ;
15525 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15526 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15527 wxSize const &arg5_defvalue = wxDefaultSize ;
15528 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15529 long arg6 = (long) wxSP_ARROW_KEYS ;
15530 int arg7 = (int) 0 ;
15531 int arg8 = (int) 100 ;
15532 int arg9 = (int) 0 ;
15533 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15534 wxString *arg10 = (wxString *) &arg10_defvalue ;
15535 wxSpinCtrl *result = 0 ;
15536 void *argp1 = 0 ;
15537 int res1 = 0 ;
15538 int val2 ;
15539 int ecode2 = 0 ;
15540 bool temp3 = false ;
15541 wxPoint temp4 ;
15542 wxSize temp5 ;
15543 long val6 ;
15544 int ecode6 = 0 ;
15545 int val7 ;
15546 int ecode7 = 0 ;
15547 int val8 ;
15548 int ecode8 = 0 ;
15549 int val9 ;
15550 int ecode9 = 0 ;
15551 bool temp10 = false ;
15552 PyObject * obj0 = 0 ;
15553 PyObject * obj1 = 0 ;
15554 PyObject * obj2 = 0 ;
15555 PyObject * obj3 = 0 ;
15556 PyObject * obj4 = 0 ;
15557 PyObject * obj5 = 0 ;
15558 PyObject * obj6 = 0 ;
15559 PyObject * obj7 = 0 ;
15560 PyObject * obj8 = 0 ;
15561 PyObject * obj9 = 0 ;
15562 char * kwnames[] = {
15563 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15564 };
15565
15566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15568 if (!SWIG_IsOK(res1)) {
15569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15570 }
15571 arg1 = reinterpret_cast< wxWindow * >(argp1);
15572 if (obj1) {
15573 ecode2 = SWIG_AsVal_int(obj1, &val2);
15574 if (!SWIG_IsOK(ecode2)) {
15575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15576 }
15577 arg2 = static_cast< int >(val2);
15578 }
15579 if (obj2) {
15580 {
15581 arg3 = wxString_in_helper(obj2);
15582 if (arg3 == NULL) SWIG_fail;
15583 temp3 = true;
15584 }
15585 }
15586 if (obj3) {
15587 {
15588 arg4 = &temp4;
15589 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15590 }
15591 }
15592 if (obj4) {
15593 {
15594 arg5 = &temp5;
15595 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15596 }
15597 }
15598 if (obj5) {
15599 ecode6 = SWIG_AsVal_long(obj5, &val6);
15600 if (!SWIG_IsOK(ecode6)) {
15601 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15602 }
15603 arg6 = static_cast< long >(val6);
15604 }
15605 if (obj6) {
15606 ecode7 = SWIG_AsVal_int(obj6, &val7);
15607 if (!SWIG_IsOK(ecode7)) {
15608 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15609 }
15610 arg7 = static_cast< int >(val7);
15611 }
15612 if (obj7) {
15613 ecode8 = SWIG_AsVal_int(obj7, &val8);
15614 if (!SWIG_IsOK(ecode8)) {
15615 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15616 }
15617 arg8 = static_cast< int >(val8);
15618 }
15619 if (obj8) {
15620 ecode9 = SWIG_AsVal_int(obj8, &val9);
15621 if (!SWIG_IsOK(ecode9)) {
15622 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15623 }
15624 arg9 = static_cast< int >(val9);
15625 }
15626 if (obj9) {
15627 {
15628 arg10 = wxString_in_helper(obj9);
15629 if (arg10 == NULL) SWIG_fail;
15630 temp10 = true;
15631 }
15632 }
15633 {
15634 if (!wxPyCheckForApp()) SWIG_fail;
15635 PyThreadState* __tstate = wxPyBeginAllowThreads();
15636 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15637 wxPyEndAllowThreads(__tstate);
15638 if (PyErr_Occurred()) SWIG_fail;
15639 }
15640 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15641 {
15642 if (temp3)
15643 delete arg3;
15644 }
15645 {
15646 if (temp10)
15647 delete arg10;
15648 }
15649 return resultobj;
15650 fail:
15651 {
15652 if (temp3)
15653 delete arg3;
15654 }
15655 {
15656 if (temp10)
15657 delete arg10;
15658 }
15659 return NULL;
15660 }
15661
15662
15663 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15664 PyObject *resultobj = 0;
15665 wxSpinCtrl *result = 0 ;
15666
15667 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15668 {
15669 if (!wxPyCheckForApp()) SWIG_fail;
15670 PyThreadState* __tstate = wxPyBeginAllowThreads();
15671 result = (wxSpinCtrl *)new wxSpinCtrl();
15672 wxPyEndAllowThreads(__tstate);
15673 if (PyErr_Occurred()) SWIG_fail;
15674 }
15675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15676 return resultobj;
15677 fail:
15678 return NULL;
15679 }
15680
15681
15682 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15683 PyObject *resultobj = 0;
15684 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15685 wxWindow *arg2 = (wxWindow *) 0 ;
15686 int arg3 = (int) -1 ;
15687 wxString const &arg4_defvalue = wxPyEmptyString ;
15688 wxString *arg4 = (wxString *) &arg4_defvalue ;
15689 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15690 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15691 wxSize const &arg6_defvalue = wxDefaultSize ;
15692 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15693 long arg7 = (long) wxSP_ARROW_KEYS ;
15694 int arg8 = (int) 0 ;
15695 int arg9 = (int) 100 ;
15696 int arg10 = (int) 0 ;
15697 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15698 wxString *arg11 = (wxString *) &arg11_defvalue ;
15699 bool result;
15700 void *argp1 = 0 ;
15701 int res1 = 0 ;
15702 void *argp2 = 0 ;
15703 int res2 = 0 ;
15704 int val3 ;
15705 int ecode3 = 0 ;
15706 bool temp4 = false ;
15707 wxPoint temp5 ;
15708 wxSize temp6 ;
15709 long val7 ;
15710 int ecode7 = 0 ;
15711 int val8 ;
15712 int ecode8 = 0 ;
15713 int val9 ;
15714 int ecode9 = 0 ;
15715 int val10 ;
15716 int ecode10 = 0 ;
15717 bool temp11 = false ;
15718 PyObject * obj0 = 0 ;
15719 PyObject * obj1 = 0 ;
15720 PyObject * obj2 = 0 ;
15721 PyObject * obj3 = 0 ;
15722 PyObject * obj4 = 0 ;
15723 PyObject * obj5 = 0 ;
15724 PyObject * obj6 = 0 ;
15725 PyObject * obj7 = 0 ;
15726 PyObject * obj8 = 0 ;
15727 PyObject * obj9 = 0 ;
15728 PyObject * obj10 = 0 ;
15729 char * kwnames[] = {
15730 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15731 };
15732
15733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15735 if (!SWIG_IsOK(res1)) {
15736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15737 }
15738 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15739 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15740 if (!SWIG_IsOK(res2)) {
15741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15742 }
15743 arg2 = reinterpret_cast< wxWindow * >(argp2);
15744 if (obj2) {
15745 ecode3 = SWIG_AsVal_int(obj2, &val3);
15746 if (!SWIG_IsOK(ecode3)) {
15747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15748 }
15749 arg3 = static_cast< int >(val3);
15750 }
15751 if (obj3) {
15752 {
15753 arg4 = wxString_in_helper(obj3);
15754 if (arg4 == NULL) SWIG_fail;
15755 temp4 = true;
15756 }
15757 }
15758 if (obj4) {
15759 {
15760 arg5 = &temp5;
15761 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15762 }
15763 }
15764 if (obj5) {
15765 {
15766 arg6 = &temp6;
15767 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15768 }
15769 }
15770 if (obj6) {
15771 ecode7 = SWIG_AsVal_long(obj6, &val7);
15772 if (!SWIG_IsOK(ecode7)) {
15773 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15774 }
15775 arg7 = static_cast< long >(val7);
15776 }
15777 if (obj7) {
15778 ecode8 = SWIG_AsVal_int(obj7, &val8);
15779 if (!SWIG_IsOK(ecode8)) {
15780 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15781 }
15782 arg8 = static_cast< int >(val8);
15783 }
15784 if (obj8) {
15785 ecode9 = SWIG_AsVal_int(obj8, &val9);
15786 if (!SWIG_IsOK(ecode9)) {
15787 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15788 }
15789 arg9 = static_cast< int >(val9);
15790 }
15791 if (obj9) {
15792 ecode10 = SWIG_AsVal_int(obj9, &val10);
15793 if (!SWIG_IsOK(ecode10)) {
15794 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15795 }
15796 arg10 = static_cast< int >(val10);
15797 }
15798 if (obj10) {
15799 {
15800 arg11 = wxString_in_helper(obj10);
15801 if (arg11 == NULL) SWIG_fail;
15802 temp11 = true;
15803 }
15804 }
15805 {
15806 PyThreadState* __tstate = wxPyBeginAllowThreads();
15807 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15808 wxPyEndAllowThreads(__tstate);
15809 if (PyErr_Occurred()) SWIG_fail;
15810 }
15811 {
15812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15813 }
15814 {
15815 if (temp4)
15816 delete arg4;
15817 }
15818 {
15819 if (temp11)
15820 delete arg11;
15821 }
15822 return resultobj;
15823 fail:
15824 {
15825 if (temp4)
15826 delete arg4;
15827 }
15828 {
15829 if (temp11)
15830 delete arg11;
15831 }
15832 return NULL;
15833 }
15834
15835
15836 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15837 PyObject *resultobj = 0;
15838 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15839 int result;
15840 void *argp1 = 0 ;
15841 int res1 = 0 ;
15842 PyObject *swig_obj[1] ;
15843
15844 if (!args) SWIG_fail;
15845 swig_obj[0] = args;
15846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15847 if (!SWIG_IsOK(res1)) {
15848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15849 }
15850 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15851 {
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 resultobj = SWIG_From_int(static_cast< int >(result));
15858 return resultobj;
15859 fail:
15860 return NULL;
15861 }
15862
15863
15864 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15865 PyObject *resultobj = 0;
15866 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15867 int arg2 ;
15868 void *argp1 = 0 ;
15869 int res1 = 0 ;
15870 int val2 ;
15871 int ecode2 = 0 ;
15872 PyObject * obj0 = 0 ;
15873 PyObject * obj1 = 0 ;
15874 char * kwnames[] = {
15875 (char *) "self",(char *) "value", NULL
15876 };
15877
15878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15880 if (!SWIG_IsOK(res1)) {
15881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15882 }
15883 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15884 ecode2 = SWIG_AsVal_int(obj1, &val2);
15885 if (!SWIG_IsOK(ecode2)) {
15886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15887 }
15888 arg2 = static_cast< int >(val2);
15889 {
15890 PyThreadState* __tstate = wxPyBeginAllowThreads();
15891 (arg1)->SetValue(arg2);
15892 wxPyEndAllowThreads(__tstate);
15893 if (PyErr_Occurred()) SWIG_fail;
15894 }
15895 resultobj = SWIG_Py_Void();
15896 return resultobj;
15897 fail:
15898 return NULL;
15899 }
15900
15901
15902 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15903 PyObject *resultobj = 0;
15904 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15905 wxString *arg2 = 0 ;
15906 void *argp1 = 0 ;
15907 int res1 = 0 ;
15908 bool temp2 = false ;
15909 PyObject * obj0 = 0 ;
15910 PyObject * obj1 = 0 ;
15911 char * kwnames[] = {
15912 (char *) "self",(char *) "text", NULL
15913 };
15914
15915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15917 if (!SWIG_IsOK(res1)) {
15918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15919 }
15920 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15921 {
15922 arg2 = wxString_in_helper(obj1);
15923 if (arg2 == NULL) SWIG_fail;
15924 temp2 = true;
15925 }
15926 {
15927 PyThreadState* __tstate = wxPyBeginAllowThreads();
15928 (arg1)->SetValue((wxString const &)*arg2);
15929 wxPyEndAllowThreads(__tstate);
15930 if (PyErr_Occurred()) SWIG_fail;
15931 }
15932 resultobj = SWIG_Py_Void();
15933 {
15934 if (temp2)
15935 delete arg2;
15936 }
15937 return resultobj;
15938 fail:
15939 {
15940 if (temp2)
15941 delete arg2;
15942 }
15943 return NULL;
15944 }
15945
15946
15947 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15948 PyObject *resultobj = 0;
15949 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15950 int arg2 ;
15951 int arg3 ;
15952 void *argp1 = 0 ;
15953 int res1 = 0 ;
15954 int val2 ;
15955 int ecode2 = 0 ;
15956 int val3 ;
15957 int ecode3 = 0 ;
15958 PyObject * obj0 = 0 ;
15959 PyObject * obj1 = 0 ;
15960 PyObject * obj2 = 0 ;
15961 char * kwnames[] = {
15962 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15963 };
15964
15965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15967 if (!SWIG_IsOK(res1)) {
15968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15969 }
15970 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15971 ecode2 = SWIG_AsVal_int(obj1, &val2);
15972 if (!SWIG_IsOK(ecode2)) {
15973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15974 }
15975 arg2 = static_cast< int >(val2);
15976 ecode3 = SWIG_AsVal_int(obj2, &val3);
15977 if (!SWIG_IsOK(ecode3)) {
15978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15979 }
15980 arg3 = static_cast< int >(val3);
15981 {
15982 PyThreadState* __tstate = wxPyBeginAllowThreads();
15983 (arg1)->SetRange(arg2,arg3);
15984 wxPyEndAllowThreads(__tstate);
15985 if (PyErr_Occurred()) SWIG_fail;
15986 }
15987 resultobj = SWIG_Py_Void();
15988 return resultobj;
15989 fail:
15990 return NULL;
15991 }
15992
15993
15994 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15995 PyObject *resultobj = 0;
15996 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15997 int result;
15998 void *argp1 = 0 ;
15999 int res1 = 0 ;
16000 PyObject *swig_obj[1] ;
16001
16002 if (!args) SWIG_fail;
16003 swig_obj[0] = args;
16004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
16005 if (!SWIG_IsOK(res1)) {
16006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
16007 }
16008 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
16009 {
16010 PyThreadState* __tstate = wxPyBeginAllowThreads();
16011 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
16012 wxPyEndAllowThreads(__tstate);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 }
16015 resultobj = SWIG_From_int(static_cast< int >(result));
16016 return resultobj;
16017 fail:
16018 return NULL;
16019 }
16020
16021
16022 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16023 PyObject *resultobj = 0;
16024 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
16025 int result;
16026 void *argp1 = 0 ;
16027 int res1 = 0 ;
16028 PyObject *swig_obj[1] ;
16029
16030 if (!args) SWIG_fail;
16031 swig_obj[0] = args;
16032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
16033 if (!SWIG_IsOK(res1)) {
16034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
16035 }
16036 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
16037 {
16038 PyThreadState* __tstate = wxPyBeginAllowThreads();
16039 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
16040 wxPyEndAllowThreads(__tstate);
16041 if (PyErr_Occurred()) SWIG_fail;
16042 }
16043 resultobj = SWIG_From_int(static_cast< int >(result));
16044 return resultobj;
16045 fail:
16046 return NULL;
16047 }
16048
16049
16050 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16051 PyObject *resultobj = 0;
16052 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
16053 long arg2 ;
16054 long arg3 ;
16055 void *argp1 = 0 ;
16056 int res1 = 0 ;
16057 long val2 ;
16058 int ecode2 = 0 ;
16059 long val3 ;
16060 int ecode3 = 0 ;
16061 PyObject * obj0 = 0 ;
16062 PyObject * obj1 = 0 ;
16063 PyObject * obj2 = 0 ;
16064 char * kwnames[] = {
16065 (char *) "self",(char *) "from",(char *) "to", NULL
16066 };
16067
16068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
16070 if (!SWIG_IsOK(res1)) {
16071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
16072 }
16073 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
16074 ecode2 = SWIG_AsVal_long(obj1, &val2);
16075 if (!SWIG_IsOK(ecode2)) {
16076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
16077 }
16078 arg2 = static_cast< long >(val2);
16079 ecode3 = SWIG_AsVal_long(obj2, &val3);
16080 if (!SWIG_IsOK(ecode3)) {
16081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
16082 }
16083 arg3 = static_cast< long >(val3);
16084 {
16085 PyThreadState* __tstate = wxPyBeginAllowThreads();
16086 (arg1)->SetSelection(arg2,arg3);
16087 wxPyEndAllowThreads(__tstate);
16088 if (PyErr_Occurred()) SWIG_fail;
16089 }
16090 resultobj = SWIG_Py_Void();
16091 return resultobj;
16092 fail:
16093 return NULL;
16094 }
16095
16096
16097 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16098 PyObject *resultobj = 0;
16099 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16100 SwigValueWrapper<wxVisualAttributes > result;
16101 int val1 ;
16102 int ecode1 = 0 ;
16103 PyObject * obj0 = 0 ;
16104 char * kwnames[] = {
16105 (char *) "variant", NULL
16106 };
16107
16108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16109 if (obj0) {
16110 ecode1 = SWIG_AsVal_int(obj0, &val1);
16111 if (!SWIG_IsOK(ecode1)) {
16112 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16113 }
16114 arg1 = static_cast< wxWindowVariant >(val1);
16115 }
16116 {
16117 if (!wxPyCheckForApp()) SWIG_fail;
16118 PyThreadState* __tstate = wxPyBeginAllowThreads();
16119 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
16120 wxPyEndAllowThreads(__tstate);
16121 if (PyErr_Occurred()) SWIG_fail;
16122 }
16123 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16124 return resultobj;
16125 fail:
16126 return NULL;
16127 }
16128
16129
16130 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16131 PyObject *obj;
16132 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16133 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
16134 return SWIG_Py_Void();
16135 }
16136
16137 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16138 return SWIG_Python_InitShadowInstance(args);
16139 }
16140
16141 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16142 PyObject *resultobj = 0;
16143 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16144 int arg2 = (int) 0 ;
16145 wxSpinEvent *result = 0 ;
16146 int val1 ;
16147 int ecode1 = 0 ;
16148 int val2 ;
16149 int ecode2 = 0 ;
16150 PyObject * obj0 = 0 ;
16151 PyObject * obj1 = 0 ;
16152 char * kwnames[] = {
16153 (char *) "commandType",(char *) "winid", NULL
16154 };
16155
16156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
16157 if (obj0) {
16158 ecode1 = SWIG_AsVal_int(obj0, &val1);
16159 if (!SWIG_IsOK(ecode1)) {
16160 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
16161 }
16162 arg1 = static_cast< wxEventType >(val1);
16163 }
16164 if (obj1) {
16165 ecode2 = SWIG_AsVal_int(obj1, &val2);
16166 if (!SWIG_IsOK(ecode2)) {
16167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
16168 }
16169 arg2 = static_cast< int >(val2);
16170 }
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
16173 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
16174 wxPyEndAllowThreads(__tstate);
16175 if (PyErr_Occurred()) SWIG_fail;
16176 }
16177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
16178 return resultobj;
16179 fail:
16180 return NULL;
16181 }
16182
16183
16184 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16185 PyObject *resultobj = 0;
16186 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16187 int result;
16188 void *argp1 = 0 ;
16189 int res1 = 0 ;
16190 PyObject *swig_obj[1] ;
16191
16192 if (!args) SWIG_fail;
16193 swig_obj[0] = args;
16194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16195 if (!SWIG_IsOK(res1)) {
16196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
16197 }
16198 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16199 {
16200 PyThreadState* __tstate = wxPyBeginAllowThreads();
16201 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
16202 wxPyEndAllowThreads(__tstate);
16203 if (PyErr_Occurred()) SWIG_fail;
16204 }
16205 resultobj = SWIG_From_int(static_cast< int >(result));
16206 return resultobj;
16207 fail:
16208 return NULL;
16209 }
16210
16211
16212 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16213 PyObject *resultobj = 0;
16214 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
16215 int arg2 ;
16216 void *argp1 = 0 ;
16217 int res1 = 0 ;
16218 int val2 ;
16219 int ecode2 = 0 ;
16220 PyObject * obj0 = 0 ;
16221 PyObject * obj1 = 0 ;
16222 char * kwnames[] = {
16223 (char *) "self",(char *) "pos", NULL
16224 };
16225
16226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
16227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
16228 if (!SWIG_IsOK(res1)) {
16229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
16230 }
16231 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
16232 ecode2 = SWIG_AsVal_int(obj1, &val2);
16233 if (!SWIG_IsOK(ecode2)) {
16234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
16235 }
16236 arg2 = static_cast< int >(val2);
16237 {
16238 PyThreadState* __tstate = wxPyBeginAllowThreads();
16239 (arg1)->SetPosition(arg2);
16240 wxPyEndAllowThreads(__tstate);
16241 if (PyErr_Occurred()) SWIG_fail;
16242 }
16243 resultobj = SWIG_Py_Void();
16244 return resultobj;
16245 fail:
16246 return NULL;
16247 }
16248
16249
16250 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16251 PyObject *obj;
16252 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16253 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
16254 return SWIG_Py_Void();
16255 }
16256
16257 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16258 return SWIG_Python_InitShadowInstance(args);
16259 }
16260
16261 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
16262 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
16263 return 1;
16264 }
16265
16266
16267 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
16268 PyObject *pyobj = 0;
16269
16270 {
16271 #if wxUSE_UNICODE
16272 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16273 #else
16274 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
16275 #endif
16276 }
16277 return pyobj;
16278 }
16279
16280
16281 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
16282 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
16283 return 1;
16284 }
16285
16286
16287 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
16288 PyObject *pyobj = 0;
16289
16290 {
16291 #if wxUSE_UNICODE
16292 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16293 #else
16294 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
16295 #endif
16296 }
16297 return pyobj;
16298 }
16299
16300
16301 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16302 PyObject *resultobj = 0;
16303 wxWindow *arg1 = (wxWindow *) 0 ;
16304 int arg2 = (int) -1 ;
16305 wxString const &arg3_defvalue = wxPyEmptyString ;
16306 wxString *arg3 = (wxString *) &arg3_defvalue ;
16307 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16308 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16309 wxSize const &arg5_defvalue = wxDefaultSize ;
16310 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16311 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
16312 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
16313 int arg7 = (int) 0 ;
16314 long arg8 = (long) wxRA_HORIZONTAL ;
16315 wxValidator const &arg9_defvalue = wxDefaultValidator ;
16316 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
16317 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
16318 wxString *arg10 = (wxString *) &arg10_defvalue ;
16319 wxRadioBox *result = 0 ;
16320 void *argp1 = 0 ;
16321 int res1 = 0 ;
16322 int val2 ;
16323 int ecode2 = 0 ;
16324 bool temp3 = false ;
16325 wxPoint temp4 ;
16326 wxSize temp5 ;
16327 bool temp6 = false ;
16328 int val7 ;
16329 int ecode7 = 0 ;
16330 long val8 ;
16331 int ecode8 = 0 ;
16332 void *argp9 = 0 ;
16333 int res9 = 0 ;
16334 bool temp10 = false ;
16335 PyObject * obj0 = 0 ;
16336 PyObject * obj1 = 0 ;
16337 PyObject * obj2 = 0 ;
16338 PyObject * obj3 = 0 ;
16339 PyObject * obj4 = 0 ;
16340 PyObject * obj5 = 0 ;
16341 PyObject * obj6 = 0 ;
16342 PyObject * obj7 = 0 ;
16343 PyObject * obj8 = 0 ;
16344 PyObject * obj9 = 0 ;
16345 char * kwnames[] = {
16346 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16347 };
16348
16349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16351 if (!SWIG_IsOK(res1)) {
16352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16353 }
16354 arg1 = reinterpret_cast< wxWindow * >(argp1);
16355 if (obj1) {
16356 ecode2 = SWIG_AsVal_int(obj1, &val2);
16357 if (!SWIG_IsOK(ecode2)) {
16358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16359 }
16360 arg2 = static_cast< int >(val2);
16361 }
16362 if (obj2) {
16363 {
16364 arg3 = wxString_in_helper(obj2);
16365 if (arg3 == NULL) SWIG_fail;
16366 temp3 = true;
16367 }
16368 }
16369 if (obj3) {
16370 {
16371 arg4 = &temp4;
16372 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16373 }
16374 }
16375 if (obj4) {
16376 {
16377 arg5 = &temp5;
16378 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16379 }
16380 }
16381 if (obj5) {
16382 {
16383 if (! PySequence_Check(obj5)) {
16384 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16385 SWIG_fail;
16386 }
16387 arg6 = new wxArrayString;
16388 temp6 = true;
16389 int i, len=PySequence_Length(obj5);
16390 for (i=0; i<len; i++) {
16391 PyObject* item = PySequence_GetItem(obj5, i);
16392 wxString* s = wxString_in_helper(item);
16393 if (PyErr_Occurred()) SWIG_fail;
16394 arg6->Add(*s);
16395 delete s;
16396 Py_DECREF(item);
16397 }
16398 }
16399 }
16400 if (obj6) {
16401 ecode7 = SWIG_AsVal_int(obj6, &val7);
16402 if (!SWIG_IsOK(ecode7)) {
16403 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16404 }
16405 arg7 = static_cast< int >(val7);
16406 }
16407 if (obj7) {
16408 ecode8 = SWIG_AsVal_long(obj7, &val8);
16409 if (!SWIG_IsOK(ecode8)) {
16410 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16411 }
16412 arg8 = static_cast< long >(val8);
16413 }
16414 if (obj8) {
16415 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16416 if (!SWIG_IsOK(res9)) {
16417 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16418 }
16419 if (!argp9) {
16420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16421 }
16422 arg9 = reinterpret_cast< wxValidator * >(argp9);
16423 }
16424 if (obj9) {
16425 {
16426 arg10 = wxString_in_helper(obj9);
16427 if (arg10 == NULL) SWIG_fail;
16428 temp10 = true;
16429 }
16430 }
16431 {
16432 if (!wxPyCheckForApp()) SWIG_fail;
16433 PyThreadState* __tstate = wxPyBeginAllowThreads();
16434 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);
16435 wxPyEndAllowThreads(__tstate);
16436 if (PyErr_Occurred()) SWIG_fail;
16437 }
16438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16439 {
16440 if (temp3)
16441 delete arg3;
16442 }
16443 {
16444 if (temp6) delete arg6;
16445 }
16446 {
16447 if (temp10)
16448 delete arg10;
16449 }
16450 return resultobj;
16451 fail:
16452 {
16453 if (temp3)
16454 delete arg3;
16455 }
16456 {
16457 if (temp6) delete arg6;
16458 }
16459 {
16460 if (temp10)
16461 delete arg10;
16462 }
16463 return NULL;
16464 }
16465
16466
16467 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16468 PyObject *resultobj = 0;
16469 wxRadioBox *result = 0 ;
16470
16471 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16472 {
16473 if (!wxPyCheckForApp()) SWIG_fail;
16474 PyThreadState* __tstate = wxPyBeginAllowThreads();
16475 result = (wxRadioBox *)new wxRadioBox();
16476 wxPyEndAllowThreads(__tstate);
16477 if (PyErr_Occurred()) SWIG_fail;
16478 }
16479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16480 return resultobj;
16481 fail:
16482 return NULL;
16483 }
16484
16485
16486 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16487 PyObject *resultobj = 0;
16488 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16489 wxWindow *arg2 = (wxWindow *) 0 ;
16490 int arg3 = (int) -1 ;
16491 wxString const &arg4_defvalue = wxPyEmptyString ;
16492 wxString *arg4 = (wxString *) &arg4_defvalue ;
16493 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16494 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16495 wxSize const &arg6_defvalue = wxDefaultSize ;
16496 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16497 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16498 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16499 int arg8 = (int) 0 ;
16500 long arg9 = (long) wxRA_HORIZONTAL ;
16501 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16502 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16503 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16504 wxString *arg11 = (wxString *) &arg11_defvalue ;
16505 bool result;
16506 void *argp1 = 0 ;
16507 int res1 = 0 ;
16508 void *argp2 = 0 ;
16509 int res2 = 0 ;
16510 int val3 ;
16511 int ecode3 = 0 ;
16512 bool temp4 = false ;
16513 wxPoint temp5 ;
16514 wxSize temp6 ;
16515 bool temp7 = false ;
16516 int val8 ;
16517 int ecode8 = 0 ;
16518 long val9 ;
16519 int ecode9 = 0 ;
16520 void *argp10 = 0 ;
16521 int res10 = 0 ;
16522 bool temp11 = false ;
16523 PyObject * obj0 = 0 ;
16524 PyObject * obj1 = 0 ;
16525 PyObject * obj2 = 0 ;
16526 PyObject * obj3 = 0 ;
16527 PyObject * obj4 = 0 ;
16528 PyObject * obj5 = 0 ;
16529 PyObject * obj6 = 0 ;
16530 PyObject * obj7 = 0 ;
16531 PyObject * obj8 = 0 ;
16532 PyObject * obj9 = 0 ;
16533 PyObject * obj10 = 0 ;
16534 char * kwnames[] = {
16535 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16536 };
16537
16538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16540 if (!SWIG_IsOK(res1)) {
16541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16542 }
16543 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16544 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16545 if (!SWIG_IsOK(res2)) {
16546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16547 }
16548 arg2 = reinterpret_cast< wxWindow * >(argp2);
16549 if (obj2) {
16550 ecode3 = SWIG_AsVal_int(obj2, &val3);
16551 if (!SWIG_IsOK(ecode3)) {
16552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16553 }
16554 arg3 = static_cast< int >(val3);
16555 }
16556 if (obj3) {
16557 {
16558 arg4 = wxString_in_helper(obj3);
16559 if (arg4 == NULL) SWIG_fail;
16560 temp4 = true;
16561 }
16562 }
16563 if (obj4) {
16564 {
16565 arg5 = &temp5;
16566 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16567 }
16568 }
16569 if (obj5) {
16570 {
16571 arg6 = &temp6;
16572 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16573 }
16574 }
16575 if (obj6) {
16576 {
16577 if (! PySequence_Check(obj6)) {
16578 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16579 SWIG_fail;
16580 }
16581 arg7 = new wxArrayString;
16582 temp7 = true;
16583 int i, len=PySequence_Length(obj6);
16584 for (i=0; i<len; i++) {
16585 PyObject* item = PySequence_GetItem(obj6, i);
16586 wxString* s = wxString_in_helper(item);
16587 if (PyErr_Occurred()) SWIG_fail;
16588 arg7->Add(*s);
16589 delete s;
16590 Py_DECREF(item);
16591 }
16592 }
16593 }
16594 if (obj7) {
16595 ecode8 = SWIG_AsVal_int(obj7, &val8);
16596 if (!SWIG_IsOK(ecode8)) {
16597 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16598 }
16599 arg8 = static_cast< int >(val8);
16600 }
16601 if (obj8) {
16602 ecode9 = SWIG_AsVal_long(obj8, &val9);
16603 if (!SWIG_IsOK(ecode9)) {
16604 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16605 }
16606 arg9 = static_cast< long >(val9);
16607 }
16608 if (obj9) {
16609 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16610 if (!SWIG_IsOK(res10)) {
16611 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16612 }
16613 if (!argp10) {
16614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16615 }
16616 arg10 = reinterpret_cast< wxValidator * >(argp10);
16617 }
16618 if (obj10) {
16619 {
16620 arg11 = wxString_in_helper(obj10);
16621 if (arg11 == NULL) SWIG_fail;
16622 temp11 = true;
16623 }
16624 }
16625 {
16626 PyThreadState* __tstate = wxPyBeginAllowThreads();
16627 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);
16628 wxPyEndAllowThreads(__tstate);
16629 if (PyErr_Occurred()) SWIG_fail;
16630 }
16631 {
16632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16633 }
16634 {
16635 if (temp4)
16636 delete arg4;
16637 }
16638 {
16639 if (temp7) delete arg7;
16640 }
16641 {
16642 if (temp11)
16643 delete arg11;
16644 }
16645 return resultobj;
16646 fail:
16647 {
16648 if (temp4)
16649 delete arg4;
16650 }
16651 {
16652 if (temp7) delete arg7;
16653 }
16654 {
16655 if (temp11)
16656 delete arg11;
16657 }
16658 return NULL;
16659 }
16660
16661
16662 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16663 PyObject *resultobj = 0;
16664 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16665 int arg2 ;
16666 void *argp1 = 0 ;
16667 int res1 = 0 ;
16668 int val2 ;
16669 int ecode2 = 0 ;
16670 PyObject * obj0 = 0 ;
16671 PyObject * obj1 = 0 ;
16672 char * kwnames[] = {
16673 (char *) "self",(char *) "n", NULL
16674 };
16675
16676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16678 if (!SWIG_IsOK(res1)) {
16679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16680 }
16681 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16682 ecode2 = SWIG_AsVal_int(obj1, &val2);
16683 if (!SWIG_IsOK(ecode2)) {
16684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16685 }
16686 arg2 = static_cast< int >(val2);
16687 {
16688 PyThreadState* __tstate = wxPyBeginAllowThreads();
16689 (arg1)->SetSelection(arg2);
16690 wxPyEndAllowThreads(__tstate);
16691 if (PyErr_Occurred()) SWIG_fail;
16692 }
16693 resultobj = SWIG_Py_Void();
16694 return resultobj;
16695 fail:
16696 return NULL;
16697 }
16698
16699
16700 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16701 PyObject *resultobj = 0;
16702 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16703 int result;
16704 void *argp1 = 0 ;
16705 int res1 = 0 ;
16706 PyObject *swig_obj[1] ;
16707
16708 if (!args) SWIG_fail;
16709 swig_obj[0] = args;
16710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16711 if (!SWIG_IsOK(res1)) {
16712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16713 }
16714 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16715 {
16716 PyThreadState* __tstate = wxPyBeginAllowThreads();
16717 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16718 wxPyEndAllowThreads(__tstate);
16719 if (PyErr_Occurred()) SWIG_fail;
16720 }
16721 resultobj = SWIG_From_int(static_cast< int >(result));
16722 return resultobj;
16723 fail:
16724 return NULL;
16725 }
16726
16727
16728 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16729 PyObject *resultobj = 0;
16730 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16731 wxString result;
16732 void *argp1 = 0 ;
16733 int res1 = 0 ;
16734 PyObject *swig_obj[1] ;
16735
16736 if (!args) SWIG_fail;
16737 swig_obj[0] = args;
16738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16739 if (!SWIG_IsOK(res1)) {
16740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16741 }
16742 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16743 {
16744 PyThreadState* __tstate = wxPyBeginAllowThreads();
16745 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16746 wxPyEndAllowThreads(__tstate);
16747 if (PyErr_Occurred()) SWIG_fail;
16748 }
16749 {
16750 #if wxUSE_UNICODE
16751 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16752 #else
16753 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16754 #endif
16755 }
16756 return resultobj;
16757 fail:
16758 return NULL;
16759 }
16760
16761
16762 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16763 PyObject *resultobj = 0;
16764 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16765 wxString *arg2 = 0 ;
16766 bool result;
16767 void *argp1 = 0 ;
16768 int res1 = 0 ;
16769 bool temp2 = false ;
16770 PyObject * obj0 = 0 ;
16771 PyObject * obj1 = 0 ;
16772 char * kwnames[] = {
16773 (char *) "self",(char *) "s", NULL
16774 };
16775
16776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16778 if (!SWIG_IsOK(res1)) {
16779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16780 }
16781 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16782 {
16783 arg2 = wxString_in_helper(obj1);
16784 if (arg2 == NULL) SWIG_fail;
16785 temp2 = true;
16786 }
16787 {
16788 PyThreadState* __tstate = wxPyBeginAllowThreads();
16789 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16790 wxPyEndAllowThreads(__tstate);
16791 if (PyErr_Occurred()) SWIG_fail;
16792 }
16793 {
16794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16795 }
16796 {
16797 if (temp2)
16798 delete arg2;
16799 }
16800 return resultobj;
16801 fail:
16802 {
16803 if (temp2)
16804 delete arg2;
16805 }
16806 return NULL;
16807 }
16808
16809
16810 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16811 PyObject *resultobj = 0;
16812 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16813 size_t result;
16814 void *argp1 = 0 ;
16815 int res1 = 0 ;
16816 PyObject *swig_obj[1] ;
16817
16818 if (!args) SWIG_fail;
16819 swig_obj[0] = args;
16820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16821 if (!SWIG_IsOK(res1)) {
16822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16823 }
16824 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16825 {
16826 PyThreadState* __tstate = wxPyBeginAllowThreads();
16827 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16832 return resultobj;
16833 fail:
16834 return NULL;
16835 }
16836
16837
16838 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16839 PyObject *resultobj = 0;
16840 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16841 wxString *arg2 = 0 ;
16842 int result;
16843 void *argp1 = 0 ;
16844 int res1 = 0 ;
16845 bool temp2 = false ;
16846 PyObject * obj0 = 0 ;
16847 PyObject * obj1 = 0 ;
16848 char * kwnames[] = {
16849 (char *) "self",(char *) "s", NULL
16850 };
16851
16852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16854 if (!SWIG_IsOK(res1)) {
16855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16856 }
16857 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16858 {
16859 arg2 = wxString_in_helper(obj1);
16860 if (arg2 == NULL) SWIG_fail;
16861 temp2 = true;
16862 }
16863 {
16864 PyThreadState* __tstate = wxPyBeginAllowThreads();
16865 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16866 wxPyEndAllowThreads(__tstate);
16867 if (PyErr_Occurred()) SWIG_fail;
16868 }
16869 resultobj = SWIG_From_int(static_cast< int >(result));
16870 {
16871 if (temp2)
16872 delete arg2;
16873 }
16874 return resultobj;
16875 fail:
16876 {
16877 if (temp2)
16878 delete arg2;
16879 }
16880 return NULL;
16881 }
16882
16883
16884 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16885 PyObject *resultobj = 0;
16886 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16887 int arg2 ;
16888 wxString result;
16889 void *argp1 = 0 ;
16890 int res1 = 0 ;
16891 int val2 ;
16892 int ecode2 = 0 ;
16893 PyObject * obj0 = 0 ;
16894 PyObject * obj1 = 0 ;
16895 char * kwnames[] = {
16896 (char *) "self",(char *) "n", NULL
16897 };
16898
16899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16901 if (!SWIG_IsOK(res1)) {
16902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16903 }
16904 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16905 ecode2 = SWIG_AsVal_int(obj1, &val2);
16906 if (!SWIG_IsOK(ecode2)) {
16907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16908 }
16909 arg2 = static_cast< int >(val2);
16910 {
16911 PyThreadState* __tstate = wxPyBeginAllowThreads();
16912 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16913 wxPyEndAllowThreads(__tstate);
16914 if (PyErr_Occurred()) SWIG_fail;
16915 }
16916 {
16917 #if wxUSE_UNICODE
16918 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16919 #else
16920 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16921 #endif
16922 }
16923 return resultobj;
16924 fail:
16925 return NULL;
16926 }
16927
16928
16929 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16930 PyObject *resultobj = 0;
16931 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16932 int arg2 ;
16933 wxString *arg3 = 0 ;
16934 void *argp1 = 0 ;
16935 int res1 = 0 ;
16936 int val2 ;
16937 int ecode2 = 0 ;
16938 bool temp3 = false ;
16939 PyObject * obj0 = 0 ;
16940 PyObject * obj1 = 0 ;
16941 PyObject * obj2 = 0 ;
16942 char * kwnames[] = {
16943 (char *) "self",(char *) "n",(char *) "label", NULL
16944 };
16945
16946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16948 if (!SWIG_IsOK(res1)) {
16949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16950 }
16951 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16952 ecode2 = SWIG_AsVal_int(obj1, &val2);
16953 if (!SWIG_IsOK(ecode2)) {
16954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16955 }
16956 arg2 = static_cast< int >(val2);
16957 {
16958 arg3 = wxString_in_helper(obj2);
16959 if (arg3 == NULL) SWIG_fail;
16960 temp3 = true;
16961 }
16962 {
16963 PyThreadState* __tstate = wxPyBeginAllowThreads();
16964 (arg1)->SetString(arg2,(wxString const &)*arg3);
16965 wxPyEndAllowThreads(__tstate);
16966 if (PyErr_Occurred()) SWIG_fail;
16967 }
16968 resultobj = SWIG_Py_Void();
16969 {
16970 if (temp3)
16971 delete arg3;
16972 }
16973 return resultobj;
16974 fail:
16975 {
16976 if (temp3)
16977 delete arg3;
16978 }
16979 return NULL;
16980 }
16981
16982
16983 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16984 PyObject *resultobj = 0;
16985 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16986 unsigned int arg2 ;
16987 bool arg3 = (bool) true ;
16988 void *argp1 = 0 ;
16989 int res1 = 0 ;
16990 unsigned int val2 ;
16991 int ecode2 = 0 ;
16992 bool val3 ;
16993 int ecode3 = 0 ;
16994 PyObject * obj0 = 0 ;
16995 PyObject * obj1 = 0 ;
16996 PyObject * obj2 = 0 ;
16997 char * kwnames[] = {
16998 (char *) "self",(char *) "n",(char *) "enable", NULL
16999 };
17000
17001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17003 if (!SWIG_IsOK(res1)) {
17004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17005 }
17006 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17007 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17008 if (!SWIG_IsOK(ecode2)) {
17009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
17010 }
17011 arg2 = static_cast< unsigned int >(val2);
17012 if (obj2) {
17013 ecode3 = SWIG_AsVal_bool(obj2, &val3);
17014 if (!SWIG_IsOK(ecode3)) {
17015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
17016 }
17017 arg3 = static_cast< bool >(val3);
17018 }
17019 {
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 (arg1)->Enable(arg2,arg3);
17022 wxPyEndAllowThreads(__tstate);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 }
17025 resultobj = SWIG_Py_Void();
17026 return resultobj;
17027 fail:
17028 return NULL;
17029 }
17030
17031
17032 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17033 PyObject *resultobj = 0;
17034 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17035 unsigned int arg2 ;
17036 bool arg3 = (bool) true ;
17037 void *argp1 = 0 ;
17038 int res1 = 0 ;
17039 unsigned int val2 ;
17040 int ecode2 = 0 ;
17041 bool val3 ;
17042 int ecode3 = 0 ;
17043 PyObject * obj0 = 0 ;
17044 PyObject * obj1 = 0 ;
17045 PyObject * obj2 = 0 ;
17046 char * kwnames[] = {
17047 (char *) "self",(char *) "n",(char *) "show", NULL
17048 };
17049
17050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17052 if (!SWIG_IsOK(res1)) {
17053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17054 }
17055 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17056 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17057 if (!SWIG_IsOK(ecode2)) {
17058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
17059 }
17060 arg2 = static_cast< unsigned int >(val2);
17061 if (obj2) {
17062 ecode3 = SWIG_AsVal_bool(obj2, &val3);
17063 if (!SWIG_IsOK(ecode3)) {
17064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
17065 }
17066 arg3 = static_cast< bool >(val3);
17067 }
17068 {
17069 PyThreadState* __tstate = wxPyBeginAllowThreads();
17070 (arg1)->Show(arg2,arg3);
17071 wxPyEndAllowThreads(__tstate);
17072 if (PyErr_Occurred()) SWIG_fail;
17073 }
17074 resultobj = SWIG_Py_Void();
17075 return resultobj;
17076 fail:
17077 return NULL;
17078 }
17079
17080
17081 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17082 PyObject *resultobj = 0;
17083 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17084 unsigned int arg2 ;
17085 bool result;
17086 void *argp1 = 0 ;
17087 int res1 = 0 ;
17088 unsigned int val2 ;
17089 int ecode2 = 0 ;
17090 PyObject * obj0 = 0 ;
17091 PyObject * obj1 = 0 ;
17092 char * kwnames[] = {
17093 (char *) "self",(char *) "n", NULL
17094 };
17095
17096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
17097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17098 if (!SWIG_IsOK(res1)) {
17099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17100 }
17101 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17102 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17103 if (!SWIG_IsOK(ecode2)) {
17104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
17105 }
17106 arg2 = static_cast< unsigned int >(val2);
17107 {
17108 PyThreadState* __tstate = wxPyBeginAllowThreads();
17109 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
17110 wxPyEndAllowThreads(__tstate);
17111 if (PyErr_Occurred()) SWIG_fail;
17112 }
17113 {
17114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17115 }
17116 return resultobj;
17117 fail:
17118 return NULL;
17119 }
17120
17121
17122 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17123 PyObject *resultobj = 0;
17124 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17125 unsigned int arg2 ;
17126 bool result;
17127 void *argp1 = 0 ;
17128 int res1 = 0 ;
17129 unsigned int val2 ;
17130 int ecode2 = 0 ;
17131 PyObject * obj0 = 0 ;
17132 PyObject * obj1 = 0 ;
17133 char * kwnames[] = {
17134 (char *) "self",(char *) "n", NULL
17135 };
17136
17137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
17138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17139 if (!SWIG_IsOK(res1)) {
17140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17141 }
17142 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17143 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17144 if (!SWIG_IsOK(ecode2)) {
17145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
17146 }
17147 arg2 = static_cast< unsigned int >(val2);
17148 {
17149 PyThreadState* __tstate = wxPyBeginAllowThreads();
17150 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
17151 wxPyEndAllowThreads(__tstate);
17152 if (PyErr_Occurred()) SWIG_fail;
17153 }
17154 {
17155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17156 }
17157 return resultobj;
17158 fail:
17159 return NULL;
17160 }
17161
17162
17163 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17164 PyObject *resultobj = 0;
17165 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17166 unsigned int result;
17167 void *argp1 = 0 ;
17168 int res1 = 0 ;
17169 PyObject *swig_obj[1] ;
17170
17171 if (!args) SWIG_fail;
17172 swig_obj[0] = args;
17173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17174 if (!SWIG_IsOK(res1)) {
17175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17176 }
17177 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17178 {
17179 PyThreadState* __tstate = wxPyBeginAllowThreads();
17180 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
17181 wxPyEndAllowThreads(__tstate);
17182 if (PyErr_Occurred()) SWIG_fail;
17183 }
17184 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17185 return resultobj;
17186 fail:
17187 return NULL;
17188 }
17189
17190
17191 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17192 PyObject *resultobj = 0;
17193 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17194 unsigned int result;
17195 void *argp1 = 0 ;
17196 int res1 = 0 ;
17197 PyObject *swig_obj[1] ;
17198
17199 if (!args) SWIG_fail;
17200 swig_obj[0] = args;
17201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17202 if (!SWIG_IsOK(res1)) {
17203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17204 }
17205 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17206 {
17207 PyThreadState* __tstate = wxPyBeginAllowThreads();
17208 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
17209 wxPyEndAllowThreads(__tstate);
17210 if (PyErr_Occurred()) SWIG_fail;
17211 }
17212 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
17213 return resultobj;
17214 fail:
17215 return NULL;
17216 }
17217
17218
17219 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17220 PyObject *resultobj = 0;
17221 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17222 int arg2 ;
17223 wxDirection arg3 ;
17224 long arg4 ;
17225 int result;
17226 void *argp1 = 0 ;
17227 int res1 = 0 ;
17228 int val2 ;
17229 int ecode2 = 0 ;
17230 int val3 ;
17231 int ecode3 = 0 ;
17232 long val4 ;
17233 int ecode4 = 0 ;
17234 PyObject * obj0 = 0 ;
17235 PyObject * obj1 = 0 ;
17236 PyObject * obj2 = 0 ;
17237 PyObject * obj3 = 0 ;
17238 char * kwnames[] = {
17239 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
17240 };
17241
17242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17244 if (!SWIG_IsOK(res1)) {
17245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17246 }
17247 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17248 ecode2 = SWIG_AsVal_int(obj1, &val2);
17249 if (!SWIG_IsOK(ecode2)) {
17250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
17251 }
17252 arg2 = static_cast< int >(val2);
17253 ecode3 = SWIG_AsVal_int(obj2, &val3);
17254 if (!SWIG_IsOK(ecode3)) {
17255 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
17256 }
17257 arg3 = static_cast< wxDirection >(val3);
17258 ecode4 = SWIG_AsVal_long(obj3, &val4);
17259 if (!SWIG_IsOK(ecode4)) {
17260 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
17261 }
17262 arg4 = static_cast< long >(val4);
17263 {
17264 PyThreadState* __tstate = wxPyBeginAllowThreads();
17265 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
17266 wxPyEndAllowThreads(__tstate);
17267 if (PyErr_Occurred()) SWIG_fail;
17268 }
17269 resultobj = SWIG_From_int(static_cast< int >(result));
17270 return resultobj;
17271 fail:
17272 return NULL;
17273 }
17274
17275
17276 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17277 PyObject *resultobj = 0;
17278 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17279 unsigned int arg2 ;
17280 wxString *arg3 = 0 ;
17281 void *argp1 = 0 ;
17282 int res1 = 0 ;
17283 unsigned int val2 ;
17284 int ecode2 = 0 ;
17285 bool temp3 = false ;
17286 PyObject * obj0 = 0 ;
17287 PyObject * obj1 = 0 ;
17288 PyObject * obj2 = 0 ;
17289 char * kwnames[] = {
17290 (char *) "self",(char *) "item",(char *) "text", NULL
17291 };
17292
17293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17295 if (!SWIG_IsOK(res1)) {
17296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17297 }
17298 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17299 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17300 if (!SWIG_IsOK(ecode2)) {
17301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17302 }
17303 arg2 = static_cast< unsigned int >(val2);
17304 {
17305 arg3 = wxString_in_helper(obj2);
17306 if (arg3 == NULL) SWIG_fail;
17307 temp3 = true;
17308 }
17309 {
17310 PyThreadState* __tstate = wxPyBeginAllowThreads();
17311 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
17312 wxPyEndAllowThreads(__tstate);
17313 if (PyErr_Occurred()) SWIG_fail;
17314 }
17315 resultobj = SWIG_Py_Void();
17316 {
17317 if (temp3)
17318 delete arg3;
17319 }
17320 return resultobj;
17321 fail:
17322 {
17323 if (temp3)
17324 delete arg3;
17325 }
17326 return NULL;
17327 }
17328
17329
17330 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17331 PyObject *resultobj = 0;
17332 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17333 unsigned int arg2 ;
17334 wxToolTip *result = 0 ;
17335 void *argp1 = 0 ;
17336 int res1 = 0 ;
17337 unsigned int val2 ;
17338 int ecode2 = 0 ;
17339 PyObject * obj0 = 0 ;
17340 PyObject * obj1 = 0 ;
17341 char * kwnames[] = {
17342 (char *) "self",(char *) "item", NULL
17343 };
17344
17345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17347 if (!SWIG_IsOK(res1)) {
17348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17349 }
17350 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17351 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17352 if (!SWIG_IsOK(ecode2)) {
17353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17354 }
17355 arg2 = static_cast< unsigned int >(val2);
17356 {
17357 PyThreadState* __tstate = wxPyBeginAllowThreads();
17358 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17359 wxPyEndAllowThreads(__tstate);
17360 if (PyErr_Occurred()) SWIG_fail;
17361 }
17362 {
17363 resultobj = wxPyMake_wxObject(result, (bool)0);
17364 }
17365 return resultobj;
17366 fail:
17367 return NULL;
17368 }
17369
17370
17371 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17372 PyObject *resultobj = 0;
17373 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17374 unsigned int arg2 ;
17375 wxString *arg3 = 0 ;
17376 void *argp1 = 0 ;
17377 int res1 = 0 ;
17378 unsigned int val2 ;
17379 int ecode2 = 0 ;
17380 bool temp3 = false ;
17381 PyObject * obj0 = 0 ;
17382 PyObject * obj1 = 0 ;
17383 PyObject * obj2 = 0 ;
17384 char * kwnames[] = {
17385 (char *) "self",(char *) "n",(char *) "helpText", NULL
17386 };
17387
17388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17390 if (!SWIG_IsOK(res1)) {
17391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17392 }
17393 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17394 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17395 if (!SWIG_IsOK(ecode2)) {
17396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17397 }
17398 arg2 = static_cast< unsigned int >(val2);
17399 {
17400 arg3 = wxString_in_helper(obj2);
17401 if (arg3 == NULL) SWIG_fail;
17402 temp3 = true;
17403 }
17404 {
17405 PyThreadState* __tstate = wxPyBeginAllowThreads();
17406 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17407 wxPyEndAllowThreads(__tstate);
17408 if (PyErr_Occurred()) SWIG_fail;
17409 }
17410 resultobj = SWIG_Py_Void();
17411 {
17412 if (temp3)
17413 delete arg3;
17414 }
17415 return resultobj;
17416 fail:
17417 {
17418 if (temp3)
17419 delete arg3;
17420 }
17421 return NULL;
17422 }
17423
17424
17425 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17426 PyObject *resultobj = 0;
17427 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17428 unsigned int arg2 ;
17429 wxString result;
17430 void *argp1 = 0 ;
17431 int res1 = 0 ;
17432 unsigned int val2 ;
17433 int ecode2 = 0 ;
17434 PyObject * obj0 = 0 ;
17435 PyObject * obj1 = 0 ;
17436 char * kwnames[] = {
17437 (char *) "self",(char *) "n", NULL
17438 };
17439
17440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17442 if (!SWIG_IsOK(res1)) {
17443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17444 }
17445 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17446 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17447 if (!SWIG_IsOK(ecode2)) {
17448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17449 }
17450 arg2 = static_cast< unsigned int >(val2);
17451 {
17452 PyThreadState* __tstate = wxPyBeginAllowThreads();
17453 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17454 wxPyEndAllowThreads(__tstate);
17455 if (PyErr_Occurred()) SWIG_fail;
17456 }
17457 {
17458 #if wxUSE_UNICODE
17459 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17460 #else
17461 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17462 #endif
17463 }
17464 return resultobj;
17465 fail:
17466 return NULL;
17467 }
17468
17469
17470 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17471 PyObject *resultobj = 0;
17472 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17473 SwigValueWrapper<wxVisualAttributes > result;
17474 int val1 ;
17475 int ecode1 = 0 ;
17476 PyObject * obj0 = 0 ;
17477 char * kwnames[] = {
17478 (char *) "variant", NULL
17479 };
17480
17481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17482 if (obj0) {
17483 ecode1 = SWIG_AsVal_int(obj0, &val1);
17484 if (!SWIG_IsOK(ecode1)) {
17485 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17486 }
17487 arg1 = static_cast< wxWindowVariant >(val1);
17488 }
17489 {
17490 if (!wxPyCheckForApp()) SWIG_fail;
17491 PyThreadState* __tstate = wxPyBeginAllowThreads();
17492 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17493 wxPyEndAllowThreads(__tstate);
17494 if (PyErr_Occurred()) SWIG_fail;
17495 }
17496 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17497 return resultobj;
17498 fail:
17499 return NULL;
17500 }
17501
17502
17503 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17504 PyObject *obj;
17505 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17506 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17507 return SWIG_Py_Void();
17508 }
17509
17510 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17511 return SWIG_Python_InitShadowInstance(args);
17512 }
17513
17514 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17515 PyObject *resultobj = 0;
17516 wxWindow *arg1 = (wxWindow *) 0 ;
17517 int arg2 = (int) -1 ;
17518 wxString const &arg3_defvalue = wxPyEmptyString ;
17519 wxString *arg3 = (wxString *) &arg3_defvalue ;
17520 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17521 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17522 wxSize const &arg5_defvalue = wxDefaultSize ;
17523 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17524 long arg6 = (long) 0 ;
17525 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17526 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17527 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17528 wxString *arg8 = (wxString *) &arg8_defvalue ;
17529 wxRadioButton *result = 0 ;
17530 void *argp1 = 0 ;
17531 int res1 = 0 ;
17532 int val2 ;
17533 int ecode2 = 0 ;
17534 bool temp3 = false ;
17535 wxPoint temp4 ;
17536 wxSize temp5 ;
17537 long val6 ;
17538 int ecode6 = 0 ;
17539 void *argp7 = 0 ;
17540 int res7 = 0 ;
17541 bool temp8 = false ;
17542 PyObject * obj0 = 0 ;
17543 PyObject * obj1 = 0 ;
17544 PyObject * obj2 = 0 ;
17545 PyObject * obj3 = 0 ;
17546 PyObject * obj4 = 0 ;
17547 PyObject * obj5 = 0 ;
17548 PyObject * obj6 = 0 ;
17549 PyObject * obj7 = 0 ;
17550 char * kwnames[] = {
17551 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17552 };
17553
17554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17556 if (!SWIG_IsOK(res1)) {
17557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17558 }
17559 arg1 = reinterpret_cast< wxWindow * >(argp1);
17560 if (obj1) {
17561 ecode2 = SWIG_AsVal_int(obj1, &val2);
17562 if (!SWIG_IsOK(ecode2)) {
17563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17564 }
17565 arg2 = static_cast< int >(val2);
17566 }
17567 if (obj2) {
17568 {
17569 arg3 = wxString_in_helper(obj2);
17570 if (arg3 == NULL) SWIG_fail;
17571 temp3 = true;
17572 }
17573 }
17574 if (obj3) {
17575 {
17576 arg4 = &temp4;
17577 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17578 }
17579 }
17580 if (obj4) {
17581 {
17582 arg5 = &temp5;
17583 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17584 }
17585 }
17586 if (obj5) {
17587 ecode6 = SWIG_AsVal_long(obj5, &val6);
17588 if (!SWIG_IsOK(ecode6)) {
17589 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17590 }
17591 arg6 = static_cast< long >(val6);
17592 }
17593 if (obj6) {
17594 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17595 if (!SWIG_IsOK(res7)) {
17596 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17597 }
17598 if (!argp7) {
17599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17600 }
17601 arg7 = reinterpret_cast< wxValidator * >(argp7);
17602 }
17603 if (obj7) {
17604 {
17605 arg8 = wxString_in_helper(obj7);
17606 if (arg8 == NULL) SWIG_fail;
17607 temp8 = true;
17608 }
17609 }
17610 {
17611 if (!wxPyCheckForApp()) SWIG_fail;
17612 PyThreadState* __tstate = wxPyBeginAllowThreads();
17613 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17614 wxPyEndAllowThreads(__tstate);
17615 if (PyErr_Occurred()) SWIG_fail;
17616 }
17617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17618 {
17619 if (temp3)
17620 delete arg3;
17621 }
17622 {
17623 if (temp8)
17624 delete arg8;
17625 }
17626 return resultobj;
17627 fail:
17628 {
17629 if (temp3)
17630 delete arg3;
17631 }
17632 {
17633 if (temp8)
17634 delete arg8;
17635 }
17636 return NULL;
17637 }
17638
17639
17640 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17641 PyObject *resultobj = 0;
17642 wxRadioButton *result = 0 ;
17643
17644 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17645 {
17646 if (!wxPyCheckForApp()) SWIG_fail;
17647 PyThreadState* __tstate = wxPyBeginAllowThreads();
17648 result = (wxRadioButton *)new wxRadioButton();
17649 wxPyEndAllowThreads(__tstate);
17650 if (PyErr_Occurred()) SWIG_fail;
17651 }
17652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17653 return resultobj;
17654 fail:
17655 return NULL;
17656 }
17657
17658
17659 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17660 PyObject *resultobj = 0;
17661 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17662 wxWindow *arg2 = (wxWindow *) 0 ;
17663 int arg3 = (int) -1 ;
17664 wxString const &arg4_defvalue = wxPyEmptyString ;
17665 wxString *arg4 = (wxString *) &arg4_defvalue ;
17666 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17667 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17668 wxSize const &arg6_defvalue = wxDefaultSize ;
17669 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17670 long arg7 = (long) 0 ;
17671 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17672 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17673 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17674 wxString *arg9 = (wxString *) &arg9_defvalue ;
17675 bool result;
17676 void *argp1 = 0 ;
17677 int res1 = 0 ;
17678 void *argp2 = 0 ;
17679 int res2 = 0 ;
17680 int val3 ;
17681 int ecode3 = 0 ;
17682 bool temp4 = false ;
17683 wxPoint temp5 ;
17684 wxSize temp6 ;
17685 long val7 ;
17686 int ecode7 = 0 ;
17687 void *argp8 = 0 ;
17688 int res8 = 0 ;
17689 bool temp9 = false ;
17690 PyObject * obj0 = 0 ;
17691 PyObject * obj1 = 0 ;
17692 PyObject * obj2 = 0 ;
17693 PyObject * obj3 = 0 ;
17694 PyObject * obj4 = 0 ;
17695 PyObject * obj5 = 0 ;
17696 PyObject * obj6 = 0 ;
17697 PyObject * obj7 = 0 ;
17698 PyObject * obj8 = 0 ;
17699 char * kwnames[] = {
17700 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17701 };
17702
17703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17705 if (!SWIG_IsOK(res1)) {
17706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17707 }
17708 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17709 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17710 if (!SWIG_IsOK(res2)) {
17711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17712 }
17713 arg2 = reinterpret_cast< wxWindow * >(argp2);
17714 if (obj2) {
17715 ecode3 = SWIG_AsVal_int(obj2, &val3);
17716 if (!SWIG_IsOK(ecode3)) {
17717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17718 }
17719 arg3 = static_cast< int >(val3);
17720 }
17721 if (obj3) {
17722 {
17723 arg4 = wxString_in_helper(obj3);
17724 if (arg4 == NULL) SWIG_fail;
17725 temp4 = true;
17726 }
17727 }
17728 if (obj4) {
17729 {
17730 arg5 = &temp5;
17731 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17732 }
17733 }
17734 if (obj5) {
17735 {
17736 arg6 = &temp6;
17737 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17738 }
17739 }
17740 if (obj6) {
17741 ecode7 = SWIG_AsVal_long(obj6, &val7);
17742 if (!SWIG_IsOK(ecode7)) {
17743 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17744 }
17745 arg7 = static_cast< long >(val7);
17746 }
17747 if (obj7) {
17748 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17749 if (!SWIG_IsOK(res8)) {
17750 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17751 }
17752 if (!argp8) {
17753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17754 }
17755 arg8 = reinterpret_cast< wxValidator * >(argp8);
17756 }
17757 if (obj8) {
17758 {
17759 arg9 = wxString_in_helper(obj8);
17760 if (arg9 == NULL) SWIG_fail;
17761 temp9 = true;
17762 }
17763 }
17764 {
17765 PyThreadState* __tstate = wxPyBeginAllowThreads();
17766 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17767 wxPyEndAllowThreads(__tstate);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 }
17770 {
17771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17772 }
17773 {
17774 if (temp4)
17775 delete arg4;
17776 }
17777 {
17778 if (temp9)
17779 delete arg9;
17780 }
17781 return resultobj;
17782 fail:
17783 {
17784 if (temp4)
17785 delete arg4;
17786 }
17787 {
17788 if (temp9)
17789 delete arg9;
17790 }
17791 return NULL;
17792 }
17793
17794
17795 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17796 PyObject *resultobj = 0;
17797 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17798 bool result;
17799 void *argp1 = 0 ;
17800 int res1 = 0 ;
17801 PyObject *swig_obj[1] ;
17802
17803 if (!args) SWIG_fail;
17804 swig_obj[0] = args;
17805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17806 if (!SWIG_IsOK(res1)) {
17807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17808 }
17809 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17810 {
17811 PyThreadState* __tstate = wxPyBeginAllowThreads();
17812 result = (bool)(arg1)->GetValue();
17813 wxPyEndAllowThreads(__tstate);
17814 if (PyErr_Occurred()) SWIG_fail;
17815 }
17816 {
17817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17818 }
17819 return resultobj;
17820 fail:
17821 return NULL;
17822 }
17823
17824
17825 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17826 PyObject *resultobj = 0;
17827 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17828 bool arg2 ;
17829 void *argp1 = 0 ;
17830 int res1 = 0 ;
17831 bool val2 ;
17832 int ecode2 = 0 ;
17833 PyObject * obj0 = 0 ;
17834 PyObject * obj1 = 0 ;
17835 char * kwnames[] = {
17836 (char *) "self",(char *) "value", NULL
17837 };
17838
17839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17841 if (!SWIG_IsOK(res1)) {
17842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17843 }
17844 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17845 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17846 if (!SWIG_IsOK(ecode2)) {
17847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17848 }
17849 arg2 = static_cast< bool >(val2);
17850 {
17851 PyThreadState* __tstate = wxPyBeginAllowThreads();
17852 (arg1)->SetValue(arg2);
17853 wxPyEndAllowThreads(__tstate);
17854 if (PyErr_Occurred()) SWIG_fail;
17855 }
17856 resultobj = SWIG_Py_Void();
17857 return resultobj;
17858 fail:
17859 return NULL;
17860 }
17861
17862
17863 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17864 PyObject *resultobj = 0;
17865 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17866 SwigValueWrapper<wxVisualAttributes > result;
17867 int val1 ;
17868 int ecode1 = 0 ;
17869 PyObject * obj0 = 0 ;
17870 char * kwnames[] = {
17871 (char *) "variant", NULL
17872 };
17873
17874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17875 if (obj0) {
17876 ecode1 = SWIG_AsVal_int(obj0, &val1);
17877 if (!SWIG_IsOK(ecode1)) {
17878 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17879 }
17880 arg1 = static_cast< wxWindowVariant >(val1);
17881 }
17882 {
17883 if (!wxPyCheckForApp()) SWIG_fail;
17884 PyThreadState* __tstate = wxPyBeginAllowThreads();
17885 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17886 wxPyEndAllowThreads(__tstate);
17887 if (PyErr_Occurred()) SWIG_fail;
17888 }
17889 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17890 return resultobj;
17891 fail:
17892 return NULL;
17893 }
17894
17895
17896 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17897 PyObject *obj;
17898 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17899 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17900 return SWIG_Py_Void();
17901 }
17902
17903 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17904 return SWIG_Python_InitShadowInstance(args);
17905 }
17906
17907 SWIGINTERN int SliderNameStr_set(PyObject *) {
17908 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17909 return 1;
17910 }
17911
17912
17913 SWIGINTERN PyObject *SliderNameStr_get(void) {
17914 PyObject *pyobj = 0;
17915
17916 {
17917 #if wxUSE_UNICODE
17918 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17919 #else
17920 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17921 #endif
17922 }
17923 return pyobj;
17924 }
17925
17926
17927 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17928 PyObject *resultobj = 0;
17929 wxWindow *arg1 = (wxWindow *) 0 ;
17930 int arg2 = (int) -1 ;
17931 int arg3 = (int) 0 ;
17932 int arg4 = (int) 0 ;
17933 int arg5 = (int) 100 ;
17934 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17935 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17936 wxSize const &arg7_defvalue = wxDefaultSize ;
17937 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17938 long arg8 = (long) wxSL_HORIZONTAL ;
17939 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17940 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17941 wxString const &arg10_defvalue = wxPySliderNameStr ;
17942 wxString *arg10 = (wxString *) &arg10_defvalue ;
17943 wxSlider *result = 0 ;
17944 void *argp1 = 0 ;
17945 int res1 = 0 ;
17946 int val2 ;
17947 int ecode2 = 0 ;
17948 int val3 ;
17949 int ecode3 = 0 ;
17950 int val4 ;
17951 int ecode4 = 0 ;
17952 int val5 ;
17953 int ecode5 = 0 ;
17954 wxPoint temp6 ;
17955 wxSize temp7 ;
17956 long val8 ;
17957 int ecode8 = 0 ;
17958 void *argp9 = 0 ;
17959 int res9 = 0 ;
17960 bool temp10 = false ;
17961 PyObject * obj0 = 0 ;
17962 PyObject * obj1 = 0 ;
17963 PyObject * obj2 = 0 ;
17964 PyObject * obj3 = 0 ;
17965 PyObject * obj4 = 0 ;
17966 PyObject * obj5 = 0 ;
17967 PyObject * obj6 = 0 ;
17968 PyObject * obj7 = 0 ;
17969 PyObject * obj8 = 0 ;
17970 PyObject * obj9 = 0 ;
17971 char * kwnames[] = {
17972 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17973 };
17974
17975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17977 if (!SWIG_IsOK(res1)) {
17978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17979 }
17980 arg1 = reinterpret_cast< wxWindow * >(argp1);
17981 if (obj1) {
17982 ecode2 = SWIG_AsVal_int(obj1, &val2);
17983 if (!SWIG_IsOK(ecode2)) {
17984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17985 }
17986 arg2 = static_cast< int >(val2);
17987 }
17988 if (obj2) {
17989 ecode3 = SWIG_AsVal_int(obj2, &val3);
17990 if (!SWIG_IsOK(ecode3)) {
17991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17992 }
17993 arg3 = static_cast< int >(val3);
17994 }
17995 if (obj3) {
17996 ecode4 = SWIG_AsVal_int(obj3, &val4);
17997 if (!SWIG_IsOK(ecode4)) {
17998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17999 }
18000 arg4 = static_cast< int >(val4);
18001 }
18002 if (obj4) {
18003 ecode5 = SWIG_AsVal_int(obj4, &val5);
18004 if (!SWIG_IsOK(ecode5)) {
18005 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
18006 }
18007 arg5 = static_cast< int >(val5);
18008 }
18009 if (obj5) {
18010 {
18011 arg6 = &temp6;
18012 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
18013 }
18014 }
18015 if (obj6) {
18016 {
18017 arg7 = &temp7;
18018 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
18019 }
18020 }
18021 if (obj7) {
18022 ecode8 = SWIG_AsVal_long(obj7, &val8);
18023 if (!SWIG_IsOK(ecode8)) {
18024 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
18025 }
18026 arg8 = static_cast< long >(val8);
18027 }
18028 if (obj8) {
18029 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
18030 if (!SWIG_IsOK(res9)) {
18031 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
18032 }
18033 if (!argp9) {
18034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
18035 }
18036 arg9 = reinterpret_cast< wxValidator * >(argp9);
18037 }
18038 if (obj9) {
18039 {
18040 arg10 = wxString_in_helper(obj9);
18041 if (arg10 == NULL) SWIG_fail;
18042 temp10 = true;
18043 }
18044 }
18045 {
18046 if (!wxPyCheckForApp()) SWIG_fail;
18047 PyThreadState* __tstate = wxPyBeginAllowThreads();
18048 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
18049 wxPyEndAllowThreads(__tstate);
18050 if (PyErr_Occurred()) SWIG_fail;
18051 }
18052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
18053 {
18054 if (temp10)
18055 delete arg10;
18056 }
18057 return resultobj;
18058 fail:
18059 {
18060 if (temp10)
18061 delete arg10;
18062 }
18063 return NULL;
18064 }
18065
18066
18067 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18068 PyObject *resultobj = 0;
18069 wxSlider *result = 0 ;
18070
18071 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
18072 {
18073 if (!wxPyCheckForApp()) SWIG_fail;
18074 PyThreadState* __tstate = wxPyBeginAllowThreads();
18075 result = (wxSlider *)new wxSlider();
18076 wxPyEndAllowThreads(__tstate);
18077 if (PyErr_Occurred()) SWIG_fail;
18078 }
18079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
18080 return resultobj;
18081 fail:
18082 return NULL;
18083 }
18084
18085
18086 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18087 PyObject *resultobj = 0;
18088 wxSlider *arg1 = (wxSlider *) 0 ;
18089 wxWindow *arg2 = (wxWindow *) 0 ;
18090 int arg3 = (int) -1 ;
18091 int arg4 = (int) 0 ;
18092 int arg5 = (int) 0 ;
18093 int arg6 = (int) 100 ;
18094 wxPoint const &arg7_defvalue = wxDefaultPosition ;
18095 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
18096 wxSize const &arg8_defvalue = wxDefaultSize ;
18097 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
18098 long arg9 = (long) wxSL_HORIZONTAL ;
18099 wxValidator const &arg10_defvalue = wxDefaultValidator ;
18100 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
18101 wxString const &arg11_defvalue = wxPySliderNameStr ;
18102 wxString *arg11 = (wxString *) &arg11_defvalue ;
18103 bool result;
18104 void *argp1 = 0 ;
18105 int res1 = 0 ;
18106 void *argp2 = 0 ;
18107 int res2 = 0 ;
18108 int val3 ;
18109 int ecode3 = 0 ;
18110 int val4 ;
18111 int ecode4 = 0 ;
18112 int val5 ;
18113 int ecode5 = 0 ;
18114 int val6 ;
18115 int ecode6 = 0 ;
18116 wxPoint temp7 ;
18117 wxSize temp8 ;
18118 long val9 ;
18119 int ecode9 = 0 ;
18120 void *argp10 = 0 ;
18121 int res10 = 0 ;
18122 bool temp11 = false ;
18123 PyObject * obj0 = 0 ;
18124 PyObject * obj1 = 0 ;
18125 PyObject * obj2 = 0 ;
18126 PyObject * obj3 = 0 ;
18127 PyObject * obj4 = 0 ;
18128 PyObject * obj5 = 0 ;
18129 PyObject * obj6 = 0 ;
18130 PyObject * obj7 = 0 ;
18131 PyObject * obj8 = 0 ;
18132 PyObject * obj9 = 0 ;
18133 PyObject * obj10 = 0 ;
18134 char * kwnames[] = {
18135 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18136 };
18137
18138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
18139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18140 if (!SWIG_IsOK(res1)) {
18141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
18142 }
18143 arg1 = reinterpret_cast< wxSlider * >(argp1);
18144 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18145 if (!SWIG_IsOK(res2)) {
18146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18147 }
18148 arg2 = reinterpret_cast< wxWindow * >(argp2);
18149 if (obj2) {
18150 ecode3 = SWIG_AsVal_int(obj2, &val3);
18151 if (!SWIG_IsOK(ecode3)) {
18152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
18153 }
18154 arg3 = static_cast< int >(val3);
18155 }
18156 if (obj3) {
18157 ecode4 = SWIG_AsVal_int(obj3, &val4);
18158 if (!SWIG_IsOK(ecode4)) {
18159 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
18160 }
18161 arg4 = static_cast< int >(val4);
18162 }
18163 if (obj4) {
18164 ecode5 = SWIG_AsVal_int(obj4, &val5);
18165 if (!SWIG_IsOK(ecode5)) {
18166 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
18167 }
18168 arg5 = static_cast< int >(val5);
18169 }
18170 if (obj5) {
18171 ecode6 = SWIG_AsVal_int(obj5, &val6);
18172 if (!SWIG_IsOK(ecode6)) {
18173 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
18174 }
18175 arg6 = static_cast< int >(val6);
18176 }
18177 if (obj6) {
18178 {
18179 arg7 = &temp7;
18180 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
18181 }
18182 }
18183 if (obj7) {
18184 {
18185 arg8 = &temp8;
18186 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
18187 }
18188 }
18189 if (obj8) {
18190 ecode9 = SWIG_AsVal_long(obj8, &val9);
18191 if (!SWIG_IsOK(ecode9)) {
18192 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
18193 }
18194 arg9 = static_cast< long >(val9);
18195 }
18196 if (obj9) {
18197 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
18198 if (!SWIG_IsOK(res10)) {
18199 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18200 }
18201 if (!argp10) {
18202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
18203 }
18204 arg10 = reinterpret_cast< wxValidator * >(argp10);
18205 }
18206 if (obj10) {
18207 {
18208 arg11 = wxString_in_helper(obj10);
18209 if (arg11 == NULL) SWIG_fail;
18210 temp11 = true;
18211 }
18212 }
18213 {
18214 PyThreadState* __tstate = wxPyBeginAllowThreads();
18215 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
18216 wxPyEndAllowThreads(__tstate);
18217 if (PyErr_Occurred()) SWIG_fail;
18218 }
18219 {
18220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18221 }
18222 {
18223 if (temp11)
18224 delete arg11;
18225 }
18226 return resultobj;
18227 fail:
18228 {
18229 if (temp11)
18230 delete arg11;
18231 }
18232 return NULL;
18233 }
18234
18235
18236 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18237 PyObject *resultobj = 0;
18238 wxSlider *arg1 = (wxSlider *) 0 ;
18239 int result;
18240 void *argp1 = 0 ;
18241 int res1 = 0 ;
18242 PyObject *swig_obj[1] ;
18243
18244 if (!args) SWIG_fail;
18245 swig_obj[0] = args;
18246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18247 if (!SWIG_IsOK(res1)) {
18248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
18249 }
18250 arg1 = reinterpret_cast< wxSlider * >(argp1);
18251 {
18252 PyThreadState* __tstate = wxPyBeginAllowThreads();
18253 result = (int)((wxSlider const *)arg1)->GetValue();
18254 wxPyEndAllowThreads(__tstate);
18255 if (PyErr_Occurred()) SWIG_fail;
18256 }
18257 resultobj = SWIG_From_int(static_cast< int >(result));
18258 return resultobj;
18259 fail:
18260 return NULL;
18261 }
18262
18263
18264 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18265 PyObject *resultobj = 0;
18266 wxSlider *arg1 = (wxSlider *) 0 ;
18267 int arg2 ;
18268 void *argp1 = 0 ;
18269 int res1 = 0 ;
18270 int val2 ;
18271 int ecode2 = 0 ;
18272 PyObject * obj0 = 0 ;
18273 PyObject * obj1 = 0 ;
18274 char * kwnames[] = {
18275 (char *) "self",(char *) "value", NULL
18276 };
18277
18278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18280 if (!SWIG_IsOK(res1)) {
18281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
18282 }
18283 arg1 = reinterpret_cast< wxSlider * >(argp1);
18284 ecode2 = SWIG_AsVal_int(obj1, &val2);
18285 if (!SWIG_IsOK(ecode2)) {
18286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
18287 }
18288 arg2 = static_cast< int >(val2);
18289 {
18290 PyThreadState* __tstate = wxPyBeginAllowThreads();
18291 (arg1)->SetValue(arg2);
18292 wxPyEndAllowThreads(__tstate);
18293 if (PyErr_Occurred()) SWIG_fail;
18294 }
18295 resultobj = SWIG_Py_Void();
18296 return resultobj;
18297 fail:
18298 return NULL;
18299 }
18300
18301
18302 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18303 PyObject *resultobj = 0;
18304 wxSlider *arg1 = (wxSlider *) 0 ;
18305 int arg2 ;
18306 int arg3 ;
18307 void *argp1 = 0 ;
18308 int res1 = 0 ;
18309 int val2 ;
18310 int ecode2 = 0 ;
18311 int val3 ;
18312 int ecode3 = 0 ;
18313 PyObject * obj0 = 0 ;
18314 PyObject * obj1 = 0 ;
18315 PyObject * obj2 = 0 ;
18316 char * kwnames[] = {
18317 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
18318 };
18319
18320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18322 if (!SWIG_IsOK(res1)) {
18323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
18324 }
18325 arg1 = reinterpret_cast< wxSlider * >(argp1);
18326 ecode2 = SWIG_AsVal_int(obj1, &val2);
18327 if (!SWIG_IsOK(ecode2)) {
18328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
18329 }
18330 arg2 = static_cast< int >(val2);
18331 ecode3 = SWIG_AsVal_int(obj2, &val3);
18332 if (!SWIG_IsOK(ecode3)) {
18333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18334 }
18335 arg3 = static_cast< int >(val3);
18336 {
18337 PyThreadState* __tstate = wxPyBeginAllowThreads();
18338 (arg1)->SetRange(arg2,arg3);
18339 wxPyEndAllowThreads(__tstate);
18340 if (PyErr_Occurred()) SWIG_fail;
18341 }
18342 resultobj = SWIG_Py_Void();
18343 return resultobj;
18344 fail:
18345 return NULL;
18346 }
18347
18348
18349 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18350 PyObject *resultobj = 0;
18351 wxSlider *arg1 = (wxSlider *) 0 ;
18352 int result;
18353 void *argp1 = 0 ;
18354 int res1 = 0 ;
18355 PyObject *swig_obj[1] ;
18356
18357 if (!args) SWIG_fail;
18358 swig_obj[0] = args;
18359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18360 if (!SWIG_IsOK(res1)) {
18361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18362 }
18363 arg1 = reinterpret_cast< wxSlider * >(argp1);
18364 {
18365 PyThreadState* __tstate = wxPyBeginAllowThreads();
18366 result = (int)((wxSlider const *)arg1)->GetMin();
18367 wxPyEndAllowThreads(__tstate);
18368 if (PyErr_Occurred()) SWIG_fail;
18369 }
18370 resultobj = SWIG_From_int(static_cast< int >(result));
18371 return resultobj;
18372 fail:
18373 return NULL;
18374 }
18375
18376
18377 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18378 PyObject *resultobj = 0;
18379 wxSlider *arg1 = (wxSlider *) 0 ;
18380 int result;
18381 void *argp1 = 0 ;
18382 int res1 = 0 ;
18383 PyObject *swig_obj[1] ;
18384
18385 if (!args) SWIG_fail;
18386 swig_obj[0] = args;
18387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18388 if (!SWIG_IsOK(res1)) {
18389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18390 }
18391 arg1 = reinterpret_cast< wxSlider * >(argp1);
18392 {
18393 PyThreadState* __tstate = wxPyBeginAllowThreads();
18394 result = (int)((wxSlider const *)arg1)->GetMax();
18395 wxPyEndAllowThreads(__tstate);
18396 if (PyErr_Occurred()) SWIG_fail;
18397 }
18398 resultobj = SWIG_From_int(static_cast< int >(result));
18399 return resultobj;
18400 fail:
18401 return NULL;
18402 }
18403
18404
18405 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18406 PyObject *resultobj = 0;
18407 wxSlider *arg1 = (wxSlider *) 0 ;
18408 int arg2 ;
18409 void *argp1 = 0 ;
18410 int res1 = 0 ;
18411 int val2 ;
18412 int ecode2 = 0 ;
18413 PyObject * obj0 = 0 ;
18414 PyObject * obj1 = 0 ;
18415 char * kwnames[] = {
18416 (char *) "self",(char *) "minValue", NULL
18417 };
18418
18419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18421 if (!SWIG_IsOK(res1)) {
18422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18423 }
18424 arg1 = reinterpret_cast< wxSlider * >(argp1);
18425 ecode2 = SWIG_AsVal_int(obj1, &val2);
18426 if (!SWIG_IsOK(ecode2)) {
18427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18428 }
18429 arg2 = static_cast< int >(val2);
18430 {
18431 PyThreadState* __tstate = wxPyBeginAllowThreads();
18432 (arg1)->SetMin(arg2);
18433 wxPyEndAllowThreads(__tstate);
18434 if (PyErr_Occurred()) SWIG_fail;
18435 }
18436 resultobj = SWIG_Py_Void();
18437 return resultobj;
18438 fail:
18439 return NULL;
18440 }
18441
18442
18443 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18444 PyObject *resultobj = 0;
18445 wxSlider *arg1 = (wxSlider *) 0 ;
18446 int arg2 ;
18447 void *argp1 = 0 ;
18448 int res1 = 0 ;
18449 int val2 ;
18450 int ecode2 = 0 ;
18451 PyObject * obj0 = 0 ;
18452 PyObject * obj1 = 0 ;
18453 char * kwnames[] = {
18454 (char *) "self",(char *) "maxValue", NULL
18455 };
18456
18457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18459 if (!SWIG_IsOK(res1)) {
18460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18461 }
18462 arg1 = reinterpret_cast< wxSlider * >(argp1);
18463 ecode2 = SWIG_AsVal_int(obj1, &val2);
18464 if (!SWIG_IsOK(ecode2)) {
18465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18466 }
18467 arg2 = static_cast< int >(val2);
18468 {
18469 PyThreadState* __tstate = wxPyBeginAllowThreads();
18470 (arg1)->SetMax(arg2);
18471 wxPyEndAllowThreads(__tstate);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 resultobj = SWIG_Py_Void();
18475 return resultobj;
18476 fail:
18477 return NULL;
18478 }
18479
18480
18481 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18482 PyObject *resultobj = 0;
18483 wxSlider *arg1 = (wxSlider *) 0 ;
18484 int arg2 ;
18485 void *argp1 = 0 ;
18486 int res1 = 0 ;
18487 int val2 ;
18488 int ecode2 = 0 ;
18489 PyObject * obj0 = 0 ;
18490 PyObject * obj1 = 0 ;
18491 char * kwnames[] = {
18492 (char *) "self",(char *) "lineSize", NULL
18493 };
18494
18495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18497 if (!SWIG_IsOK(res1)) {
18498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18499 }
18500 arg1 = reinterpret_cast< wxSlider * >(argp1);
18501 ecode2 = SWIG_AsVal_int(obj1, &val2);
18502 if (!SWIG_IsOK(ecode2)) {
18503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18504 }
18505 arg2 = static_cast< int >(val2);
18506 {
18507 PyThreadState* __tstate = wxPyBeginAllowThreads();
18508 (arg1)->SetLineSize(arg2);
18509 wxPyEndAllowThreads(__tstate);
18510 if (PyErr_Occurred()) SWIG_fail;
18511 }
18512 resultobj = SWIG_Py_Void();
18513 return resultobj;
18514 fail:
18515 return NULL;
18516 }
18517
18518
18519 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18520 PyObject *resultobj = 0;
18521 wxSlider *arg1 = (wxSlider *) 0 ;
18522 int arg2 ;
18523 void *argp1 = 0 ;
18524 int res1 = 0 ;
18525 int val2 ;
18526 int ecode2 = 0 ;
18527 PyObject * obj0 = 0 ;
18528 PyObject * obj1 = 0 ;
18529 char * kwnames[] = {
18530 (char *) "self",(char *) "pageSize", NULL
18531 };
18532
18533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18535 if (!SWIG_IsOK(res1)) {
18536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18537 }
18538 arg1 = reinterpret_cast< wxSlider * >(argp1);
18539 ecode2 = SWIG_AsVal_int(obj1, &val2);
18540 if (!SWIG_IsOK(ecode2)) {
18541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18542 }
18543 arg2 = static_cast< int >(val2);
18544 {
18545 PyThreadState* __tstate = wxPyBeginAllowThreads();
18546 (arg1)->SetPageSize(arg2);
18547 wxPyEndAllowThreads(__tstate);
18548 if (PyErr_Occurred()) SWIG_fail;
18549 }
18550 resultobj = SWIG_Py_Void();
18551 return resultobj;
18552 fail:
18553 return NULL;
18554 }
18555
18556
18557 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18558 PyObject *resultobj = 0;
18559 wxSlider *arg1 = (wxSlider *) 0 ;
18560 int result;
18561 void *argp1 = 0 ;
18562 int res1 = 0 ;
18563 PyObject *swig_obj[1] ;
18564
18565 if (!args) SWIG_fail;
18566 swig_obj[0] = args;
18567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18568 if (!SWIG_IsOK(res1)) {
18569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18570 }
18571 arg1 = reinterpret_cast< wxSlider * >(argp1);
18572 {
18573 PyThreadState* __tstate = wxPyBeginAllowThreads();
18574 result = (int)((wxSlider const *)arg1)->GetLineSize();
18575 wxPyEndAllowThreads(__tstate);
18576 if (PyErr_Occurred()) SWIG_fail;
18577 }
18578 resultobj = SWIG_From_int(static_cast< int >(result));
18579 return resultobj;
18580 fail:
18581 return NULL;
18582 }
18583
18584
18585 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18586 PyObject *resultobj = 0;
18587 wxSlider *arg1 = (wxSlider *) 0 ;
18588 int result;
18589 void *argp1 = 0 ;
18590 int res1 = 0 ;
18591 PyObject *swig_obj[1] ;
18592
18593 if (!args) SWIG_fail;
18594 swig_obj[0] = args;
18595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18596 if (!SWIG_IsOK(res1)) {
18597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18598 }
18599 arg1 = reinterpret_cast< wxSlider * >(argp1);
18600 {
18601 PyThreadState* __tstate = wxPyBeginAllowThreads();
18602 result = (int)((wxSlider const *)arg1)->GetPageSize();
18603 wxPyEndAllowThreads(__tstate);
18604 if (PyErr_Occurred()) SWIG_fail;
18605 }
18606 resultobj = SWIG_From_int(static_cast< int >(result));
18607 return resultobj;
18608 fail:
18609 return NULL;
18610 }
18611
18612
18613 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18614 PyObject *resultobj = 0;
18615 wxSlider *arg1 = (wxSlider *) 0 ;
18616 int arg2 ;
18617 void *argp1 = 0 ;
18618 int res1 = 0 ;
18619 int val2 ;
18620 int ecode2 = 0 ;
18621 PyObject * obj0 = 0 ;
18622 PyObject * obj1 = 0 ;
18623 char * kwnames[] = {
18624 (char *) "self",(char *) "lenPixels", NULL
18625 };
18626
18627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18629 if (!SWIG_IsOK(res1)) {
18630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18631 }
18632 arg1 = reinterpret_cast< wxSlider * >(argp1);
18633 ecode2 = SWIG_AsVal_int(obj1, &val2);
18634 if (!SWIG_IsOK(ecode2)) {
18635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18636 }
18637 arg2 = static_cast< int >(val2);
18638 {
18639 PyThreadState* __tstate = wxPyBeginAllowThreads();
18640 (arg1)->SetThumbLength(arg2);
18641 wxPyEndAllowThreads(__tstate);
18642 if (PyErr_Occurred()) SWIG_fail;
18643 }
18644 resultobj = SWIG_Py_Void();
18645 return resultobj;
18646 fail:
18647 return NULL;
18648 }
18649
18650
18651 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18652 PyObject *resultobj = 0;
18653 wxSlider *arg1 = (wxSlider *) 0 ;
18654 int result;
18655 void *argp1 = 0 ;
18656 int res1 = 0 ;
18657 PyObject *swig_obj[1] ;
18658
18659 if (!args) SWIG_fail;
18660 swig_obj[0] = args;
18661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18662 if (!SWIG_IsOK(res1)) {
18663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18664 }
18665 arg1 = reinterpret_cast< wxSlider * >(argp1);
18666 {
18667 PyThreadState* __tstate = wxPyBeginAllowThreads();
18668 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18669 wxPyEndAllowThreads(__tstate);
18670 if (PyErr_Occurred()) SWIG_fail;
18671 }
18672 resultobj = SWIG_From_int(static_cast< int >(result));
18673 return resultobj;
18674 fail:
18675 return NULL;
18676 }
18677
18678
18679 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18680 PyObject *resultobj = 0;
18681 wxSlider *arg1 = (wxSlider *) 0 ;
18682 int arg2 ;
18683 int arg3 = (int) 1 ;
18684 void *argp1 = 0 ;
18685 int res1 = 0 ;
18686 int val2 ;
18687 int ecode2 = 0 ;
18688 int val3 ;
18689 int ecode3 = 0 ;
18690 PyObject * obj0 = 0 ;
18691 PyObject * obj1 = 0 ;
18692 PyObject * obj2 = 0 ;
18693 char * kwnames[] = {
18694 (char *) "self",(char *) "n",(char *) "pos", NULL
18695 };
18696
18697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18699 if (!SWIG_IsOK(res1)) {
18700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18701 }
18702 arg1 = reinterpret_cast< wxSlider * >(argp1);
18703 ecode2 = SWIG_AsVal_int(obj1, &val2);
18704 if (!SWIG_IsOK(ecode2)) {
18705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18706 }
18707 arg2 = static_cast< int >(val2);
18708 if (obj2) {
18709 ecode3 = SWIG_AsVal_int(obj2, &val3);
18710 if (!SWIG_IsOK(ecode3)) {
18711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18712 }
18713 arg3 = static_cast< int >(val3);
18714 }
18715 {
18716 PyThreadState* __tstate = wxPyBeginAllowThreads();
18717 (arg1)->SetTickFreq(arg2,arg3);
18718 wxPyEndAllowThreads(__tstate);
18719 if (PyErr_Occurred()) SWIG_fail;
18720 }
18721 resultobj = SWIG_Py_Void();
18722 return resultobj;
18723 fail:
18724 return NULL;
18725 }
18726
18727
18728 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18729 PyObject *resultobj = 0;
18730 wxSlider *arg1 = (wxSlider *) 0 ;
18731 int result;
18732 void *argp1 = 0 ;
18733 int res1 = 0 ;
18734 PyObject *swig_obj[1] ;
18735
18736 if (!args) SWIG_fail;
18737 swig_obj[0] = args;
18738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18739 if (!SWIG_IsOK(res1)) {
18740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18741 }
18742 arg1 = reinterpret_cast< wxSlider * >(argp1);
18743 {
18744 PyThreadState* __tstate = wxPyBeginAllowThreads();
18745 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18746 wxPyEndAllowThreads(__tstate);
18747 if (PyErr_Occurred()) SWIG_fail;
18748 }
18749 resultobj = SWIG_From_int(static_cast< int >(result));
18750 return resultobj;
18751 fail:
18752 return NULL;
18753 }
18754
18755
18756 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18757 PyObject *resultobj = 0;
18758 wxSlider *arg1 = (wxSlider *) 0 ;
18759 void *argp1 = 0 ;
18760 int res1 = 0 ;
18761 PyObject *swig_obj[1] ;
18762
18763 if (!args) SWIG_fail;
18764 swig_obj[0] = args;
18765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18766 if (!SWIG_IsOK(res1)) {
18767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18768 }
18769 arg1 = reinterpret_cast< wxSlider * >(argp1);
18770 {
18771 PyThreadState* __tstate = wxPyBeginAllowThreads();
18772 (arg1)->ClearTicks();
18773 wxPyEndAllowThreads(__tstate);
18774 if (PyErr_Occurred()) SWIG_fail;
18775 }
18776 resultobj = SWIG_Py_Void();
18777 return resultobj;
18778 fail:
18779 return NULL;
18780 }
18781
18782
18783 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18784 PyObject *resultobj = 0;
18785 wxSlider *arg1 = (wxSlider *) 0 ;
18786 int arg2 ;
18787 void *argp1 = 0 ;
18788 int res1 = 0 ;
18789 int val2 ;
18790 int ecode2 = 0 ;
18791 PyObject * obj0 = 0 ;
18792 PyObject * obj1 = 0 ;
18793 char * kwnames[] = {
18794 (char *) "self",(char *) "tickPos", NULL
18795 };
18796
18797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18799 if (!SWIG_IsOK(res1)) {
18800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18801 }
18802 arg1 = reinterpret_cast< wxSlider * >(argp1);
18803 ecode2 = SWIG_AsVal_int(obj1, &val2);
18804 if (!SWIG_IsOK(ecode2)) {
18805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18806 }
18807 arg2 = static_cast< int >(val2);
18808 {
18809 PyThreadState* __tstate = wxPyBeginAllowThreads();
18810 (arg1)->SetTick(arg2);
18811 wxPyEndAllowThreads(__tstate);
18812 if (PyErr_Occurred()) SWIG_fail;
18813 }
18814 resultobj = SWIG_Py_Void();
18815 return resultobj;
18816 fail:
18817 return NULL;
18818 }
18819
18820
18821 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18822 PyObject *resultobj = 0;
18823 wxSlider *arg1 = (wxSlider *) 0 ;
18824 void *argp1 = 0 ;
18825 int res1 = 0 ;
18826 PyObject *swig_obj[1] ;
18827
18828 if (!args) SWIG_fail;
18829 swig_obj[0] = args;
18830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18831 if (!SWIG_IsOK(res1)) {
18832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18833 }
18834 arg1 = reinterpret_cast< wxSlider * >(argp1);
18835 {
18836 PyThreadState* __tstate = wxPyBeginAllowThreads();
18837 (arg1)->ClearSel();
18838 wxPyEndAllowThreads(__tstate);
18839 if (PyErr_Occurred()) SWIG_fail;
18840 }
18841 resultobj = SWIG_Py_Void();
18842 return resultobj;
18843 fail:
18844 return NULL;
18845 }
18846
18847
18848 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18849 PyObject *resultobj = 0;
18850 wxSlider *arg1 = (wxSlider *) 0 ;
18851 int result;
18852 void *argp1 = 0 ;
18853 int res1 = 0 ;
18854 PyObject *swig_obj[1] ;
18855
18856 if (!args) SWIG_fail;
18857 swig_obj[0] = args;
18858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18859 if (!SWIG_IsOK(res1)) {
18860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18861 }
18862 arg1 = reinterpret_cast< wxSlider * >(argp1);
18863 {
18864 PyThreadState* __tstate = wxPyBeginAllowThreads();
18865 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18866 wxPyEndAllowThreads(__tstate);
18867 if (PyErr_Occurred()) SWIG_fail;
18868 }
18869 resultobj = SWIG_From_int(static_cast< int >(result));
18870 return resultobj;
18871 fail:
18872 return NULL;
18873 }
18874
18875
18876 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18877 PyObject *resultobj = 0;
18878 wxSlider *arg1 = (wxSlider *) 0 ;
18879 int result;
18880 void *argp1 = 0 ;
18881 int res1 = 0 ;
18882 PyObject *swig_obj[1] ;
18883
18884 if (!args) SWIG_fail;
18885 swig_obj[0] = args;
18886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18887 if (!SWIG_IsOK(res1)) {
18888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18889 }
18890 arg1 = reinterpret_cast< wxSlider * >(argp1);
18891 {
18892 PyThreadState* __tstate = wxPyBeginAllowThreads();
18893 result = (int)((wxSlider const *)arg1)->GetSelStart();
18894 wxPyEndAllowThreads(__tstate);
18895 if (PyErr_Occurred()) SWIG_fail;
18896 }
18897 resultobj = SWIG_From_int(static_cast< int >(result));
18898 return resultobj;
18899 fail:
18900 return NULL;
18901 }
18902
18903
18904 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18905 PyObject *resultobj = 0;
18906 wxSlider *arg1 = (wxSlider *) 0 ;
18907 int arg2 ;
18908 int arg3 ;
18909 void *argp1 = 0 ;
18910 int res1 = 0 ;
18911 int val2 ;
18912 int ecode2 = 0 ;
18913 int val3 ;
18914 int ecode3 = 0 ;
18915 PyObject * obj0 = 0 ;
18916 PyObject * obj1 = 0 ;
18917 PyObject * obj2 = 0 ;
18918 char * kwnames[] = {
18919 (char *) "self",(char *) "min",(char *) "max", NULL
18920 };
18921
18922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18924 if (!SWIG_IsOK(res1)) {
18925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18926 }
18927 arg1 = reinterpret_cast< wxSlider * >(argp1);
18928 ecode2 = SWIG_AsVal_int(obj1, &val2);
18929 if (!SWIG_IsOK(ecode2)) {
18930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18931 }
18932 arg2 = static_cast< int >(val2);
18933 ecode3 = SWIG_AsVal_int(obj2, &val3);
18934 if (!SWIG_IsOK(ecode3)) {
18935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18936 }
18937 arg3 = static_cast< int >(val3);
18938 {
18939 PyThreadState* __tstate = wxPyBeginAllowThreads();
18940 (arg1)->SetSelection(arg2,arg3);
18941 wxPyEndAllowThreads(__tstate);
18942 if (PyErr_Occurred()) SWIG_fail;
18943 }
18944 resultobj = SWIG_Py_Void();
18945 return resultobj;
18946 fail:
18947 return NULL;
18948 }
18949
18950
18951 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18952 PyObject *resultobj = 0;
18953 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18954 SwigValueWrapper<wxVisualAttributes > result;
18955 int val1 ;
18956 int ecode1 = 0 ;
18957 PyObject * obj0 = 0 ;
18958 char * kwnames[] = {
18959 (char *) "variant", NULL
18960 };
18961
18962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18963 if (obj0) {
18964 ecode1 = SWIG_AsVal_int(obj0, &val1);
18965 if (!SWIG_IsOK(ecode1)) {
18966 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18967 }
18968 arg1 = static_cast< wxWindowVariant >(val1);
18969 }
18970 {
18971 if (!wxPyCheckForApp()) SWIG_fail;
18972 PyThreadState* __tstate = wxPyBeginAllowThreads();
18973 result = wxSlider::GetClassDefaultAttributes(arg1);
18974 wxPyEndAllowThreads(__tstate);
18975 if (PyErr_Occurred()) SWIG_fail;
18976 }
18977 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18978 return resultobj;
18979 fail:
18980 return NULL;
18981 }
18982
18983
18984 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18985 PyObject *obj;
18986 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18987 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18988 return SWIG_Py_Void();
18989 }
18990
18991 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18992 return SWIG_Python_InitShadowInstance(args);
18993 }
18994
18995 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18996 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18997 return 1;
18998 }
18999
19000
19001 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
19002 PyObject *pyobj = 0;
19003
19004 {
19005 #if wxUSE_UNICODE
19006 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
19007 #else
19008 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
19009 #endif
19010 }
19011 return pyobj;
19012 }
19013
19014
19015 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19016 PyObject *resultobj = 0;
19017 wxWindow *arg1 = (wxWindow *) 0 ;
19018 int arg2 = (int) -1 ;
19019 wxString const &arg3_defvalue = wxPyEmptyString ;
19020 wxString *arg3 = (wxString *) &arg3_defvalue ;
19021 wxPoint const &arg4_defvalue = wxDefaultPosition ;
19022 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
19023 wxSize const &arg5_defvalue = wxDefaultSize ;
19024 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
19025 long arg6 = (long) 0 ;
19026 wxValidator const &arg7_defvalue = wxDefaultValidator ;
19027 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
19028 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
19029 wxString *arg8 = (wxString *) &arg8_defvalue ;
19030 wxToggleButton *result = 0 ;
19031 void *argp1 = 0 ;
19032 int res1 = 0 ;
19033 int val2 ;
19034 int ecode2 = 0 ;
19035 bool temp3 = false ;
19036 wxPoint temp4 ;
19037 wxSize temp5 ;
19038 long val6 ;
19039 int ecode6 = 0 ;
19040 void *argp7 = 0 ;
19041 int res7 = 0 ;
19042 bool temp8 = false ;
19043 PyObject * obj0 = 0 ;
19044 PyObject * obj1 = 0 ;
19045 PyObject * obj2 = 0 ;
19046 PyObject * obj3 = 0 ;
19047 PyObject * obj4 = 0 ;
19048 PyObject * obj5 = 0 ;
19049 PyObject * obj6 = 0 ;
19050 PyObject * obj7 = 0 ;
19051 char * kwnames[] = {
19052 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19053 };
19054
19055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
19057 if (!SWIG_IsOK(res1)) {
19058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
19059 }
19060 arg1 = reinterpret_cast< wxWindow * >(argp1);
19061 if (obj1) {
19062 ecode2 = SWIG_AsVal_int(obj1, &val2);
19063 if (!SWIG_IsOK(ecode2)) {
19064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
19065 }
19066 arg2 = static_cast< int >(val2);
19067 }
19068 if (obj2) {
19069 {
19070 arg3 = wxString_in_helper(obj2);
19071 if (arg3 == NULL) SWIG_fail;
19072 temp3 = true;
19073 }
19074 }
19075 if (obj3) {
19076 {
19077 arg4 = &temp4;
19078 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
19079 }
19080 }
19081 if (obj4) {
19082 {
19083 arg5 = &temp5;
19084 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
19085 }
19086 }
19087 if (obj5) {
19088 ecode6 = SWIG_AsVal_long(obj5, &val6);
19089 if (!SWIG_IsOK(ecode6)) {
19090 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
19091 }
19092 arg6 = static_cast< long >(val6);
19093 }
19094 if (obj6) {
19095 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
19096 if (!SWIG_IsOK(res7)) {
19097 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
19098 }
19099 if (!argp7) {
19100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
19101 }
19102 arg7 = reinterpret_cast< wxValidator * >(argp7);
19103 }
19104 if (obj7) {
19105 {
19106 arg8 = wxString_in_helper(obj7);
19107 if (arg8 == NULL) SWIG_fail;
19108 temp8 = true;
19109 }
19110 }
19111 {
19112 if (!wxPyCheckForApp()) SWIG_fail;
19113 PyThreadState* __tstate = wxPyBeginAllowThreads();
19114 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
19115 wxPyEndAllowThreads(__tstate);
19116 if (PyErr_Occurred()) SWIG_fail;
19117 }
19118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
19119 {
19120 if (temp3)
19121 delete arg3;
19122 }
19123 {
19124 if (temp8)
19125 delete arg8;
19126 }
19127 return resultobj;
19128 fail:
19129 {
19130 if (temp3)
19131 delete arg3;
19132 }
19133 {
19134 if (temp8)
19135 delete arg8;
19136 }
19137 return NULL;
19138 }
19139
19140
19141 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19142 PyObject *resultobj = 0;
19143 wxToggleButton *result = 0 ;
19144
19145 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
19146 {
19147 if (!wxPyCheckForApp()) SWIG_fail;
19148 PyThreadState* __tstate = wxPyBeginAllowThreads();
19149 result = (wxToggleButton *)new wxToggleButton();
19150 wxPyEndAllowThreads(__tstate);
19151 if (PyErr_Occurred()) SWIG_fail;
19152 }
19153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
19154 return resultobj;
19155 fail:
19156 return NULL;
19157 }
19158
19159
19160 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19161 PyObject *resultobj = 0;
19162 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19163 wxWindow *arg2 = (wxWindow *) 0 ;
19164 int arg3 = (int) -1 ;
19165 wxString const &arg4_defvalue = wxPyEmptyString ;
19166 wxString *arg4 = (wxString *) &arg4_defvalue ;
19167 wxPoint const &arg5_defvalue = wxDefaultPosition ;
19168 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
19169 wxSize const &arg6_defvalue = wxDefaultSize ;
19170 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
19171 long arg7 = (long) 0 ;
19172 wxValidator const &arg8_defvalue = wxDefaultValidator ;
19173 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
19174 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
19175 wxString *arg9 = (wxString *) &arg9_defvalue ;
19176 bool result;
19177 void *argp1 = 0 ;
19178 int res1 = 0 ;
19179 void *argp2 = 0 ;
19180 int res2 = 0 ;
19181 int val3 ;
19182 int ecode3 = 0 ;
19183 bool temp4 = false ;
19184 wxPoint temp5 ;
19185 wxSize temp6 ;
19186 long val7 ;
19187 int ecode7 = 0 ;
19188 void *argp8 = 0 ;
19189 int res8 = 0 ;
19190 bool temp9 = false ;
19191 PyObject * obj0 = 0 ;
19192 PyObject * obj1 = 0 ;
19193 PyObject * obj2 = 0 ;
19194 PyObject * obj3 = 0 ;
19195 PyObject * obj4 = 0 ;
19196 PyObject * obj5 = 0 ;
19197 PyObject * obj6 = 0 ;
19198 PyObject * obj7 = 0 ;
19199 PyObject * obj8 = 0 ;
19200 char * kwnames[] = {
19201 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
19202 };
19203
19204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
19205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19206 if (!SWIG_IsOK(res1)) {
19207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19208 }
19209 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19211 if (!SWIG_IsOK(res2)) {
19212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
19213 }
19214 arg2 = reinterpret_cast< wxWindow * >(argp2);
19215 if (obj2) {
19216 ecode3 = SWIG_AsVal_int(obj2, &val3);
19217 if (!SWIG_IsOK(ecode3)) {
19218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
19219 }
19220 arg3 = static_cast< int >(val3);
19221 }
19222 if (obj3) {
19223 {
19224 arg4 = wxString_in_helper(obj3);
19225 if (arg4 == NULL) SWIG_fail;
19226 temp4 = true;
19227 }
19228 }
19229 if (obj4) {
19230 {
19231 arg5 = &temp5;
19232 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19233 }
19234 }
19235 if (obj5) {
19236 {
19237 arg6 = &temp6;
19238 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
19239 }
19240 }
19241 if (obj6) {
19242 ecode7 = SWIG_AsVal_long(obj6, &val7);
19243 if (!SWIG_IsOK(ecode7)) {
19244 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
19245 }
19246 arg7 = static_cast< long >(val7);
19247 }
19248 if (obj7) {
19249 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
19250 if (!SWIG_IsOK(res8)) {
19251 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19252 }
19253 if (!argp8) {
19254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
19255 }
19256 arg8 = reinterpret_cast< wxValidator * >(argp8);
19257 }
19258 if (obj8) {
19259 {
19260 arg9 = wxString_in_helper(obj8);
19261 if (arg9 == NULL) SWIG_fail;
19262 temp9 = true;
19263 }
19264 }
19265 {
19266 PyThreadState* __tstate = wxPyBeginAllowThreads();
19267 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
19268 wxPyEndAllowThreads(__tstate);
19269 if (PyErr_Occurred()) SWIG_fail;
19270 }
19271 {
19272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19273 }
19274 {
19275 if (temp4)
19276 delete arg4;
19277 }
19278 {
19279 if (temp9)
19280 delete arg9;
19281 }
19282 return resultobj;
19283 fail:
19284 {
19285 if (temp4)
19286 delete arg4;
19287 }
19288 {
19289 if (temp9)
19290 delete arg9;
19291 }
19292 return NULL;
19293 }
19294
19295
19296 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19297 PyObject *resultobj = 0;
19298 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19299 bool arg2 ;
19300 void *argp1 = 0 ;
19301 int res1 = 0 ;
19302 bool val2 ;
19303 int ecode2 = 0 ;
19304 PyObject * obj0 = 0 ;
19305 PyObject * obj1 = 0 ;
19306 char * kwnames[] = {
19307 (char *) "self",(char *) "value", NULL
19308 };
19309
19310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
19311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19312 if (!SWIG_IsOK(res1)) {
19313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
19314 }
19315 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19316 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19317 if (!SWIG_IsOK(ecode2)) {
19318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
19319 }
19320 arg2 = static_cast< bool >(val2);
19321 {
19322 PyThreadState* __tstate = wxPyBeginAllowThreads();
19323 (arg1)->SetValue(arg2);
19324 wxPyEndAllowThreads(__tstate);
19325 if (PyErr_Occurred()) SWIG_fail;
19326 }
19327 resultobj = SWIG_Py_Void();
19328 return resultobj;
19329 fail:
19330 return NULL;
19331 }
19332
19333
19334 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19335 PyObject *resultobj = 0;
19336 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19337 bool result;
19338 void *argp1 = 0 ;
19339 int res1 = 0 ;
19340 PyObject *swig_obj[1] ;
19341
19342 if (!args) SWIG_fail;
19343 swig_obj[0] = args;
19344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19345 if (!SWIG_IsOK(res1)) {
19346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19347 }
19348 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19349 {
19350 PyThreadState* __tstate = wxPyBeginAllowThreads();
19351 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19352 wxPyEndAllowThreads(__tstate);
19353 if (PyErr_Occurred()) SWIG_fail;
19354 }
19355 {
19356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19357 }
19358 return resultobj;
19359 fail:
19360 return NULL;
19361 }
19362
19363
19364 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19365 PyObject *resultobj = 0;
19366 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19367 SwigValueWrapper<wxVisualAttributes > result;
19368 int val1 ;
19369 int ecode1 = 0 ;
19370 PyObject * obj0 = 0 ;
19371 char * kwnames[] = {
19372 (char *) "variant", NULL
19373 };
19374
19375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19376 if (obj0) {
19377 ecode1 = SWIG_AsVal_int(obj0, &val1);
19378 if (!SWIG_IsOK(ecode1)) {
19379 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19380 }
19381 arg1 = static_cast< wxWindowVariant >(val1);
19382 }
19383 {
19384 if (!wxPyCheckForApp()) SWIG_fail;
19385 PyThreadState* __tstate = wxPyBeginAllowThreads();
19386 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19387 wxPyEndAllowThreads(__tstate);
19388 if (PyErr_Occurred()) SWIG_fail;
19389 }
19390 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19391 return resultobj;
19392 fail:
19393 return NULL;
19394 }
19395
19396
19397 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19398 PyObject *obj;
19399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19400 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19401 return SWIG_Py_Void();
19402 }
19403
19404 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19405 return SWIG_Python_InitShadowInstance(args);
19406 }
19407
19408 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19409 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19410 return 1;
19411 }
19412
19413
19414 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19415 PyObject *pyobj = 0;
19416
19417 {
19418 #if wxUSE_UNICODE
19419 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19420 #else
19421 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19422 #endif
19423 }
19424 return pyobj;
19425 }
19426
19427
19428 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19429 PyObject *resultobj = 0;
19430 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19431 size_t result;
19432 void *argp1 = 0 ;
19433 int res1 = 0 ;
19434 PyObject *swig_obj[1] ;
19435
19436 if (!args) SWIG_fail;
19437 swig_obj[0] = args;
19438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19439 if (!SWIG_IsOK(res1)) {
19440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19441 }
19442 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19443 {
19444 PyThreadState* __tstate = wxPyBeginAllowThreads();
19445 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19446 wxPyEndAllowThreads(__tstate);
19447 if (PyErr_Occurred()) SWIG_fail;
19448 }
19449 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19450 return resultobj;
19451 fail:
19452 return NULL;
19453 }
19454
19455
19456 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19457 PyObject *resultobj = 0;
19458 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19459 size_t arg2 ;
19460 wxWindow *result = 0 ;
19461 void *argp1 = 0 ;
19462 int res1 = 0 ;
19463 size_t val2 ;
19464 int ecode2 = 0 ;
19465 PyObject * obj0 = 0 ;
19466 PyObject * obj1 = 0 ;
19467 char * kwnames[] = {
19468 (char *) "self",(char *) "n", NULL
19469 };
19470
19471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19473 if (!SWIG_IsOK(res1)) {
19474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19475 }
19476 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19477 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19478 if (!SWIG_IsOK(ecode2)) {
19479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19480 }
19481 arg2 = static_cast< size_t >(val2);
19482 {
19483 PyThreadState* __tstate = wxPyBeginAllowThreads();
19484 result = (wxWindow *)(arg1)->GetPage(arg2);
19485 wxPyEndAllowThreads(__tstate);
19486 if (PyErr_Occurred()) SWIG_fail;
19487 }
19488 {
19489 resultobj = wxPyMake_wxObject(result, 0);
19490 }
19491 return resultobj;
19492 fail:
19493 return NULL;
19494 }
19495
19496
19497 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19498 PyObject *resultobj = 0;
19499 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19500 wxWindow *result = 0 ;
19501 void *argp1 = 0 ;
19502 int res1 = 0 ;
19503 PyObject *swig_obj[1] ;
19504
19505 if (!args) SWIG_fail;
19506 swig_obj[0] = args;
19507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19508 if (!SWIG_IsOK(res1)) {
19509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19510 }
19511 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19512 {
19513 PyThreadState* __tstate = wxPyBeginAllowThreads();
19514 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19515 wxPyEndAllowThreads(__tstate);
19516 if (PyErr_Occurred()) SWIG_fail;
19517 }
19518 {
19519 resultobj = wxPyMake_wxObject(result, 0);
19520 }
19521 return resultobj;
19522 fail:
19523 return NULL;
19524 }
19525
19526
19527 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19528 PyObject *resultobj = 0;
19529 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19530 int result;
19531 void *argp1 = 0 ;
19532 int res1 = 0 ;
19533 PyObject *swig_obj[1] ;
19534
19535 if (!args) SWIG_fail;
19536 swig_obj[0] = args;
19537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19538 if (!SWIG_IsOK(res1)) {
19539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19540 }
19541 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19542 {
19543 PyThreadState* __tstate = wxPyBeginAllowThreads();
19544 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19545 wxPyEndAllowThreads(__tstate);
19546 if (PyErr_Occurred()) SWIG_fail;
19547 }
19548 resultobj = SWIG_From_int(static_cast< int >(result));
19549 return resultobj;
19550 fail:
19551 return NULL;
19552 }
19553
19554
19555 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19556 PyObject *resultobj = 0;
19557 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19558 size_t arg2 ;
19559 wxString *arg3 = 0 ;
19560 bool result;
19561 void *argp1 = 0 ;
19562 int res1 = 0 ;
19563 size_t val2 ;
19564 int ecode2 = 0 ;
19565 bool temp3 = false ;
19566 PyObject * obj0 = 0 ;
19567 PyObject * obj1 = 0 ;
19568 PyObject * obj2 = 0 ;
19569 char * kwnames[] = {
19570 (char *) "self",(char *) "n",(char *) "strText", NULL
19571 };
19572
19573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19575 if (!SWIG_IsOK(res1)) {
19576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19577 }
19578 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19579 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19580 if (!SWIG_IsOK(ecode2)) {
19581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19582 }
19583 arg2 = static_cast< size_t >(val2);
19584 {
19585 arg3 = wxString_in_helper(obj2);
19586 if (arg3 == NULL) SWIG_fail;
19587 temp3 = true;
19588 }
19589 {
19590 PyThreadState* __tstate = wxPyBeginAllowThreads();
19591 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19592 wxPyEndAllowThreads(__tstate);
19593 if (PyErr_Occurred()) SWIG_fail;
19594 }
19595 {
19596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19597 }
19598 {
19599 if (temp3)
19600 delete arg3;
19601 }
19602 return resultobj;
19603 fail:
19604 {
19605 if (temp3)
19606 delete arg3;
19607 }
19608 return NULL;
19609 }
19610
19611
19612 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19613 PyObject *resultobj = 0;
19614 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19615 size_t arg2 ;
19616 wxString result;
19617 void *argp1 = 0 ;
19618 int res1 = 0 ;
19619 size_t val2 ;
19620 int ecode2 = 0 ;
19621 PyObject * obj0 = 0 ;
19622 PyObject * obj1 = 0 ;
19623 char * kwnames[] = {
19624 (char *) "self",(char *) "n", NULL
19625 };
19626
19627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19629 if (!SWIG_IsOK(res1)) {
19630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19631 }
19632 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19633 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19634 if (!SWIG_IsOK(ecode2)) {
19635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19636 }
19637 arg2 = static_cast< size_t >(val2);
19638 {
19639 PyThreadState* __tstate = wxPyBeginAllowThreads();
19640 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19641 wxPyEndAllowThreads(__tstate);
19642 if (PyErr_Occurred()) SWIG_fail;
19643 }
19644 {
19645 #if wxUSE_UNICODE
19646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19647 #else
19648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19649 #endif
19650 }
19651 return resultobj;
19652 fail:
19653 return NULL;
19654 }
19655
19656
19657 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19658 PyObject *resultobj = 0;
19659 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19660 wxImageList *arg2 = (wxImageList *) 0 ;
19661 void *argp1 = 0 ;
19662 int res1 = 0 ;
19663 void *argp2 = 0 ;
19664 int res2 = 0 ;
19665 PyObject * obj0 = 0 ;
19666 PyObject * obj1 = 0 ;
19667 char * kwnames[] = {
19668 (char *) "self",(char *) "imageList", NULL
19669 };
19670
19671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19673 if (!SWIG_IsOK(res1)) {
19674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19675 }
19676 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19677 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19678 if (!SWIG_IsOK(res2)) {
19679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19680 }
19681 arg2 = reinterpret_cast< wxImageList * >(argp2);
19682 {
19683 PyThreadState* __tstate = wxPyBeginAllowThreads();
19684 (arg1)->SetImageList(arg2);
19685 wxPyEndAllowThreads(__tstate);
19686 if (PyErr_Occurred()) SWIG_fail;
19687 }
19688 resultobj = SWIG_Py_Void();
19689 return resultobj;
19690 fail:
19691 return NULL;
19692 }
19693
19694
19695 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19696 PyObject *resultobj = 0;
19697 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19698 wxImageList *arg2 = (wxImageList *) 0 ;
19699 void *argp1 = 0 ;
19700 int res1 = 0 ;
19701 int res2 = 0 ;
19702 PyObject * obj0 = 0 ;
19703 PyObject * obj1 = 0 ;
19704 char * kwnames[] = {
19705 (char *) "self",(char *) "imageList", NULL
19706 };
19707
19708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19710 if (!SWIG_IsOK(res1)) {
19711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19712 }
19713 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19714 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19715 if (!SWIG_IsOK(res2)) {
19716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19717 }
19718 {
19719 PyThreadState* __tstate = wxPyBeginAllowThreads();
19720 (arg1)->AssignImageList(arg2);
19721 wxPyEndAllowThreads(__tstate);
19722 if (PyErr_Occurred()) SWIG_fail;
19723 }
19724 resultobj = SWIG_Py_Void();
19725 return resultobj;
19726 fail:
19727 return NULL;
19728 }
19729
19730
19731 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19732 PyObject *resultobj = 0;
19733 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19734 wxImageList *result = 0 ;
19735 void *argp1 = 0 ;
19736 int res1 = 0 ;
19737 PyObject *swig_obj[1] ;
19738
19739 if (!args) SWIG_fail;
19740 swig_obj[0] = args;
19741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19742 if (!SWIG_IsOK(res1)) {
19743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19744 }
19745 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19746 {
19747 PyThreadState* __tstate = wxPyBeginAllowThreads();
19748 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19749 wxPyEndAllowThreads(__tstate);
19750 if (PyErr_Occurred()) SWIG_fail;
19751 }
19752 {
19753 resultobj = wxPyMake_wxObject(result, (bool)0);
19754 }
19755 return resultobj;
19756 fail:
19757 return NULL;
19758 }
19759
19760
19761 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19762 PyObject *resultobj = 0;
19763 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19764 size_t arg2 ;
19765 int result;
19766 void *argp1 = 0 ;
19767 int res1 = 0 ;
19768 size_t val2 ;
19769 int ecode2 = 0 ;
19770 PyObject * obj0 = 0 ;
19771 PyObject * obj1 = 0 ;
19772 char * kwnames[] = {
19773 (char *) "self",(char *) "n", NULL
19774 };
19775
19776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19778 if (!SWIG_IsOK(res1)) {
19779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19780 }
19781 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19782 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19783 if (!SWIG_IsOK(ecode2)) {
19784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19785 }
19786 arg2 = static_cast< size_t >(val2);
19787 {
19788 PyThreadState* __tstate = wxPyBeginAllowThreads();
19789 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19790 wxPyEndAllowThreads(__tstate);
19791 if (PyErr_Occurred()) SWIG_fail;
19792 }
19793 resultobj = SWIG_From_int(static_cast< int >(result));
19794 return resultobj;
19795 fail:
19796 return NULL;
19797 }
19798
19799
19800 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19801 PyObject *resultobj = 0;
19802 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19803 size_t arg2 ;
19804 int arg3 ;
19805 bool result;
19806 void *argp1 = 0 ;
19807 int res1 = 0 ;
19808 size_t val2 ;
19809 int ecode2 = 0 ;
19810 int val3 ;
19811 int ecode3 = 0 ;
19812 PyObject * obj0 = 0 ;
19813 PyObject * obj1 = 0 ;
19814 PyObject * obj2 = 0 ;
19815 char * kwnames[] = {
19816 (char *) "self",(char *) "n",(char *) "imageId", NULL
19817 };
19818
19819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19821 if (!SWIG_IsOK(res1)) {
19822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19823 }
19824 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19825 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19826 if (!SWIG_IsOK(ecode2)) {
19827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19828 }
19829 arg2 = static_cast< size_t >(val2);
19830 ecode3 = SWIG_AsVal_int(obj2, &val3);
19831 if (!SWIG_IsOK(ecode3)) {
19832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19833 }
19834 arg3 = static_cast< int >(val3);
19835 {
19836 PyThreadState* __tstate = wxPyBeginAllowThreads();
19837 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19838 wxPyEndAllowThreads(__tstate);
19839 if (PyErr_Occurred()) SWIG_fail;
19840 }
19841 {
19842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19843 }
19844 return resultobj;
19845 fail:
19846 return NULL;
19847 }
19848
19849
19850 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19851 PyObject *resultobj = 0;
19852 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19853 wxSize *arg2 = 0 ;
19854 void *argp1 = 0 ;
19855 int res1 = 0 ;
19856 wxSize temp2 ;
19857 PyObject * obj0 = 0 ;
19858 PyObject * obj1 = 0 ;
19859 char * kwnames[] = {
19860 (char *) "self",(char *) "size", NULL
19861 };
19862
19863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19865 if (!SWIG_IsOK(res1)) {
19866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19867 }
19868 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19869 {
19870 arg2 = &temp2;
19871 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19872 }
19873 {
19874 PyThreadState* __tstate = wxPyBeginAllowThreads();
19875 (arg1)->SetPageSize((wxSize const &)*arg2);
19876 wxPyEndAllowThreads(__tstate);
19877 if (PyErr_Occurred()) SWIG_fail;
19878 }
19879 resultobj = SWIG_Py_Void();
19880 return resultobj;
19881 fail:
19882 return NULL;
19883 }
19884
19885
19886 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19887 PyObject *resultobj = 0;
19888 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19889 wxSize *arg2 = 0 ;
19890 wxSize result;
19891 void *argp1 = 0 ;
19892 int res1 = 0 ;
19893 wxSize temp2 ;
19894 PyObject * obj0 = 0 ;
19895 PyObject * obj1 = 0 ;
19896 char * kwnames[] = {
19897 (char *) "self",(char *) "sizePage", NULL
19898 };
19899
19900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19902 if (!SWIG_IsOK(res1)) {
19903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19904 }
19905 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19906 {
19907 arg2 = &temp2;
19908 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19909 }
19910 {
19911 PyThreadState* __tstate = wxPyBeginAllowThreads();
19912 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19913 wxPyEndAllowThreads(__tstate);
19914 if (PyErr_Occurred()) SWIG_fail;
19915 }
19916 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19917 return resultobj;
19918 fail:
19919 return NULL;
19920 }
19921
19922
19923 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19924 PyObject *resultobj = 0;
19925 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19926 unsigned int result;
19927 void *argp1 = 0 ;
19928 int res1 = 0 ;
19929 PyObject *swig_obj[1] ;
19930
19931 if (!args) SWIG_fail;
19932 swig_obj[0] = args;
19933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19934 if (!SWIG_IsOK(res1)) {
19935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19936 }
19937 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19938 {
19939 PyThreadState* __tstate = wxPyBeginAllowThreads();
19940 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19941 wxPyEndAllowThreads(__tstate);
19942 if (PyErr_Occurred()) SWIG_fail;
19943 }
19944 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19945 return resultobj;
19946 fail:
19947 return NULL;
19948 }
19949
19950
19951 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19952 PyObject *resultobj = 0;
19953 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19954 unsigned int arg2 ;
19955 void *argp1 = 0 ;
19956 int res1 = 0 ;
19957 unsigned int val2 ;
19958 int ecode2 = 0 ;
19959 PyObject * obj0 = 0 ;
19960 PyObject * obj1 = 0 ;
19961 char * kwnames[] = {
19962 (char *) "self",(char *) "internalBorder", NULL
19963 };
19964
19965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19967 if (!SWIG_IsOK(res1)) {
19968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19969 }
19970 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19971 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19972 if (!SWIG_IsOK(ecode2)) {
19973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19974 }
19975 arg2 = static_cast< unsigned int >(val2);
19976 {
19977 PyThreadState* __tstate = wxPyBeginAllowThreads();
19978 (arg1)->SetInternalBorder(arg2);
19979 wxPyEndAllowThreads(__tstate);
19980 if (PyErr_Occurred()) SWIG_fail;
19981 }
19982 resultobj = SWIG_Py_Void();
19983 return resultobj;
19984 fail:
19985 return NULL;
19986 }
19987
19988
19989 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19990 PyObject *resultobj = 0;
19991 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19992 bool result;
19993 void *argp1 = 0 ;
19994 int res1 = 0 ;
19995 PyObject *swig_obj[1] ;
19996
19997 if (!args) SWIG_fail;
19998 swig_obj[0] = args;
19999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20000 if (!SWIG_IsOK(res1)) {
20001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20002 }
20003 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20004 {
20005 PyThreadState* __tstate = wxPyBeginAllowThreads();
20006 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
20007 wxPyEndAllowThreads(__tstate);
20008 if (PyErr_Occurred()) SWIG_fail;
20009 }
20010 {
20011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20012 }
20013 return resultobj;
20014 fail:
20015 return NULL;
20016 }
20017
20018
20019 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20020 PyObject *resultobj = 0;
20021 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20022 int arg2 ;
20023 void *argp1 = 0 ;
20024 int res1 = 0 ;
20025 int val2 ;
20026 int ecode2 = 0 ;
20027 PyObject * obj0 = 0 ;
20028 PyObject * obj1 = 0 ;
20029 char * kwnames[] = {
20030 (char *) "self",(char *) "margin", NULL
20031 };
20032
20033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
20034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20035 if (!SWIG_IsOK(res1)) {
20036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20037 }
20038 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20039 ecode2 = SWIG_AsVal_int(obj1, &val2);
20040 if (!SWIG_IsOK(ecode2)) {
20041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
20042 }
20043 arg2 = static_cast< int >(val2);
20044 {
20045 PyThreadState* __tstate = wxPyBeginAllowThreads();
20046 (arg1)->SetControlMargin(arg2);
20047 wxPyEndAllowThreads(__tstate);
20048 if (PyErr_Occurred()) SWIG_fail;
20049 }
20050 resultobj = SWIG_Py_Void();
20051 return resultobj;
20052 fail:
20053 return NULL;
20054 }
20055
20056
20057 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20058 PyObject *resultobj = 0;
20059 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20060 int result;
20061 void *argp1 = 0 ;
20062 int res1 = 0 ;
20063 PyObject *swig_obj[1] ;
20064
20065 if (!args) SWIG_fail;
20066 swig_obj[0] = args;
20067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20068 if (!SWIG_IsOK(res1)) {
20069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20070 }
20071 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20072 {
20073 PyThreadState* __tstate = wxPyBeginAllowThreads();
20074 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
20075 wxPyEndAllowThreads(__tstate);
20076 if (PyErr_Occurred()) SWIG_fail;
20077 }
20078 resultobj = SWIG_From_int(static_cast< int >(result));
20079 return resultobj;
20080 fail:
20081 return NULL;
20082 }
20083
20084
20085 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20086 PyObject *resultobj = 0;
20087 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20088 bool arg2 ;
20089 void *argp1 = 0 ;
20090 int res1 = 0 ;
20091 bool val2 ;
20092 int ecode2 = 0 ;
20093 PyObject * obj0 = 0 ;
20094 PyObject * obj1 = 0 ;
20095 char * kwnames[] = {
20096 (char *) "self",(char *) "fit", NULL
20097 };
20098
20099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
20100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20101 if (!SWIG_IsOK(res1)) {
20102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20103 }
20104 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20105 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20106 if (!SWIG_IsOK(ecode2)) {
20107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
20108 }
20109 arg2 = static_cast< bool >(val2);
20110 {
20111 PyThreadState* __tstate = wxPyBeginAllowThreads();
20112 (arg1)->SetFitToCurrentPage(arg2);
20113 wxPyEndAllowThreads(__tstate);
20114 if (PyErr_Occurred()) SWIG_fail;
20115 }
20116 resultobj = SWIG_Py_Void();
20117 return resultobj;
20118 fail:
20119 return NULL;
20120 }
20121
20122
20123 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20124 PyObject *resultobj = 0;
20125 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20126 bool result;
20127 void *argp1 = 0 ;
20128 int res1 = 0 ;
20129 PyObject *swig_obj[1] ;
20130
20131 if (!args) SWIG_fail;
20132 swig_obj[0] = args;
20133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20134 if (!SWIG_IsOK(res1)) {
20135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20136 }
20137 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20138 {
20139 PyThreadState* __tstate = wxPyBeginAllowThreads();
20140 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
20141 wxPyEndAllowThreads(__tstate);
20142 if (PyErr_Occurred()) SWIG_fail;
20143 }
20144 {
20145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20146 }
20147 return resultobj;
20148 fail:
20149 return NULL;
20150 }
20151
20152
20153 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20154 PyObject *resultobj = 0;
20155 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20156 wxSizer *result = 0 ;
20157 void *argp1 = 0 ;
20158 int res1 = 0 ;
20159 PyObject *swig_obj[1] ;
20160
20161 if (!args) SWIG_fail;
20162 swig_obj[0] = args;
20163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20164 if (!SWIG_IsOK(res1)) {
20165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20166 }
20167 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20168 {
20169 PyThreadState* __tstate = wxPyBeginAllowThreads();
20170 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
20171 wxPyEndAllowThreads(__tstate);
20172 if (PyErr_Occurred()) SWIG_fail;
20173 }
20174 {
20175 resultobj = wxPyMake_wxObject(result, (bool)0);
20176 }
20177 return resultobj;
20178 fail:
20179 return NULL;
20180 }
20181
20182
20183 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20184 PyObject *resultobj = 0;
20185 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20186 size_t arg2 ;
20187 bool result;
20188 void *argp1 = 0 ;
20189 int res1 = 0 ;
20190 size_t val2 ;
20191 int ecode2 = 0 ;
20192 PyObject * obj0 = 0 ;
20193 PyObject * obj1 = 0 ;
20194 char * kwnames[] = {
20195 (char *) "self",(char *) "n", NULL
20196 };
20197
20198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
20199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20200 if (!SWIG_IsOK(res1)) {
20201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20202 }
20203 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20204 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20205 if (!SWIG_IsOK(ecode2)) {
20206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
20207 }
20208 arg2 = static_cast< size_t >(val2);
20209 {
20210 PyThreadState* __tstate = wxPyBeginAllowThreads();
20211 result = (bool)(arg1)->DeletePage(arg2);
20212 wxPyEndAllowThreads(__tstate);
20213 if (PyErr_Occurred()) SWIG_fail;
20214 }
20215 {
20216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20217 }
20218 return resultobj;
20219 fail:
20220 return NULL;
20221 }
20222
20223
20224 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20225 PyObject *resultobj = 0;
20226 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20227 size_t arg2 ;
20228 bool result;
20229 void *argp1 = 0 ;
20230 int res1 = 0 ;
20231 size_t val2 ;
20232 int ecode2 = 0 ;
20233 PyObject * obj0 = 0 ;
20234 PyObject * obj1 = 0 ;
20235 char * kwnames[] = {
20236 (char *) "self",(char *) "n", NULL
20237 };
20238
20239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
20240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20241 if (!SWIG_IsOK(res1)) {
20242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20243 }
20244 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20245 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20246 if (!SWIG_IsOK(ecode2)) {
20247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
20248 }
20249 arg2 = static_cast< size_t >(val2);
20250 {
20251 PyThreadState* __tstate = wxPyBeginAllowThreads();
20252 result = (bool)(arg1)->RemovePage(arg2);
20253 wxPyEndAllowThreads(__tstate);
20254 if (PyErr_Occurred()) SWIG_fail;
20255 }
20256 {
20257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20258 }
20259 return resultobj;
20260 fail:
20261 return NULL;
20262 }
20263
20264
20265 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20266 PyObject *resultobj = 0;
20267 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20268 bool result;
20269 void *argp1 = 0 ;
20270 int res1 = 0 ;
20271 PyObject *swig_obj[1] ;
20272
20273 if (!args) SWIG_fail;
20274 swig_obj[0] = args;
20275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20276 if (!SWIG_IsOK(res1)) {
20277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20278 }
20279 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20280 {
20281 PyThreadState* __tstate = wxPyBeginAllowThreads();
20282 result = (bool)(arg1)->DeleteAllPages();
20283 wxPyEndAllowThreads(__tstate);
20284 if (PyErr_Occurred()) SWIG_fail;
20285 }
20286 {
20287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20288 }
20289 return resultobj;
20290 fail:
20291 return NULL;
20292 }
20293
20294
20295 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20296 PyObject *resultobj = 0;
20297 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20298 wxWindow *arg2 = (wxWindow *) 0 ;
20299 wxString *arg3 = 0 ;
20300 bool arg4 = (bool) false ;
20301 int arg5 = (int) -1 ;
20302 bool result;
20303 void *argp1 = 0 ;
20304 int res1 = 0 ;
20305 void *argp2 = 0 ;
20306 int res2 = 0 ;
20307 bool temp3 = false ;
20308 bool val4 ;
20309 int ecode4 = 0 ;
20310 int val5 ;
20311 int ecode5 = 0 ;
20312 PyObject * obj0 = 0 ;
20313 PyObject * obj1 = 0 ;
20314 PyObject * obj2 = 0 ;
20315 PyObject * obj3 = 0 ;
20316 PyObject * obj4 = 0 ;
20317 char * kwnames[] = {
20318 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20319 };
20320
20321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20323 if (!SWIG_IsOK(res1)) {
20324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20325 }
20326 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20328 if (!SWIG_IsOK(res2)) {
20329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20330 }
20331 arg2 = reinterpret_cast< wxWindow * >(argp2);
20332 {
20333 arg3 = wxString_in_helper(obj2);
20334 if (arg3 == NULL) SWIG_fail;
20335 temp3 = true;
20336 }
20337 if (obj3) {
20338 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20339 if (!SWIG_IsOK(ecode4)) {
20340 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20341 }
20342 arg4 = static_cast< bool >(val4);
20343 }
20344 if (obj4) {
20345 ecode5 = SWIG_AsVal_int(obj4, &val5);
20346 if (!SWIG_IsOK(ecode5)) {
20347 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20348 }
20349 arg5 = static_cast< int >(val5);
20350 }
20351 {
20352 PyThreadState* __tstate = wxPyBeginAllowThreads();
20353 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20354 wxPyEndAllowThreads(__tstate);
20355 if (PyErr_Occurred()) SWIG_fail;
20356 }
20357 {
20358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20359 }
20360 {
20361 if (temp3)
20362 delete arg3;
20363 }
20364 return resultobj;
20365 fail:
20366 {
20367 if (temp3)
20368 delete arg3;
20369 }
20370 return NULL;
20371 }
20372
20373
20374 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20375 PyObject *resultobj = 0;
20376 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20377 size_t arg2 ;
20378 wxWindow *arg3 = (wxWindow *) 0 ;
20379 wxString *arg4 = 0 ;
20380 bool arg5 = (bool) false ;
20381 int arg6 = (int) -1 ;
20382 bool result;
20383 void *argp1 = 0 ;
20384 int res1 = 0 ;
20385 size_t val2 ;
20386 int ecode2 = 0 ;
20387 void *argp3 = 0 ;
20388 int res3 = 0 ;
20389 bool temp4 = false ;
20390 bool val5 ;
20391 int ecode5 = 0 ;
20392 int val6 ;
20393 int ecode6 = 0 ;
20394 PyObject * obj0 = 0 ;
20395 PyObject * obj1 = 0 ;
20396 PyObject * obj2 = 0 ;
20397 PyObject * obj3 = 0 ;
20398 PyObject * obj4 = 0 ;
20399 PyObject * obj5 = 0 ;
20400 char * kwnames[] = {
20401 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20402 };
20403
20404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20406 if (!SWIG_IsOK(res1)) {
20407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20408 }
20409 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20410 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20411 if (!SWIG_IsOK(ecode2)) {
20412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20413 }
20414 arg2 = static_cast< size_t >(val2);
20415 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20416 if (!SWIG_IsOK(res3)) {
20417 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20418 }
20419 arg3 = reinterpret_cast< wxWindow * >(argp3);
20420 {
20421 arg4 = wxString_in_helper(obj3);
20422 if (arg4 == NULL) SWIG_fail;
20423 temp4 = true;
20424 }
20425 if (obj4) {
20426 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20427 if (!SWIG_IsOK(ecode5)) {
20428 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20429 }
20430 arg5 = static_cast< bool >(val5);
20431 }
20432 if (obj5) {
20433 ecode6 = SWIG_AsVal_int(obj5, &val6);
20434 if (!SWIG_IsOK(ecode6)) {
20435 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20436 }
20437 arg6 = static_cast< int >(val6);
20438 }
20439 {
20440 PyThreadState* __tstate = wxPyBeginAllowThreads();
20441 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20442 wxPyEndAllowThreads(__tstate);
20443 if (PyErr_Occurred()) SWIG_fail;
20444 }
20445 {
20446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20447 }
20448 {
20449 if (temp4)
20450 delete arg4;
20451 }
20452 return resultobj;
20453 fail:
20454 {
20455 if (temp4)
20456 delete arg4;
20457 }
20458 return NULL;
20459 }
20460
20461
20462 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20463 PyObject *resultobj = 0;
20464 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20465 size_t arg2 ;
20466 int result;
20467 void *argp1 = 0 ;
20468 int res1 = 0 ;
20469 size_t val2 ;
20470 int ecode2 = 0 ;
20471 PyObject * obj0 = 0 ;
20472 PyObject * obj1 = 0 ;
20473 char * kwnames[] = {
20474 (char *) "self",(char *) "n", NULL
20475 };
20476
20477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20479 if (!SWIG_IsOK(res1)) {
20480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20481 }
20482 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20483 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20484 if (!SWIG_IsOK(ecode2)) {
20485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20486 }
20487 arg2 = static_cast< size_t >(val2);
20488 {
20489 PyThreadState* __tstate = wxPyBeginAllowThreads();
20490 result = (int)(arg1)->SetSelection(arg2);
20491 wxPyEndAllowThreads(__tstate);
20492 if (PyErr_Occurred()) SWIG_fail;
20493 }
20494 resultobj = SWIG_From_int(static_cast< int >(result));
20495 return resultobj;
20496 fail:
20497 return NULL;
20498 }
20499
20500
20501 SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20502 PyObject *resultobj = 0;
20503 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20504 size_t arg2 ;
20505 int result;
20506 void *argp1 = 0 ;
20507 int res1 = 0 ;
20508 size_t val2 ;
20509 int ecode2 = 0 ;
20510 PyObject * obj0 = 0 ;
20511 PyObject * obj1 = 0 ;
20512 char * kwnames[] = {
20513 (char *) "self",(char *) "n", NULL
20514 };
20515
20516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20518 if (!SWIG_IsOK(res1)) {
20519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20520 }
20521 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20522 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20523 if (!SWIG_IsOK(ecode2)) {
20524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20525 }
20526 arg2 = static_cast< size_t >(val2);
20527 {
20528 PyThreadState* __tstate = wxPyBeginAllowThreads();
20529 result = (int)(arg1)->ChangeSelection(arg2);
20530 wxPyEndAllowThreads(__tstate);
20531 if (PyErr_Occurred()) SWIG_fail;
20532 }
20533 resultobj = SWIG_From_int(static_cast< int >(result));
20534 return resultobj;
20535 fail:
20536 return NULL;
20537 }
20538
20539
20540 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20541 PyObject *resultobj = 0;
20542 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20543 bool arg2 = (bool) true ;
20544 void *argp1 = 0 ;
20545 int res1 = 0 ;
20546 bool val2 ;
20547 int ecode2 = 0 ;
20548 PyObject * obj0 = 0 ;
20549 PyObject * obj1 = 0 ;
20550 char * kwnames[] = {
20551 (char *) "self",(char *) "forward", NULL
20552 };
20553
20554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20556 if (!SWIG_IsOK(res1)) {
20557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20558 }
20559 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20560 if (obj1) {
20561 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20562 if (!SWIG_IsOK(ecode2)) {
20563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20564 }
20565 arg2 = static_cast< bool >(val2);
20566 }
20567 {
20568 PyThreadState* __tstate = wxPyBeginAllowThreads();
20569 (arg1)->AdvanceSelection(arg2);
20570 wxPyEndAllowThreads(__tstate);
20571 if (PyErr_Occurred()) SWIG_fail;
20572 }
20573 resultobj = SWIG_Py_Void();
20574 return resultobj;
20575 fail:
20576 return NULL;
20577 }
20578
20579
20580 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20581 PyObject *resultobj = 0;
20582 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20583 wxPoint *arg2 = 0 ;
20584 long *arg3 = (long *) 0 ;
20585 int result;
20586 void *argp1 = 0 ;
20587 int res1 = 0 ;
20588 wxPoint temp2 ;
20589 long temp3 ;
20590 int res3 = SWIG_TMPOBJ ;
20591 PyObject * obj0 = 0 ;
20592 PyObject * obj1 = 0 ;
20593 char * kwnames[] = {
20594 (char *) "self",(char *) "pt", NULL
20595 };
20596
20597 arg3 = &temp3;
20598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20600 if (!SWIG_IsOK(res1)) {
20601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20602 }
20603 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20604 {
20605 arg2 = &temp2;
20606 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20607 }
20608 {
20609 PyThreadState* __tstate = wxPyBeginAllowThreads();
20610 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20611 wxPyEndAllowThreads(__tstate);
20612 if (PyErr_Occurred()) SWIG_fail;
20613 }
20614 resultobj = SWIG_From_int(static_cast< int >(result));
20615 if (SWIG_IsTmpObj(res3)) {
20616 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20617 } else {
20618 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20619 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20620 }
20621 return resultobj;
20622 fail:
20623 return NULL;
20624 }
20625
20626
20627 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20628 PyObject *resultobj = 0;
20629 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20630 SwigValueWrapper<wxVisualAttributes > result;
20631 int val1 ;
20632 int ecode1 = 0 ;
20633 PyObject * obj0 = 0 ;
20634 char * kwnames[] = {
20635 (char *) "variant", NULL
20636 };
20637
20638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20639 if (obj0) {
20640 ecode1 = SWIG_AsVal_int(obj0, &val1);
20641 if (!SWIG_IsOK(ecode1)) {
20642 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20643 }
20644 arg1 = static_cast< wxWindowVariant >(val1);
20645 }
20646 {
20647 if (!wxPyCheckForApp()) SWIG_fail;
20648 PyThreadState* __tstate = wxPyBeginAllowThreads();
20649 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20650 wxPyEndAllowThreads(__tstate);
20651 if (PyErr_Occurred()) SWIG_fail;
20652 }
20653 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20654 return resultobj;
20655 fail:
20656 return NULL;
20657 }
20658
20659
20660 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20661 PyObject *obj;
20662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20663 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20664 return SWIG_Py_Void();
20665 }
20666
20667 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20668 PyObject *resultobj = 0;
20669 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20670 int arg2 = (int) 0 ;
20671 int arg3 = (int) -1 ;
20672 int arg4 = (int) -1 ;
20673 wxBookCtrlBaseEvent *result = 0 ;
20674 int val1 ;
20675 int ecode1 = 0 ;
20676 int val2 ;
20677 int ecode2 = 0 ;
20678 int val3 ;
20679 int ecode3 = 0 ;
20680 int val4 ;
20681 int ecode4 = 0 ;
20682 PyObject * obj0 = 0 ;
20683 PyObject * obj1 = 0 ;
20684 PyObject * obj2 = 0 ;
20685 PyObject * obj3 = 0 ;
20686 char * kwnames[] = {
20687 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20688 };
20689
20690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20691 if (obj0) {
20692 ecode1 = SWIG_AsVal_int(obj0, &val1);
20693 if (!SWIG_IsOK(ecode1)) {
20694 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20695 }
20696 arg1 = static_cast< wxEventType >(val1);
20697 }
20698 if (obj1) {
20699 ecode2 = SWIG_AsVal_int(obj1, &val2);
20700 if (!SWIG_IsOK(ecode2)) {
20701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20702 }
20703 arg2 = static_cast< int >(val2);
20704 }
20705 if (obj2) {
20706 ecode3 = SWIG_AsVal_int(obj2, &val3);
20707 if (!SWIG_IsOK(ecode3)) {
20708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20709 }
20710 arg3 = static_cast< int >(val3);
20711 }
20712 if (obj3) {
20713 ecode4 = SWIG_AsVal_int(obj3, &val4);
20714 if (!SWIG_IsOK(ecode4)) {
20715 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20716 }
20717 arg4 = static_cast< int >(val4);
20718 }
20719 {
20720 PyThreadState* __tstate = wxPyBeginAllowThreads();
20721 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20722 wxPyEndAllowThreads(__tstate);
20723 if (PyErr_Occurred()) SWIG_fail;
20724 }
20725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20726 return resultobj;
20727 fail:
20728 return NULL;
20729 }
20730
20731
20732 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20733 PyObject *resultobj = 0;
20734 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20735 int result;
20736 void *argp1 = 0 ;
20737 int res1 = 0 ;
20738 PyObject *swig_obj[1] ;
20739
20740 if (!args) SWIG_fail;
20741 swig_obj[0] = args;
20742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20743 if (!SWIG_IsOK(res1)) {
20744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20745 }
20746 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20747 {
20748 PyThreadState* __tstate = wxPyBeginAllowThreads();
20749 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20750 wxPyEndAllowThreads(__tstate);
20751 if (PyErr_Occurred()) SWIG_fail;
20752 }
20753 resultobj = SWIG_From_int(static_cast< int >(result));
20754 return resultobj;
20755 fail:
20756 return NULL;
20757 }
20758
20759
20760 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20761 PyObject *resultobj = 0;
20762 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20763 int arg2 ;
20764 void *argp1 = 0 ;
20765 int res1 = 0 ;
20766 int val2 ;
20767 int ecode2 = 0 ;
20768 PyObject * obj0 = 0 ;
20769 PyObject * obj1 = 0 ;
20770 char * kwnames[] = {
20771 (char *) "self",(char *) "nSel", NULL
20772 };
20773
20774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20776 if (!SWIG_IsOK(res1)) {
20777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20778 }
20779 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20780 ecode2 = SWIG_AsVal_int(obj1, &val2);
20781 if (!SWIG_IsOK(ecode2)) {
20782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20783 }
20784 arg2 = static_cast< int >(val2);
20785 {
20786 PyThreadState* __tstate = wxPyBeginAllowThreads();
20787 (arg1)->SetSelection(arg2);
20788 wxPyEndAllowThreads(__tstate);
20789 if (PyErr_Occurred()) SWIG_fail;
20790 }
20791 resultobj = SWIG_Py_Void();
20792 return resultobj;
20793 fail:
20794 return NULL;
20795 }
20796
20797
20798 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20799 PyObject *resultobj = 0;
20800 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20801 int result;
20802 void *argp1 = 0 ;
20803 int res1 = 0 ;
20804 PyObject *swig_obj[1] ;
20805
20806 if (!args) SWIG_fail;
20807 swig_obj[0] = args;
20808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20809 if (!SWIG_IsOK(res1)) {
20810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20811 }
20812 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20813 {
20814 PyThreadState* __tstate = wxPyBeginAllowThreads();
20815 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20816 wxPyEndAllowThreads(__tstate);
20817 if (PyErr_Occurred()) SWIG_fail;
20818 }
20819 resultobj = SWIG_From_int(static_cast< int >(result));
20820 return resultobj;
20821 fail:
20822 return NULL;
20823 }
20824
20825
20826 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20827 PyObject *resultobj = 0;
20828 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20829 int arg2 ;
20830 void *argp1 = 0 ;
20831 int res1 = 0 ;
20832 int val2 ;
20833 int ecode2 = 0 ;
20834 PyObject * obj0 = 0 ;
20835 PyObject * obj1 = 0 ;
20836 char * kwnames[] = {
20837 (char *) "self",(char *) "nOldSel", NULL
20838 };
20839
20840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20842 if (!SWIG_IsOK(res1)) {
20843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20844 }
20845 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20846 ecode2 = SWIG_AsVal_int(obj1, &val2);
20847 if (!SWIG_IsOK(ecode2)) {
20848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20849 }
20850 arg2 = static_cast< int >(val2);
20851 {
20852 PyThreadState* __tstate = wxPyBeginAllowThreads();
20853 (arg1)->SetOldSelection(arg2);
20854 wxPyEndAllowThreads(__tstate);
20855 if (PyErr_Occurred()) SWIG_fail;
20856 }
20857 resultobj = SWIG_Py_Void();
20858 return resultobj;
20859 fail:
20860 return NULL;
20861 }
20862
20863
20864 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20865 PyObject *obj;
20866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20867 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20868 return SWIG_Py_Void();
20869 }
20870
20871 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20872 return SWIG_Python_InitShadowInstance(args);
20873 }
20874
20875 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20876 PyObject *resultobj = 0;
20877 wxWindow *arg1 = (wxWindow *) 0 ;
20878 int arg2 = (int) -1 ;
20879 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20880 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20881 wxSize const &arg4_defvalue = wxDefaultSize ;
20882 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20883 long arg5 = (long) 0 ;
20884 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20885 wxString *arg6 = (wxString *) &arg6_defvalue ;
20886 wxNotebook *result = 0 ;
20887 void *argp1 = 0 ;
20888 int res1 = 0 ;
20889 int val2 ;
20890 int ecode2 = 0 ;
20891 wxPoint temp3 ;
20892 wxSize temp4 ;
20893 long val5 ;
20894 int ecode5 = 0 ;
20895 bool temp6 = false ;
20896 PyObject * obj0 = 0 ;
20897 PyObject * obj1 = 0 ;
20898 PyObject * obj2 = 0 ;
20899 PyObject * obj3 = 0 ;
20900 PyObject * obj4 = 0 ;
20901 PyObject * obj5 = 0 ;
20902 char * kwnames[] = {
20903 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20904 };
20905
20906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20908 if (!SWIG_IsOK(res1)) {
20909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20910 }
20911 arg1 = reinterpret_cast< wxWindow * >(argp1);
20912 if (obj1) {
20913 ecode2 = SWIG_AsVal_int(obj1, &val2);
20914 if (!SWIG_IsOK(ecode2)) {
20915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20916 }
20917 arg2 = static_cast< int >(val2);
20918 }
20919 if (obj2) {
20920 {
20921 arg3 = &temp3;
20922 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20923 }
20924 }
20925 if (obj3) {
20926 {
20927 arg4 = &temp4;
20928 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20929 }
20930 }
20931 if (obj4) {
20932 ecode5 = SWIG_AsVal_long(obj4, &val5);
20933 if (!SWIG_IsOK(ecode5)) {
20934 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20935 }
20936 arg5 = static_cast< long >(val5);
20937 }
20938 if (obj5) {
20939 {
20940 arg6 = wxString_in_helper(obj5);
20941 if (arg6 == NULL) SWIG_fail;
20942 temp6 = true;
20943 }
20944 }
20945 {
20946 if (!wxPyCheckForApp()) SWIG_fail;
20947 PyThreadState* __tstate = wxPyBeginAllowThreads();
20948 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20949 wxPyEndAllowThreads(__tstate);
20950 if (PyErr_Occurred()) SWIG_fail;
20951 }
20952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20953 {
20954 if (temp6)
20955 delete arg6;
20956 }
20957 return resultobj;
20958 fail:
20959 {
20960 if (temp6)
20961 delete arg6;
20962 }
20963 return NULL;
20964 }
20965
20966
20967 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20968 PyObject *resultobj = 0;
20969 wxNotebook *result = 0 ;
20970
20971 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20972 {
20973 if (!wxPyCheckForApp()) SWIG_fail;
20974 PyThreadState* __tstate = wxPyBeginAllowThreads();
20975 result = (wxNotebook *)new wxNotebook();
20976 wxPyEndAllowThreads(__tstate);
20977 if (PyErr_Occurred()) SWIG_fail;
20978 }
20979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20980 return resultobj;
20981 fail:
20982 return NULL;
20983 }
20984
20985
20986 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20987 PyObject *resultobj = 0;
20988 wxNotebook *arg1 = (wxNotebook *) 0 ;
20989 wxWindow *arg2 = (wxWindow *) 0 ;
20990 int arg3 = (int) -1 ;
20991 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20992 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20993 wxSize const &arg5_defvalue = wxDefaultSize ;
20994 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20995 long arg6 = (long) 0 ;
20996 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20997 wxString *arg7 = (wxString *) &arg7_defvalue ;
20998 bool result;
20999 void *argp1 = 0 ;
21000 int res1 = 0 ;
21001 void *argp2 = 0 ;
21002 int res2 = 0 ;
21003 int val3 ;
21004 int ecode3 = 0 ;
21005 wxPoint temp4 ;
21006 wxSize temp5 ;
21007 long val6 ;
21008 int ecode6 = 0 ;
21009 bool temp7 = false ;
21010 PyObject * obj0 = 0 ;
21011 PyObject * obj1 = 0 ;
21012 PyObject * obj2 = 0 ;
21013 PyObject * obj3 = 0 ;
21014 PyObject * obj4 = 0 ;
21015 PyObject * obj5 = 0 ;
21016 PyObject * obj6 = 0 ;
21017 char * kwnames[] = {
21018 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21019 };
21020
21021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21023 if (!SWIG_IsOK(res1)) {
21024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
21025 }
21026 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21027 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21028 if (!SWIG_IsOK(res2)) {
21029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21030 }
21031 arg2 = reinterpret_cast< wxWindow * >(argp2);
21032 if (obj2) {
21033 ecode3 = SWIG_AsVal_int(obj2, &val3);
21034 if (!SWIG_IsOK(ecode3)) {
21035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
21036 }
21037 arg3 = static_cast< int >(val3);
21038 }
21039 if (obj3) {
21040 {
21041 arg4 = &temp4;
21042 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21043 }
21044 }
21045 if (obj4) {
21046 {
21047 arg5 = &temp5;
21048 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21049 }
21050 }
21051 if (obj5) {
21052 ecode6 = SWIG_AsVal_long(obj5, &val6);
21053 if (!SWIG_IsOK(ecode6)) {
21054 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
21055 }
21056 arg6 = static_cast< long >(val6);
21057 }
21058 if (obj6) {
21059 {
21060 arg7 = wxString_in_helper(obj6);
21061 if (arg7 == NULL) SWIG_fail;
21062 temp7 = true;
21063 }
21064 }
21065 {
21066 PyThreadState* __tstate = wxPyBeginAllowThreads();
21067 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21068 wxPyEndAllowThreads(__tstate);
21069 if (PyErr_Occurred()) SWIG_fail;
21070 }
21071 {
21072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21073 }
21074 {
21075 if (temp7)
21076 delete arg7;
21077 }
21078 return resultobj;
21079 fail:
21080 {
21081 if (temp7)
21082 delete arg7;
21083 }
21084 return NULL;
21085 }
21086
21087
21088 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21089 PyObject *resultobj = 0;
21090 wxNotebook *arg1 = (wxNotebook *) 0 ;
21091 int result;
21092 void *argp1 = 0 ;
21093 int res1 = 0 ;
21094 PyObject *swig_obj[1] ;
21095
21096 if (!args) SWIG_fail;
21097 swig_obj[0] = args;
21098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21099 if (!SWIG_IsOK(res1)) {
21100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21101 }
21102 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21103 {
21104 PyThreadState* __tstate = wxPyBeginAllowThreads();
21105 result = (int)((wxNotebook const *)arg1)->GetRowCount();
21106 wxPyEndAllowThreads(__tstate);
21107 if (PyErr_Occurred()) SWIG_fail;
21108 }
21109 resultobj = SWIG_From_int(static_cast< int >(result));
21110 return resultobj;
21111 fail:
21112 return NULL;
21113 }
21114
21115
21116 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21117 PyObject *resultobj = 0;
21118 wxNotebook *arg1 = (wxNotebook *) 0 ;
21119 wxSize *arg2 = 0 ;
21120 void *argp1 = 0 ;
21121 int res1 = 0 ;
21122 wxSize temp2 ;
21123 PyObject * obj0 = 0 ;
21124 PyObject * obj1 = 0 ;
21125 char * kwnames[] = {
21126 (char *) "self",(char *) "padding", NULL
21127 };
21128
21129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
21130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21131 if (!SWIG_IsOK(res1)) {
21132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
21133 }
21134 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21135 {
21136 arg2 = &temp2;
21137 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21138 }
21139 {
21140 PyThreadState* __tstate = wxPyBeginAllowThreads();
21141 (arg1)->SetPadding((wxSize const &)*arg2);
21142 wxPyEndAllowThreads(__tstate);
21143 if (PyErr_Occurred()) SWIG_fail;
21144 }
21145 resultobj = SWIG_Py_Void();
21146 return resultobj;
21147 fail:
21148 return NULL;
21149 }
21150
21151
21152 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21153 PyObject *resultobj = 0;
21154 wxNotebook *arg1 = (wxNotebook *) 0 ;
21155 wxSize *arg2 = 0 ;
21156 void *argp1 = 0 ;
21157 int res1 = 0 ;
21158 wxSize temp2 ;
21159 PyObject * obj0 = 0 ;
21160 PyObject * obj1 = 0 ;
21161 char * kwnames[] = {
21162 (char *) "self",(char *) "sz", NULL
21163 };
21164
21165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
21166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21167 if (!SWIG_IsOK(res1)) {
21168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
21169 }
21170 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21171 {
21172 arg2 = &temp2;
21173 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21174 }
21175 {
21176 PyThreadState* __tstate = wxPyBeginAllowThreads();
21177 (arg1)->SetTabSize((wxSize const &)*arg2);
21178 wxPyEndAllowThreads(__tstate);
21179 if (PyErr_Occurred()) SWIG_fail;
21180 }
21181 resultobj = SWIG_Py_Void();
21182 return resultobj;
21183 fail:
21184 return NULL;
21185 }
21186
21187
21188 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21189 PyObject *resultobj = 0;
21190 wxNotebook *arg1 = (wxNotebook *) 0 ;
21191 wxColour result;
21192 void *argp1 = 0 ;
21193 int res1 = 0 ;
21194 PyObject *swig_obj[1] ;
21195
21196 if (!args) SWIG_fail;
21197 swig_obj[0] = args;
21198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21199 if (!SWIG_IsOK(res1)) {
21200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
21201 }
21202 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21203 {
21204 PyThreadState* __tstate = wxPyBeginAllowThreads();
21205 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
21206 wxPyEndAllowThreads(__tstate);
21207 if (PyErr_Occurred()) SWIG_fail;
21208 }
21209 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
21210 return resultobj;
21211 fail:
21212 return NULL;
21213 }
21214
21215
21216 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21217 PyObject *resultobj = 0;
21218 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
21219 SwigValueWrapper<wxVisualAttributes > result;
21220 int val1 ;
21221 int ecode1 = 0 ;
21222 PyObject * obj0 = 0 ;
21223 char * kwnames[] = {
21224 (char *) "variant", NULL
21225 };
21226
21227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
21228 if (obj0) {
21229 ecode1 = SWIG_AsVal_int(obj0, &val1);
21230 if (!SWIG_IsOK(ecode1)) {
21231 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
21232 }
21233 arg1 = static_cast< wxWindowVariant >(val1);
21234 }
21235 {
21236 if (!wxPyCheckForApp()) SWIG_fail;
21237 PyThreadState* __tstate = wxPyBeginAllowThreads();
21238 result = wxNotebook::GetClassDefaultAttributes(arg1);
21239 wxPyEndAllowThreads(__tstate);
21240 if (PyErr_Occurred()) SWIG_fail;
21241 }
21242 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
21243 return resultobj;
21244 fail:
21245 return NULL;
21246 }
21247
21248
21249 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21250 PyObject *resultobj = 0;
21251 wxNotebook *arg1 = (wxNotebook *) 0 ;
21252 int arg2 ;
21253 bool result;
21254 void *argp1 = 0 ;
21255 int res1 = 0 ;
21256 int val2 ;
21257 int ecode2 = 0 ;
21258 PyObject * obj0 = 0 ;
21259 PyObject * obj1 = 0 ;
21260 char * kwnames[] = {
21261 (char *) "self",(char *) "nPage", NULL
21262 };
21263
21264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
21265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21266 if (!SWIG_IsOK(res1)) {
21267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21268 }
21269 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21270 ecode2 = SWIG_AsVal_int(obj1, &val2);
21271 if (!SWIG_IsOK(ecode2)) {
21272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
21273 }
21274 arg2 = static_cast< int >(val2);
21275 {
21276 PyThreadState* __tstate = wxPyBeginAllowThreads();
21277 result = (bool)(arg1)->SendPageChangingEvent(arg2);
21278 wxPyEndAllowThreads(__tstate);
21279 if (PyErr_Occurred()) SWIG_fail;
21280 }
21281 {
21282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21283 }
21284 return resultobj;
21285 fail:
21286 return NULL;
21287 }
21288
21289
21290 SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21291 PyObject *resultobj = 0;
21292 wxNotebook *arg1 = (wxNotebook *) 0 ;
21293 int arg2 ;
21294 int arg3 = (int) -1 ;
21295 void *argp1 = 0 ;
21296 int res1 = 0 ;
21297 int val2 ;
21298 int ecode2 = 0 ;
21299 int val3 ;
21300 int ecode3 = 0 ;
21301 PyObject * obj0 = 0 ;
21302 PyObject * obj1 = 0 ;
21303 PyObject * obj2 = 0 ;
21304 char * kwnames[] = {
21305 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
21306 };
21307
21308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
21310 if (!SWIG_IsOK(res1)) {
21311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
21312 }
21313 arg1 = reinterpret_cast< wxNotebook * >(argp1);
21314 ecode2 = SWIG_AsVal_int(obj1, &val2);
21315 if (!SWIG_IsOK(ecode2)) {
21316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
21317 }
21318 arg2 = static_cast< int >(val2);
21319 if (obj2) {
21320 ecode3 = SWIG_AsVal_int(obj2, &val3);
21321 if (!SWIG_IsOK(ecode3)) {
21322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
21323 }
21324 arg3 = static_cast< int >(val3);
21325 }
21326 {
21327 PyThreadState* __tstate = wxPyBeginAllowThreads();
21328 (arg1)->SendPageChangedEvent(arg2,arg3);
21329 wxPyEndAllowThreads(__tstate);
21330 if (PyErr_Occurred()) SWIG_fail;
21331 }
21332 resultobj = SWIG_Py_Void();
21333 return resultobj;
21334 fail:
21335 return NULL;
21336 }
21337
21338
21339 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21340 PyObject *obj;
21341 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21342 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21343 return SWIG_Py_Void();
21344 }
21345
21346 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21347 return SWIG_Python_InitShadowInstance(args);
21348 }
21349
21350 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21351 PyObject *resultobj = 0;
21352 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21353 int arg2 = (int) 0 ;
21354 int arg3 = (int) -1 ;
21355 int arg4 = (int) -1 ;
21356 wxNotebookEvent *result = 0 ;
21357 int val1 ;
21358 int ecode1 = 0 ;
21359 int val2 ;
21360 int ecode2 = 0 ;
21361 int val3 ;
21362 int ecode3 = 0 ;
21363 int val4 ;
21364 int ecode4 = 0 ;
21365 PyObject * obj0 = 0 ;
21366 PyObject * obj1 = 0 ;
21367 PyObject * obj2 = 0 ;
21368 PyObject * obj3 = 0 ;
21369 char * kwnames[] = {
21370 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21371 };
21372
21373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21374 if (obj0) {
21375 ecode1 = SWIG_AsVal_int(obj0, &val1);
21376 if (!SWIG_IsOK(ecode1)) {
21377 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21378 }
21379 arg1 = static_cast< wxEventType >(val1);
21380 }
21381 if (obj1) {
21382 ecode2 = SWIG_AsVal_int(obj1, &val2);
21383 if (!SWIG_IsOK(ecode2)) {
21384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21385 }
21386 arg2 = static_cast< int >(val2);
21387 }
21388 if (obj2) {
21389 ecode3 = SWIG_AsVal_int(obj2, &val3);
21390 if (!SWIG_IsOK(ecode3)) {
21391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21392 }
21393 arg3 = static_cast< int >(val3);
21394 }
21395 if (obj3) {
21396 ecode4 = SWIG_AsVal_int(obj3, &val4);
21397 if (!SWIG_IsOK(ecode4)) {
21398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21399 }
21400 arg4 = static_cast< int >(val4);
21401 }
21402 {
21403 PyThreadState* __tstate = wxPyBeginAllowThreads();
21404 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21405 wxPyEndAllowThreads(__tstate);
21406 if (PyErr_Occurred()) SWIG_fail;
21407 }
21408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21409 return resultobj;
21410 fail:
21411 return NULL;
21412 }
21413
21414
21415 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21416 PyObject *obj;
21417 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21418 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21419 return SWIG_Py_Void();
21420 }
21421
21422 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21423 return SWIG_Python_InitShadowInstance(args);
21424 }
21425
21426 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21427 PyObject *resultobj = 0;
21428 wxWindow *arg1 = (wxWindow *) 0 ;
21429 int arg2 = (int) -1 ;
21430 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21431 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21432 wxSize const &arg4_defvalue = wxDefaultSize ;
21433 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21434 long arg5 = (long) 0 ;
21435 wxString const &arg6_defvalue = wxPyEmptyString ;
21436 wxString *arg6 = (wxString *) &arg6_defvalue ;
21437 wxListbook *result = 0 ;
21438 void *argp1 = 0 ;
21439 int res1 = 0 ;
21440 int val2 ;
21441 int ecode2 = 0 ;
21442 wxPoint temp3 ;
21443 wxSize temp4 ;
21444 long val5 ;
21445 int ecode5 = 0 ;
21446 bool temp6 = false ;
21447 PyObject * obj0 = 0 ;
21448 PyObject * obj1 = 0 ;
21449 PyObject * obj2 = 0 ;
21450 PyObject * obj3 = 0 ;
21451 PyObject * obj4 = 0 ;
21452 PyObject * obj5 = 0 ;
21453 char * kwnames[] = {
21454 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21455 };
21456
21457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21459 if (!SWIG_IsOK(res1)) {
21460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21461 }
21462 arg1 = reinterpret_cast< wxWindow * >(argp1);
21463 if (obj1) {
21464 ecode2 = SWIG_AsVal_int(obj1, &val2);
21465 if (!SWIG_IsOK(ecode2)) {
21466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21467 }
21468 arg2 = static_cast< int >(val2);
21469 }
21470 if (obj2) {
21471 {
21472 arg3 = &temp3;
21473 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21474 }
21475 }
21476 if (obj3) {
21477 {
21478 arg4 = &temp4;
21479 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21480 }
21481 }
21482 if (obj4) {
21483 ecode5 = SWIG_AsVal_long(obj4, &val5);
21484 if (!SWIG_IsOK(ecode5)) {
21485 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21486 }
21487 arg5 = static_cast< long >(val5);
21488 }
21489 if (obj5) {
21490 {
21491 arg6 = wxString_in_helper(obj5);
21492 if (arg6 == NULL) SWIG_fail;
21493 temp6 = true;
21494 }
21495 }
21496 {
21497 if (!wxPyCheckForApp()) SWIG_fail;
21498 PyThreadState* __tstate = wxPyBeginAllowThreads();
21499 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21500 wxPyEndAllowThreads(__tstate);
21501 if (PyErr_Occurred()) SWIG_fail;
21502 }
21503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21504 {
21505 if (temp6)
21506 delete arg6;
21507 }
21508 return resultobj;
21509 fail:
21510 {
21511 if (temp6)
21512 delete arg6;
21513 }
21514 return NULL;
21515 }
21516
21517
21518 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21519 PyObject *resultobj = 0;
21520 wxListbook *result = 0 ;
21521
21522 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21523 {
21524 if (!wxPyCheckForApp()) SWIG_fail;
21525 PyThreadState* __tstate = wxPyBeginAllowThreads();
21526 result = (wxListbook *)new wxListbook();
21527 wxPyEndAllowThreads(__tstate);
21528 if (PyErr_Occurred()) SWIG_fail;
21529 }
21530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21531 return resultobj;
21532 fail:
21533 return NULL;
21534 }
21535
21536
21537 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21538 PyObject *resultobj = 0;
21539 wxListbook *arg1 = (wxListbook *) 0 ;
21540 wxWindow *arg2 = (wxWindow *) 0 ;
21541 int arg3 = (int) -1 ;
21542 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21543 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21544 wxSize const &arg5_defvalue = wxDefaultSize ;
21545 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21546 long arg6 = (long) 0 ;
21547 wxString const &arg7_defvalue = wxPyEmptyString ;
21548 wxString *arg7 = (wxString *) &arg7_defvalue ;
21549 bool result;
21550 void *argp1 = 0 ;
21551 int res1 = 0 ;
21552 void *argp2 = 0 ;
21553 int res2 = 0 ;
21554 int val3 ;
21555 int ecode3 = 0 ;
21556 wxPoint temp4 ;
21557 wxSize temp5 ;
21558 long val6 ;
21559 int ecode6 = 0 ;
21560 bool temp7 = false ;
21561 PyObject * obj0 = 0 ;
21562 PyObject * obj1 = 0 ;
21563 PyObject * obj2 = 0 ;
21564 PyObject * obj3 = 0 ;
21565 PyObject * obj4 = 0 ;
21566 PyObject * obj5 = 0 ;
21567 PyObject * obj6 = 0 ;
21568 char * kwnames[] = {
21569 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21570 };
21571
21572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21574 if (!SWIG_IsOK(res1)) {
21575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21576 }
21577 arg1 = reinterpret_cast< wxListbook * >(argp1);
21578 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21579 if (!SWIG_IsOK(res2)) {
21580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21581 }
21582 arg2 = reinterpret_cast< wxWindow * >(argp2);
21583 if (obj2) {
21584 ecode3 = SWIG_AsVal_int(obj2, &val3);
21585 if (!SWIG_IsOK(ecode3)) {
21586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21587 }
21588 arg3 = static_cast< int >(val3);
21589 }
21590 if (obj3) {
21591 {
21592 arg4 = &temp4;
21593 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21594 }
21595 }
21596 if (obj4) {
21597 {
21598 arg5 = &temp5;
21599 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21600 }
21601 }
21602 if (obj5) {
21603 ecode6 = SWIG_AsVal_long(obj5, &val6);
21604 if (!SWIG_IsOK(ecode6)) {
21605 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21606 }
21607 arg6 = static_cast< long >(val6);
21608 }
21609 if (obj6) {
21610 {
21611 arg7 = wxString_in_helper(obj6);
21612 if (arg7 == NULL) SWIG_fail;
21613 temp7 = true;
21614 }
21615 }
21616 {
21617 PyThreadState* __tstate = wxPyBeginAllowThreads();
21618 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21619 wxPyEndAllowThreads(__tstate);
21620 if (PyErr_Occurred()) SWIG_fail;
21621 }
21622 {
21623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21624 }
21625 {
21626 if (temp7)
21627 delete arg7;
21628 }
21629 return resultobj;
21630 fail:
21631 {
21632 if (temp7)
21633 delete arg7;
21634 }
21635 return NULL;
21636 }
21637
21638
21639 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21640 PyObject *resultobj = 0;
21641 wxListbook *arg1 = (wxListbook *) 0 ;
21642 wxListView *result = 0 ;
21643 void *argp1 = 0 ;
21644 int res1 = 0 ;
21645 PyObject *swig_obj[1] ;
21646
21647 if (!args) SWIG_fail;
21648 swig_obj[0] = args;
21649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21650 if (!SWIG_IsOK(res1)) {
21651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21652 }
21653 arg1 = reinterpret_cast< wxListbook * >(argp1);
21654 {
21655 PyThreadState* __tstate = wxPyBeginAllowThreads();
21656 result = (wxListView *)(arg1)->GetListView();
21657 wxPyEndAllowThreads(__tstate);
21658 if (PyErr_Occurred()) SWIG_fail;
21659 }
21660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21661 return resultobj;
21662 fail:
21663 return NULL;
21664 }
21665
21666
21667 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21668 PyObject *obj;
21669 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21670 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21671 return SWIG_Py_Void();
21672 }
21673
21674 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21675 return SWIG_Python_InitShadowInstance(args);
21676 }
21677
21678 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21679 PyObject *resultobj = 0;
21680 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21681 int arg2 = (int) 0 ;
21682 int arg3 = (int) -1 ;
21683 int arg4 = (int) -1 ;
21684 wxListbookEvent *result = 0 ;
21685 int val1 ;
21686 int ecode1 = 0 ;
21687 int val2 ;
21688 int ecode2 = 0 ;
21689 int val3 ;
21690 int ecode3 = 0 ;
21691 int val4 ;
21692 int ecode4 = 0 ;
21693 PyObject * obj0 = 0 ;
21694 PyObject * obj1 = 0 ;
21695 PyObject * obj2 = 0 ;
21696 PyObject * obj3 = 0 ;
21697 char * kwnames[] = {
21698 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21699 };
21700
21701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21702 if (obj0) {
21703 ecode1 = SWIG_AsVal_int(obj0, &val1);
21704 if (!SWIG_IsOK(ecode1)) {
21705 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21706 }
21707 arg1 = static_cast< wxEventType >(val1);
21708 }
21709 if (obj1) {
21710 ecode2 = SWIG_AsVal_int(obj1, &val2);
21711 if (!SWIG_IsOK(ecode2)) {
21712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21713 }
21714 arg2 = static_cast< int >(val2);
21715 }
21716 if (obj2) {
21717 ecode3 = SWIG_AsVal_int(obj2, &val3);
21718 if (!SWIG_IsOK(ecode3)) {
21719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21720 }
21721 arg3 = static_cast< int >(val3);
21722 }
21723 if (obj3) {
21724 ecode4 = SWIG_AsVal_int(obj3, &val4);
21725 if (!SWIG_IsOK(ecode4)) {
21726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21727 }
21728 arg4 = static_cast< int >(val4);
21729 }
21730 {
21731 PyThreadState* __tstate = wxPyBeginAllowThreads();
21732 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21733 wxPyEndAllowThreads(__tstate);
21734 if (PyErr_Occurred()) SWIG_fail;
21735 }
21736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21737 return resultobj;
21738 fail:
21739 return NULL;
21740 }
21741
21742
21743 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21744 PyObject *obj;
21745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21746 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21747 return SWIG_Py_Void();
21748 }
21749
21750 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21751 return SWIG_Python_InitShadowInstance(args);
21752 }
21753
21754 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21755 PyObject *resultobj = 0;
21756 wxWindow *arg1 = (wxWindow *) 0 ;
21757 int arg2 ;
21758 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21759 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21760 wxSize const &arg4_defvalue = wxDefaultSize ;
21761 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21762 long arg5 = (long) 0 ;
21763 wxString const &arg6_defvalue = wxPyEmptyString ;
21764 wxString *arg6 = (wxString *) &arg6_defvalue ;
21765 wxChoicebook *result = 0 ;
21766 void *argp1 = 0 ;
21767 int res1 = 0 ;
21768 int val2 ;
21769 int ecode2 = 0 ;
21770 wxPoint temp3 ;
21771 wxSize temp4 ;
21772 long val5 ;
21773 int ecode5 = 0 ;
21774 bool temp6 = false ;
21775 PyObject * obj0 = 0 ;
21776 PyObject * obj1 = 0 ;
21777 PyObject * obj2 = 0 ;
21778 PyObject * obj3 = 0 ;
21779 PyObject * obj4 = 0 ;
21780 PyObject * obj5 = 0 ;
21781 char * kwnames[] = {
21782 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21783 };
21784
21785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21787 if (!SWIG_IsOK(res1)) {
21788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21789 }
21790 arg1 = reinterpret_cast< wxWindow * >(argp1);
21791 ecode2 = SWIG_AsVal_int(obj1, &val2);
21792 if (!SWIG_IsOK(ecode2)) {
21793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21794 }
21795 arg2 = static_cast< int >(val2);
21796 if (obj2) {
21797 {
21798 arg3 = &temp3;
21799 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21800 }
21801 }
21802 if (obj3) {
21803 {
21804 arg4 = &temp4;
21805 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21806 }
21807 }
21808 if (obj4) {
21809 ecode5 = SWIG_AsVal_long(obj4, &val5);
21810 if (!SWIG_IsOK(ecode5)) {
21811 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21812 }
21813 arg5 = static_cast< long >(val5);
21814 }
21815 if (obj5) {
21816 {
21817 arg6 = wxString_in_helper(obj5);
21818 if (arg6 == NULL) SWIG_fail;
21819 temp6 = true;
21820 }
21821 }
21822 {
21823 if (!wxPyCheckForApp()) SWIG_fail;
21824 PyThreadState* __tstate = wxPyBeginAllowThreads();
21825 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21826 wxPyEndAllowThreads(__tstate);
21827 if (PyErr_Occurred()) SWIG_fail;
21828 }
21829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21830 {
21831 if (temp6)
21832 delete arg6;
21833 }
21834 return resultobj;
21835 fail:
21836 {
21837 if (temp6)
21838 delete arg6;
21839 }
21840 return NULL;
21841 }
21842
21843
21844 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21845 PyObject *resultobj = 0;
21846 wxChoicebook *result = 0 ;
21847
21848 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21849 {
21850 if (!wxPyCheckForApp()) SWIG_fail;
21851 PyThreadState* __tstate = wxPyBeginAllowThreads();
21852 result = (wxChoicebook *)new wxChoicebook();
21853 wxPyEndAllowThreads(__tstate);
21854 if (PyErr_Occurred()) SWIG_fail;
21855 }
21856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21857 return resultobj;
21858 fail:
21859 return NULL;
21860 }
21861
21862
21863 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21864 PyObject *resultobj = 0;
21865 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21866 wxWindow *arg2 = (wxWindow *) 0 ;
21867 int arg3 ;
21868 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21869 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21870 wxSize const &arg5_defvalue = wxDefaultSize ;
21871 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21872 long arg6 = (long) 0 ;
21873 wxString const &arg7_defvalue = wxPyEmptyString ;
21874 wxString *arg7 = (wxString *) &arg7_defvalue ;
21875 bool result;
21876 void *argp1 = 0 ;
21877 int res1 = 0 ;
21878 void *argp2 = 0 ;
21879 int res2 = 0 ;
21880 int val3 ;
21881 int ecode3 = 0 ;
21882 wxPoint temp4 ;
21883 wxSize temp5 ;
21884 long val6 ;
21885 int ecode6 = 0 ;
21886 bool temp7 = false ;
21887 PyObject * obj0 = 0 ;
21888 PyObject * obj1 = 0 ;
21889 PyObject * obj2 = 0 ;
21890 PyObject * obj3 = 0 ;
21891 PyObject * obj4 = 0 ;
21892 PyObject * obj5 = 0 ;
21893 PyObject * obj6 = 0 ;
21894 char * kwnames[] = {
21895 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21896 };
21897
21898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21900 if (!SWIG_IsOK(res1)) {
21901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21902 }
21903 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21904 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21905 if (!SWIG_IsOK(res2)) {
21906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21907 }
21908 arg2 = reinterpret_cast< wxWindow * >(argp2);
21909 ecode3 = SWIG_AsVal_int(obj2, &val3);
21910 if (!SWIG_IsOK(ecode3)) {
21911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21912 }
21913 arg3 = static_cast< int >(val3);
21914 if (obj3) {
21915 {
21916 arg4 = &temp4;
21917 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21918 }
21919 }
21920 if (obj4) {
21921 {
21922 arg5 = &temp5;
21923 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21924 }
21925 }
21926 if (obj5) {
21927 ecode6 = SWIG_AsVal_long(obj5, &val6);
21928 if (!SWIG_IsOK(ecode6)) {
21929 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21930 }
21931 arg6 = static_cast< long >(val6);
21932 }
21933 if (obj6) {
21934 {
21935 arg7 = wxString_in_helper(obj6);
21936 if (arg7 == NULL) SWIG_fail;
21937 temp7 = true;
21938 }
21939 }
21940 {
21941 PyThreadState* __tstate = wxPyBeginAllowThreads();
21942 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21943 wxPyEndAllowThreads(__tstate);
21944 if (PyErr_Occurred()) SWIG_fail;
21945 }
21946 {
21947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21948 }
21949 {
21950 if (temp7)
21951 delete arg7;
21952 }
21953 return resultobj;
21954 fail:
21955 {
21956 if (temp7)
21957 delete arg7;
21958 }
21959 return NULL;
21960 }
21961
21962
21963 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21964 PyObject *resultobj = 0;
21965 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21966 wxChoice *result = 0 ;
21967 void *argp1 = 0 ;
21968 int res1 = 0 ;
21969 PyObject *swig_obj[1] ;
21970
21971 if (!args) SWIG_fail;
21972 swig_obj[0] = args;
21973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21974 if (!SWIG_IsOK(res1)) {
21975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21976 }
21977 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21978 {
21979 PyThreadState* __tstate = wxPyBeginAllowThreads();
21980 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21981 wxPyEndAllowThreads(__tstate);
21982 if (PyErr_Occurred()) SWIG_fail;
21983 }
21984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21985 return resultobj;
21986 fail:
21987 return NULL;
21988 }
21989
21990
21991 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21992 PyObject *obj;
21993 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21994 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21995 return SWIG_Py_Void();
21996 }
21997
21998 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21999 return SWIG_Python_InitShadowInstance(args);
22000 }
22001
22002 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22003 PyObject *resultobj = 0;
22004 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22005 int arg2 = (int) 0 ;
22006 int arg3 = (int) -1 ;
22007 int arg4 = (int) -1 ;
22008 wxChoicebookEvent *result = 0 ;
22009 int val1 ;
22010 int ecode1 = 0 ;
22011 int val2 ;
22012 int ecode2 = 0 ;
22013 int val3 ;
22014 int ecode3 = 0 ;
22015 int val4 ;
22016 int ecode4 = 0 ;
22017 PyObject * obj0 = 0 ;
22018 PyObject * obj1 = 0 ;
22019 PyObject * obj2 = 0 ;
22020 PyObject * obj3 = 0 ;
22021 char * kwnames[] = {
22022 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22023 };
22024
22025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22026 if (obj0) {
22027 ecode1 = SWIG_AsVal_int(obj0, &val1);
22028 if (!SWIG_IsOK(ecode1)) {
22029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22030 }
22031 arg1 = static_cast< wxEventType >(val1);
22032 }
22033 if (obj1) {
22034 ecode2 = SWIG_AsVal_int(obj1, &val2);
22035 if (!SWIG_IsOK(ecode2)) {
22036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
22037 }
22038 arg2 = static_cast< int >(val2);
22039 }
22040 if (obj2) {
22041 ecode3 = SWIG_AsVal_int(obj2, &val3);
22042 if (!SWIG_IsOK(ecode3)) {
22043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
22044 }
22045 arg3 = static_cast< int >(val3);
22046 }
22047 if (obj3) {
22048 ecode4 = SWIG_AsVal_int(obj3, &val4);
22049 if (!SWIG_IsOK(ecode4)) {
22050 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
22051 }
22052 arg4 = static_cast< int >(val4);
22053 }
22054 {
22055 PyThreadState* __tstate = wxPyBeginAllowThreads();
22056 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
22057 wxPyEndAllowThreads(__tstate);
22058 if (PyErr_Occurred()) SWIG_fail;
22059 }
22060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
22061 return resultobj;
22062 fail:
22063 return NULL;
22064 }
22065
22066
22067 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22068 PyObject *obj;
22069 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22070 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
22071 return SWIG_Py_Void();
22072 }
22073
22074 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22075 return SWIG_Python_InitShadowInstance(args);
22076 }
22077
22078 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22079 PyObject *resultobj = 0;
22080 wxWindow *arg1 = (wxWindow *) 0 ;
22081 int arg2 ;
22082 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22083 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22084 wxSize const &arg4_defvalue = wxDefaultSize ;
22085 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22086 long arg5 = (long) wxBK_DEFAULT ;
22087 wxString const &arg6_defvalue = wxPyEmptyString ;
22088 wxString *arg6 = (wxString *) &arg6_defvalue ;
22089 wxTreebook *result = 0 ;
22090 void *argp1 = 0 ;
22091 int res1 = 0 ;
22092 int val2 ;
22093 int ecode2 = 0 ;
22094 wxPoint temp3 ;
22095 wxSize temp4 ;
22096 long val5 ;
22097 int ecode5 = 0 ;
22098 bool temp6 = false ;
22099 PyObject * obj0 = 0 ;
22100 PyObject * obj1 = 0 ;
22101 PyObject * obj2 = 0 ;
22102 PyObject * obj3 = 0 ;
22103 PyObject * obj4 = 0 ;
22104 PyObject * obj5 = 0 ;
22105 char * kwnames[] = {
22106 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22107 };
22108
22109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22111 if (!SWIG_IsOK(res1)) {
22112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
22113 }
22114 arg1 = reinterpret_cast< wxWindow * >(argp1);
22115 ecode2 = SWIG_AsVal_int(obj1, &val2);
22116 if (!SWIG_IsOK(ecode2)) {
22117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
22118 }
22119 arg2 = static_cast< int >(val2);
22120 if (obj2) {
22121 {
22122 arg3 = &temp3;
22123 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22124 }
22125 }
22126 if (obj3) {
22127 {
22128 arg4 = &temp4;
22129 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22130 }
22131 }
22132 if (obj4) {
22133 ecode5 = SWIG_AsVal_long(obj4, &val5);
22134 if (!SWIG_IsOK(ecode5)) {
22135 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
22136 }
22137 arg5 = static_cast< long >(val5);
22138 }
22139 if (obj5) {
22140 {
22141 arg6 = wxString_in_helper(obj5);
22142 if (arg6 == NULL) SWIG_fail;
22143 temp6 = true;
22144 }
22145 }
22146 {
22147 if (!wxPyCheckForApp()) SWIG_fail;
22148 PyThreadState* __tstate = wxPyBeginAllowThreads();
22149 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22150 wxPyEndAllowThreads(__tstate);
22151 if (PyErr_Occurred()) SWIG_fail;
22152 }
22153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
22154 {
22155 if (temp6)
22156 delete arg6;
22157 }
22158 return resultobj;
22159 fail:
22160 {
22161 if (temp6)
22162 delete arg6;
22163 }
22164 return NULL;
22165 }
22166
22167
22168 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22169 PyObject *resultobj = 0;
22170 wxTreebook *result = 0 ;
22171
22172 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
22173 {
22174 if (!wxPyCheckForApp()) SWIG_fail;
22175 PyThreadState* __tstate = wxPyBeginAllowThreads();
22176 result = (wxTreebook *)new wxTreebook();
22177 wxPyEndAllowThreads(__tstate);
22178 if (PyErr_Occurred()) SWIG_fail;
22179 }
22180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
22181 return resultobj;
22182 fail:
22183 return NULL;
22184 }
22185
22186
22187 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22188 PyObject *resultobj = 0;
22189 wxTreebook *arg1 = (wxTreebook *) 0 ;
22190 wxWindow *arg2 = (wxWindow *) 0 ;
22191 int arg3 ;
22192 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22193 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22194 wxSize const &arg5_defvalue = wxDefaultSize ;
22195 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22196 long arg6 = (long) wxBK_DEFAULT ;
22197 wxString const &arg7_defvalue = wxPyEmptyString ;
22198 wxString *arg7 = (wxString *) &arg7_defvalue ;
22199 bool result;
22200 void *argp1 = 0 ;
22201 int res1 = 0 ;
22202 void *argp2 = 0 ;
22203 int res2 = 0 ;
22204 int val3 ;
22205 int ecode3 = 0 ;
22206 wxPoint temp4 ;
22207 wxSize temp5 ;
22208 long val6 ;
22209 int ecode6 = 0 ;
22210 bool temp7 = false ;
22211 PyObject * obj0 = 0 ;
22212 PyObject * obj1 = 0 ;
22213 PyObject * obj2 = 0 ;
22214 PyObject * obj3 = 0 ;
22215 PyObject * obj4 = 0 ;
22216 PyObject * obj5 = 0 ;
22217 PyObject * obj6 = 0 ;
22218 char * kwnames[] = {
22219 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22220 };
22221
22222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22224 if (!SWIG_IsOK(res1)) {
22225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
22226 }
22227 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22228 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22229 if (!SWIG_IsOK(res2)) {
22230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22231 }
22232 arg2 = reinterpret_cast< wxWindow * >(argp2);
22233 ecode3 = SWIG_AsVal_int(obj2, &val3);
22234 if (!SWIG_IsOK(ecode3)) {
22235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
22236 }
22237 arg3 = static_cast< int >(val3);
22238 if (obj3) {
22239 {
22240 arg4 = &temp4;
22241 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22242 }
22243 }
22244 if (obj4) {
22245 {
22246 arg5 = &temp5;
22247 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22248 }
22249 }
22250 if (obj5) {
22251 ecode6 = SWIG_AsVal_long(obj5, &val6);
22252 if (!SWIG_IsOK(ecode6)) {
22253 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
22254 }
22255 arg6 = static_cast< long >(val6);
22256 }
22257 if (obj6) {
22258 {
22259 arg7 = wxString_in_helper(obj6);
22260 if (arg7 == NULL) SWIG_fail;
22261 temp7 = true;
22262 }
22263 }
22264 {
22265 PyThreadState* __tstate = wxPyBeginAllowThreads();
22266 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22267 wxPyEndAllowThreads(__tstate);
22268 if (PyErr_Occurred()) SWIG_fail;
22269 }
22270 {
22271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22272 }
22273 {
22274 if (temp7)
22275 delete arg7;
22276 }
22277 return resultobj;
22278 fail:
22279 {
22280 if (temp7)
22281 delete arg7;
22282 }
22283 return NULL;
22284 }
22285
22286
22287 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22288 PyObject *resultobj = 0;
22289 wxTreebook *arg1 = (wxTreebook *) 0 ;
22290 size_t arg2 ;
22291 wxWindow *arg3 = (wxWindow *) 0 ;
22292 wxString *arg4 = 0 ;
22293 bool arg5 = (bool) false ;
22294 int arg6 = (int) wxNOT_FOUND ;
22295 bool result;
22296 void *argp1 = 0 ;
22297 int res1 = 0 ;
22298 size_t val2 ;
22299 int ecode2 = 0 ;
22300 void *argp3 = 0 ;
22301 int res3 = 0 ;
22302 bool temp4 = false ;
22303 bool val5 ;
22304 int ecode5 = 0 ;
22305 int val6 ;
22306 int ecode6 = 0 ;
22307 PyObject * obj0 = 0 ;
22308 PyObject * obj1 = 0 ;
22309 PyObject * obj2 = 0 ;
22310 PyObject * obj3 = 0 ;
22311 PyObject * obj4 = 0 ;
22312 PyObject * obj5 = 0 ;
22313 char * kwnames[] = {
22314 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22315 };
22316
22317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22319 if (!SWIG_IsOK(res1)) {
22320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22321 }
22322 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22323 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22324 if (!SWIG_IsOK(ecode2)) {
22325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
22326 }
22327 arg2 = static_cast< size_t >(val2);
22328 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
22329 if (!SWIG_IsOK(res3)) {
22330 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
22331 }
22332 arg3 = reinterpret_cast< wxWindow * >(argp3);
22333 {
22334 arg4 = wxString_in_helper(obj3);
22335 if (arg4 == NULL) SWIG_fail;
22336 temp4 = true;
22337 }
22338 if (obj4) {
22339 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22340 if (!SWIG_IsOK(ecode5)) {
22341 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22342 }
22343 arg5 = static_cast< bool >(val5);
22344 }
22345 if (obj5) {
22346 ecode6 = SWIG_AsVal_int(obj5, &val6);
22347 if (!SWIG_IsOK(ecode6)) {
22348 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22349 }
22350 arg6 = static_cast< int >(val6);
22351 }
22352 {
22353 PyThreadState* __tstate = wxPyBeginAllowThreads();
22354 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22355 wxPyEndAllowThreads(__tstate);
22356 if (PyErr_Occurred()) SWIG_fail;
22357 }
22358 {
22359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22360 }
22361 {
22362 if (temp4)
22363 delete arg4;
22364 }
22365 return resultobj;
22366 fail:
22367 {
22368 if (temp4)
22369 delete arg4;
22370 }
22371 return NULL;
22372 }
22373
22374
22375 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22376 PyObject *resultobj = 0;
22377 wxTreebook *arg1 = (wxTreebook *) 0 ;
22378 wxWindow *arg2 = (wxWindow *) 0 ;
22379 wxString *arg3 = 0 ;
22380 bool arg4 = (bool) false ;
22381 int arg5 = (int) wxNOT_FOUND ;
22382 bool result;
22383 void *argp1 = 0 ;
22384 int res1 = 0 ;
22385 void *argp2 = 0 ;
22386 int res2 = 0 ;
22387 bool temp3 = false ;
22388 bool val4 ;
22389 int ecode4 = 0 ;
22390 int val5 ;
22391 int ecode5 = 0 ;
22392 PyObject * obj0 = 0 ;
22393 PyObject * obj1 = 0 ;
22394 PyObject * obj2 = 0 ;
22395 PyObject * obj3 = 0 ;
22396 PyObject * obj4 = 0 ;
22397 char * kwnames[] = {
22398 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22399 };
22400
22401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22403 if (!SWIG_IsOK(res1)) {
22404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22405 }
22406 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22407 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22408 if (!SWIG_IsOK(res2)) {
22409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22410 }
22411 arg2 = reinterpret_cast< wxWindow * >(argp2);
22412 {
22413 arg3 = wxString_in_helper(obj2);
22414 if (arg3 == NULL) SWIG_fail;
22415 temp3 = true;
22416 }
22417 if (obj3) {
22418 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22419 if (!SWIG_IsOK(ecode4)) {
22420 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22421 }
22422 arg4 = static_cast< bool >(val4);
22423 }
22424 if (obj4) {
22425 ecode5 = SWIG_AsVal_int(obj4, &val5);
22426 if (!SWIG_IsOK(ecode5)) {
22427 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22428 }
22429 arg5 = static_cast< int >(val5);
22430 }
22431 {
22432 PyThreadState* __tstate = wxPyBeginAllowThreads();
22433 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22434 wxPyEndAllowThreads(__tstate);
22435 if (PyErr_Occurred()) SWIG_fail;
22436 }
22437 {
22438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22439 }
22440 {
22441 if (temp3)
22442 delete arg3;
22443 }
22444 return resultobj;
22445 fail:
22446 {
22447 if (temp3)
22448 delete arg3;
22449 }
22450 return NULL;
22451 }
22452
22453
22454 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22455 PyObject *resultobj = 0;
22456 wxTreebook *arg1 = (wxTreebook *) 0 ;
22457 size_t arg2 ;
22458 bool result;
22459 void *argp1 = 0 ;
22460 int res1 = 0 ;
22461 size_t val2 ;
22462 int ecode2 = 0 ;
22463 PyObject * obj0 = 0 ;
22464 PyObject * obj1 = 0 ;
22465 char * kwnames[] = {
22466 (char *) "self",(char *) "pos", NULL
22467 };
22468
22469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22471 if (!SWIG_IsOK(res1)) {
22472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22473 }
22474 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22475 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22476 if (!SWIG_IsOK(ecode2)) {
22477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22478 }
22479 arg2 = static_cast< size_t >(val2);
22480 {
22481 PyThreadState* __tstate = wxPyBeginAllowThreads();
22482 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22483 wxPyEndAllowThreads(__tstate);
22484 if (PyErr_Occurred()) SWIG_fail;
22485 }
22486 {
22487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22488 }
22489 return resultobj;
22490 fail:
22491 return NULL;
22492 }
22493
22494
22495 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22496 PyObject *resultobj = 0;
22497 wxTreebook *arg1 = (wxTreebook *) 0 ;
22498 size_t arg2 ;
22499 bool arg3 = (bool) true ;
22500 bool result;
22501 void *argp1 = 0 ;
22502 int res1 = 0 ;
22503 size_t val2 ;
22504 int ecode2 = 0 ;
22505 bool val3 ;
22506 int ecode3 = 0 ;
22507 PyObject * obj0 = 0 ;
22508 PyObject * obj1 = 0 ;
22509 PyObject * obj2 = 0 ;
22510 char * kwnames[] = {
22511 (char *) "self",(char *) "pos",(char *) "expand", NULL
22512 };
22513
22514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22516 if (!SWIG_IsOK(res1)) {
22517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22518 }
22519 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22520 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22521 if (!SWIG_IsOK(ecode2)) {
22522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22523 }
22524 arg2 = static_cast< size_t >(val2);
22525 if (obj2) {
22526 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22527 if (!SWIG_IsOK(ecode3)) {
22528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22529 }
22530 arg3 = static_cast< bool >(val3);
22531 }
22532 {
22533 PyThreadState* __tstate = wxPyBeginAllowThreads();
22534 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22535 wxPyEndAllowThreads(__tstate);
22536 if (PyErr_Occurred()) SWIG_fail;
22537 }
22538 {
22539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22540 }
22541 return resultobj;
22542 fail:
22543 return NULL;
22544 }
22545
22546
22547 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22548 PyObject *resultobj = 0;
22549 wxTreebook *arg1 = (wxTreebook *) 0 ;
22550 size_t arg2 ;
22551 bool result;
22552 void *argp1 = 0 ;
22553 int res1 = 0 ;
22554 size_t val2 ;
22555 int ecode2 = 0 ;
22556 PyObject * obj0 = 0 ;
22557 PyObject * obj1 = 0 ;
22558 char * kwnames[] = {
22559 (char *) "self",(char *) "pos", NULL
22560 };
22561
22562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22564 if (!SWIG_IsOK(res1)) {
22565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22566 }
22567 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22568 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22569 if (!SWIG_IsOK(ecode2)) {
22570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22571 }
22572 arg2 = static_cast< size_t >(val2);
22573 {
22574 PyThreadState* __tstate = wxPyBeginAllowThreads();
22575 result = (bool)(arg1)->CollapseNode(arg2);
22576 wxPyEndAllowThreads(__tstate);
22577 if (PyErr_Occurred()) SWIG_fail;
22578 }
22579 {
22580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22581 }
22582 return resultobj;
22583 fail:
22584 return NULL;
22585 }
22586
22587
22588 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22589 PyObject *resultobj = 0;
22590 wxTreebook *arg1 = (wxTreebook *) 0 ;
22591 size_t arg2 ;
22592 int result;
22593 void *argp1 = 0 ;
22594 int res1 = 0 ;
22595 size_t val2 ;
22596 int ecode2 = 0 ;
22597 PyObject * obj0 = 0 ;
22598 PyObject * obj1 = 0 ;
22599 char * kwnames[] = {
22600 (char *) "self",(char *) "pos", NULL
22601 };
22602
22603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22605 if (!SWIG_IsOK(res1)) {
22606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22607 }
22608 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22609 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22610 if (!SWIG_IsOK(ecode2)) {
22611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22612 }
22613 arg2 = static_cast< size_t >(val2);
22614 {
22615 PyThreadState* __tstate = wxPyBeginAllowThreads();
22616 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22617 wxPyEndAllowThreads(__tstate);
22618 if (PyErr_Occurred()) SWIG_fail;
22619 }
22620 resultobj = SWIG_From_int(static_cast< int >(result));
22621 return resultobj;
22622 fail:
22623 return NULL;
22624 }
22625
22626
22627 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22628 PyObject *resultobj = 0;
22629 wxTreebook *arg1 = (wxTreebook *) 0 ;
22630 wxPyTreeCtrl *result = 0 ;
22631 void *argp1 = 0 ;
22632 int res1 = 0 ;
22633 PyObject *swig_obj[1] ;
22634
22635 if (!args) SWIG_fail;
22636 swig_obj[0] = args;
22637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22638 if (!SWIG_IsOK(res1)) {
22639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22640 }
22641 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22642 {
22643 PyThreadState* __tstate = wxPyBeginAllowThreads();
22644 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22645 wxPyEndAllowThreads(__tstate);
22646 if (PyErr_Occurred()) SWIG_fail;
22647 }
22648 {
22649 resultobj = wxPyMake_wxObject(result, (bool)0);
22650 }
22651 return resultobj;
22652 fail:
22653 return NULL;
22654 }
22655
22656
22657 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22658 PyObject *obj;
22659 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22660 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22661 return SWIG_Py_Void();
22662 }
22663
22664 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22665 return SWIG_Python_InitShadowInstance(args);
22666 }
22667
22668 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22669 PyObject *resultobj = 0;
22670 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22671 int arg2 = (int) 0 ;
22672 int arg3 = (int) wxNOT_FOUND ;
22673 int arg4 = (int) wxNOT_FOUND ;
22674 wxTreebookEvent *result = 0 ;
22675 int val1 ;
22676 int ecode1 = 0 ;
22677 int val2 ;
22678 int ecode2 = 0 ;
22679 int val3 ;
22680 int ecode3 = 0 ;
22681 int val4 ;
22682 int ecode4 = 0 ;
22683 PyObject * obj0 = 0 ;
22684 PyObject * obj1 = 0 ;
22685 PyObject * obj2 = 0 ;
22686 PyObject * obj3 = 0 ;
22687 char * kwnames[] = {
22688 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22689 };
22690
22691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22692 if (obj0) {
22693 ecode1 = SWIG_AsVal_int(obj0, &val1);
22694 if (!SWIG_IsOK(ecode1)) {
22695 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22696 }
22697 arg1 = static_cast< wxEventType >(val1);
22698 }
22699 if (obj1) {
22700 ecode2 = SWIG_AsVal_int(obj1, &val2);
22701 if (!SWIG_IsOK(ecode2)) {
22702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22703 }
22704 arg2 = static_cast< int >(val2);
22705 }
22706 if (obj2) {
22707 ecode3 = SWIG_AsVal_int(obj2, &val3);
22708 if (!SWIG_IsOK(ecode3)) {
22709 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22710 }
22711 arg3 = static_cast< int >(val3);
22712 }
22713 if (obj3) {
22714 ecode4 = SWIG_AsVal_int(obj3, &val4);
22715 if (!SWIG_IsOK(ecode4)) {
22716 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22717 }
22718 arg4 = static_cast< int >(val4);
22719 }
22720 {
22721 PyThreadState* __tstate = wxPyBeginAllowThreads();
22722 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22723 wxPyEndAllowThreads(__tstate);
22724 if (PyErr_Occurred()) SWIG_fail;
22725 }
22726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22727 return resultobj;
22728 fail:
22729 return NULL;
22730 }
22731
22732
22733 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22734 PyObject *obj;
22735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22736 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22737 return SWIG_Py_Void();
22738 }
22739
22740 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22741 return SWIG_Python_InitShadowInstance(args);
22742 }
22743
22744 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22745 PyObject *resultobj = 0;
22746 wxWindow *arg1 = (wxWindow *) 0 ;
22747 int arg2 ;
22748 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22749 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22750 wxSize const &arg4_defvalue = wxDefaultSize ;
22751 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22752 long arg5 = (long) wxBK_DEFAULT ;
22753 wxString const &arg6_defvalue = wxPyEmptyString ;
22754 wxString *arg6 = (wxString *) &arg6_defvalue ;
22755 wxToolbook *result = 0 ;
22756 void *argp1 = 0 ;
22757 int res1 = 0 ;
22758 int val2 ;
22759 int ecode2 = 0 ;
22760 wxPoint temp3 ;
22761 wxSize temp4 ;
22762 long val5 ;
22763 int ecode5 = 0 ;
22764 bool temp6 = false ;
22765 PyObject * obj0 = 0 ;
22766 PyObject * obj1 = 0 ;
22767 PyObject * obj2 = 0 ;
22768 PyObject * obj3 = 0 ;
22769 PyObject * obj4 = 0 ;
22770 PyObject * obj5 = 0 ;
22771 char * kwnames[] = {
22772 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22773 };
22774
22775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22777 if (!SWIG_IsOK(res1)) {
22778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22779 }
22780 arg1 = reinterpret_cast< wxWindow * >(argp1);
22781 ecode2 = SWIG_AsVal_int(obj1, &val2);
22782 if (!SWIG_IsOK(ecode2)) {
22783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22784 }
22785 arg2 = static_cast< int >(val2);
22786 if (obj2) {
22787 {
22788 arg3 = &temp3;
22789 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22790 }
22791 }
22792 if (obj3) {
22793 {
22794 arg4 = &temp4;
22795 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22796 }
22797 }
22798 if (obj4) {
22799 ecode5 = SWIG_AsVal_long(obj4, &val5);
22800 if (!SWIG_IsOK(ecode5)) {
22801 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22802 }
22803 arg5 = static_cast< long >(val5);
22804 }
22805 if (obj5) {
22806 {
22807 arg6 = wxString_in_helper(obj5);
22808 if (arg6 == NULL) SWIG_fail;
22809 temp6 = true;
22810 }
22811 }
22812 {
22813 PyThreadState* __tstate = wxPyBeginAllowThreads();
22814 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22815 wxPyEndAllowThreads(__tstate);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22819 {
22820 if (temp6)
22821 delete arg6;
22822 }
22823 return resultobj;
22824 fail:
22825 {
22826 if (temp6)
22827 delete arg6;
22828 }
22829 return NULL;
22830 }
22831
22832
22833 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22834 PyObject *resultobj = 0;
22835 wxToolbook *result = 0 ;
22836
22837 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22838 {
22839 PyThreadState* __tstate = wxPyBeginAllowThreads();
22840 result = (wxToolbook *)new wxToolbook();
22841 wxPyEndAllowThreads(__tstate);
22842 if (PyErr_Occurred()) SWIG_fail;
22843 }
22844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22845 return resultobj;
22846 fail:
22847 return NULL;
22848 }
22849
22850
22851 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22852 PyObject *resultobj = 0;
22853 wxToolbook *arg1 = (wxToolbook *) 0 ;
22854 wxWindow *arg2 = (wxWindow *) 0 ;
22855 int arg3 ;
22856 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22857 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22858 wxSize const &arg5_defvalue = wxDefaultSize ;
22859 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22860 long arg6 = (long) 0 ;
22861 wxString const &arg7_defvalue = wxEmptyString ;
22862 wxString *arg7 = (wxString *) &arg7_defvalue ;
22863 bool result;
22864 void *argp1 = 0 ;
22865 int res1 = 0 ;
22866 void *argp2 = 0 ;
22867 int res2 = 0 ;
22868 int val3 ;
22869 int ecode3 = 0 ;
22870 wxPoint temp4 ;
22871 wxSize temp5 ;
22872 long val6 ;
22873 int ecode6 = 0 ;
22874 bool temp7 = false ;
22875 PyObject * obj0 = 0 ;
22876 PyObject * obj1 = 0 ;
22877 PyObject * obj2 = 0 ;
22878 PyObject * obj3 = 0 ;
22879 PyObject * obj4 = 0 ;
22880 PyObject * obj5 = 0 ;
22881 PyObject * obj6 = 0 ;
22882 char * kwnames[] = {
22883 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22884 };
22885
22886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22888 if (!SWIG_IsOK(res1)) {
22889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22890 }
22891 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22892 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22893 if (!SWIG_IsOK(res2)) {
22894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22895 }
22896 arg2 = reinterpret_cast< wxWindow * >(argp2);
22897 ecode3 = SWIG_AsVal_int(obj2, &val3);
22898 if (!SWIG_IsOK(ecode3)) {
22899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22900 }
22901 arg3 = static_cast< int >(val3);
22902 if (obj3) {
22903 {
22904 arg4 = &temp4;
22905 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22906 }
22907 }
22908 if (obj4) {
22909 {
22910 arg5 = &temp5;
22911 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22912 }
22913 }
22914 if (obj5) {
22915 ecode6 = SWIG_AsVal_long(obj5, &val6);
22916 if (!SWIG_IsOK(ecode6)) {
22917 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22918 }
22919 arg6 = static_cast< long >(val6);
22920 }
22921 if (obj6) {
22922 {
22923 arg7 = wxString_in_helper(obj6);
22924 if (arg7 == NULL) SWIG_fail;
22925 temp7 = true;
22926 }
22927 }
22928 {
22929 PyThreadState* __tstate = wxPyBeginAllowThreads();
22930 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22931 wxPyEndAllowThreads(__tstate);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 }
22934 {
22935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22936 }
22937 {
22938 if (temp7)
22939 delete arg7;
22940 }
22941 return resultobj;
22942 fail:
22943 {
22944 if (temp7)
22945 delete arg7;
22946 }
22947 return NULL;
22948 }
22949
22950
22951 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22952 PyObject *resultobj = 0;
22953 wxToolbook *arg1 = (wxToolbook *) 0 ;
22954 wxToolBarBase *result = 0 ;
22955 void *argp1 = 0 ;
22956 int res1 = 0 ;
22957 PyObject *swig_obj[1] ;
22958
22959 if (!args) SWIG_fail;
22960 swig_obj[0] = args;
22961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22962 if (!SWIG_IsOK(res1)) {
22963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22964 }
22965 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22966 {
22967 PyThreadState* __tstate = wxPyBeginAllowThreads();
22968 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22969 wxPyEndAllowThreads(__tstate);
22970 if (PyErr_Occurred()) SWIG_fail;
22971 }
22972 {
22973 resultobj = wxPyMake_wxObject(result, (bool)0);
22974 }
22975 return resultobj;
22976 fail:
22977 return NULL;
22978 }
22979
22980
22981 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22982 PyObject *resultobj = 0;
22983 wxToolbook *arg1 = (wxToolbook *) 0 ;
22984 void *argp1 = 0 ;
22985 int res1 = 0 ;
22986 PyObject *swig_obj[1] ;
22987
22988 if (!args) SWIG_fail;
22989 swig_obj[0] = args;
22990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22991 if (!SWIG_IsOK(res1)) {
22992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22993 }
22994 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22995 {
22996 PyThreadState* __tstate = wxPyBeginAllowThreads();
22997 (arg1)->Realize();
22998 wxPyEndAllowThreads(__tstate);
22999 if (PyErr_Occurred()) SWIG_fail;
23000 }
23001 resultobj = SWIG_Py_Void();
23002 return resultobj;
23003 fail:
23004 return NULL;
23005 }
23006
23007
23008 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23009 PyObject *obj;
23010 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23011 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
23012 return SWIG_Py_Void();
23013 }
23014
23015 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23016 return SWIG_Python_InitShadowInstance(args);
23017 }
23018
23019 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23020 PyObject *resultobj = 0;
23021 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
23022 int arg2 = (int) 0 ;
23023 int arg3 = (int) wxNOT_FOUND ;
23024 int arg4 = (int) wxNOT_FOUND ;
23025 wxToolbookEvent *result = 0 ;
23026 int val1 ;
23027 int ecode1 = 0 ;
23028 int val2 ;
23029 int ecode2 = 0 ;
23030 int val3 ;
23031 int ecode3 = 0 ;
23032 int val4 ;
23033 int ecode4 = 0 ;
23034 PyObject * obj0 = 0 ;
23035 PyObject * obj1 = 0 ;
23036 PyObject * obj2 = 0 ;
23037 PyObject * obj3 = 0 ;
23038 char * kwnames[] = {
23039 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
23040 };
23041
23042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23043 if (obj0) {
23044 ecode1 = SWIG_AsVal_int(obj0, &val1);
23045 if (!SWIG_IsOK(ecode1)) {
23046 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
23047 }
23048 arg1 = static_cast< wxEventType >(val1);
23049 }
23050 if (obj1) {
23051 ecode2 = SWIG_AsVal_int(obj1, &val2);
23052 if (!SWIG_IsOK(ecode2)) {
23053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
23054 }
23055 arg2 = static_cast< int >(val2);
23056 }
23057 if (obj2) {
23058 ecode3 = SWIG_AsVal_int(obj2, &val3);
23059 if (!SWIG_IsOK(ecode3)) {
23060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
23061 }
23062 arg3 = static_cast< int >(val3);
23063 }
23064 if (obj3) {
23065 ecode4 = SWIG_AsVal_int(obj3, &val4);
23066 if (!SWIG_IsOK(ecode4)) {
23067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
23068 }
23069 arg4 = static_cast< int >(val4);
23070 }
23071 {
23072 PyThreadState* __tstate = wxPyBeginAllowThreads();
23073 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
23074 wxPyEndAllowThreads(__tstate);
23075 if (PyErr_Occurred()) SWIG_fail;
23076 }
23077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
23078 return resultobj;
23079 fail:
23080 return NULL;
23081 }
23082
23083
23084 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23085 PyObject *obj;
23086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23087 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
23088 return SWIG_Py_Void();
23089 }
23090
23091 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23092 return SWIG_Python_InitShadowInstance(args);
23093 }
23094
23095 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23096 PyObject *resultobj = 0;
23097 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23098 int result;
23099 void *argp1 = 0 ;
23100 int res1 = 0 ;
23101 PyObject *swig_obj[1] ;
23102
23103 if (!args) SWIG_fail;
23104 swig_obj[0] = args;
23105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23106 if (!SWIG_IsOK(res1)) {
23107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23108 }
23109 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23110 {
23111 PyThreadState* __tstate = wxPyBeginAllowThreads();
23112 result = (int)(arg1)->GetId();
23113 wxPyEndAllowThreads(__tstate);
23114 if (PyErr_Occurred()) SWIG_fail;
23115 }
23116 resultobj = SWIG_From_int(static_cast< int >(result));
23117 return resultobj;
23118 fail:
23119 return NULL;
23120 }
23121
23122
23123 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23124 PyObject *resultobj = 0;
23125 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23126 wxControl *result = 0 ;
23127 void *argp1 = 0 ;
23128 int res1 = 0 ;
23129 PyObject *swig_obj[1] ;
23130
23131 if (!args) SWIG_fail;
23132 swig_obj[0] = args;
23133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23134 if (!SWIG_IsOK(res1)) {
23135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23136 }
23137 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23138 {
23139 PyThreadState* __tstate = wxPyBeginAllowThreads();
23140 result = (wxControl *)(arg1)->GetControl();
23141 wxPyEndAllowThreads(__tstate);
23142 if (PyErr_Occurred()) SWIG_fail;
23143 }
23144 {
23145 resultobj = wxPyMake_wxObject(result, 0);
23146 }
23147 return resultobj;
23148 fail:
23149 return NULL;
23150 }
23151
23152
23153 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23154 PyObject *resultobj = 0;
23155 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23156 wxToolBarBase *result = 0 ;
23157 void *argp1 = 0 ;
23158 int res1 = 0 ;
23159 PyObject *swig_obj[1] ;
23160
23161 if (!args) SWIG_fail;
23162 swig_obj[0] = args;
23163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23164 if (!SWIG_IsOK(res1)) {
23165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23166 }
23167 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23168 {
23169 PyThreadState* __tstate = wxPyBeginAllowThreads();
23170 result = (wxToolBarBase *)(arg1)->GetToolBar();
23171 wxPyEndAllowThreads(__tstate);
23172 if (PyErr_Occurred()) SWIG_fail;
23173 }
23174 {
23175 resultobj = wxPyMake_wxObject(result, (bool)0);
23176 }
23177 return resultobj;
23178 fail:
23179 return NULL;
23180 }
23181
23182
23183 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23184 PyObject *resultobj = 0;
23185 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23186 int result;
23187 void *argp1 = 0 ;
23188 int res1 = 0 ;
23189 PyObject *swig_obj[1] ;
23190
23191 if (!args) SWIG_fail;
23192 swig_obj[0] = args;
23193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23194 if (!SWIG_IsOK(res1)) {
23195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23196 }
23197 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23198 {
23199 PyThreadState* __tstate = wxPyBeginAllowThreads();
23200 result = (int)(arg1)->IsButton();
23201 wxPyEndAllowThreads(__tstate);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 }
23204 resultobj = SWIG_From_int(static_cast< int >(result));
23205 return resultobj;
23206 fail:
23207 return NULL;
23208 }
23209
23210
23211 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23212 PyObject *resultobj = 0;
23213 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23214 int result;
23215 void *argp1 = 0 ;
23216 int res1 = 0 ;
23217 PyObject *swig_obj[1] ;
23218
23219 if (!args) SWIG_fail;
23220 swig_obj[0] = args;
23221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23222 if (!SWIG_IsOK(res1)) {
23223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23224 }
23225 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23226 {
23227 PyThreadState* __tstate = wxPyBeginAllowThreads();
23228 result = (int)(arg1)->IsControl();
23229 wxPyEndAllowThreads(__tstate);
23230 if (PyErr_Occurred()) SWIG_fail;
23231 }
23232 resultobj = SWIG_From_int(static_cast< int >(result));
23233 return resultobj;
23234 fail:
23235 return NULL;
23236 }
23237
23238
23239 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23240 PyObject *resultobj = 0;
23241 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23242 int result;
23243 void *argp1 = 0 ;
23244 int res1 = 0 ;
23245 PyObject *swig_obj[1] ;
23246
23247 if (!args) SWIG_fail;
23248 swig_obj[0] = args;
23249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23250 if (!SWIG_IsOK(res1)) {
23251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23252 }
23253 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23254 {
23255 PyThreadState* __tstate = wxPyBeginAllowThreads();
23256 result = (int)(arg1)->IsSeparator();
23257 wxPyEndAllowThreads(__tstate);
23258 if (PyErr_Occurred()) SWIG_fail;
23259 }
23260 resultobj = SWIG_From_int(static_cast< int >(result));
23261 return resultobj;
23262 fail:
23263 return NULL;
23264 }
23265
23266
23267 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23268 PyObject *resultobj = 0;
23269 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23270 int result;
23271 void *argp1 = 0 ;
23272 int res1 = 0 ;
23273 PyObject *swig_obj[1] ;
23274
23275 if (!args) SWIG_fail;
23276 swig_obj[0] = args;
23277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23278 if (!SWIG_IsOK(res1)) {
23279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23280 }
23281 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23282 {
23283 PyThreadState* __tstate = wxPyBeginAllowThreads();
23284 result = (int)(arg1)->GetStyle();
23285 wxPyEndAllowThreads(__tstate);
23286 if (PyErr_Occurred()) SWIG_fail;
23287 }
23288 resultobj = SWIG_From_int(static_cast< int >(result));
23289 return resultobj;
23290 fail:
23291 return NULL;
23292 }
23293
23294
23295 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23296 PyObject *resultobj = 0;
23297 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23298 wxItemKind result;
23299 void *argp1 = 0 ;
23300 int res1 = 0 ;
23301 PyObject *swig_obj[1] ;
23302
23303 if (!args) SWIG_fail;
23304 swig_obj[0] = args;
23305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23306 if (!SWIG_IsOK(res1)) {
23307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23308 }
23309 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23310 {
23311 PyThreadState* __tstate = wxPyBeginAllowThreads();
23312 result = (wxItemKind)(arg1)->GetKind();
23313 wxPyEndAllowThreads(__tstate);
23314 if (PyErr_Occurred()) SWIG_fail;
23315 }
23316 resultobj = SWIG_From_int(static_cast< int >(result));
23317 return resultobj;
23318 fail:
23319 return NULL;
23320 }
23321
23322
23323 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23324 PyObject *resultobj = 0;
23325 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23326 bool result;
23327 void *argp1 = 0 ;
23328 int res1 = 0 ;
23329 PyObject *swig_obj[1] ;
23330
23331 if (!args) SWIG_fail;
23332 swig_obj[0] = args;
23333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23334 if (!SWIG_IsOK(res1)) {
23335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23336 }
23337 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23338 {
23339 PyThreadState* __tstate = wxPyBeginAllowThreads();
23340 result = (bool)(arg1)->IsEnabled();
23341 wxPyEndAllowThreads(__tstate);
23342 if (PyErr_Occurred()) SWIG_fail;
23343 }
23344 {
23345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23346 }
23347 return resultobj;
23348 fail:
23349 return NULL;
23350 }
23351
23352
23353 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23354 PyObject *resultobj = 0;
23355 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23356 bool result;
23357 void *argp1 = 0 ;
23358 int res1 = 0 ;
23359 PyObject *swig_obj[1] ;
23360
23361 if (!args) SWIG_fail;
23362 swig_obj[0] = args;
23363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23364 if (!SWIG_IsOK(res1)) {
23365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23366 }
23367 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23368 {
23369 PyThreadState* __tstate = wxPyBeginAllowThreads();
23370 result = (bool)(arg1)->IsToggled();
23371 wxPyEndAllowThreads(__tstate);
23372 if (PyErr_Occurred()) SWIG_fail;
23373 }
23374 {
23375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23376 }
23377 return resultobj;
23378 fail:
23379 return NULL;
23380 }
23381
23382
23383 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23384 PyObject *resultobj = 0;
23385 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23386 bool result;
23387 void *argp1 = 0 ;
23388 int res1 = 0 ;
23389 PyObject *swig_obj[1] ;
23390
23391 if (!args) SWIG_fail;
23392 swig_obj[0] = args;
23393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23394 if (!SWIG_IsOK(res1)) {
23395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23396 }
23397 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23398 {
23399 PyThreadState* __tstate = wxPyBeginAllowThreads();
23400 result = (bool)(arg1)->CanBeToggled();
23401 wxPyEndAllowThreads(__tstate);
23402 if (PyErr_Occurred()) SWIG_fail;
23403 }
23404 {
23405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23406 }
23407 return resultobj;
23408 fail:
23409 return NULL;
23410 }
23411
23412
23413 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23414 PyObject *resultobj = 0;
23415 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23416 wxBitmap *result = 0 ;
23417 void *argp1 = 0 ;
23418 int res1 = 0 ;
23419 PyObject *swig_obj[1] ;
23420
23421 if (!args) SWIG_fail;
23422 swig_obj[0] = args;
23423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23424 if (!SWIG_IsOK(res1)) {
23425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23426 }
23427 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23428 {
23429 PyThreadState* __tstate = wxPyBeginAllowThreads();
23430 {
23431 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23432 result = (wxBitmap *) &_result_ref;
23433 }
23434 wxPyEndAllowThreads(__tstate);
23435 if (PyErr_Occurred()) SWIG_fail;
23436 }
23437 {
23438 wxBitmap* resultptr = new wxBitmap(*result);
23439 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23440 }
23441 return resultobj;
23442 fail:
23443 return NULL;
23444 }
23445
23446
23447 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23448 PyObject *resultobj = 0;
23449 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23450 wxBitmap *result = 0 ;
23451 void *argp1 = 0 ;
23452 int res1 = 0 ;
23453 PyObject *swig_obj[1] ;
23454
23455 if (!args) SWIG_fail;
23456 swig_obj[0] = args;
23457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23458 if (!SWIG_IsOK(res1)) {
23459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23460 }
23461 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23462 {
23463 PyThreadState* __tstate = wxPyBeginAllowThreads();
23464 {
23465 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23466 result = (wxBitmap *) &_result_ref;
23467 }
23468 wxPyEndAllowThreads(__tstate);
23469 if (PyErr_Occurred()) SWIG_fail;
23470 }
23471 {
23472 wxBitmap* resultptr = new wxBitmap(*result);
23473 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23474 }
23475 return resultobj;
23476 fail:
23477 return NULL;
23478 }
23479
23480
23481 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23482 PyObject *resultobj = 0;
23483 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23484 wxBitmap result;
23485 void *argp1 = 0 ;
23486 int res1 = 0 ;
23487 PyObject *swig_obj[1] ;
23488
23489 if (!args) SWIG_fail;
23490 swig_obj[0] = args;
23491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23492 if (!SWIG_IsOK(res1)) {
23493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23494 }
23495 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23496 {
23497 PyThreadState* __tstate = wxPyBeginAllowThreads();
23498 result = (arg1)->GetBitmap();
23499 wxPyEndAllowThreads(__tstate);
23500 if (PyErr_Occurred()) SWIG_fail;
23501 }
23502 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23503 return resultobj;
23504 fail:
23505 return NULL;
23506 }
23507
23508
23509 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23510 PyObject *resultobj = 0;
23511 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23512 wxString result;
23513 void *argp1 = 0 ;
23514 int res1 = 0 ;
23515 PyObject *swig_obj[1] ;
23516
23517 if (!args) SWIG_fail;
23518 swig_obj[0] = args;
23519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23520 if (!SWIG_IsOK(res1)) {
23521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23522 }
23523 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23524 {
23525 PyThreadState* __tstate = wxPyBeginAllowThreads();
23526 result = (arg1)->GetLabel();
23527 wxPyEndAllowThreads(__tstate);
23528 if (PyErr_Occurred()) SWIG_fail;
23529 }
23530 {
23531 #if wxUSE_UNICODE
23532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23533 #else
23534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23535 #endif
23536 }
23537 return resultobj;
23538 fail:
23539 return NULL;
23540 }
23541
23542
23543 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23544 PyObject *resultobj = 0;
23545 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23546 wxString result;
23547 void *argp1 = 0 ;
23548 int res1 = 0 ;
23549 PyObject *swig_obj[1] ;
23550
23551 if (!args) SWIG_fail;
23552 swig_obj[0] = args;
23553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23554 if (!SWIG_IsOK(res1)) {
23555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23556 }
23557 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23558 {
23559 PyThreadState* __tstate = wxPyBeginAllowThreads();
23560 result = (arg1)->GetShortHelp();
23561 wxPyEndAllowThreads(__tstate);
23562 if (PyErr_Occurred()) SWIG_fail;
23563 }
23564 {
23565 #if wxUSE_UNICODE
23566 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23567 #else
23568 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23569 #endif
23570 }
23571 return resultobj;
23572 fail:
23573 return NULL;
23574 }
23575
23576
23577 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23578 PyObject *resultobj = 0;
23579 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23580 wxString result;
23581 void *argp1 = 0 ;
23582 int res1 = 0 ;
23583 PyObject *swig_obj[1] ;
23584
23585 if (!args) SWIG_fail;
23586 swig_obj[0] = args;
23587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23588 if (!SWIG_IsOK(res1)) {
23589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23590 }
23591 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23592 {
23593 PyThreadState* __tstate = wxPyBeginAllowThreads();
23594 result = (arg1)->GetLongHelp();
23595 wxPyEndAllowThreads(__tstate);
23596 if (PyErr_Occurred()) SWIG_fail;
23597 }
23598 {
23599 #if wxUSE_UNICODE
23600 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23601 #else
23602 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23603 #endif
23604 }
23605 return resultobj;
23606 fail:
23607 return NULL;
23608 }
23609
23610
23611 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23612 PyObject *resultobj = 0;
23613 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23614 bool arg2 ;
23615 bool result;
23616 void *argp1 = 0 ;
23617 int res1 = 0 ;
23618 bool val2 ;
23619 int ecode2 = 0 ;
23620 PyObject * obj0 = 0 ;
23621 PyObject * obj1 = 0 ;
23622 char * kwnames[] = {
23623 (char *) "self",(char *) "enable", NULL
23624 };
23625
23626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23628 if (!SWIG_IsOK(res1)) {
23629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23630 }
23631 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23632 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23633 if (!SWIG_IsOK(ecode2)) {
23634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23635 }
23636 arg2 = static_cast< bool >(val2);
23637 {
23638 PyThreadState* __tstate = wxPyBeginAllowThreads();
23639 result = (bool)(arg1)->Enable(arg2);
23640 wxPyEndAllowThreads(__tstate);
23641 if (PyErr_Occurred()) SWIG_fail;
23642 }
23643 {
23644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23645 }
23646 return resultobj;
23647 fail:
23648 return NULL;
23649 }
23650
23651
23652 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23653 PyObject *resultobj = 0;
23654 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23655 void *argp1 = 0 ;
23656 int res1 = 0 ;
23657 PyObject *swig_obj[1] ;
23658
23659 if (!args) SWIG_fail;
23660 swig_obj[0] = args;
23661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23662 if (!SWIG_IsOK(res1)) {
23663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23664 }
23665 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23666 {
23667 PyThreadState* __tstate = wxPyBeginAllowThreads();
23668 (arg1)->Toggle();
23669 wxPyEndAllowThreads(__tstate);
23670 if (PyErr_Occurred()) SWIG_fail;
23671 }
23672 resultobj = SWIG_Py_Void();
23673 return resultobj;
23674 fail:
23675 return NULL;
23676 }
23677
23678
23679 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23680 PyObject *resultobj = 0;
23681 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23682 bool arg2 ;
23683 bool result;
23684 void *argp1 = 0 ;
23685 int res1 = 0 ;
23686 bool val2 ;
23687 int ecode2 = 0 ;
23688 PyObject * obj0 = 0 ;
23689 PyObject * obj1 = 0 ;
23690 char * kwnames[] = {
23691 (char *) "self",(char *) "toggle", NULL
23692 };
23693
23694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23696 if (!SWIG_IsOK(res1)) {
23697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23698 }
23699 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23700 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23701 if (!SWIG_IsOK(ecode2)) {
23702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23703 }
23704 arg2 = static_cast< bool >(val2);
23705 {
23706 PyThreadState* __tstate = wxPyBeginAllowThreads();
23707 result = (bool)(arg1)->SetToggle(arg2);
23708 wxPyEndAllowThreads(__tstate);
23709 if (PyErr_Occurred()) SWIG_fail;
23710 }
23711 {
23712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23713 }
23714 return resultobj;
23715 fail:
23716 return NULL;
23717 }
23718
23719
23720 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23721 PyObject *resultobj = 0;
23722 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23723 wxString *arg2 = 0 ;
23724 bool result;
23725 void *argp1 = 0 ;
23726 int res1 = 0 ;
23727 bool temp2 = false ;
23728 PyObject * obj0 = 0 ;
23729 PyObject * obj1 = 0 ;
23730 char * kwnames[] = {
23731 (char *) "self",(char *) "help", NULL
23732 };
23733
23734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23736 if (!SWIG_IsOK(res1)) {
23737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23738 }
23739 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23740 {
23741 arg2 = wxString_in_helper(obj1);
23742 if (arg2 == NULL) SWIG_fail;
23743 temp2 = true;
23744 }
23745 {
23746 PyThreadState* __tstate = wxPyBeginAllowThreads();
23747 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23748 wxPyEndAllowThreads(__tstate);
23749 if (PyErr_Occurred()) SWIG_fail;
23750 }
23751 {
23752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23753 }
23754 {
23755 if (temp2)
23756 delete arg2;
23757 }
23758 return resultobj;
23759 fail:
23760 {
23761 if (temp2)
23762 delete arg2;
23763 }
23764 return NULL;
23765 }
23766
23767
23768 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23769 PyObject *resultobj = 0;
23770 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23771 wxString *arg2 = 0 ;
23772 bool result;
23773 void *argp1 = 0 ;
23774 int res1 = 0 ;
23775 bool temp2 = false ;
23776 PyObject * obj0 = 0 ;
23777 PyObject * obj1 = 0 ;
23778 char * kwnames[] = {
23779 (char *) "self",(char *) "help", NULL
23780 };
23781
23782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",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_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23786 }
23787 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23788 {
23789 arg2 = wxString_in_helper(obj1);
23790 if (arg2 == NULL) SWIG_fail;
23791 temp2 = true;
23792 }
23793 {
23794 PyThreadState* __tstate = wxPyBeginAllowThreads();
23795 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23796 wxPyEndAllowThreads(__tstate);
23797 if (PyErr_Occurred()) SWIG_fail;
23798 }
23799 {
23800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23801 }
23802 {
23803 if (temp2)
23804 delete arg2;
23805 }
23806 return resultobj;
23807 fail:
23808 {
23809 if (temp2)
23810 delete arg2;
23811 }
23812 return NULL;
23813 }
23814
23815
23816 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23817 PyObject *resultobj = 0;
23818 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23819 wxBitmap *arg2 = 0 ;
23820 void *argp1 = 0 ;
23821 int res1 = 0 ;
23822 void *argp2 = 0 ;
23823 int res2 = 0 ;
23824 PyObject * obj0 = 0 ;
23825 PyObject * obj1 = 0 ;
23826 char * kwnames[] = {
23827 (char *) "self",(char *) "bmp", NULL
23828 };
23829
23830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23832 if (!SWIG_IsOK(res1)) {
23833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23834 }
23835 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23836 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23837 if (!SWIG_IsOK(res2)) {
23838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23839 }
23840 if (!argp2) {
23841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23842 }
23843 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23844 {
23845 PyThreadState* __tstate = wxPyBeginAllowThreads();
23846 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23847 wxPyEndAllowThreads(__tstate);
23848 if (PyErr_Occurred()) SWIG_fail;
23849 }
23850 resultobj = SWIG_Py_Void();
23851 return resultobj;
23852 fail:
23853 return NULL;
23854 }
23855
23856
23857 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23858 PyObject *resultobj = 0;
23859 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23860 wxBitmap *arg2 = 0 ;
23861 void *argp1 = 0 ;
23862 int res1 = 0 ;
23863 void *argp2 = 0 ;
23864 int res2 = 0 ;
23865 PyObject * obj0 = 0 ;
23866 PyObject * obj1 = 0 ;
23867 char * kwnames[] = {
23868 (char *) "self",(char *) "bmp", NULL
23869 };
23870
23871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23873 if (!SWIG_IsOK(res1)) {
23874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23875 }
23876 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23878 if (!SWIG_IsOK(res2)) {
23879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23880 }
23881 if (!argp2) {
23882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23883 }
23884 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23885 {
23886 PyThreadState* __tstate = wxPyBeginAllowThreads();
23887 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23888 wxPyEndAllowThreads(__tstate);
23889 if (PyErr_Occurred()) SWIG_fail;
23890 }
23891 resultobj = SWIG_Py_Void();
23892 return resultobj;
23893 fail:
23894 return NULL;
23895 }
23896
23897
23898 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23899 PyObject *resultobj = 0;
23900 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23901 wxString *arg2 = 0 ;
23902 void *argp1 = 0 ;
23903 int res1 = 0 ;
23904 bool temp2 = false ;
23905 PyObject * obj0 = 0 ;
23906 PyObject * obj1 = 0 ;
23907 char * kwnames[] = {
23908 (char *) "self",(char *) "label", NULL
23909 };
23910
23911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23913 if (!SWIG_IsOK(res1)) {
23914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23915 }
23916 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23917 {
23918 arg2 = wxString_in_helper(obj1);
23919 if (arg2 == NULL) SWIG_fail;
23920 temp2 = true;
23921 }
23922 {
23923 PyThreadState* __tstate = wxPyBeginAllowThreads();
23924 (arg1)->SetLabel((wxString const &)*arg2);
23925 wxPyEndAllowThreads(__tstate);
23926 if (PyErr_Occurred()) SWIG_fail;
23927 }
23928 resultobj = SWIG_Py_Void();
23929 {
23930 if (temp2)
23931 delete arg2;
23932 }
23933 return resultobj;
23934 fail:
23935 {
23936 if (temp2)
23937 delete arg2;
23938 }
23939 return NULL;
23940 }
23941
23942
23943 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23944 PyObject *resultobj = 0;
23945 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23946 void *argp1 = 0 ;
23947 int res1 = 0 ;
23948 PyObject *swig_obj[1] ;
23949
23950 if (!args) SWIG_fail;
23951 swig_obj[0] = args;
23952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23953 if (!SWIG_IsOK(res1)) {
23954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23955 }
23956 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23957 {
23958 PyThreadState* __tstate = wxPyBeginAllowThreads();
23959 (arg1)->Detach();
23960 wxPyEndAllowThreads(__tstate);
23961 if (PyErr_Occurred()) SWIG_fail;
23962 }
23963 resultobj = SWIG_Py_Void();
23964 return resultobj;
23965 fail:
23966 return NULL;
23967 }
23968
23969
23970 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23971 PyObject *resultobj = 0;
23972 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23973 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23974 void *argp1 = 0 ;
23975 int res1 = 0 ;
23976 void *argp2 = 0 ;
23977 int res2 = 0 ;
23978 PyObject * obj0 = 0 ;
23979 PyObject * obj1 = 0 ;
23980 char * kwnames[] = {
23981 (char *) "self",(char *) "tbar", NULL
23982 };
23983
23984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23986 if (!SWIG_IsOK(res1)) {
23987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23988 }
23989 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23990 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23991 if (!SWIG_IsOK(res2)) {
23992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23993 }
23994 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23995 {
23996 PyThreadState* __tstate = wxPyBeginAllowThreads();
23997 (arg1)->Attach(arg2);
23998 wxPyEndAllowThreads(__tstate);
23999 if (PyErr_Occurred()) SWIG_fail;
24000 }
24001 resultobj = SWIG_Py_Void();
24002 return resultobj;
24003 fail:
24004 return NULL;
24005 }
24006
24007
24008 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24009 PyObject *resultobj = 0;
24010 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
24011 PyObject *result = 0 ;
24012 void *argp1 = 0 ;
24013 int res1 = 0 ;
24014 PyObject *swig_obj[1] ;
24015
24016 if (!args) SWIG_fail;
24017 swig_obj[0] = args;
24018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24019 if (!SWIG_IsOK(res1)) {
24020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
24021 }
24022 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
24023 {
24024 PyThreadState* __tstate = wxPyBeginAllowThreads();
24025 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
24026 wxPyEndAllowThreads(__tstate);
24027 if (PyErr_Occurred()) SWIG_fail;
24028 }
24029 resultobj = result;
24030 return resultobj;
24031 fail:
24032 return NULL;
24033 }
24034
24035
24036 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24037 PyObject *resultobj = 0;
24038 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
24039 PyObject *arg2 = (PyObject *) 0 ;
24040 void *argp1 = 0 ;
24041 int res1 = 0 ;
24042 PyObject * obj0 = 0 ;
24043 PyObject * obj1 = 0 ;
24044 char * kwnames[] = {
24045 (char *) "self",(char *) "clientData", NULL
24046 };
24047
24048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24050 if (!SWIG_IsOK(res1)) {
24051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
24052 }
24053 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
24054 arg2 = obj1;
24055 {
24056 PyThreadState* __tstate = wxPyBeginAllowThreads();
24057 wxToolBarToolBase_SetClientData(arg1,arg2);
24058 wxPyEndAllowThreads(__tstate);
24059 if (PyErr_Occurred()) SWIG_fail;
24060 }
24061 resultobj = SWIG_Py_Void();
24062 return resultobj;
24063 fail:
24064 return NULL;
24065 }
24066
24067
24068 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24069 PyObject *obj;
24070 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24071 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
24072 return SWIG_Py_Void();
24073 }
24074
24075 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24076 PyObject *resultobj = 0;
24077 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24078 int arg2 ;
24079 wxString *arg3 = 0 ;
24080 wxBitmap *arg4 = 0 ;
24081 wxBitmap const &arg5_defvalue = wxNullBitmap ;
24082 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
24083 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
24084 wxString const &arg7_defvalue = wxPyEmptyString ;
24085 wxString *arg7 = (wxString *) &arg7_defvalue ;
24086 wxString const &arg8_defvalue = wxPyEmptyString ;
24087 wxString *arg8 = (wxString *) &arg8_defvalue ;
24088 PyObject *arg9 = (PyObject *) NULL ;
24089 wxToolBarToolBase *result = 0 ;
24090 void *argp1 = 0 ;
24091 int res1 = 0 ;
24092 int val2 ;
24093 int ecode2 = 0 ;
24094 bool temp3 = false ;
24095 void *argp4 = 0 ;
24096 int res4 = 0 ;
24097 void *argp5 = 0 ;
24098 int res5 = 0 ;
24099 int val6 ;
24100 int ecode6 = 0 ;
24101 bool temp7 = false ;
24102 bool temp8 = false ;
24103 PyObject * obj0 = 0 ;
24104 PyObject * obj1 = 0 ;
24105 PyObject * obj2 = 0 ;
24106 PyObject * obj3 = 0 ;
24107 PyObject * obj4 = 0 ;
24108 PyObject * obj5 = 0 ;
24109 PyObject * obj6 = 0 ;
24110 PyObject * obj7 = 0 ;
24111 PyObject * obj8 = 0 ;
24112 char * kwnames[] = {
24113 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24114 };
24115
24116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
24117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24118 if (!SWIG_IsOK(res1)) {
24119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24120 }
24121 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24122 ecode2 = SWIG_AsVal_int(obj1, &val2);
24123 if (!SWIG_IsOK(ecode2)) {
24124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
24125 }
24126 arg2 = static_cast< int >(val2);
24127 {
24128 arg3 = wxString_in_helper(obj2);
24129 if (arg3 == NULL) SWIG_fail;
24130 temp3 = true;
24131 }
24132 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24133 if (!SWIG_IsOK(res4)) {
24134 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24135 }
24136 if (!argp4) {
24137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24138 }
24139 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24140 if (obj4) {
24141 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24142 if (!SWIG_IsOK(res5)) {
24143 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24144 }
24145 if (!argp5) {
24146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24147 }
24148 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24149 }
24150 if (obj5) {
24151 ecode6 = SWIG_AsVal_int(obj5, &val6);
24152 if (!SWIG_IsOK(ecode6)) {
24153 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
24154 }
24155 arg6 = static_cast< wxItemKind >(val6);
24156 }
24157 if (obj6) {
24158 {
24159 arg7 = wxString_in_helper(obj6);
24160 if (arg7 == NULL) SWIG_fail;
24161 temp7 = true;
24162 }
24163 }
24164 if (obj7) {
24165 {
24166 arg8 = wxString_in_helper(obj7);
24167 if (arg8 == NULL) SWIG_fail;
24168 temp8 = true;
24169 }
24170 }
24171 if (obj8) {
24172 arg9 = obj8;
24173 }
24174 {
24175 PyThreadState* __tstate = wxPyBeginAllowThreads();
24176 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
24177 wxPyEndAllowThreads(__tstate);
24178 if (PyErr_Occurred()) SWIG_fail;
24179 }
24180 {
24181 resultobj = wxPyMake_wxObject(result, (bool)0);
24182 }
24183 {
24184 if (temp3)
24185 delete arg3;
24186 }
24187 {
24188 if (temp7)
24189 delete arg7;
24190 }
24191 {
24192 if (temp8)
24193 delete arg8;
24194 }
24195 return resultobj;
24196 fail:
24197 {
24198 if (temp3)
24199 delete arg3;
24200 }
24201 {
24202 if (temp7)
24203 delete arg7;
24204 }
24205 {
24206 if (temp8)
24207 delete arg8;
24208 }
24209 return NULL;
24210 }
24211
24212
24213 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24214 PyObject *resultobj = 0;
24215 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24216 size_t arg2 ;
24217 int arg3 ;
24218 wxString *arg4 = 0 ;
24219 wxBitmap *arg5 = 0 ;
24220 wxBitmap const &arg6_defvalue = wxNullBitmap ;
24221 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
24222 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
24223 wxString const &arg8_defvalue = wxPyEmptyString ;
24224 wxString *arg8 = (wxString *) &arg8_defvalue ;
24225 wxString const &arg9_defvalue = wxPyEmptyString ;
24226 wxString *arg9 = (wxString *) &arg9_defvalue ;
24227 PyObject *arg10 = (PyObject *) NULL ;
24228 wxToolBarToolBase *result = 0 ;
24229 void *argp1 = 0 ;
24230 int res1 = 0 ;
24231 size_t val2 ;
24232 int ecode2 = 0 ;
24233 int val3 ;
24234 int ecode3 = 0 ;
24235 bool temp4 = false ;
24236 void *argp5 = 0 ;
24237 int res5 = 0 ;
24238 void *argp6 = 0 ;
24239 int res6 = 0 ;
24240 int val7 ;
24241 int ecode7 = 0 ;
24242 bool temp8 = false ;
24243 bool temp9 = false ;
24244 PyObject * obj0 = 0 ;
24245 PyObject * obj1 = 0 ;
24246 PyObject * obj2 = 0 ;
24247 PyObject * obj3 = 0 ;
24248 PyObject * obj4 = 0 ;
24249 PyObject * obj5 = 0 ;
24250 PyObject * obj6 = 0 ;
24251 PyObject * obj7 = 0 ;
24252 PyObject * obj8 = 0 ;
24253 PyObject * obj9 = 0 ;
24254 char * kwnames[] = {
24255 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
24256 };
24257
24258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
24259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24260 if (!SWIG_IsOK(res1)) {
24261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24262 }
24263 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24264 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24265 if (!SWIG_IsOK(ecode2)) {
24266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
24267 }
24268 arg2 = static_cast< size_t >(val2);
24269 ecode3 = SWIG_AsVal_int(obj2, &val3);
24270 if (!SWIG_IsOK(ecode3)) {
24271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
24272 }
24273 arg3 = static_cast< int >(val3);
24274 {
24275 arg4 = wxString_in_helper(obj3);
24276 if (arg4 == NULL) SWIG_fail;
24277 temp4 = true;
24278 }
24279 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
24280 if (!SWIG_IsOK(res5)) {
24281 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24282 }
24283 if (!argp5) {
24284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
24285 }
24286 arg5 = reinterpret_cast< wxBitmap * >(argp5);
24287 if (obj5) {
24288 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
24289 if (!SWIG_IsOK(res6)) {
24290 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24291 }
24292 if (!argp6) {
24293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
24294 }
24295 arg6 = reinterpret_cast< wxBitmap * >(argp6);
24296 }
24297 if (obj6) {
24298 ecode7 = SWIG_AsVal_int(obj6, &val7);
24299 if (!SWIG_IsOK(ecode7)) {
24300 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
24301 }
24302 arg7 = static_cast< wxItemKind >(val7);
24303 }
24304 if (obj7) {
24305 {
24306 arg8 = wxString_in_helper(obj7);
24307 if (arg8 == NULL) SWIG_fail;
24308 temp8 = true;
24309 }
24310 }
24311 if (obj8) {
24312 {
24313 arg9 = wxString_in_helper(obj8);
24314 if (arg9 == NULL) SWIG_fail;
24315 temp9 = true;
24316 }
24317 }
24318 if (obj9) {
24319 arg10 = obj9;
24320 }
24321 {
24322 PyThreadState* __tstate = wxPyBeginAllowThreads();
24323 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
24324 wxPyEndAllowThreads(__tstate);
24325 if (PyErr_Occurred()) SWIG_fail;
24326 }
24327 {
24328 resultobj = wxPyMake_wxObject(result, (bool)0);
24329 }
24330 {
24331 if (temp4)
24332 delete arg4;
24333 }
24334 {
24335 if (temp8)
24336 delete arg8;
24337 }
24338 {
24339 if (temp9)
24340 delete arg9;
24341 }
24342 return resultobj;
24343 fail:
24344 {
24345 if (temp4)
24346 delete arg4;
24347 }
24348 {
24349 if (temp8)
24350 delete arg8;
24351 }
24352 {
24353 if (temp9)
24354 delete arg9;
24355 }
24356 return NULL;
24357 }
24358
24359
24360 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24361 PyObject *resultobj = 0;
24362 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24363 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24364 wxToolBarToolBase *result = 0 ;
24365 void *argp1 = 0 ;
24366 int res1 = 0 ;
24367 void *argp2 = 0 ;
24368 int res2 = 0 ;
24369 PyObject * obj0 = 0 ;
24370 PyObject * obj1 = 0 ;
24371 char * kwnames[] = {
24372 (char *) "self",(char *) "tool", NULL
24373 };
24374
24375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24377 if (!SWIG_IsOK(res1)) {
24378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24379 }
24380 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24381 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24382 if (!SWIG_IsOK(res2)) {
24383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24384 }
24385 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24386 {
24387 PyThreadState* __tstate = wxPyBeginAllowThreads();
24388 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24389 wxPyEndAllowThreads(__tstate);
24390 if (PyErr_Occurred()) SWIG_fail;
24391 }
24392 {
24393 resultobj = wxPyMake_wxObject(result, (bool)0);
24394 }
24395 return resultobj;
24396 fail:
24397 return NULL;
24398 }
24399
24400
24401 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24402 PyObject *resultobj = 0;
24403 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24404 size_t arg2 ;
24405 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24406 wxToolBarToolBase *result = 0 ;
24407 void *argp1 = 0 ;
24408 int res1 = 0 ;
24409 size_t val2 ;
24410 int ecode2 = 0 ;
24411 void *argp3 = 0 ;
24412 int res3 = 0 ;
24413 PyObject * obj0 = 0 ;
24414 PyObject * obj1 = 0 ;
24415 PyObject * obj2 = 0 ;
24416 char * kwnames[] = {
24417 (char *) "self",(char *) "pos",(char *) "tool", NULL
24418 };
24419
24420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24422 if (!SWIG_IsOK(res1)) {
24423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24424 }
24425 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24426 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24427 if (!SWIG_IsOK(ecode2)) {
24428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24429 }
24430 arg2 = static_cast< size_t >(val2);
24431 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24432 if (!SWIG_IsOK(res3)) {
24433 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24434 }
24435 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24436 {
24437 PyThreadState* __tstate = wxPyBeginAllowThreads();
24438 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24439 wxPyEndAllowThreads(__tstate);
24440 if (PyErr_Occurred()) SWIG_fail;
24441 }
24442 {
24443 resultobj = wxPyMake_wxObject(result, (bool)0);
24444 }
24445 return resultobj;
24446 fail:
24447 return NULL;
24448 }
24449
24450
24451 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24452 PyObject *resultobj = 0;
24453 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24454 wxControl *arg2 = (wxControl *) 0 ;
24455 wxString const &arg3_defvalue = wxEmptyString ;
24456 wxString *arg3 = (wxString *) &arg3_defvalue ;
24457 wxToolBarToolBase *result = 0 ;
24458 void *argp1 = 0 ;
24459 int res1 = 0 ;
24460 void *argp2 = 0 ;
24461 int res2 = 0 ;
24462 bool temp3 = false ;
24463 PyObject * obj0 = 0 ;
24464 PyObject * obj1 = 0 ;
24465 PyObject * obj2 = 0 ;
24466 char * kwnames[] = {
24467 (char *) "self",(char *) "control",(char *) "label", NULL
24468 };
24469
24470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ToolBarBase_AddControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24472 if (!SWIG_IsOK(res1)) {
24473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24474 }
24475 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24476 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24477 if (!SWIG_IsOK(res2)) {
24478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24479 }
24480 arg2 = reinterpret_cast< wxControl * >(argp2);
24481 if (obj2) {
24482 {
24483 arg3 = wxString_in_helper(obj2);
24484 if (arg3 == NULL) SWIG_fail;
24485 temp3 = true;
24486 }
24487 }
24488 {
24489 PyThreadState* __tstate = wxPyBeginAllowThreads();
24490 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2,(wxString const &)*arg3);
24491 wxPyEndAllowThreads(__tstate);
24492 if (PyErr_Occurred()) SWIG_fail;
24493 }
24494 {
24495 resultobj = wxPyMake_wxObject(result, (bool)0);
24496 }
24497 {
24498 if (temp3)
24499 delete arg3;
24500 }
24501 return resultobj;
24502 fail:
24503 {
24504 if (temp3)
24505 delete arg3;
24506 }
24507 return NULL;
24508 }
24509
24510
24511 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24512 PyObject *resultobj = 0;
24513 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24514 size_t arg2 ;
24515 wxControl *arg3 = (wxControl *) 0 ;
24516 wxString const &arg4_defvalue = wxEmptyString ;
24517 wxString *arg4 = (wxString *) &arg4_defvalue ;
24518 wxToolBarToolBase *result = 0 ;
24519 void *argp1 = 0 ;
24520 int res1 = 0 ;
24521 size_t val2 ;
24522 int ecode2 = 0 ;
24523 void *argp3 = 0 ;
24524 int res3 = 0 ;
24525 bool temp4 = false ;
24526 PyObject * obj0 = 0 ;
24527 PyObject * obj1 = 0 ;
24528 PyObject * obj2 = 0 ;
24529 PyObject * obj3 = 0 ;
24530 char * kwnames[] = {
24531 (char *) "self",(char *) "pos",(char *) "control",(char *) "label", NULL
24532 };
24533
24534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24536 if (!SWIG_IsOK(res1)) {
24537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24538 }
24539 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24540 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24541 if (!SWIG_IsOK(ecode2)) {
24542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24543 }
24544 arg2 = static_cast< size_t >(val2);
24545 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24546 if (!SWIG_IsOK(res3)) {
24547 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24548 }
24549 arg3 = reinterpret_cast< wxControl * >(argp3);
24550 if (obj3) {
24551 {
24552 arg4 = wxString_in_helper(obj3);
24553 if (arg4 == NULL) SWIG_fail;
24554 temp4 = true;
24555 }
24556 }
24557 {
24558 PyThreadState* __tstate = wxPyBeginAllowThreads();
24559 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3,(wxString const &)*arg4);
24560 wxPyEndAllowThreads(__tstate);
24561 if (PyErr_Occurred()) SWIG_fail;
24562 }
24563 {
24564 resultobj = wxPyMake_wxObject(result, (bool)0);
24565 }
24566 {
24567 if (temp4)
24568 delete arg4;
24569 }
24570 return resultobj;
24571 fail:
24572 {
24573 if (temp4)
24574 delete arg4;
24575 }
24576 return NULL;
24577 }
24578
24579
24580 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24581 PyObject *resultobj = 0;
24582 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24583 int arg2 ;
24584 wxControl *result = 0 ;
24585 void *argp1 = 0 ;
24586 int res1 = 0 ;
24587 int val2 ;
24588 int ecode2 = 0 ;
24589 PyObject * obj0 = 0 ;
24590 PyObject * obj1 = 0 ;
24591 char * kwnames[] = {
24592 (char *) "self",(char *) "id", NULL
24593 };
24594
24595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24597 if (!SWIG_IsOK(res1)) {
24598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24599 }
24600 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24601 ecode2 = SWIG_AsVal_int(obj1, &val2);
24602 if (!SWIG_IsOK(ecode2)) {
24603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24604 }
24605 arg2 = static_cast< int >(val2);
24606 {
24607 PyThreadState* __tstate = wxPyBeginAllowThreads();
24608 result = (wxControl *)(arg1)->FindControl(arg2);
24609 wxPyEndAllowThreads(__tstate);
24610 if (PyErr_Occurred()) SWIG_fail;
24611 }
24612 {
24613 resultobj = wxPyMake_wxObject(result, 0);
24614 }
24615 return resultobj;
24616 fail:
24617 return NULL;
24618 }
24619
24620
24621 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24622 PyObject *resultobj = 0;
24623 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24624 wxToolBarToolBase *result = 0 ;
24625 void *argp1 = 0 ;
24626 int res1 = 0 ;
24627 PyObject *swig_obj[1] ;
24628
24629 if (!args) SWIG_fail;
24630 swig_obj[0] = args;
24631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24632 if (!SWIG_IsOK(res1)) {
24633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24634 }
24635 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24636 {
24637 PyThreadState* __tstate = wxPyBeginAllowThreads();
24638 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24639 wxPyEndAllowThreads(__tstate);
24640 if (PyErr_Occurred()) SWIG_fail;
24641 }
24642 {
24643 resultobj = wxPyMake_wxObject(result, (bool)0);
24644 }
24645 return resultobj;
24646 fail:
24647 return NULL;
24648 }
24649
24650
24651 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24652 PyObject *resultobj = 0;
24653 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24654 size_t arg2 ;
24655 wxToolBarToolBase *result = 0 ;
24656 void *argp1 = 0 ;
24657 int res1 = 0 ;
24658 size_t val2 ;
24659 int ecode2 = 0 ;
24660 PyObject * obj0 = 0 ;
24661 PyObject * obj1 = 0 ;
24662 char * kwnames[] = {
24663 (char *) "self",(char *) "pos", NULL
24664 };
24665
24666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24668 if (!SWIG_IsOK(res1)) {
24669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24670 }
24671 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24672 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24673 if (!SWIG_IsOK(ecode2)) {
24674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24675 }
24676 arg2 = static_cast< size_t >(val2);
24677 {
24678 PyThreadState* __tstate = wxPyBeginAllowThreads();
24679 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24680 wxPyEndAllowThreads(__tstate);
24681 if (PyErr_Occurred()) SWIG_fail;
24682 }
24683 {
24684 resultobj = wxPyMake_wxObject(result, (bool)0);
24685 }
24686 return resultobj;
24687 fail:
24688 return NULL;
24689 }
24690
24691
24692 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24693 PyObject *resultobj = 0;
24694 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24695 int arg2 ;
24696 wxToolBarToolBase *result = 0 ;
24697 void *argp1 = 0 ;
24698 int res1 = 0 ;
24699 int val2 ;
24700 int ecode2 = 0 ;
24701 PyObject * obj0 = 0 ;
24702 PyObject * obj1 = 0 ;
24703 char * kwnames[] = {
24704 (char *) "self",(char *) "id", NULL
24705 };
24706
24707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24709 if (!SWIG_IsOK(res1)) {
24710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24711 }
24712 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24713 ecode2 = SWIG_AsVal_int(obj1, &val2);
24714 if (!SWIG_IsOK(ecode2)) {
24715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24716 }
24717 arg2 = static_cast< int >(val2);
24718 {
24719 PyThreadState* __tstate = wxPyBeginAllowThreads();
24720 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24721 wxPyEndAllowThreads(__tstate);
24722 if (PyErr_Occurred()) SWIG_fail;
24723 }
24724 {
24725 resultobj = wxPyMake_wxObject(result, (bool)0);
24726 }
24727 return resultobj;
24728 fail:
24729 return NULL;
24730 }
24731
24732
24733 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24734 PyObject *resultobj = 0;
24735 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24736 size_t arg2 ;
24737 bool result;
24738 void *argp1 = 0 ;
24739 int res1 = 0 ;
24740 size_t val2 ;
24741 int ecode2 = 0 ;
24742 PyObject * obj0 = 0 ;
24743 PyObject * obj1 = 0 ;
24744 char * kwnames[] = {
24745 (char *) "self",(char *) "pos", NULL
24746 };
24747
24748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24750 if (!SWIG_IsOK(res1)) {
24751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24752 }
24753 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24754 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24755 if (!SWIG_IsOK(ecode2)) {
24756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24757 }
24758 arg2 = static_cast< size_t >(val2);
24759 {
24760 PyThreadState* __tstate = wxPyBeginAllowThreads();
24761 result = (bool)(arg1)->DeleteToolByPos(arg2);
24762 wxPyEndAllowThreads(__tstate);
24763 if (PyErr_Occurred()) SWIG_fail;
24764 }
24765 {
24766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24767 }
24768 return resultobj;
24769 fail:
24770 return NULL;
24771 }
24772
24773
24774 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24775 PyObject *resultobj = 0;
24776 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24777 int arg2 ;
24778 bool result;
24779 void *argp1 = 0 ;
24780 int res1 = 0 ;
24781 int val2 ;
24782 int ecode2 = 0 ;
24783 PyObject * obj0 = 0 ;
24784 PyObject * obj1 = 0 ;
24785 char * kwnames[] = {
24786 (char *) "self",(char *) "id", NULL
24787 };
24788
24789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24791 if (!SWIG_IsOK(res1)) {
24792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24793 }
24794 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24795 ecode2 = SWIG_AsVal_int(obj1, &val2);
24796 if (!SWIG_IsOK(ecode2)) {
24797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24798 }
24799 arg2 = static_cast< int >(val2);
24800 {
24801 PyThreadState* __tstate = wxPyBeginAllowThreads();
24802 result = (bool)(arg1)->DeleteTool(arg2);
24803 wxPyEndAllowThreads(__tstate);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 }
24806 {
24807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24808 }
24809 return resultobj;
24810 fail:
24811 return NULL;
24812 }
24813
24814
24815 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24816 PyObject *resultobj = 0;
24817 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24818 void *argp1 = 0 ;
24819 int res1 = 0 ;
24820 PyObject *swig_obj[1] ;
24821
24822 if (!args) SWIG_fail;
24823 swig_obj[0] = args;
24824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24825 if (!SWIG_IsOK(res1)) {
24826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24827 }
24828 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24829 {
24830 PyThreadState* __tstate = wxPyBeginAllowThreads();
24831 (arg1)->ClearTools();
24832 wxPyEndAllowThreads(__tstate);
24833 if (PyErr_Occurred()) SWIG_fail;
24834 }
24835 resultobj = SWIG_Py_Void();
24836 return resultobj;
24837 fail:
24838 return NULL;
24839 }
24840
24841
24842 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24843 PyObject *resultobj = 0;
24844 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24845 bool result;
24846 void *argp1 = 0 ;
24847 int res1 = 0 ;
24848 PyObject *swig_obj[1] ;
24849
24850 if (!args) SWIG_fail;
24851 swig_obj[0] = args;
24852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24853 if (!SWIG_IsOK(res1)) {
24854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24855 }
24856 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24857 {
24858 PyThreadState* __tstate = wxPyBeginAllowThreads();
24859 result = (bool)(arg1)->Realize();
24860 wxPyEndAllowThreads(__tstate);
24861 if (PyErr_Occurred()) SWIG_fail;
24862 }
24863 {
24864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24865 }
24866 return resultobj;
24867 fail:
24868 return NULL;
24869 }
24870
24871
24872 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24873 PyObject *resultobj = 0;
24874 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24875 int arg2 ;
24876 bool arg3 ;
24877 void *argp1 = 0 ;
24878 int res1 = 0 ;
24879 int val2 ;
24880 int ecode2 = 0 ;
24881 bool val3 ;
24882 int ecode3 = 0 ;
24883 PyObject * obj0 = 0 ;
24884 PyObject * obj1 = 0 ;
24885 PyObject * obj2 = 0 ;
24886 char * kwnames[] = {
24887 (char *) "self",(char *) "id",(char *) "enable", NULL
24888 };
24889
24890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24892 if (!SWIG_IsOK(res1)) {
24893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24894 }
24895 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24896 ecode2 = SWIG_AsVal_int(obj1, &val2);
24897 if (!SWIG_IsOK(ecode2)) {
24898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24899 }
24900 arg2 = static_cast< int >(val2);
24901 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24902 if (!SWIG_IsOK(ecode3)) {
24903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24904 }
24905 arg3 = static_cast< bool >(val3);
24906 {
24907 PyThreadState* __tstate = wxPyBeginAllowThreads();
24908 (arg1)->EnableTool(arg2,arg3);
24909 wxPyEndAllowThreads(__tstate);
24910 if (PyErr_Occurred()) SWIG_fail;
24911 }
24912 resultobj = SWIG_Py_Void();
24913 return resultobj;
24914 fail:
24915 return NULL;
24916 }
24917
24918
24919 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24920 PyObject *resultobj = 0;
24921 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24922 int arg2 ;
24923 bool arg3 ;
24924 void *argp1 = 0 ;
24925 int res1 = 0 ;
24926 int val2 ;
24927 int ecode2 = 0 ;
24928 bool val3 ;
24929 int ecode3 = 0 ;
24930 PyObject * obj0 = 0 ;
24931 PyObject * obj1 = 0 ;
24932 PyObject * obj2 = 0 ;
24933 char * kwnames[] = {
24934 (char *) "self",(char *) "id",(char *) "toggle", NULL
24935 };
24936
24937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24939 if (!SWIG_IsOK(res1)) {
24940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24941 }
24942 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24943 ecode2 = SWIG_AsVal_int(obj1, &val2);
24944 if (!SWIG_IsOK(ecode2)) {
24945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24946 }
24947 arg2 = static_cast< int >(val2);
24948 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24949 if (!SWIG_IsOK(ecode3)) {
24950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24951 }
24952 arg3 = static_cast< bool >(val3);
24953 {
24954 PyThreadState* __tstate = wxPyBeginAllowThreads();
24955 (arg1)->ToggleTool(arg2,arg3);
24956 wxPyEndAllowThreads(__tstate);
24957 if (PyErr_Occurred()) SWIG_fail;
24958 }
24959 resultobj = SWIG_Py_Void();
24960 return resultobj;
24961 fail:
24962 return NULL;
24963 }
24964
24965
24966 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24967 PyObject *resultobj = 0;
24968 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24969 int arg2 ;
24970 bool arg3 ;
24971 void *argp1 = 0 ;
24972 int res1 = 0 ;
24973 int val2 ;
24974 int ecode2 = 0 ;
24975 bool val3 ;
24976 int ecode3 = 0 ;
24977 PyObject * obj0 = 0 ;
24978 PyObject * obj1 = 0 ;
24979 PyObject * obj2 = 0 ;
24980 char * kwnames[] = {
24981 (char *) "self",(char *) "id",(char *) "toggle", NULL
24982 };
24983
24984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24986 if (!SWIG_IsOK(res1)) {
24987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24988 }
24989 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24990 ecode2 = SWIG_AsVal_int(obj1, &val2);
24991 if (!SWIG_IsOK(ecode2)) {
24992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24993 }
24994 arg2 = static_cast< int >(val2);
24995 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24996 if (!SWIG_IsOK(ecode3)) {
24997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24998 }
24999 arg3 = static_cast< bool >(val3);
25000 {
25001 PyThreadState* __tstate = wxPyBeginAllowThreads();
25002 (arg1)->SetToggle(arg2,arg3);
25003 wxPyEndAllowThreads(__tstate);
25004 if (PyErr_Occurred()) SWIG_fail;
25005 }
25006 resultobj = SWIG_Py_Void();
25007 return resultobj;
25008 fail:
25009 return NULL;
25010 }
25011
25012
25013 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25014 PyObject *resultobj = 0;
25015 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25016 int arg2 ;
25017 PyObject *result = 0 ;
25018 void *argp1 = 0 ;
25019 int res1 = 0 ;
25020 int val2 ;
25021 int ecode2 = 0 ;
25022 PyObject * obj0 = 0 ;
25023 PyObject * obj1 = 0 ;
25024 char * kwnames[] = {
25025 (char *) "self",(char *) "id", NULL
25026 };
25027
25028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
25029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25030 if (!SWIG_IsOK(res1)) {
25031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25032 }
25033 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25034 ecode2 = SWIG_AsVal_int(obj1, &val2);
25035 if (!SWIG_IsOK(ecode2)) {
25036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
25037 }
25038 arg2 = static_cast< int >(val2);
25039 {
25040 PyThreadState* __tstate = wxPyBeginAllowThreads();
25041 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
25042 wxPyEndAllowThreads(__tstate);
25043 if (PyErr_Occurred()) SWIG_fail;
25044 }
25045 resultobj = result;
25046 return resultobj;
25047 fail:
25048 return NULL;
25049 }
25050
25051
25052 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25053 PyObject *resultobj = 0;
25054 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25055 int arg2 ;
25056 PyObject *arg3 = (PyObject *) 0 ;
25057 void *argp1 = 0 ;
25058 int res1 = 0 ;
25059 int val2 ;
25060 int ecode2 = 0 ;
25061 PyObject * obj0 = 0 ;
25062 PyObject * obj1 = 0 ;
25063 PyObject * obj2 = 0 ;
25064 char * kwnames[] = {
25065 (char *) "self",(char *) "id",(char *) "clientData", NULL
25066 };
25067
25068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25070 if (!SWIG_IsOK(res1)) {
25071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25072 }
25073 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25074 ecode2 = SWIG_AsVal_int(obj1, &val2);
25075 if (!SWIG_IsOK(ecode2)) {
25076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
25077 }
25078 arg2 = static_cast< int >(val2);
25079 arg3 = obj2;
25080 {
25081 PyThreadState* __tstate = wxPyBeginAllowThreads();
25082 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
25083 wxPyEndAllowThreads(__tstate);
25084 if (PyErr_Occurred()) SWIG_fail;
25085 }
25086 resultobj = SWIG_Py_Void();
25087 return resultobj;
25088 fail:
25089 return NULL;
25090 }
25091
25092
25093 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25094 PyObject *resultobj = 0;
25095 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25096 int arg2 ;
25097 int result;
25098 void *argp1 = 0 ;
25099 int res1 = 0 ;
25100 int val2 ;
25101 int ecode2 = 0 ;
25102 PyObject * obj0 = 0 ;
25103 PyObject * obj1 = 0 ;
25104 char * kwnames[] = {
25105 (char *) "self",(char *) "id", NULL
25106 };
25107
25108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
25109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25110 if (!SWIG_IsOK(res1)) {
25111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25112 }
25113 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25114 ecode2 = SWIG_AsVal_int(obj1, &val2);
25115 if (!SWIG_IsOK(ecode2)) {
25116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
25117 }
25118 arg2 = static_cast< int >(val2);
25119 {
25120 PyThreadState* __tstate = wxPyBeginAllowThreads();
25121 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
25122 wxPyEndAllowThreads(__tstate);
25123 if (PyErr_Occurred()) SWIG_fail;
25124 }
25125 resultobj = SWIG_From_int(static_cast< int >(result));
25126 return resultobj;
25127 fail:
25128 return NULL;
25129 }
25130
25131
25132 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25133 PyObject *resultobj = 0;
25134 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25135 int arg2 ;
25136 bool result;
25137 void *argp1 = 0 ;
25138 int res1 = 0 ;
25139 int val2 ;
25140 int ecode2 = 0 ;
25141 PyObject * obj0 = 0 ;
25142 PyObject * obj1 = 0 ;
25143 char * kwnames[] = {
25144 (char *) "self",(char *) "id", NULL
25145 };
25146
25147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
25148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25149 if (!SWIG_IsOK(res1)) {
25150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25151 }
25152 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25153 ecode2 = SWIG_AsVal_int(obj1, &val2);
25154 if (!SWIG_IsOK(ecode2)) {
25155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
25156 }
25157 arg2 = static_cast< int >(val2);
25158 {
25159 PyThreadState* __tstate = wxPyBeginAllowThreads();
25160 result = (bool)(arg1)->GetToolState(arg2);
25161 wxPyEndAllowThreads(__tstate);
25162 if (PyErr_Occurred()) SWIG_fail;
25163 }
25164 {
25165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25166 }
25167 return resultobj;
25168 fail:
25169 return NULL;
25170 }
25171
25172
25173 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25174 PyObject *resultobj = 0;
25175 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25176 int arg2 ;
25177 bool result;
25178 void *argp1 = 0 ;
25179 int res1 = 0 ;
25180 int val2 ;
25181 int ecode2 = 0 ;
25182 PyObject * obj0 = 0 ;
25183 PyObject * obj1 = 0 ;
25184 char * kwnames[] = {
25185 (char *) "self",(char *) "id", NULL
25186 };
25187
25188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
25189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25190 if (!SWIG_IsOK(res1)) {
25191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25192 }
25193 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25194 ecode2 = SWIG_AsVal_int(obj1, &val2);
25195 if (!SWIG_IsOK(ecode2)) {
25196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
25197 }
25198 arg2 = static_cast< int >(val2);
25199 {
25200 PyThreadState* __tstate = wxPyBeginAllowThreads();
25201 result = (bool)(arg1)->GetToolEnabled(arg2);
25202 wxPyEndAllowThreads(__tstate);
25203 if (PyErr_Occurred()) SWIG_fail;
25204 }
25205 {
25206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25207 }
25208 return resultobj;
25209 fail:
25210 return NULL;
25211 }
25212
25213
25214 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25215 PyObject *resultobj = 0;
25216 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25217 int arg2 ;
25218 wxString *arg3 = 0 ;
25219 void *argp1 = 0 ;
25220 int res1 = 0 ;
25221 int val2 ;
25222 int ecode2 = 0 ;
25223 bool temp3 = false ;
25224 PyObject * obj0 = 0 ;
25225 PyObject * obj1 = 0 ;
25226 PyObject * obj2 = 0 ;
25227 char * kwnames[] = {
25228 (char *) "self",(char *) "id",(char *) "helpString", NULL
25229 };
25230
25231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25233 if (!SWIG_IsOK(res1)) {
25234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25235 }
25236 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25237 ecode2 = SWIG_AsVal_int(obj1, &val2);
25238 if (!SWIG_IsOK(ecode2)) {
25239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25240 }
25241 arg2 = static_cast< int >(val2);
25242 {
25243 arg3 = wxString_in_helper(obj2);
25244 if (arg3 == NULL) SWIG_fail;
25245 temp3 = true;
25246 }
25247 {
25248 PyThreadState* __tstate = wxPyBeginAllowThreads();
25249 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
25250 wxPyEndAllowThreads(__tstate);
25251 if (PyErr_Occurred()) SWIG_fail;
25252 }
25253 resultobj = SWIG_Py_Void();
25254 {
25255 if (temp3)
25256 delete arg3;
25257 }
25258 return resultobj;
25259 fail:
25260 {
25261 if (temp3)
25262 delete arg3;
25263 }
25264 return NULL;
25265 }
25266
25267
25268 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25269 PyObject *resultobj = 0;
25270 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25271 int arg2 ;
25272 wxString result;
25273 void *argp1 = 0 ;
25274 int res1 = 0 ;
25275 int val2 ;
25276 int ecode2 = 0 ;
25277 PyObject * obj0 = 0 ;
25278 PyObject * obj1 = 0 ;
25279 char * kwnames[] = {
25280 (char *) "self",(char *) "id", NULL
25281 };
25282
25283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25285 if (!SWIG_IsOK(res1)) {
25286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25287 }
25288 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25289 ecode2 = SWIG_AsVal_int(obj1, &val2);
25290 if (!SWIG_IsOK(ecode2)) {
25291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
25292 }
25293 arg2 = static_cast< int >(val2);
25294 {
25295 PyThreadState* __tstate = wxPyBeginAllowThreads();
25296 result = (arg1)->GetToolShortHelp(arg2);
25297 wxPyEndAllowThreads(__tstate);
25298 if (PyErr_Occurred()) SWIG_fail;
25299 }
25300 {
25301 #if wxUSE_UNICODE
25302 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25303 #else
25304 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25305 #endif
25306 }
25307 return resultobj;
25308 fail:
25309 return NULL;
25310 }
25311
25312
25313 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25314 PyObject *resultobj = 0;
25315 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25316 int arg2 ;
25317 wxString *arg3 = 0 ;
25318 void *argp1 = 0 ;
25319 int res1 = 0 ;
25320 int val2 ;
25321 int ecode2 = 0 ;
25322 bool temp3 = false ;
25323 PyObject * obj0 = 0 ;
25324 PyObject * obj1 = 0 ;
25325 PyObject * obj2 = 0 ;
25326 char * kwnames[] = {
25327 (char *) "self",(char *) "id",(char *) "helpString", NULL
25328 };
25329
25330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25332 if (!SWIG_IsOK(res1)) {
25333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25334 }
25335 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25336 ecode2 = SWIG_AsVal_int(obj1, &val2);
25337 if (!SWIG_IsOK(ecode2)) {
25338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25339 }
25340 arg2 = static_cast< int >(val2);
25341 {
25342 arg3 = wxString_in_helper(obj2);
25343 if (arg3 == NULL) SWIG_fail;
25344 temp3 = true;
25345 }
25346 {
25347 PyThreadState* __tstate = wxPyBeginAllowThreads();
25348 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
25349 wxPyEndAllowThreads(__tstate);
25350 if (PyErr_Occurred()) SWIG_fail;
25351 }
25352 resultobj = SWIG_Py_Void();
25353 {
25354 if (temp3)
25355 delete arg3;
25356 }
25357 return resultobj;
25358 fail:
25359 {
25360 if (temp3)
25361 delete arg3;
25362 }
25363 return NULL;
25364 }
25365
25366
25367 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25368 PyObject *resultobj = 0;
25369 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25370 int arg2 ;
25371 wxString result;
25372 void *argp1 = 0 ;
25373 int res1 = 0 ;
25374 int val2 ;
25375 int ecode2 = 0 ;
25376 PyObject * obj0 = 0 ;
25377 PyObject * obj1 = 0 ;
25378 char * kwnames[] = {
25379 (char *) "self",(char *) "id", NULL
25380 };
25381
25382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25384 if (!SWIG_IsOK(res1)) {
25385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25386 }
25387 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25388 ecode2 = SWIG_AsVal_int(obj1, &val2);
25389 if (!SWIG_IsOK(ecode2)) {
25390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25391 }
25392 arg2 = static_cast< int >(val2);
25393 {
25394 PyThreadState* __tstate = wxPyBeginAllowThreads();
25395 result = (arg1)->GetToolLongHelp(arg2);
25396 wxPyEndAllowThreads(__tstate);
25397 if (PyErr_Occurred()) SWIG_fail;
25398 }
25399 {
25400 #if wxUSE_UNICODE
25401 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25402 #else
25403 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25404 #endif
25405 }
25406 return resultobj;
25407 fail:
25408 return NULL;
25409 }
25410
25411
25412 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25413 PyObject *resultobj = 0;
25414 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25415 int arg2 ;
25416 int arg3 ;
25417 void *argp1 = 0 ;
25418 int res1 = 0 ;
25419 int val2 ;
25420 int ecode2 = 0 ;
25421 int val3 ;
25422 int ecode3 = 0 ;
25423 PyObject * obj0 = 0 ;
25424 PyObject * obj1 = 0 ;
25425 PyObject * obj2 = 0 ;
25426 char * kwnames[] = {
25427 (char *) "self",(char *) "x",(char *) "y", NULL
25428 };
25429
25430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25432 if (!SWIG_IsOK(res1)) {
25433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25434 }
25435 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25436 ecode2 = SWIG_AsVal_int(obj1, &val2);
25437 if (!SWIG_IsOK(ecode2)) {
25438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25439 }
25440 arg2 = static_cast< int >(val2);
25441 ecode3 = SWIG_AsVal_int(obj2, &val3);
25442 if (!SWIG_IsOK(ecode3)) {
25443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25444 }
25445 arg3 = static_cast< int >(val3);
25446 {
25447 PyThreadState* __tstate = wxPyBeginAllowThreads();
25448 (arg1)->SetMargins(arg2,arg3);
25449 wxPyEndAllowThreads(__tstate);
25450 if (PyErr_Occurred()) SWIG_fail;
25451 }
25452 resultobj = SWIG_Py_Void();
25453 return resultobj;
25454 fail:
25455 return NULL;
25456 }
25457
25458
25459 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25460 PyObject *resultobj = 0;
25461 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25462 wxSize *arg2 = 0 ;
25463 void *argp1 = 0 ;
25464 int res1 = 0 ;
25465 wxSize temp2 ;
25466 PyObject * obj0 = 0 ;
25467 PyObject * obj1 = 0 ;
25468 char * kwnames[] = {
25469 (char *) "self",(char *) "size", NULL
25470 };
25471
25472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25474 if (!SWIG_IsOK(res1)) {
25475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25476 }
25477 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25478 {
25479 arg2 = &temp2;
25480 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25481 }
25482 {
25483 PyThreadState* __tstate = wxPyBeginAllowThreads();
25484 (arg1)->SetMargins((wxSize const &)*arg2);
25485 wxPyEndAllowThreads(__tstate);
25486 if (PyErr_Occurred()) SWIG_fail;
25487 }
25488 resultobj = SWIG_Py_Void();
25489 return resultobj;
25490 fail:
25491 return NULL;
25492 }
25493
25494
25495 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25496 PyObject *resultobj = 0;
25497 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25498 int arg2 ;
25499 void *argp1 = 0 ;
25500 int res1 = 0 ;
25501 int val2 ;
25502 int ecode2 = 0 ;
25503 PyObject * obj0 = 0 ;
25504 PyObject * obj1 = 0 ;
25505 char * kwnames[] = {
25506 (char *) "self",(char *) "packing", NULL
25507 };
25508
25509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25511 if (!SWIG_IsOK(res1)) {
25512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25513 }
25514 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25515 ecode2 = SWIG_AsVal_int(obj1, &val2);
25516 if (!SWIG_IsOK(ecode2)) {
25517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25518 }
25519 arg2 = static_cast< int >(val2);
25520 {
25521 PyThreadState* __tstate = wxPyBeginAllowThreads();
25522 (arg1)->SetToolPacking(arg2);
25523 wxPyEndAllowThreads(__tstate);
25524 if (PyErr_Occurred()) SWIG_fail;
25525 }
25526 resultobj = SWIG_Py_Void();
25527 return resultobj;
25528 fail:
25529 return NULL;
25530 }
25531
25532
25533 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25534 PyObject *resultobj = 0;
25535 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25536 int arg2 ;
25537 void *argp1 = 0 ;
25538 int res1 = 0 ;
25539 int val2 ;
25540 int ecode2 = 0 ;
25541 PyObject * obj0 = 0 ;
25542 PyObject * obj1 = 0 ;
25543 char * kwnames[] = {
25544 (char *) "self",(char *) "separation", NULL
25545 };
25546
25547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25549 if (!SWIG_IsOK(res1)) {
25550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25551 }
25552 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25553 ecode2 = SWIG_AsVal_int(obj1, &val2);
25554 if (!SWIG_IsOK(ecode2)) {
25555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25556 }
25557 arg2 = static_cast< int >(val2);
25558 {
25559 PyThreadState* __tstate = wxPyBeginAllowThreads();
25560 (arg1)->SetToolSeparation(arg2);
25561 wxPyEndAllowThreads(__tstate);
25562 if (PyErr_Occurred()) SWIG_fail;
25563 }
25564 resultobj = SWIG_Py_Void();
25565 return resultobj;
25566 fail:
25567 return NULL;
25568 }
25569
25570
25571 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25572 PyObject *resultobj = 0;
25573 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25574 wxSize result;
25575 void *argp1 = 0 ;
25576 int res1 = 0 ;
25577 PyObject *swig_obj[1] ;
25578
25579 if (!args) SWIG_fail;
25580 swig_obj[0] = args;
25581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25582 if (!SWIG_IsOK(res1)) {
25583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25584 }
25585 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25586 {
25587 PyThreadState* __tstate = wxPyBeginAllowThreads();
25588 result = (arg1)->GetToolMargins();
25589 wxPyEndAllowThreads(__tstate);
25590 if (PyErr_Occurred()) SWIG_fail;
25591 }
25592 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25593 return resultobj;
25594 fail:
25595 return NULL;
25596 }
25597
25598
25599 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25600 PyObject *resultobj = 0;
25601 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25602 wxSize result;
25603 void *argp1 = 0 ;
25604 int res1 = 0 ;
25605 PyObject *swig_obj[1] ;
25606
25607 if (!args) SWIG_fail;
25608 swig_obj[0] = args;
25609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25610 if (!SWIG_IsOK(res1)) {
25611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25612 }
25613 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25614 {
25615 PyThreadState* __tstate = wxPyBeginAllowThreads();
25616 result = (arg1)->GetMargins();
25617 wxPyEndAllowThreads(__tstate);
25618 if (PyErr_Occurred()) SWIG_fail;
25619 }
25620 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25621 return resultobj;
25622 fail:
25623 return NULL;
25624 }
25625
25626
25627 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25628 PyObject *resultobj = 0;
25629 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25630 int result;
25631 void *argp1 = 0 ;
25632 int res1 = 0 ;
25633 PyObject *swig_obj[1] ;
25634
25635 if (!args) SWIG_fail;
25636 swig_obj[0] = args;
25637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25638 if (!SWIG_IsOK(res1)) {
25639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25640 }
25641 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25642 {
25643 PyThreadState* __tstate = wxPyBeginAllowThreads();
25644 result = (int)(arg1)->GetToolPacking();
25645 wxPyEndAllowThreads(__tstate);
25646 if (PyErr_Occurred()) SWIG_fail;
25647 }
25648 resultobj = SWIG_From_int(static_cast< int >(result));
25649 return resultobj;
25650 fail:
25651 return NULL;
25652 }
25653
25654
25655 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25656 PyObject *resultobj = 0;
25657 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25658 int result;
25659 void *argp1 = 0 ;
25660 int res1 = 0 ;
25661 PyObject *swig_obj[1] ;
25662
25663 if (!args) SWIG_fail;
25664 swig_obj[0] = args;
25665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25666 if (!SWIG_IsOK(res1)) {
25667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25668 }
25669 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25670 {
25671 PyThreadState* __tstate = wxPyBeginAllowThreads();
25672 result = (int)(arg1)->GetToolSeparation();
25673 wxPyEndAllowThreads(__tstate);
25674 if (PyErr_Occurred()) SWIG_fail;
25675 }
25676 resultobj = SWIG_From_int(static_cast< int >(result));
25677 return resultobj;
25678 fail:
25679 return NULL;
25680 }
25681
25682
25683 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25684 PyObject *resultobj = 0;
25685 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25686 int arg2 ;
25687 void *argp1 = 0 ;
25688 int res1 = 0 ;
25689 int val2 ;
25690 int ecode2 = 0 ;
25691 PyObject * obj0 = 0 ;
25692 PyObject * obj1 = 0 ;
25693 char * kwnames[] = {
25694 (char *) "self",(char *) "nRows", NULL
25695 };
25696
25697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25699 if (!SWIG_IsOK(res1)) {
25700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25701 }
25702 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25703 ecode2 = SWIG_AsVal_int(obj1, &val2);
25704 if (!SWIG_IsOK(ecode2)) {
25705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25706 }
25707 arg2 = static_cast< int >(val2);
25708 {
25709 PyThreadState* __tstate = wxPyBeginAllowThreads();
25710 (arg1)->SetRows(arg2);
25711 wxPyEndAllowThreads(__tstate);
25712 if (PyErr_Occurred()) SWIG_fail;
25713 }
25714 resultobj = SWIG_Py_Void();
25715 return resultobj;
25716 fail:
25717 return NULL;
25718 }
25719
25720
25721 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25722 PyObject *resultobj = 0;
25723 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25724 int arg2 ;
25725 int arg3 ;
25726 void *argp1 = 0 ;
25727 int res1 = 0 ;
25728 int val2 ;
25729 int ecode2 = 0 ;
25730 int val3 ;
25731 int ecode3 = 0 ;
25732 PyObject * obj0 = 0 ;
25733 PyObject * obj1 = 0 ;
25734 PyObject * obj2 = 0 ;
25735 char * kwnames[] = {
25736 (char *) "self",(char *) "rows",(char *) "cols", NULL
25737 };
25738
25739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25741 if (!SWIG_IsOK(res1)) {
25742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25743 }
25744 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25745 ecode2 = SWIG_AsVal_int(obj1, &val2);
25746 if (!SWIG_IsOK(ecode2)) {
25747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25748 }
25749 arg2 = static_cast< int >(val2);
25750 ecode3 = SWIG_AsVal_int(obj2, &val3);
25751 if (!SWIG_IsOK(ecode3)) {
25752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25753 }
25754 arg3 = static_cast< int >(val3);
25755 {
25756 PyThreadState* __tstate = wxPyBeginAllowThreads();
25757 (arg1)->SetMaxRowsCols(arg2,arg3);
25758 wxPyEndAllowThreads(__tstate);
25759 if (PyErr_Occurred()) SWIG_fail;
25760 }
25761 resultobj = SWIG_Py_Void();
25762 return resultobj;
25763 fail:
25764 return NULL;
25765 }
25766
25767
25768 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25769 PyObject *resultobj = 0;
25770 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25771 int result;
25772 void *argp1 = 0 ;
25773 int res1 = 0 ;
25774 PyObject *swig_obj[1] ;
25775
25776 if (!args) SWIG_fail;
25777 swig_obj[0] = args;
25778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25779 if (!SWIG_IsOK(res1)) {
25780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25781 }
25782 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25783 {
25784 PyThreadState* __tstate = wxPyBeginAllowThreads();
25785 result = (int)(arg1)->GetMaxRows();
25786 wxPyEndAllowThreads(__tstate);
25787 if (PyErr_Occurred()) SWIG_fail;
25788 }
25789 resultobj = SWIG_From_int(static_cast< int >(result));
25790 return resultobj;
25791 fail:
25792 return NULL;
25793 }
25794
25795
25796 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25797 PyObject *resultobj = 0;
25798 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25799 int result;
25800 void *argp1 = 0 ;
25801 int res1 = 0 ;
25802 PyObject *swig_obj[1] ;
25803
25804 if (!args) SWIG_fail;
25805 swig_obj[0] = args;
25806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25807 if (!SWIG_IsOK(res1)) {
25808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25809 }
25810 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25811 {
25812 PyThreadState* __tstate = wxPyBeginAllowThreads();
25813 result = (int)(arg1)->GetMaxCols();
25814 wxPyEndAllowThreads(__tstate);
25815 if (PyErr_Occurred()) SWIG_fail;
25816 }
25817 resultobj = SWIG_From_int(static_cast< int >(result));
25818 return resultobj;
25819 fail:
25820 return NULL;
25821 }
25822
25823
25824 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25825 PyObject *resultobj = 0;
25826 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25827 wxSize *arg2 = 0 ;
25828 void *argp1 = 0 ;
25829 int res1 = 0 ;
25830 wxSize temp2 ;
25831 PyObject * obj0 = 0 ;
25832 PyObject * obj1 = 0 ;
25833 char * kwnames[] = {
25834 (char *) "self",(char *) "size", NULL
25835 };
25836
25837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25839 if (!SWIG_IsOK(res1)) {
25840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25841 }
25842 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25843 {
25844 arg2 = &temp2;
25845 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25846 }
25847 {
25848 PyThreadState* __tstate = wxPyBeginAllowThreads();
25849 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25850 wxPyEndAllowThreads(__tstate);
25851 if (PyErr_Occurred()) SWIG_fail;
25852 }
25853 resultobj = SWIG_Py_Void();
25854 return resultobj;
25855 fail:
25856 return NULL;
25857 }
25858
25859
25860 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25861 PyObject *resultobj = 0;
25862 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25863 wxSize result;
25864 void *argp1 = 0 ;
25865 int res1 = 0 ;
25866 PyObject *swig_obj[1] ;
25867
25868 if (!args) SWIG_fail;
25869 swig_obj[0] = args;
25870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25871 if (!SWIG_IsOK(res1)) {
25872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25873 }
25874 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25875 {
25876 PyThreadState* __tstate = wxPyBeginAllowThreads();
25877 result = (arg1)->GetToolBitmapSize();
25878 wxPyEndAllowThreads(__tstate);
25879 if (PyErr_Occurred()) SWIG_fail;
25880 }
25881 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25882 return resultobj;
25883 fail:
25884 return NULL;
25885 }
25886
25887
25888 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25889 PyObject *resultobj = 0;
25890 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25891 wxSize result;
25892 void *argp1 = 0 ;
25893 int res1 = 0 ;
25894 PyObject *swig_obj[1] ;
25895
25896 if (!args) SWIG_fail;
25897 swig_obj[0] = args;
25898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25899 if (!SWIG_IsOK(res1)) {
25900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25901 }
25902 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25903 {
25904 PyThreadState* __tstate = wxPyBeginAllowThreads();
25905 result = (arg1)->GetToolSize();
25906 wxPyEndAllowThreads(__tstate);
25907 if (PyErr_Occurred()) SWIG_fail;
25908 }
25909 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25910 return resultobj;
25911 fail:
25912 return NULL;
25913 }
25914
25915
25916 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25917 PyObject *resultobj = 0;
25918 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25919 int arg2 ;
25920 int arg3 ;
25921 wxToolBarToolBase *result = 0 ;
25922 void *argp1 = 0 ;
25923 int res1 = 0 ;
25924 int val2 ;
25925 int ecode2 = 0 ;
25926 int val3 ;
25927 int ecode3 = 0 ;
25928 PyObject * obj0 = 0 ;
25929 PyObject * obj1 = 0 ;
25930 PyObject * obj2 = 0 ;
25931 char * kwnames[] = {
25932 (char *) "self",(char *) "x",(char *) "y", NULL
25933 };
25934
25935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25937 if (!SWIG_IsOK(res1)) {
25938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25939 }
25940 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25941 ecode2 = SWIG_AsVal_int(obj1, &val2);
25942 if (!SWIG_IsOK(ecode2)) {
25943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25944 }
25945 arg2 = static_cast< int >(val2);
25946 ecode3 = SWIG_AsVal_int(obj2, &val3);
25947 if (!SWIG_IsOK(ecode3)) {
25948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25949 }
25950 arg3 = static_cast< int >(val3);
25951 {
25952 PyThreadState* __tstate = wxPyBeginAllowThreads();
25953 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25954 wxPyEndAllowThreads(__tstate);
25955 if (PyErr_Occurred()) SWIG_fail;
25956 }
25957 {
25958 resultobj = wxPyMake_wxObject(result, (bool)0);
25959 }
25960 return resultobj;
25961 fail:
25962 return NULL;
25963 }
25964
25965
25966 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25967 PyObject *resultobj = 0;
25968 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25969 int arg2 ;
25970 wxToolBarToolBase *result = 0 ;
25971 void *argp1 = 0 ;
25972 int res1 = 0 ;
25973 int val2 ;
25974 int ecode2 = 0 ;
25975 PyObject * obj0 = 0 ;
25976 PyObject * obj1 = 0 ;
25977 char * kwnames[] = {
25978 (char *) "self",(char *) "toolid", NULL
25979 };
25980
25981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25983 if (!SWIG_IsOK(res1)) {
25984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25985 }
25986 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25987 ecode2 = SWIG_AsVal_int(obj1, &val2);
25988 if (!SWIG_IsOK(ecode2)) {
25989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25990 }
25991 arg2 = static_cast< int >(val2);
25992 {
25993 PyThreadState* __tstate = wxPyBeginAllowThreads();
25994 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25995 wxPyEndAllowThreads(__tstate);
25996 if (PyErr_Occurred()) SWIG_fail;
25997 }
25998 {
25999 resultobj = wxPyMake_wxObject(result, (bool)0);
26000 }
26001 return resultobj;
26002 fail:
26003 return NULL;
26004 }
26005
26006
26007 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26008 PyObject *resultobj = 0;
26009 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
26010 bool result;
26011 void *argp1 = 0 ;
26012 int res1 = 0 ;
26013 PyObject *swig_obj[1] ;
26014
26015 if (!args) SWIG_fail;
26016 swig_obj[0] = args;
26017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
26018 if (!SWIG_IsOK(res1)) {
26019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
26020 }
26021 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
26022 {
26023 PyThreadState* __tstate = wxPyBeginAllowThreads();
26024 result = (bool)(arg1)->IsVertical();
26025 wxPyEndAllowThreads(__tstate);
26026 if (PyErr_Occurred()) SWIG_fail;
26027 }
26028 {
26029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26030 }
26031 return resultobj;
26032 fail:
26033 return NULL;
26034 }
26035
26036
26037 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26038 PyObject *resultobj = 0;
26039 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
26040 size_t result;
26041 void *argp1 = 0 ;
26042 int res1 = 0 ;
26043 PyObject *swig_obj[1] ;
26044
26045 if (!args) SWIG_fail;
26046 swig_obj[0] = args;
26047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
26048 if (!SWIG_IsOK(res1)) {
26049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
26050 }
26051 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
26052 {
26053 PyThreadState* __tstate = wxPyBeginAllowThreads();
26054 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
26055 wxPyEndAllowThreads(__tstate);
26056 if (PyErr_Occurred()) SWIG_fail;
26057 }
26058 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
26059 return resultobj;
26060 fail:
26061 return NULL;
26062 }
26063
26064
26065 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26066 PyObject *obj;
26067 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26068 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
26069 return SWIG_Py_Void();
26070 }
26071
26072 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26073 PyObject *resultobj = 0;
26074 wxWindow *arg1 = (wxWindow *) 0 ;
26075 int arg2 = (int) -1 ;
26076 wxPoint const &arg3_defvalue = wxDefaultPosition ;
26077 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
26078 wxSize const &arg4_defvalue = wxDefaultSize ;
26079 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
26080 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
26081 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
26082 wxString *arg6 = (wxString *) &arg6_defvalue ;
26083 wxToolBar *result = 0 ;
26084 void *argp1 = 0 ;
26085 int res1 = 0 ;
26086 int val2 ;
26087 int ecode2 = 0 ;
26088 wxPoint temp3 ;
26089 wxSize temp4 ;
26090 long val5 ;
26091 int ecode5 = 0 ;
26092 bool temp6 = false ;
26093 PyObject * obj0 = 0 ;
26094 PyObject * obj1 = 0 ;
26095 PyObject * obj2 = 0 ;
26096 PyObject * obj3 = 0 ;
26097 PyObject * obj4 = 0 ;
26098 PyObject * obj5 = 0 ;
26099 char * kwnames[] = {
26100 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
26101 };
26102
26103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
26105 if (!SWIG_IsOK(res1)) {
26106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
26107 }
26108 arg1 = reinterpret_cast< wxWindow * >(argp1);
26109 if (obj1) {
26110 ecode2 = SWIG_AsVal_int(obj1, &val2);
26111 if (!SWIG_IsOK(ecode2)) {
26112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
26113 }
26114 arg2 = static_cast< int >(val2);
26115 }
26116 if (obj2) {
26117 {
26118 arg3 = &temp3;
26119 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
26120 }
26121 }
26122 if (obj3) {
26123 {
26124 arg4 = &temp4;
26125 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
26126 }
26127 }
26128 if (obj4) {
26129 ecode5 = SWIG_AsVal_long(obj4, &val5);
26130 if (!SWIG_IsOK(ecode5)) {
26131 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
26132 }
26133 arg5 = static_cast< long >(val5);
26134 }
26135 if (obj5) {
26136 {
26137 arg6 = wxString_in_helper(obj5);
26138 if (arg6 == NULL) SWIG_fail;
26139 temp6 = true;
26140 }
26141 }
26142 {
26143 if (!wxPyCheckForApp()) SWIG_fail;
26144 PyThreadState* __tstate = wxPyBeginAllowThreads();
26145 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
26146 wxPyEndAllowThreads(__tstate);
26147 if (PyErr_Occurred()) SWIG_fail;
26148 }
26149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
26150 {
26151 if (temp6)
26152 delete arg6;
26153 }
26154 return resultobj;
26155 fail:
26156 {
26157 if (temp6)
26158 delete arg6;
26159 }
26160 return NULL;
26161 }
26162
26163
26164 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26165 PyObject *resultobj = 0;
26166 wxToolBar *result = 0 ;
26167
26168 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
26169 {
26170 if (!wxPyCheckForApp()) SWIG_fail;
26171 PyThreadState* __tstate = wxPyBeginAllowThreads();
26172 result = (wxToolBar *)new wxToolBar();
26173 wxPyEndAllowThreads(__tstate);
26174 if (PyErr_Occurred()) SWIG_fail;
26175 }
26176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
26177 return resultobj;
26178 fail:
26179 return NULL;
26180 }
26181
26182
26183 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26184 PyObject *resultobj = 0;
26185 wxToolBar *arg1 = (wxToolBar *) 0 ;
26186 wxWindow *arg2 = (wxWindow *) 0 ;
26187 int arg3 = (int) -1 ;
26188 wxPoint const &arg4_defvalue = wxDefaultPosition ;
26189 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
26190 wxSize const &arg5_defvalue = wxDefaultSize ;
26191 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
26192 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
26193 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
26194 wxString *arg7 = (wxString *) &arg7_defvalue ;
26195 bool result;
26196 void *argp1 = 0 ;
26197 int res1 = 0 ;
26198 void *argp2 = 0 ;
26199 int res2 = 0 ;
26200 int val3 ;
26201 int ecode3 = 0 ;
26202 wxPoint temp4 ;
26203 wxSize temp5 ;
26204 long val6 ;
26205 int ecode6 = 0 ;
26206 bool temp7 = false ;
26207 PyObject * obj0 = 0 ;
26208 PyObject * obj1 = 0 ;
26209 PyObject * obj2 = 0 ;
26210 PyObject * obj3 = 0 ;
26211 PyObject * obj4 = 0 ;
26212 PyObject * obj5 = 0 ;
26213 PyObject * obj6 = 0 ;
26214 char * kwnames[] = {
26215 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
26216 };
26217
26218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26220 if (!SWIG_IsOK(res1)) {
26221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
26222 }
26223 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26224 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26225 if (!SWIG_IsOK(res2)) {
26226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
26227 }
26228 arg2 = reinterpret_cast< wxWindow * >(argp2);
26229 if (obj2) {
26230 ecode3 = SWIG_AsVal_int(obj2, &val3);
26231 if (!SWIG_IsOK(ecode3)) {
26232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
26233 }
26234 arg3 = static_cast< int >(val3);
26235 }
26236 if (obj3) {
26237 {
26238 arg4 = &temp4;
26239 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26240 }
26241 }
26242 if (obj4) {
26243 {
26244 arg5 = &temp5;
26245 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
26246 }
26247 }
26248 if (obj5) {
26249 ecode6 = SWIG_AsVal_long(obj5, &val6);
26250 if (!SWIG_IsOK(ecode6)) {
26251 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
26252 }
26253 arg6 = static_cast< long >(val6);
26254 }
26255 if (obj6) {
26256 {
26257 arg7 = wxString_in_helper(obj6);
26258 if (arg7 == NULL) SWIG_fail;
26259 temp7 = true;
26260 }
26261 }
26262 {
26263 PyThreadState* __tstate = wxPyBeginAllowThreads();
26264 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
26265 wxPyEndAllowThreads(__tstate);
26266 if (PyErr_Occurred()) SWIG_fail;
26267 }
26268 {
26269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26270 }
26271 {
26272 if (temp7)
26273 delete arg7;
26274 }
26275 return resultobj;
26276 fail:
26277 {
26278 if (temp7)
26279 delete arg7;
26280 }
26281 return NULL;
26282 }
26283
26284
26285 SWIGINTERN PyObject *_wrap_ToolBar_SetToolNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26286 PyObject *resultobj = 0;
26287 wxToolBar *arg1 = (wxToolBar *) 0 ;
26288 int arg2 ;
26289 wxBitmap *arg3 = 0 ;
26290 void *argp1 = 0 ;
26291 int res1 = 0 ;
26292 int val2 ;
26293 int ecode2 = 0 ;
26294 void *argp3 = 0 ;
26295 int res3 = 0 ;
26296 PyObject * obj0 = 0 ;
26297 PyObject * obj1 = 0 ;
26298 PyObject * obj2 = 0 ;
26299 char * kwnames[] = {
26300 (char *) "self",(char *) "id",(char *) "bitmap", NULL
26301 };
26302
26303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolNormalBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26305 if (!SWIG_IsOK(res1)) {
26306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'");
26307 }
26308 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26309 ecode2 = SWIG_AsVal_int(obj1, &val2);
26310 if (!SWIG_IsOK(ecode2)) {
26311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "2"" of type '" "int""'");
26312 }
26313 arg2 = static_cast< int >(val2);
26314 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26315 if (!SWIG_IsOK(res3)) {
26316 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26317 }
26318 if (!argp3) {
26319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolNormalBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26320 }
26321 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26322 {
26323 PyThreadState* __tstate = wxPyBeginAllowThreads();
26324 (arg1)->SetToolNormalBitmap(arg2,(wxBitmap const &)*arg3);
26325 wxPyEndAllowThreads(__tstate);
26326 if (PyErr_Occurred()) SWIG_fail;
26327 }
26328 resultobj = SWIG_Py_Void();
26329 return resultobj;
26330 fail:
26331 return NULL;
26332 }
26333
26334
26335 SWIGINTERN PyObject *_wrap_ToolBar_SetToolDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26336 PyObject *resultobj = 0;
26337 wxToolBar *arg1 = (wxToolBar *) 0 ;
26338 int arg2 ;
26339 wxBitmap *arg3 = 0 ;
26340 void *argp1 = 0 ;
26341 int res1 = 0 ;
26342 int val2 ;
26343 int ecode2 = 0 ;
26344 void *argp3 = 0 ;
26345 int res3 = 0 ;
26346 PyObject * obj0 = 0 ;
26347 PyObject * obj1 = 0 ;
26348 PyObject * obj2 = 0 ;
26349 char * kwnames[] = {
26350 (char *) "self",(char *) "id",(char *) "bitmap", NULL
26351 };
26352
26353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_SetToolDisabledBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
26355 if (!SWIG_IsOK(res1)) {
26356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBar *""'");
26357 }
26358 arg1 = reinterpret_cast< wxToolBar * >(argp1);
26359 ecode2 = SWIG_AsVal_int(obj1, &val2);
26360 if (!SWIG_IsOK(ecode2)) {
26361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "2"" of type '" "int""'");
26362 }
26363 arg2 = static_cast< int >(val2);
26364 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26365 if (!SWIG_IsOK(res3)) {
26366 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26367 }
26368 if (!argp3) {
26369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBar_SetToolDisabledBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26370 }
26371 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26372 {
26373 PyThreadState* __tstate = wxPyBeginAllowThreads();
26374 (arg1)->SetToolDisabledBitmap(arg2,(wxBitmap const &)*arg3);
26375 wxPyEndAllowThreads(__tstate);
26376 if (PyErr_Occurred()) SWIG_fail;
26377 }
26378 resultobj = SWIG_Py_Void();
26379 return resultobj;
26380 fail:
26381 return NULL;
26382 }
26383
26384
26385 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26386 PyObject *resultobj = 0;
26387 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
26388 SwigValueWrapper<wxVisualAttributes > result;
26389 int val1 ;
26390 int ecode1 = 0 ;
26391 PyObject * obj0 = 0 ;
26392 char * kwnames[] = {
26393 (char *) "variant", NULL
26394 };
26395
26396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
26397 if (obj0) {
26398 ecode1 = SWIG_AsVal_int(obj0, &val1);
26399 if (!SWIG_IsOK(ecode1)) {
26400 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
26401 }
26402 arg1 = static_cast< wxWindowVariant >(val1);
26403 }
26404 {
26405 if (!wxPyCheckForApp()) SWIG_fail;
26406 PyThreadState* __tstate = wxPyBeginAllowThreads();
26407 result = wxToolBar::GetClassDefaultAttributes(arg1);
26408 wxPyEndAllowThreads(__tstate);
26409 if (PyErr_Occurred()) SWIG_fail;
26410 }
26411 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
26412 return resultobj;
26413 fail:
26414 return NULL;
26415 }
26416
26417
26418 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26419 PyObject *obj;
26420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26421 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
26422 return SWIG_Py_Void();
26423 }
26424
26425 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26426 return SWIG_Python_InitShadowInstance(args);
26427 }
26428
26429 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
26430 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
26431 return 1;
26432 }
26433
26434
26435 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
26436 PyObject *pyobj = 0;
26437
26438 {
26439 #if wxUSE_UNICODE
26440 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26441 #else
26442 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
26443 #endif
26444 }
26445 return pyobj;
26446 }
26447
26448
26449 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26450 PyObject *resultobj = 0;
26451 wxColour const &arg1_defvalue = wxNullColour ;
26452 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
26453 wxColour const &arg2_defvalue = wxNullColour ;
26454 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
26455 wxFont const &arg3_defvalue = wxNullFont ;
26456 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
26457 wxListItemAttr *result = 0 ;
26458 wxColour temp1 ;
26459 wxColour temp2 ;
26460 void *argp3 = 0 ;
26461 int res3 = 0 ;
26462 PyObject * obj0 = 0 ;
26463 PyObject * obj1 = 0 ;
26464 PyObject * obj2 = 0 ;
26465 char * kwnames[] = {
26466 (char *) "colText",(char *) "colBack",(char *) "font", NULL
26467 };
26468
26469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26470 if (obj0) {
26471 {
26472 arg1 = &temp1;
26473 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
26474 }
26475 }
26476 if (obj1) {
26477 {
26478 arg2 = &temp2;
26479 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26480 }
26481 }
26482 if (obj2) {
26483 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26484 if (!SWIG_IsOK(res3)) {
26485 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26486 }
26487 if (!argp3) {
26488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
26489 }
26490 arg3 = reinterpret_cast< wxFont * >(argp3);
26491 }
26492 {
26493 PyThreadState* __tstate = wxPyBeginAllowThreads();
26494 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26495 wxPyEndAllowThreads(__tstate);
26496 if (PyErr_Occurred()) SWIG_fail;
26497 }
26498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26499 return resultobj;
26500 fail:
26501 return NULL;
26502 }
26503
26504
26505 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26506 PyObject *resultobj = 0;
26507 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26508 void *argp1 = 0 ;
26509 int res1 = 0 ;
26510 PyObject *swig_obj[1] ;
26511
26512 if (!args) SWIG_fail;
26513 swig_obj[0] = args;
26514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26515 if (!SWIG_IsOK(res1)) {
26516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26517 }
26518 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26519 {
26520 PyThreadState* __tstate = wxPyBeginAllowThreads();
26521 delete arg1;
26522
26523 wxPyEndAllowThreads(__tstate);
26524 if (PyErr_Occurred()) SWIG_fail;
26525 }
26526 resultobj = SWIG_Py_Void();
26527 return resultobj;
26528 fail:
26529 return NULL;
26530 }
26531
26532
26533 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26534 PyObject *resultobj = 0;
26535 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26536 wxColour *arg2 = 0 ;
26537 void *argp1 = 0 ;
26538 int res1 = 0 ;
26539 wxColour temp2 ;
26540 PyObject * obj0 = 0 ;
26541 PyObject * obj1 = 0 ;
26542 char * kwnames[] = {
26543 (char *) "self",(char *) "colText", NULL
26544 };
26545
26546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26548 if (!SWIG_IsOK(res1)) {
26549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26550 }
26551 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26552 {
26553 arg2 = &temp2;
26554 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26555 }
26556 {
26557 PyThreadState* __tstate = wxPyBeginAllowThreads();
26558 (arg1)->SetTextColour((wxColour const &)*arg2);
26559 wxPyEndAllowThreads(__tstate);
26560 if (PyErr_Occurred()) SWIG_fail;
26561 }
26562 resultobj = SWIG_Py_Void();
26563 return resultobj;
26564 fail:
26565 return NULL;
26566 }
26567
26568
26569 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26570 PyObject *resultobj = 0;
26571 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26572 wxColour *arg2 = 0 ;
26573 void *argp1 = 0 ;
26574 int res1 = 0 ;
26575 wxColour temp2 ;
26576 PyObject * obj0 = 0 ;
26577 PyObject * obj1 = 0 ;
26578 char * kwnames[] = {
26579 (char *) "self",(char *) "colBack", NULL
26580 };
26581
26582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26584 if (!SWIG_IsOK(res1)) {
26585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26586 }
26587 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26588 {
26589 arg2 = &temp2;
26590 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26591 }
26592 {
26593 PyThreadState* __tstate = wxPyBeginAllowThreads();
26594 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26595 wxPyEndAllowThreads(__tstate);
26596 if (PyErr_Occurred()) SWIG_fail;
26597 }
26598 resultobj = SWIG_Py_Void();
26599 return resultobj;
26600 fail:
26601 return NULL;
26602 }
26603
26604
26605 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26606 PyObject *resultobj = 0;
26607 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26608 wxFont *arg2 = 0 ;
26609 void *argp1 = 0 ;
26610 int res1 = 0 ;
26611 void *argp2 = 0 ;
26612 int res2 = 0 ;
26613 PyObject * obj0 = 0 ;
26614 PyObject * obj1 = 0 ;
26615 char * kwnames[] = {
26616 (char *) "self",(char *) "font", NULL
26617 };
26618
26619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26621 if (!SWIG_IsOK(res1)) {
26622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26623 }
26624 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26626 if (!SWIG_IsOK(res2)) {
26627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26628 }
26629 if (!argp2) {
26630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26631 }
26632 arg2 = reinterpret_cast< wxFont * >(argp2);
26633 {
26634 PyThreadState* __tstate = wxPyBeginAllowThreads();
26635 (arg1)->SetFont((wxFont const &)*arg2);
26636 wxPyEndAllowThreads(__tstate);
26637 if (PyErr_Occurred()) SWIG_fail;
26638 }
26639 resultobj = SWIG_Py_Void();
26640 return resultobj;
26641 fail:
26642 return NULL;
26643 }
26644
26645
26646 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26647 PyObject *resultobj = 0;
26648 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26649 bool result;
26650 void *argp1 = 0 ;
26651 int res1 = 0 ;
26652 PyObject *swig_obj[1] ;
26653
26654 if (!args) SWIG_fail;
26655 swig_obj[0] = args;
26656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26657 if (!SWIG_IsOK(res1)) {
26658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26659 }
26660 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26661 {
26662 PyThreadState* __tstate = wxPyBeginAllowThreads();
26663 result = (bool)(arg1)->HasTextColour();
26664 wxPyEndAllowThreads(__tstate);
26665 if (PyErr_Occurred()) SWIG_fail;
26666 }
26667 {
26668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26669 }
26670 return resultobj;
26671 fail:
26672 return NULL;
26673 }
26674
26675
26676 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26677 PyObject *resultobj = 0;
26678 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26679 bool result;
26680 void *argp1 = 0 ;
26681 int res1 = 0 ;
26682 PyObject *swig_obj[1] ;
26683
26684 if (!args) SWIG_fail;
26685 swig_obj[0] = args;
26686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26687 if (!SWIG_IsOK(res1)) {
26688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26689 }
26690 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26691 {
26692 PyThreadState* __tstate = wxPyBeginAllowThreads();
26693 result = (bool)(arg1)->HasBackgroundColour();
26694 wxPyEndAllowThreads(__tstate);
26695 if (PyErr_Occurred()) SWIG_fail;
26696 }
26697 {
26698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26699 }
26700 return resultobj;
26701 fail:
26702 return NULL;
26703 }
26704
26705
26706 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26707 PyObject *resultobj = 0;
26708 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26709 bool result;
26710 void *argp1 = 0 ;
26711 int res1 = 0 ;
26712 PyObject *swig_obj[1] ;
26713
26714 if (!args) SWIG_fail;
26715 swig_obj[0] = args;
26716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26717 if (!SWIG_IsOK(res1)) {
26718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26719 }
26720 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26721 {
26722 PyThreadState* __tstate = wxPyBeginAllowThreads();
26723 result = (bool)(arg1)->HasFont();
26724 wxPyEndAllowThreads(__tstate);
26725 if (PyErr_Occurred()) SWIG_fail;
26726 }
26727 {
26728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26729 }
26730 return resultobj;
26731 fail:
26732 return NULL;
26733 }
26734
26735
26736 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26737 PyObject *resultobj = 0;
26738 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26739 wxColour result;
26740 void *argp1 = 0 ;
26741 int res1 = 0 ;
26742 PyObject *swig_obj[1] ;
26743
26744 if (!args) SWIG_fail;
26745 swig_obj[0] = args;
26746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26747 if (!SWIG_IsOK(res1)) {
26748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26749 }
26750 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26751 {
26752 PyThreadState* __tstate = wxPyBeginAllowThreads();
26753 result = (arg1)->GetTextColour();
26754 wxPyEndAllowThreads(__tstate);
26755 if (PyErr_Occurred()) SWIG_fail;
26756 }
26757 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26758 return resultobj;
26759 fail:
26760 return NULL;
26761 }
26762
26763
26764 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26765 PyObject *resultobj = 0;
26766 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26767 wxColour result;
26768 void *argp1 = 0 ;
26769 int res1 = 0 ;
26770 PyObject *swig_obj[1] ;
26771
26772 if (!args) SWIG_fail;
26773 swig_obj[0] = args;
26774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26775 if (!SWIG_IsOK(res1)) {
26776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26777 }
26778 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26779 {
26780 PyThreadState* __tstate = wxPyBeginAllowThreads();
26781 result = (arg1)->GetBackgroundColour();
26782 wxPyEndAllowThreads(__tstate);
26783 if (PyErr_Occurred()) SWIG_fail;
26784 }
26785 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26786 return resultobj;
26787 fail:
26788 return NULL;
26789 }
26790
26791
26792 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26793 PyObject *resultobj = 0;
26794 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26795 wxFont result;
26796 void *argp1 = 0 ;
26797 int res1 = 0 ;
26798 PyObject *swig_obj[1] ;
26799
26800 if (!args) SWIG_fail;
26801 swig_obj[0] = args;
26802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26803 if (!SWIG_IsOK(res1)) {
26804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26805 }
26806 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26807 {
26808 PyThreadState* __tstate = wxPyBeginAllowThreads();
26809 result = (arg1)->GetFont();
26810 wxPyEndAllowThreads(__tstate);
26811 if (PyErr_Occurred()) SWIG_fail;
26812 }
26813 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26814 return resultobj;
26815 fail:
26816 return NULL;
26817 }
26818
26819
26820 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26821 PyObject *resultobj = 0;
26822 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26823 wxListItemAttr *arg2 = 0 ;
26824 void *argp1 = 0 ;
26825 int res1 = 0 ;
26826 void *argp2 = 0 ;
26827 int res2 = 0 ;
26828 PyObject * obj0 = 0 ;
26829 PyObject * obj1 = 0 ;
26830 char * kwnames[] = {
26831 (char *) "self",(char *) "source", NULL
26832 };
26833
26834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26836 if (!SWIG_IsOK(res1)) {
26837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26838 }
26839 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26840 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26841 if (!SWIG_IsOK(res2)) {
26842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26843 }
26844 if (!argp2) {
26845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26846 }
26847 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26848 {
26849 PyThreadState* __tstate = wxPyBeginAllowThreads();
26850 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26851 wxPyEndAllowThreads(__tstate);
26852 if (PyErr_Occurred()) SWIG_fail;
26853 }
26854 resultobj = SWIG_Py_Void();
26855 return resultobj;
26856 fail:
26857 return NULL;
26858 }
26859
26860
26861 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26862 PyObject *resultobj = 0;
26863 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26864 void *argp1 = 0 ;
26865 int res1 = 0 ;
26866 PyObject *swig_obj[1] ;
26867
26868 if (!args) SWIG_fail;
26869 swig_obj[0] = args;
26870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26871 if (!SWIG_IsOK(res1)) {
26872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26873 }
26874 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26875 {
26876 PyThreadState* __tstate = wxPyBeginAllowThreads();
26877 wxListItemAttr_Destroy(arg1);
26878 wxPyEndAllowThreads(__tstate);
26879 if (PyErr_Occurred()) SWIG_fail;
26880 }
26881 resultobj = SWIG_Py_Void();
26882 return resultobj;
26883 fail:
26884 return NULL;
26885 }
26886
26887
26888 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26889 PyObject *obj;
26890 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26891 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26892 return SWIG_Py_Void();
26893 }
26894
26895 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26896 return SWIG_Python_InitShadowInstance(args);
26897 }
26898
26899 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26900 PyObject *resultobj = 0;
26901 wxListItem *result = 0 ;
26902
26903 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26904 {
26905 PyThreadState* __tstate = wxPyBeginAllowThreads();
26906 result = (wxListItem *)new wxListItem();
26907 wxPyEndAllowThreads(__tstate);
26908 if (PyErr_Occurred()) SWIG_fail;
26909 }
26910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
26911 return resultobj;
26912 fail:
26913 return NULL;
26914 }
26915
26916
26917 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26918 PyObject *resultobj = 0;
26919 wxListItem *arg1 = (wxListItem *) 0 ;
26920 void *argp1 = 0 ;
26921 int res1 = 0 ;
26922 PyObject *swig_obj[1] ;
26923
26924 if (!args) SWIG_fail;
26925 swig_obj[0] = args;
26926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26927 if (!SWIG_IsOK(res1)) {
26928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26929 }
26930 arg1 = reinterpret_cast< wxListItem * >(argp1);
26931 {
26932 PyThreadState* __tstate = wxPyBeginAllowThreads();
26933 delete arg1;
26934
26935 wxPyEndAllowThreads(__tstate);
26936 if (PyErr_Occurred()) SWIG_fail;
26937 }
26938 resultobj = SWIG_Py_Void();
26939 return resultobj;
26940 fail:
26941 return NULL;
26942 }
26943
26944
26945 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26946 PyObject *resultobj = 0;
26947 wxListItem *arg1 = (wxListItem *) 0 ;
26948 void *argp1 = 0 ;
26949 int res1 = 0 ;
26950 PyObject *swig_obj[1] ;
26951
26952 if (!args) SWIG_fail;
26953 swig_obj[0] = args;
26954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26955 if (!SWIG_IsOK(res1)) {
26956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26957 }
26958 arg1 = reinterpret_cast< wxListItem * >(argp1);
26959 {
26960 PyThreadState* __tstate = wxPyBeginAllowThreads();
26961 (arg1)->Clear();
26962 wxPyEndAllowThreads(__tstate);
26963 if (PyErr_Occurred()) SWIG_fail;
26964 }
26965 resultobj = SWIG_Py_Void();
26966 return resultobj;
26967 fail:
26968 return NULL;
26969 }
26970
26971
26972 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26973 PyObject *resultobj = 0;
26974 wxListItem *arg1 = (wxListItem *) 0 ;
26975 void *argp1 = 0 ;
26976 int res1 = 0 ;
26977 PyObject *swig_obj[1] ;
26978
26979 if (!args) SWIG_fail;
26980 swig_obj[0] = args;
26981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26982 if (!SWIG_IsOK(res1)) {
26983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26984 }
26985 arg1 = reinterpret_cast< wxListItem * >(argp1);
26986 {
26987 PyThreadState* __tstate = wxPyBeginAllowThreads();
26988 (arg1)->ClearAttributes();
26989 wxPyEndAllowThreads(__tstate);
26990 if (PyErr_Occurred()) SWIG_fail;
26991 }
26992 resultobj = SWIG_Py_Void();
26993 return resultobj;
26994 fail:
26995 return NULL;
26996 }
26997
26998
26999 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27000 PyObject *resultobj = 0;
27001 wxListItem *arg1 = (wxListItem *) 0 ;
27002 long arg2 ;
27003 void *argp1 = 0 ;
27004 int res1 = 0 ;
27005 long val2 ;
27006 int ecode2 = 0 ;
27007 PyObject * obj0 = 0 ;
27008 PyObject * obj1 = 0 ;
27009 char * kwnames[] = {
27010 (char *) "self",(char *) "mask", NULL
27011 };
27012
27013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
27014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27015 if (!SWIG_IsOK(res1)) {
27016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27017 }
27018 arg1 = reinterpret_cast< wxListItem * >(argp1);
27019 ecode2 = SWIG_AsVal_long(obj1, &val2);
27020 if (!SWIG_IsOK(ecode2)) {
27021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
27022 }
27023 arg2 = static_cast< long >(val2);
27024 {
27025 PyThreadState* __tstate = wxPyBeginAllowThreads();
27026 (arg1)->SetMask(arg2);
27027 wxPyEndAllowThreads(__tstate);
27028 if (PyErr_Occurred()) SWIG_fail;
27029 }
27030 resultobj = SWIG_Py_Void();
27031 return resultobj;
27032 fail:
27033 return NULL;
27034 }
27035
27036
27037 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27038 PyObject *resultobj = 0;
27039 wxListItem *arg1 = (wxListItem *) 0 ;
27040 long arg2 ;
27041 void *argp1 = 0 ;
27042 int res1 = 0 ;
27043 long val2 ;
27044 int ecode2 = 0 ;
27045 PyObject * obj0 = 0 ;
27046 PyObject * obj1 = 0 ;
27047 char * kwnames[] = {
27048 (char *) "self",(char *) "id", NULL
27049 };
27050
27051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
27052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27053 if (!SWIG_IsOK(res1)) {
27054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27055 }
27056 arg1 = reinterpret_cast< wxListItem * >(argp1);
27057 ecode2 = SWIG_AsVal_long(obj1, &val2);
27058 if (!SWIG_IsOK(ecode2)) {
27059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
27060 }
27061 arg2 = static_cast< long >(val2);
27062 {
27063 PyThreadState* __tstate = wxPyBeginAllowThreads();
27064 (arg1)->SetId(arg2);
27065 wxPyEndAllowThreads(__tstate);
27066 if (PyErr_Occurred()) SWIG_fail;
27067 }
27068 resultobj = SWIG_Py_Void();
27069 return resultobj;
27070 fail:
27071 return NULL;
27072 }
27073
27074
27075 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27076 PyObject *resultobj = 0;
27077 wxListItem *arg1 = (wxListItem *) 0 ;
27078 int arg2 ;
27079 void *argp1 = 0 ;
27080 int res1 = 0 ;
27081 int val2 ;
27082 int ecode2 = 0 ;
27083 PyObject * obj0 = 0 ;
27084 PyObject * obj1 = 0 ;
27085 char * kwnames[] = {
27086 (char *) "self",(char *) "col", NULL
27087 };
27088
27089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
27090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27091 if (!SWIG_IsOK(res1)) {
27092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27093 }
27094 arg1 = reinterpret_cast< wxListItem * >(argp1);
27095 ecode2 = SWIG_AsVal_int(obj1, &val2);
27096 if (!SWIG_IsOK(ecode2)) {
27097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
27098 }
27099 arg2 = static_cast< int >(val2);
27100 {
27101 PyThreadState* __tstate = wxPyBeginAllowThreads();
27102 (arg1)->SetColumn(arg2);
27103 wxPyEndAllowThreads(__tstate);
27104 if (PyErr_Occurred()) SWIG_fail;
27105 }
27106 resultobj = SWIG_Py_Void();
27107 return resultobj;
27108 fail:
27109 return NULL;
27110 }
27111
27112
27113 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27114 PyObject *resultobj = 0;
27115 wxListItem *arg1 = (wxListItem *) 0 ;
27116 long arg2 ;
27117 void *argp1 = 0 ;
27118 int res1 = 0 ;
27119 long val2 ;
27120 int ecode2 = 0 ;
27121 PyObject * obj0 = 0 ;
27122 PyObject * obj1 = 0 ;
27123 char * kwnames[] = {
27124 (char *) "self",(char *) "state", NULL
27125 };
27126
27127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
27128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27129 if (!SWIG_IsOK(res1)) {
27130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27131 }
27132 arg1 = reinterpret_cast< wxListItem * >(argp1);
27133 ecode2 = SWIG_AsVal_long(obj1, &val2);
27134 if (!SWIG_IsOK(ecode2)) {
27135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
27136 }
27137 arg2 = static_cast< long >(val2);
27138 {
27139 PyThreadState* __tstate = wxPyBeginAllowThreads();
27140 (arg1)->SetState(arg2);
27141 wxPyEndAllowThreads(__tstate);
27142 if (PyErr_Occurred()) SWIG_fail;
27143 }
27144 resultobj = SWIG_Py_Void();
27145 return resultobj;
27146 fail:
27147 return NULL;
27148 }
27149
27150
27151 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27152 PyObject *resultobj = 0;
27153 wxListItem *arg1 = (wxListItem *) 0 ;
27154 long arg2 ;
27155 void *argp1 = 0 ;
27156 int res1 = 0 ;
27157 long val2 ;
27158 int ecode2 = 0 ;
27159 PyObject * obj0 = 0 ;
27160 PyObject * obj1 = 0 ;
27161 char * kwnames[] = {
27162 (char *) "self",(char *) "stateMask", NULL
27163 };
27164
27165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
27166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27167 if (!SWIG_IsOK(res1)) {
27168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27169 }
27170 arg1 = reinterpret_cast< wxListItem * >(argp1);
27171 ecode2 = SWIG_AsVal_long(obj1, &val2);
27172 if (!SWIG_IsOK(ecode2)) {
27173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
27174 }
27175 arg2 = static_cast< long >(val2);
27176 {
27177 PyThreadState* __tstate = wxPyBeginAllowThreads();
27178 (arg1)->SetStateMask(arg2);
27179 wxPyEndAllowThreads(__tstate);
27180 if (PyErr_Occurred()) SWIG_fail;
27181 }
27182 resultobj = SWIG_Py_Void();
27183 return resultobj;
27184 fail:
27185 return NULL;
27186 }
27187
27188
27189 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27190 PyObject *resultobj = 0;
27191 wxListItem *arg1 = (wxListItem *) 0 ;
27192 wxString *arg2 = 0 ;
27193 void *argp1 = 0 ;
27194 int res1 = 0 ;
27195 bool temp2 = false ;
27196 PyObject * obj0 = 0 ;
27197 PyObject * obj1 = 0 ;
27198 char * kwnames[] = {
27199 (char *) "self",(char *) "text", NULL
27200 };
27201
27202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
27203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27204 if (!SWIG_IsOK(res1)) {
27205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27206 }
27207 arg1 = reinterpret_cast< wxListItem * >(argp1);
27208 {
27209 arg2 = wxString_in_helper(obj1);
27210 if (arg2 == NULL) SWIG_fail;
27211 temp2 = true;
27212 }
27213 {
27214 PyThreadState* __tstate = wxPyBeginAllowThreads();
27215 (arg1)->SetText((wxString const &)*arg2);
27216 wxPyEndAllowThreads(__tstate);
27217 if (PyErr_Occurred()) SWIG_fail;
27218 }
27219 resultobj = SWIG_Py_Void();
27220 {
27221 if (temp2)
27222 delete arg2;
27223 }
27224 return resultobj;
27225 fail:
27226 {
27227 if (temp2)
27228 delete arg2;
27229 }
27230 return NULL;
27231 }
27232
27233
27234 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27235 PyObject *resultobj = 0;
27236 wxListItem *arg1 = (wxListItem *) 0 ;
27237 int arg2 ;
27238 void *argp1 = 0 ;
27239 int res1 = 0 ;
27240 int val2 ;
27241 int ecode2 = 0 ;
27242 PyObject * obj0 = 0 ;
27243 PyObject * obj1 = 0 ;
27244 char * kwnames[] = {
27245 (char *) "self",(char *) "image", NULL
27246 };
27247
27248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
27249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27250 if (!SWIG_IsOK(res1)) {
27251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27252 }
27253 arg1 = reinterpret_cast< wxListItem * >(argp1);
27254 ecode2 = SWIG_AsVal_int(obj1, &val2);
27255 if (!SWIG_IsOK(ecode2)) {
27256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
27257 }
27258 arg2 = static_cast< int >(val2);
27259 {
27260 PyThreadState* __tstate = wxPyBeginAllowThreads();
27261 (arg1)->SetImage(arg2);
27262 wxPyEndAllowThreads(__tstate);
27263 if (PyErr_Occurred()) SWIG_fail;
27264 }
27265 resultobj = SWIG_Py_Void();
27266 return resultobj;
27267 fail:
27268 return NULL;
27269 }
27270
27271
27272 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27273 PyObject *resultobj = 0;
27274 wxListItem *arg1 = (wxListItem *) 0 ;
27275 long arg2 ;
27276 void *argp1 = 0 ;
27277 int res1 = 0 ;
27278 long val2 ;
27279 int ecode2 = 0 ;
27280 PyObject * obj0 = 0 ;
27281 PyObject * obj1 = 0 ;
27282 char * kwnames[] = {
27283 (char *) "self",(char *) "data", NULL
27284 };
27285
27286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
27287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27288 if (!SWIG_IsOK(res1)) {
27289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27290 }
27291 arg1 = reinterpret_cast< wxListItem * >(argp1);
27292 ecode2 = SWIG_AsVal_long(obj1, &val2);
27293 if (!SWIG_IsOK(ecode2)) {
27294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
27295 }
27296 arg2 = static_cast< long >(val2);
27297 {
27298 PyThreadState* __tstate = wxPyBeginAllowThreads();
27299 (arg1)->SetData(arg2);
27300 wxPyEndAllowThreads(__tstate);
27301 if (PyErr_Occurred()) SWIG_fail;
27302 }
27303 resultobj = SWIG_Py_Void();
27304 return resultobj;
27305 fail:
27306 return NULL;
27307 }
27308
27309
27310 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27311 PyObject *resultobj = 0;
27312 wxListItem *arg1 = (wxListItem *) 0 ;
27313 int arg2 ;
27314 void *argp1 = 0 ;
27315 int res1 = 0 ;
27316 int val2 ;
27317 int ecode2 = 0 ;
27318 PyObject * obj0 = 0 ;
27319 PyObject * obj1 = 0 ;
27320 char * kwnames[] = {
27321 (char *) "self",(char *) "width", NULL
27322 };
27323
27324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
27325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27326 if (!SWIG_IsOK(res1)) {
27327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27328 }
27329 arg1 = reinterpret_cast< wxListItem * >(argp1);
27330 ecode2 = SWIG_AsVal_int(obj1, &val2);
27331 if (!SWIG_IsOK(ecode2)) {
27332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
27333 }
27334 arg2 = static_cast< int >(val2);
27335 {
27336 PyThreadState* __tstate = wxPyBeginAllowThreads();
27337 (arg1)->SetWidth(arg2);
27338 wxPyEndAllowThreads(__tstate);
27339 if (PyErr_Occurred()) SWIG_fail;
27340 }
27341 resultobj = SWIG_Py_Void();
27342 return resultobj;
27343 fail:
27344 return NULL;
27345 }
27346
27347
27348 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27349 PyObject *resultobj = 0;
27350 wxListItem *arg1 = (wxListItem *) 0 ;
27351 wxListColumnFormat arg2 ;
27352 void *argp1 = 0 ;
27353 int res1 = 0 ;
27354 int val2 ;
27355 int ecode2 = 0 ;
27356 PyObject * obj0 = 0 ;
27357 PyObject * obj1 = 0 ;
27358 char * kwnames[] = {
27359 (char *) "self",(char *) "align", NULL
27360 };
27361
27362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
27363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27364 if (!SWIG_IsOK(res1)) {
27365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27366 }
27367 arg1 = reinterpret_cast< wxListItem * >(argp1);
27368 ecode2 = SWIG_AsVal_int(obj1, &val2);
27369 if (!SWIG_IsOK(ecode2)) {
27370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
27371 }
27372 arg2 = static_cast< wxListColumnFormat >(val2);
27373 {
27374 PyThreadState* __tstate = wxPyBeginAllowThreads();
27375 (arg1)->SetAlign(arg2);
27376 wxPyEndAllowThreads(__tstate);
27377 if (PyErr_Occurred()) SWIG_fail;
27378 }
27379 resultobj = SWIG_Py_Void();
27380 return resultobj;
27381 fail:
27382 return NULL;
27383 }
27384
27385
27386 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27387 PyObject *resultobj = 0;
27388 wxListItem *arg1 = (wxListItem *) 0 ;
27389 wxColour *arg2 = 0 ;
27390 void *argp1 = 0 ;
27391 int res1 = 0 ;
27392 wxColour temp2 ;
27393 PyObject * obj0 = 0 ;
27394 PyObject * obj1 = 0 ;
27395 char * kwnames[] = {
27396 (char *) "self",(char *) "colText", NULL
27397 };
27398
27399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
27400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27401 if (!SWIG_IsOK(res1)) {
27402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27403 }
27404 arg1 = reinterpret_cast< wxListItem * >(argp1);
27405 {
27406 arg2 = &temp2;
27407 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27408 }
27409 {
27410 PyThreadState* __tstate = wxPyBeginAllowThreads();
27411 (arg1)->SetTextColour((wxColour const &)*arg2);
27412 wxPyEndAllowThreads(__tstate);
27413 if (PyErr_Occurred()) SWIG_fail;
27414 }
27415 resultobj = SWIG_Py_Void();
27416 return resultobj;
27417 fail:
27418 return NULL;
27419 }
27420
27421
27422 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27423 PyObject *resultobj = 0;
27424 wxListItem *arg1 = (wxListItem *) 0 ;
27425 wxColour *arg2 = 0 ;
27426 void *argp1 = 0 ;
27427 int res1 = 0 ;
27428 wxColour temp2 ;
27429 PyObject * obj0 = 0 ;
27430 PyObject * obj1 = 0 ;
27431 char * kwnames[] = {
27432 (char *) "self",(char *) "colBack", NULL
27433 };
27434
27435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
27436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27437 if (!SWIG_IsOK(res1)) {
27438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
27439 }
27440 arg1 = reinterpret_cast< wxListItem * >(argp1);
27441 {
27442 arg2 = &temp2;
27443 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27444 }
27445 {
27446 PyThreadState* __tstate = wxPyBeginAllowThreads();
27447 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
27448 wxPyEndAllowThreads(__tstate);
27449 if (PyErr_Occurred()) SWIG_fail;
27450 }
27451 resultobj = SWIG_Py_Void();
27452 return resultobj;
27453 fail:
27454 return NULL;
27455 }
27456
27457
27458 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27459 PyObject *resultobj = 0;
27460 wxListItem *arg1 = (wxListItem *) 0 ;
27461 wxFont *arg2 = 0 ;
27462 void *argp1 = 0 ;
27463 int res1 = 0 ;
27464 void *argp2 = 0 ;
27465 int res2 = 0 ;
27466 PyObject * obj0 = 0 ;
27467 PyObject * obj1 = 0 ;
27468 char * kwnames[] = {
27469 (char *) "self",(char *) "font", NULL
27470 };
27471
27472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27474 if (!SWIG_IsOK(res1)) {
27475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27476 }
27477 arg1 = reinterpret_cast< wxListItem * >(argp1);
27478 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27479 if (!SWIG_IsOK(res2)) {
27480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27481 }
27482 if (!argp2) {
27483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27484 }
27485 arg2 = reinterpret_cast< wxFont * >(argp2);
27486 {
27487 PyThreadState* __tstate = wxPyBeginAllowThreads();
27488 (arg1)->SetFont((wxFont const &)*arg2);
27489 wxPyEndAllowThreads(__tstate);
27490 if (PyErr_Occurred()) SWIG_fail;
27491 }
27492 resultobj = SWIG_Py_Void();
27493 return resultobj;
27494 fail:
27495 return NULL;
27496 }
27497
27498
27499 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27500 PyObject *resultobj = 0;
27501 wxListItem *arg1 = (wxListItem *) 0 ;
27502 long result;
27503 void *argp1 = 0 ;
27504 int res1 = 0 ;
27505 PyObject *swig_obj[1] ;
27506
27507 if (!args) SWIG_fail;
27508 swig_obj[0] = args;
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_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27512 }
27513 arg1 = reinterpret_cast< wxListItem * >(argp1);
27514 {
27515 PyThreadState* __tstate = wxPyBeginAllowThreads();
27516 result = (long)(arg1)->GetMask();
27517 wxPyEndAllowThreads(__tstate);
27518 if (PyErr_Occurred()) SWIG_fail;
27519 }
27520 resultobj = SWIG_From_long(static_cast< long >(result));
27521 return resultobj;
27522 fail:
27523 return NULL;
27524 }
27525
27526
27527 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27528 PyObject *resultobj = 0;
27529 wxListItem *arg1 = (wxListItem *) 0 ;
27530 long result;
27531 void *argp1 = 0 ;
27532 int res1 = 0 ;
27533 PyObject *swig_obj[1] ;
27534
27535 if (!args) SWIG_fail;
27536 swig_obj[0] = args;
27537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27538 if (!SWIG_IsOK(res1)) {
27539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27540 }
27541 arg1 = reinterpret_cast< wxListItem * >(argp1);
27542 {
27543 PyThreadState* __tstate = wxPyBeginAllowThreads();
27544 result = (long)(arg1)->GetId();
27545 wxPyEndAllowThreads(__tstate);
27546 if (PyErr_Occurred()) SWIG_fail;
27547 }
27548 resultobj = SWIG_From_long(static_cast< long >(result));
27549 return resultobj;
27550 fail:
27551 return NULL;
27552 }
27553
27554
27555 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27556 PyObject *resultobj = 0;
27557 wxListItem *arg1 = (wxListItem *) 0 ;
27558 int result;
27559 void *argp1 = 0 ;
27560 int res1 = 0 ;
27561 PyObject *swig_obj[1] ;
27562
27563 if (!args) SWIG_fail;
27564 swig_obj[0] = args;
27565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27566 if (!SWIG_IsOK(res1)) {
27567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27568 }
27569 arg1 = reinterpret_cast< wxListItem * >(argp1);
27570 {
27571 PyThreadState* __tstate = wxPyBeginAllowThreads();
27572 result = (int)(arg1)->GetColumn();
27573 wxPyEndAllowThreads(__tstate);
27574 if (PyErr_Occurred()) SWIG_fail;
27575 }
27576 resultobj = SWIG_From_int(static_cast< int >(result));
27577 return resultobj;
27578 fail:
27579 return NULL;
27580 }
27581
27582
27583 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27584 PyObject *resultobj = 0;
27585 wxListItem *arg1 = (wxListItem *) 0 ;
27586 long result;
27587 void *argp1 = 0 ;
27588 int res1 = 0 ;
27589 PyObject *swig_obj[1] ;
27590
27591 if (!args) SWIG_fail;
27592 swig_obj[0] = args;
27593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27594 if (!SWIG_IsOK(res1)) {
27595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27596 }
27597 arg1 = reinterpret_cast< wxListItem * >(argp1);
27598 {
27599 PyThreadState* __tstate = wxPyBeginAllowThreads();
27600 result = (long)(arg1)->GetState();
27601 wxPyEndAllowThreads(__tstate);
27602 if (PyErr_Occurred()) SWIG_fail;
27603 }
27604 resultobj = SWIG_From_long(static_cast< long >(result));
27605 return resultobj;
27606 fail:
27607 return NULL;
27608 }
27609
27610
27611 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27612 PyObject *resultobj = 0;
27613 wxListItem *arg1 = (wxListItem *) 0 ;
27614 wxString *result = 0 ;
27615 void *argp1 = 0 ;
27616 int res1 = 0 ;
27617 PyObject *swig_obj[1] ;
27618
27619 if (!args) SWIG_fail;
27620 swig_obj[0] = args;
27621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27622 if (!SWIG_IsOK(res1)) {
27623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27624 }
27625 arg1 = reinterpret_cast< wxListItem * >(argp1);
27626 {
27627 PyThreadState* __tstate = wxPyBeginAllowThreads();
27628 {
27629 wxString const &_result_ref = (arg1)->GetText();
27630 result = (wxString *) &_result_ref;
27631 }
27632 wxPyEndAllowThreads(__tstate);
27633 if (PyErr_Occurred()) SWIG_fail;
27634 }
27635 {
27636 #if wxUSE_UNICODE
27637 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27638 #else
27639 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27640 #endif
27641 }
27642 return resultobj;
27643 fail:
27644 return NULL;
27645 }
27646
27647
27648 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27649 PyObject *resultobj = 0;
27650 wxListItem *arg1 = (wxListItem *) 0 ;
27651 int result;
27652 void *argp1 = 0 ;
27653 int res1 = 0 ;
27654 PyObject *swig_obj[1] ;
27655
27656 if (!args) SWIG_fail;
27657 swig_obj[0] = args;
27658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27659 if (!SWIG_IsOK(res1)) {
27660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27661 }
27662 arg1 = reinterpret_cast< wxListItem * >(argp1);
27663 {
27664 PyThreadState* __tstate = wxPyBeginAllowThreads();
27665 result = (int)(arg1)->GetImage();
27666 wxPyEndAllowThreads(__tstate);
27667 if (PyErr_Occurred()) SWIG_fail;
27668 }
27669 resultobj = SWIG_From_int(static_cast< int >(result));
27670 return resultobj;
27671 fail:
27672 return NULL;
27673 }
27674
27675
27676 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27677 PyObject *resultobj = 0;
27678 wxListItem *arg1 = (wxListItem *) 0 ;
27679 long result;
27680 void *argp1 = 0 ;
27681 int res1 = 0 ;
27682 PyObject *swig_obj[1] ;
27683
27684 if (!args) SWIG_fail;
27685 swig_obj[0] = args;
27686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27687 if (!SWIG_IsOK(res1)) {
27688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27689 }
27690 arg1 = reinterpret_cast< wxListItem * >(argp1);
27691 {
27692 PyThreadState* __tstate = wxPyBeginAllowThreads();
27693 result = (long)(arg1)->GetData();
27694 wxPyEndAllowThreads(__tstate);
27695 if (PyErr_Occurred()) SWIG_fail;
27696 }
27697 resultobj = SWIG_From_long(static_cast< long >(result));
27698 return resultobj;
27699 fail:
27700 return NULL;
27701 }
27702
27703
27704 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27705 PyObject *resultobj = 0;
27706 wxListItem *arg1 = (wxListItem *) 0 ;
27707 int result;
27708 void *argp1 = 0 ;
27709 int res1 = 0 ;
27710 PyObject *swig_obj[1] ;
27711
27712 if (!args) SWIG_fail;
27713 swig_obj[0] = args;
27714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27715 if (!SWIG_IsOK(res1)) {
27716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27717 }
27718 arg1 = reinterpret_cast< wxListItem * >(argp1);
27719 {
27720 PyThreadState* __tstate = wxPyBeginAllowThreads();
27721 result = (int)(arg1)->GetWidth();
27722 wxPyEndAllowThreads(__tstate);
27723 if (PyErr_Occurred()) SWIG_fail;
27724 }
27725 resultobj = SWIG_From_int(static_cast< int >(result));
27726 return resultobj;
27727 fail:
27728 return NULL;
27729 }
27730
27731
27732 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27733 PyObject *resultobj = 0;
27734 wxListItem *arg1 = (wxListItem *) 0 ;
27735 wxListColumnFormat result;
27736 void *argp1 = 0 ;
27737 int res1 = 0 ;
27738 PyObject *swig_obj[1] ;
27739
27740 if (!args) SWIG_fail;
27741 swig_obj[0] = args;
27742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27743 if (!SWIG_IsOK(res1)) {
27744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27745 }
27746 arg1 = reinterpret_cast< wxListItem * >(argp1);
27747 {
27748 PyThreadState* __tstate = wxPyBeginAllowThreads();
27749 result = (wxListColumnFormat)(arg1)->GetAlign();
27750 wxPyEndAllowThreads(__tstate);
27751 if (PyErr_Occurred()) SWIG_fail;
27752 }
27753 resultobj = SWIG_From_int(static_cast< int >(result));
27754 return resultobj;
27755 fail:
27756 return NULL;
27757 }
27758
27759
27760 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27761 PyObject *resultobj = 0;
27762 wxListItem *arg1 = (wxListItem *) 0 ;
27763 wxListItemAttr *result = 0 ;
27764 void *argp1 = 0 ;
27765 int res1 = 0 ;
27766 PyObject *swig_obj[1] ;
27767
27768 if (!args) SWIG_fail;
27769 swig_obj[0] = args;
27770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27771 if (!SWIG_IsOK(res1)) {
27772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27773 }
27774 arg1 = reinterpret_cast< wxListItem * >(argp1);
27775 {
27776 PyThreadState* __tstate = wxPyBeginAllowThreads();
27777 result = (wxListItemAttr *)(arg1)->GetAttributes();
27778 wxPyEndAllowThreads(__tstate);
27779 if (PyErr_Occurred()) SWIG_fail;
27780 }
27781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27782 return resultobj;
27783 fail:
27784 return NULL;
27785 }
27786
27787
27788 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27789 PyObject *resultobj = 0;
27790 wxListItem *arg1 = (wxListItem *) 0 ;
27791 bool result;
27792 void *argp1 = 0 ;
27793 int res1 = 0 ;
27794 PyObject *swig_obj[1] ;
27795
27796 if (!args) SWIG_fail;
27797 swig_obj[0] = args;
27798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27799 if (!SWIG_IsOK(res1)) {
27800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27801 }
27802 arg1 = reinterpret_cast< wxListItem * >(argp1);
27803 {
27804 PyThreadState* __tstate = wxPyBeginAllowThreads();
27805 result = (bool)(arg1)->HasAttributes();
27806 wxPyEndAllowThreads(__tstate);
27807 if (PyErr_Occurred()) SWIG_fail;
27808 }
27809 {
27810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27811 }
27812 return resultobj;
27813 fail:
27814 return NULL;
27815 }
27816
27817
27818 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27819 PyObject *resultobj = 0;
27820 wxListItem *arg1 = (wxListItem *) 0 ;
27821 wxColour result;
27822 void *argp1 = 0 ;
27823 int res1 = 0 ;
27824 PyObject *swig_obj[1] ;
27825
27826 if (!args) SWIG_fail;
27827 swig_obj[0] = args;
27828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27829 if (!SWIG_IsOK(res1)) {
27830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27831 }
27832 arg1 = reinterpret_cast< wxListItem * >(argp1);
27833 {
27834 PyThreadState* __tstate = wxPyBeginAllowThreads();
27835 result = ((wxListItem const *)arg1)->GetTextColour();
27836 wxPyEndAllowThreads(__tstate);
27837 if (PyErr_Occurred()) SWIG_fail;
27838 }
27839 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27840 return resultobj;
27841 fail:
27842 return NULL;
27843 }
27844
27845
27846 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27847 PyObject *resultobj = 0;
27848 wxListItem *arg1 = (wxListItem *) 0 ;
27849 wxColour result;
27850 void *argp1 = 0 ;
27851 int res1 = 0 ;
27852 PyObject *swig_obj[1] ;
27853
27854 if (!args) SWIG_fail;
27855 swig_obj[0] = args;
27856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27857 if (!SWIG_IsOK(res1)) {
27858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27859 }
27860 arg1 = reinterpret_cast< wxListItem * >(argp1);
27861 {
27862 PyThreadState* __tstate = wxPyBeginAllowThreads();
27863 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27864 wxPyEndAllowThreads(__tstate);
27865 if (PyErr_Occurred()) SWIG_fail;
27866 }
27867 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27868 return resultobj;
27869 fail:
27870 return NULL;
27871 }
27872
27873
27874 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27875 PyObject *resultobj = 0;
27876 wxListItem *arg1 = (wxListItem *) 0 ;
27877 wxFont result;
27878 void *argp1 = 0 ;
27879 int res1 = 0 ;
27880 PyObject *swig_obj[1] ;
27881
27882 if (!args) SWIG_fail;
27883 swig_obj[0] = args;
27884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27885 if (!SWIG_IsOK(res1)) {
27886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27887 }
27888 arg1 = reinterpret_cast< wxListItem * >(argp1);
27889 {
27890 PyThreadState* __tstate = wxPyBeginAllowThreads();
27891 result = ((wxListItem const *)arg1)->GetFont();
27892 wxPyEndAllowThreads(__tstate);
27893 if (PyErr_Occurred()) SWIG_fail;
27894 }
27895 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27896 return resultobj;
27897 fail:
27898 return NULL;
27899 }
27900
27901
27902 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27903 PyObject *resultobj = 0;
27904 wxListItem *arg1 = (wxListItem *) 0 ;
27905 long arg2 ;
27906 void *argp1 = 0 ;
27907 int res1 = 0 ;
27908 long val2 ;
27909 int ecode2 = 0 ;
27910 PyObject *swig_obj[2] ;
27911
27912 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27914 if (!SWIG_IsOK(res1)) {
27915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27916 }
27917 arg1 = reinterpret_cast< wxListItem * >(argp1);
27918 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27919 if (!SWIG_IsOK(ecode2)) {
27920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27921 }
27922 arg2 = static_cast< long >(val2);
27923 if (arg1) (arg1)->m_mask = arg2;
27924
27925 resultobj = SWIG_Py_Void();
27926 return resultobj;
27927 fail:
27928 return NULL;
27929 }
27930
27931
27932 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27933 PyObject *resultobj = 0;
27934 wxListItem *arg1 = (wxListItem *) 0 ;
27935 long result;
27936 void *argp1 = 0 ;
27937 int res1 = 0 ;
27938 PyObject *swig_obj[1] ;
27939
27940 if (!args) SWIG_fail;
27941 swig_obj[0] = args;
27942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27943 if (!SWIG_IsOK(res1)) {
27944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27945 }
27946 arg1 = reinterpret_cast< wxListItem * >(argp1);
27947 result = (long) ((arg1)->m_mask);
27948 resultobj = SWIG_From_long(static_cast< long >(result));
27949 return resultobj;
27950 fail:
27951 return NULL;
27952 }
27953
27954
27955 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27956 PyObject *resultobj = 0;
27957 wxListItem *arg1 = (wxListItem *) 0 ;
27958 long arg2 ;
27959 void *argp1 = 0 ;
27960 int res1 = 0 ;
27961 long val2 ;
27962 int ecode2 = 0 ;
27963 PyObject *swig_obj[2] ;
27964
27965 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27967 if (!SWIG_IsOK(res1)) {
27968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27969 }
27970 arg1 = reinterpret_cast< wxListItem * >(argp1);
27971 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27972 if (!SWIG_IsOK(ecode2)) {
27973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27974 }
27975 arg2 = static_cast< long >(val2);
27976 if (arg1) (arg1)->m_itemId = arg2;
27977
27978 resultobj = SWIG_Py_Void();
27979 return resultobj;
27980 fail:
27981 return NULL;
27982 }
27983
27984
27985 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27986 PyObject *resultobj = 0;
27987 wxListItem *arg1 = (wxListItem *) 0 ;
27988 long result;
27989 void *argp1 = 0 ;
27990 int res1 = 0 ;
27991 PyObject *swig_obj[1] ;
27992
27993 if (!args) SWIG_fail;
27994 swig_obj[0] = args;
27995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27996 if (!SWIG_IsOK(res1)) {
27997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27998 }
27999 arg1 = reinterpret_cast< wxListItem * >(argp1);
28000 result = (long) ((arg1)->m_itemId);
28001 resultobj = SWIG_From_long(static_cast< long >(result));
28002 return resultobj;
28003 fail:
28004 return NULL;
28005 }
28006
28007
28008 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28009 PyObject *resultobj = 0;
28010 wxListItem *arg1 = (wxListItem *) 0 ;
28011 int arg2 ;
28012 void *argp1 = 0 ;
28013 int res1 = 0 ;
28014 int val2 ;
28015 int ecode2 = 0 ;
28016 PyObject *swig_obj[2] ;
28017
28018 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
28019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28020 if (!SWIG_IsOK(res1)) {
28021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28022 }
28023 arg1 = reinterpret_cast< wxListItem * >(argp1);
28024 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28025 if (!SWIG_IsOK(ecode2)) {
28026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
28027 }
28028 arg2 = static_cast< int >(val2);
28029 if (arg1) (arg1)->m_col = arg2;
28030
28031 resultobj = SWIG_Py_Void();
28032 return resultobj;
28033 fail:
28034 return NULL;
28035 }
28036
28037
28038 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28039 PyObject *resultobj = 0;
28040 wxListItem *arg1 = (wxListItem *) 0 ;
28041 int result;
28042 void *argp1 = 0 ;
28043 int res1 = 0 ;
28044 PyObject *swig_obj[1] ;
28045
28046 if (!args) SWIG_fail;
28047 swig_obj[0] = args;
28048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28049 if (!SWIG_IsOK(res1)) {
28050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28051 }
28052 arg1 = reinterpret_cast< wxListItem * >(argp1);
28053 result = (int) ((arg1)->m_col);
28054 resultobj = SWIG_From_int(static_cast< int >(result));
28055 return resultobj;
28056 fail:
28057 return NULL;
28058 }
28059
28060
28061 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28062 PyObject *resultobj = 0;
28063 wxListItem *arg1 = (wxListItem *) 0 ;
28064 long arg2 ;
28065 void *argp1 = 0 ;
28066 int res1 = 0 ;
28067 long val2 ;
28068 int ecode2 = 0 ;
28069 PyObject *swig_obj[2] ;
28070
28071 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
28072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28073 if (!SWIG_IsOK(res1)) {
28074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28075 }
28076 arg1 = reinterpret_cast< wxListItem * >(argp1);
28077 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28078 if (!SWIG_IsOK(ecode2)) {
28079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
28080 }
28081 arg2 = static_cast< long >(val2);
28082 if (arg1) (arg1)->m_state = arg2;
28083
28084 resultobj = SWIG_Py_Void();
28085 return resultobj;
28086 fail:
28087 return NULL;
28088 }
28089
28090
28091 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28092 PyObject *resultobj = 0;
28093 wxListItem *arg1 = (wxListItem *) 0 ;
28094 long result;
28095 void *argp1 = 0 ;
28096 int res1 = 0 ;
28097 PyObject *swig_obj[1] ;
28098
28099 if (!args) SWIG_fail;
28100 swig_obj[0] = args;
28101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28102 if (!SWIG_IsOK(res1)) {
28103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28104 }
28105 arg1 = reinterpret_cast< wxListItem * >(argp1);
28106 result = (long) ((arg1)->m_state);
28107 resultobj = SWIG_From_long(static_cast< long >(result));
28108 return resultobj;
28109 fail:
28110 return NULL;
28111 }
28112
28113
28114 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28115 PyObject *resultobj = 0;
28116 wxListItem *arg1 = (wxListItem *) 0 ;
28117 long arg2 ;
28118 void *argp1 = 0 ;
28119 int res1 = 0 ;
28120 long val2 ;
28121 int ecode2 = 0 ;
28122 PyObject *swig_obj[2] ;
28123
28124 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
28125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28126 if (!SWIG_IsOK(res1)) {
28127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28128 }
28129 arg1 = reinterpret_cast< wxListItem * >(argp1);
28130 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28131 if (!SWIG_IsOK(ecode2)) {
28132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
28133 }
28134 arg2 = static_cast< long >(val2);
28135 if (arg1) (arg1)->m_stateMask = arg2;
28136
28137 resultobj = SWIG_Py_Void();
28138 return resultobj;
28139 fail:
28140 return NULL;
28141 }
28142
28143
28144 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28145 PyObject *resultobj = 0;
28146 wxListItem *arg1 = (wxListItem *) 0 ;
28147 long result;
28148 void *argp1 = 0 ;
28149 int res1 = 0 ;
28150 PyObject *swig_obj[1] ;
28151
28152 if (!args) SWIG_fail;
28153 swig_obj[0] = args;
28154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28155 if (!SWIG_IsOK(res1)) {
28156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28157 }
28158 arg1 = reinterpret_cast< wxListItem * >(argp1);
28159 result = (long) ((arg1)->m_stateMask);
28160 resultobj = SWIG_From_long(static_cast< long >(result));
28161 return resultobj;
28162 fail:
28163 return NULL;
28164 }
28165
28166
28167 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28168 PyObject *resultobj = 0;
28169 wxListItem *arg1 = (wxListItem *) 0 ;
28170 wxString *arg2 = (wxString *) 0 ;
28171 void *argp1 = 0 ;
28172 int res1 = 0 ;
28173 bool temp2 = false ;
28174 PyObject *swig_obj[2] ;
28175
28176 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
28177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28178 if (!SWIG_IsOK(res1)) {
28179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28180 }
28181 arg1 = reinterpret_cast< wxListItem * >(argp1);
28182 {
28183 arg2 = wxString_in_helper(swig_obj[1]);
28184 if (arg2 == NULL) SWIG_fail;
28185 temp2 = true;
28186 }
28187 if (arg1) (arg1)->m_text = *arg2;
28188
28189 resultobj = SWIG_Py_Void();
28190 {
28191 if (temp2)
28192 delete arg2;
28193 }
28194 return resultobj;
28195 fail:
28196 {
28197 if (temp2)
28198 delete arg2;
28199 }
28200 return NULL;
28201 }
28202
28203
28204 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28205 PyObject *resultobj = 0;
28206 wxListItem *arg1 = (wxListItem *) 0 ;
28207 wxString *result = 0 ;
28208 void *argp1 = 0 ;
28209 int res1 = 0 ;
28210 PyObject *swig_obj[1] ;
28211
28212 if (!args) SWIG_fail;
28213 swig_obj[0] = args;
28214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28215 if (!SWIG_IsOK(res1)) {
28216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28217 }
28218 arg1 = reinterpret_cast< wxListItem * >(argp1);
28219 result = (wxString *)& ((arg1)->m_text);
28220 {
28221 #if wxUSE_UNICODE
28222 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28223 #else
28224 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28225 #endif
28226 }
28227 return resultobj;
28228 fail:
28229 return NULL;
28230 }
28231
28232
28233 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28234 PyObject *resultobj = 0;
28235 wxListItem *arg1 = (wxListItem *) 0 ;
28236 int arg2 ;
28237 void *argp1 = 0 ;
28238 int res1 = 0 ;
28239 int val2 ;
28240 int ecode2 = 0 ;
28241 PyObject *swig_obj[2] ;
28242
28243 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
28244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28245 if (!SWIG_IsOK(res1)) {
28246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28247 }
28248 arg1 = reinterpret_cast< wxListItem * >(argp1);
28249 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28250 if (!SWIG_IsOK(ecode2)) {
28251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
28252 }
28253 arg2 = static_cast< int >(val2);
28254 if (arg1) (arg1)->m_image = arg2;
28255
28256 resultobj = SWIG_Py_Void();
28257 return resultobj;
28258 fail:
28259 return NULL;
28260 }
28261
28262
28263 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28264 PyObject *resultobj = 0;
28265 wxListItem *arg1 = (wxListItem *) 0 ;
28266 int result;
28267 void *argp1 = 0 ;
28268 int res1 = 0 ;
28269 PyObject *swig_obj[1] ;
28270
28271 if (!args) SWIG_fail;
28272 swig_obj[0] = args;
28273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28274 if (!SWIG_IsOK(res1)) {
28275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28276 }
28277 arg1 = reinterpret_cast< wxListItem * >(argp1);
28278 result = (int) ((arg1)->m_image);
28279 resultobj = SWIG_From_int(static_cast< int >(result));
28280 return resultobj;
28281 fail:
28282 return NULL;
28283 }
28284
28285
28286 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28287 PyObject *resultobj = 0;
28288 wxListItem *arg1 = (wxListItem *) 0 ;
28289 long arg2 ;
28290 void *argp1 = 0 ;
28291 int res1 = 0 ;
28292 long val2 ;
28293 int ecode2 = 0 ;
28294 PyObject *swig_obj[2] ;
28295
28296 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
28297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28298 if (!SWIG_IsOK(res1)) {
28299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28300 }
28301 arg1 = reinterpret_cast< wxListItem * >(argp1);
28302 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28303 if (!SWIG_IsOK(ecode2)) {
28304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
28305 }
28306 arg2 = static_cast< long >(val2);
28307 if (arg1) (arg1)->m_data = arg2;
28308
28309 resultobj = SWIG_Py_Void();
28310 return resultobj;
28311 fail:
28312 return NULL;
28313 }
28314
28315
28316 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28317 PyObject *resultobj = 0;
28318 wxListItem *arg1 = (wxListItem *) 0 ;
28319 long result;
28320 void *argp1 = 0 ;
28321 int res1 = 0 ;
28322 PyObject *swig_obj[1] ;
28323
28324 if (!args) SWIG_fail;
28325 swig_obj[0] = args;
28326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28327 if (!SWIG_IsOK(res1)) {
28328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28329 }
28330 arg1 = reinterpret_cast< wxListItem * >(argp1);
28331 result = (long) ((arg1)->m_data);
28332 resultobj = SWIG_From_long(static_cast< long >(result));
28333 return resultobj;
28334 fail:
28335 return NULL;
28336 }
28337
28338
28339 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28340 PyObject *resultobj = 0;
28341 wxListItem *arg1 = (wxListItem *) 0 ;
28342 int arg2 ;
28343 void *argp1 = 0 ;
28344 int res1 = 0 ;
28345 int val2 ;
28346 int ecode2 = 0 ;
28347 PyObject *swig_obj[2] ;
28348
28349 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
28350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28351 if (!SWIG_IsOK(res1)) {
28352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28353 }
28354 arg1 = reinterpret_cast< wxListItem * >(argp1);
28355 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28356 if (!SWIG_IsOK(ecode2)) {
28357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
28358 }
28359 arg2 = static_cast< int >(val2);
28360 if (arg1) (arg1)->m_format = arg2;
28361
28362 resultobj = SWIG_Py_Void();
28363 return resultobj;
28364 fail:
28365 return NULL;
28366 }
28367
28368
28369 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28370 PyObject *resultobj = 0;
28371 wxListItem *arg1 = (wxListItem *) 0 ;
28372 int result;
28373 void *argp1 = 0 ;
28374 int res1 = 0 ;
28375 PyObject *swig_obj[1] ;
28376
28377 if (!args) SWIG_fail;
28378 swig_obj[0] = args;
28379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28380 if (!SWIG_IsOK(res1)) {
28381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28382 }
28383 arg1 = reinterpret_cast< wxListItem * >(argp1);
28384 result = (int) ((arg1)->m_format);
28385 resultobj = SWIG_From_int(static_cast< int >(result));
28386 return resultobj;
28387 fail:
28388 return NULL;
28389 }
28390
28391
28392 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28393 PyObject *resultobj = 0;
28394 wxListItem *arg1 = (wxListItem *) 0 ;
28395 int arg2 ;
28396 void *argp1 = 0 ;
28397 int res1 = 0 ;
28398 int val2 ;
28399 int ecode2 = 0 ;
28400 PyObject *swig_obj[2] ;
28401
28402 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
28403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28404 if (!SWIG_IsOK(res1)) {
28405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
28406 }
28407 arg1 = reinterpret_cast< wxListItem * >(argp1);
28408 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28409 if (!SWIG_IsOK(ecode2)) {
28410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
28411 }
28412 arg2 = static_cast< int >(val2);
28413 if (arg1) (arg1)->m_width = arg2;
28414
28415 resultobj = SWIG_Py_Void();
28416 return resultobj;
28417 fail:
28418 return NULL;
28419 }
28420
28421
28422 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28423 PyObject *resultobj = 0;
28424 wxListItem *arg1 = (wxListItem *) 0 ;
28425 int result;
28426 void *argp1 = 0 ;
28427 int res1 = 0 ;
28428 PyObject *swig_obj[1] ;
28429
28430 if (!args) SWIG_fail;
28431 swig_obj[0] = args;
28432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
28433 if (!SWIG_IsOK(res1)) {
28434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
28435 }
28436 arg1 = reinterpret_cast< wxListItem * >(argp1);
28437 result = (int) ((arg1)->m_width);
28438 resultobj = SWIG_From_int(static_cast< int >(result));
28439 return resultobj;
28440 fail:
28441 return NULL;
28442 }
28443
28444
28445 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28446 PyObject *obj;
28447 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28448 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
28449 return SWIG_Py_Void();
28450 }
28451
28452 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28453 return SWIG_Python_InitShadowInstance(args);
28454 }
28455
28456 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28457 PyObject *resultobj = 0;
28458 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
28459 int arg2 = (int) 0 ;
28460 wxListEvent *result = 0 ;
28461 int val1 ;
28462 int ecode1 = 0 ;
28463 int val2 ;
28464 int ecode2 = 0 ;
28465 PyObject * obj0 = 0 ;
28466 PyObject * obj1 = 0 ;
28467 char * kwnames[] = {
28468 (char *) "commandType",(char *) "id", NULL
28469 };
28470
28471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
28472 if (obj0) {
28473 ecode1 = SWIG_AsVal_int(obj0, &val1);
28474 if (!SWIG_IsOK(ecode1)) {
28475 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28476 }
28477 arg1 = static_cast< wxEventType >(val1);
28478 }
28479 if (obj1) {
28480 ecode2 = SWIG_AsVal_int(obj1, &val2);
28481 if (!SWIG_IsOK(ecode2)) {
28482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28483 }
28484 arg2 = static_cast< int >(val2);
28485 }
28486 {
28487 PyThreadState* __tstate = wxPyBeginAllowThreads();
28488 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28489 wxPyEndAllowThreads(__tstate);
28490 if (PyErr_Occurred()) SWIG_fail;
28491 }
28492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28493 return resultobj;
28494 fail:
28495 return NULL;
28496 }
28497
28498
28499 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28500 PyObject *resultobj = 0;
28501 wxListEvent *arg1 = (wxListEvent *) 0 ;
28502 int arg2 ;
28503 void *argp1 = 0 ;
28504 int res1 = 0 ;
28505 int val2 ;
28506 int ecode2 = 0 ;
28507 PyObject *swig_obj[2] ;
28508
28509 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28511 if (!SWIG_IsOK(res1)) {
28512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28513 }
28514 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28515 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28516 if (!SWIG_IsOK(ecode2)) {
28517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28518 }
28519 arg2 = static_cast< int >(val2);
28520 if (arg1) (arg1)->m_code = arg2;
28521
28522 resultobj = SWIG_Py_Void();
28523 return resultobj;
28524 fail:
28525 return NULL;
28526 }
28527
28528
28529 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28530 PyObject *resultobj = 0;
28531 wxListEvent *arg1 = (wxListEvent *) 0 ;
28532 int result;
28533 void *argp1 = 0 ;
28534 int res1 = 0 ;
28535 PyObject *swig_obj[1] ;
28536
28537 if (!args) SWIG_fail;
28538 swig_obj[0] = args;
28539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28540 if (!SWIG_IsOK(res1)) {
28541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28542 }
28543 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28544 result = (int) ((arg1)->m_code);
28545 resultobj = SWIG_From_int(static_cast< int >(result));
28546 return resultobj;
28547 fail:
28548 return NULL;
28549 }
28550
28551
28552 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28553 PyObject *resultobj = 0;
28554 wxListEvent *arg1 = (wxListEvent *) 0 ;
28555 long arg2 ;
28556 void *argp1 = 0 ;
28557 int res1 = 0 ;
28558 long val2 ;
28559 int ecode2 = 0 ;
28560 PyObject *swig_obj[2] ;
28561
28562 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28564 if (!SWIG_IsOK(res1)) {
28565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28566 }
28567 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28568 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28569 if (!SWIG_IsOK(ecode2)) {
28570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28571 }
28572 arg2 = static_cast< long >(val2);
28573 if (arg1) (arg1)->m_oldItemIndex = arg2;
28574
28575 resultobj = SWIG_Py_Void();
28576 return resultobj;
28577 fail:
28578 return NULL;
28579 }
28580
28581
28582 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28583 PyObject *resultobj = 0;
28584 wxListEvent *arg1 = (wxListEvent *) 0 ;
28585 long result;
28586 void *argp1 = 0 ;
28587 int res1 = 0 ;
28588 PyObject *swig_obj[1] ;
28589
28590 if (!args) SWIG_fail;
28591 swig_obj[0] = args;
28592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28593 if (!SWIG_IsOK(res1)) {
28594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28595 }
28596 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28597 result = (long) ((arg1)->m_oldItemIndex);
28598 resultobj = SWIG_From_long(static_cast< long >(result));
28599 return resultobj;
28600 fail:
28601 return NULL;
28602 }
28603
28604
28605 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28606 PyObject *resultobj = 0;
28607 wxListEvent *arg1 = (wxListEvent *) 0 ;
28608 long arg2 ;
28609 void *argp1 = 0 ;
28610 int res1 = 0 ;
28611 long val2 ;
28612 int ecode2 = 0 ;
28613 PyObject *swig_obj[2] ;
28614
28615 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28617 if (!SWIG_IsOK(res1)) {
28618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28619 }
28620 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28621 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28622 if (!SWIG_IsOK(ecode2)) {
28623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28624 }
28625 arg2 = static_cast< long >(val2);
28626 if (arg1) (arg1)->m_itemIndex = arg2;
28627
28628 resultobj = SWIG_Py_Void();
28629 return resultobj;
28630 fail:
28631 return NULL;
28632 }
28633
28634
28635 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28636 PyObject *resultobj = 0;
28637 wxListEvent *arg1 = (wxListEvent *) 0 ;
28638 long result;
28639 void *argp1 = 0 ;
28640 int res1 = 0 ;
28641 PyObject *swig_obj[1] ;
28642
28643 if (!args) SWIG_fail;
28644 swig_obj[0] = args;
28645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28646 if (!SWIG_IsOK(res1)) {
28647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28648 }
28649 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28650 result = (long) ((arg1)->m_itemIndex);
28651 resultobj = SWIG_From_long(static_cast< long >(result));
28652 return resultobj;
28653 fail:
28654 return NULL;
28655 }
28656
28657
28658 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28659 PyObject *resultobj = 0;
28660 wxListEvent *arg1 = (wxListEvent *) 0 ;
28661 int arg2 ;
28662 void *argp1 = 0 ;
28663 int res1 = 0 ;
28664 int val2 ;
28665 int ecode2 = 0 ;
28666 PyObject *swig_obj[2] ;
28667
28668 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28670 if (!SWIG_IsOK(res1)) {
28671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28672 }
28673 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28674 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28675 if (!SWIG_IsOK(ecode2)) {
28676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28677 }
28678 arg2 = static_cast< int >(val2);
28679 if (arg1) (arg1)->m_col = arg2;
28680
28681 resultobj = SWIG_Py_Void();
28682 return resultobj;
28683 fail:
28684 return NULL;
28685 }
28686
28687
28688 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28689 PyObject *resultobj = 0;
28690 wxListEvent *arg1 = (wxListEvent *) 0 ;
28691 int result;
28692 void *argp1 = 0 ;
28693 int res1 = 0 ;
28694 PyObject *swig_obj[1] ;
28695
28696 if (!args) SWIG_fail;
28697 swig_obj[0] = args;
28698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28699 if (!SWIG_IsOK(res1)) {
28700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28701 }
28702 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28703 result = (int) ((arg1)->m_col);
28704 resultobj = SWIG_From_int(static_cast< int >(result));
28705 return resultobj;
28706 fail:
28707 return NULL;
28708 }
28709
28710
28711 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28712 PyObject *resultobj = 0;
28713 wxListEvent *arg1 = (wxListEvent *) 0 ;
28714 wxPoint *arg2 = (wxPoint *) 0 ;
28715 void *argp1 = 0 ;
28716 int res1 = 0 ;
28717 void *argp2 = 0 ;
28718 int res2 = 0 ;
28719 PyObject *swig_obj[2] ;
28720
28721 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28723 if (!SWIG_IsOK(res1)) {
28724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28725 }
28726 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28727 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28728 if (!SWIG_IsOK(res2)) {
28729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28730 }
28731 arg2 = reinterpret_cast< wxPoint * >(argp2);
28732 if (arg1) (arg1)->m_pointDrag = *arg2;
28733
28734 resultobj = SWIG_Py_Void();
28735 return resultobj;
28736 fail:
28737 return NULL;
28738 }
28739
28740
28741 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28742 PyObject *resultobj = 0;
28743 wxListEvent *arg1 = (wxListEvent *) 0 ;
28744 wxPoint *result = 0 ;
28745 void *argp1 = 0 ;
28746 int res1 = 0 ;
28747 PyObject *swig_obj[1] ;
28748
28749 if (!args) SWIG_fail;
28750 swig_obj[0] = args;
28751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28752 if (!SWIG_IsOK(res1)) {
28753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28754 }
28755 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28756 result = (wxPoint *)& ((arg1)->m_pointDrag);
28757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28758 return resultobj;
28759 fail:
28760 return NULL;
28761 }
28762
28763
28764 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28765 PyObject *resultobj = 0;
28766 wxListEvent *arg1 = (wxListEvent *) 0 ;
28767 wxListItem *result = 0 ;
28768 void *argp1 = 0 ;
28769 int res1 = 0 ;
28770 PyObject *swig_obj[1] ;
28771
28772 if (!args) SWIG_fail;
28773 swig_obj[0] = args;
28774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28775 if (!SWIG_IsOK(res1)) {
28776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28777 }
28778 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28779 result = (wxListItem *)& ((arg1)->m_item);
28780 {
28781 resultobj = wxPyMake_wxObject(result, 0);
28782 }
28783 return resultobj;
28784 fail:
28785 return NULL;
28786 }
28787
28788
28789 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28790 PyObject *resultobj = 0;
28791 wxListEvent *arg1 = (wxListEvent *) 0 ;
28792 int result;
28793 void *argp1 = 0 ;
28794 int res1 = 0 ;
28795 PyObject *swig_obj[1] ;
28796
28797 if (!args) SWIG_fail;
28798 swig_obj[0] = args;
28799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28800 if (!SWIG_IsOK(res1)) {
28801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28802 }
28803 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28804 {
28805 PyThreadState* __tstate = wxPyBeginAllowThreads();
28806 result = (int)(arg1)->GetKeyCode();
28807 wxPyEndAllowThreads(__tstate);
28808 if (PyErr_Occurred()) SWIG_fail;
28809 }
28810 resultobj = SWIG_From_int(static_cast< int >(result));
28811 return resultobj;
28812 fail:
28813 return NULL;
28814 }
28815
28816
28817 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28818 PyObject *resultobj = 0;
28819 wxListEvent *arg1 = (wxListEvent *) 0 ;
28820 long result;
28821 void *argp1 = 0 ;
28822 int res1 = 0 ;
28823 PyObject *swig_obj[1] ;
28824
28825 if (!args) SWIG_fail;
28826 swig_obj[0] = args;
28827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28828 if (!SWIG_IsOK(res1)) {
28829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28830 }
28831 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28832 {
28833 PyThreadState* __tstate = wxPyBeginAllowThreads();
28834 result = (long)(arg1)->GetIndex();
28835 wxPyEndAllowThreads(__tstate);
28836 if (PyErr_Occurred()) SWIG_fail;
28837 }
28838 resultobj = SWIG_From_long(static_cast< long >(result));
28839 return resultobj;
28840 fail:
28841 return NULL;
28842 }
28843
28844
28845 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28846 PyObject *resultobj = 0;
28847 wxListEvent *arg1 = (wxListEvent *) 0 ;
28848 int result;
28849 void *argp1 = 0 ;
28850 int res1 = 0 ;
28851 PyObject *swig_obj[1] ;
28852
28853 if (!args) SWIG_fail;
28854 swig_obj[0] = args;
28855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28856 if (!SWIG_IsOK(res1)) {
28857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28858 }
28859 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28860 {
28861 PyThreadState* __tstate = wxPyBeginAllowThreads();
28862 result = (int)(arg1)->GetColumn();
28863 wxPyEndAllowThreads(__tstate);
28864 if (PyErr_Occurred()) SWIG_fail;
28865 }
28866 resultobj = SWIG_From_int(static_cast< int >(result));
28867 return resultobj;
28868 fail:
28869 return NULL;
28870 }
28871
28872
28873 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28874 PyObject *resultobj = 0;
28875 wxListEvent *arg1 = (wxListEvent *) 0 ;
28876 wxPoint result;
28877 void *argp1 = 0 ;
28878 int res1 = 0 ;
28879 PyObject *swig_obj[1] ;
28880
28881 if (!args) SWIG_fail;
28882 swig_obj[0] = args;
28883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28884 if (!SWIG_IsOK(res1)) {
28885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28886 }
28887 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28888 {
28889 PyThreadState* __tstate = wxPyBeginAllowThreads();
28890 result = (arg1)->GetPoint();
28891 wxPyEndAllowThreads(__tstate);
28892 if (PyErr_Occurred()) SWIG_fail;
28893 }
28894 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28895 return resultobj;
28896 fail:
28897 return NULL;
28898 }
28899
28900
28901 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28902 PyObject *resultobj = 0;
28903 wxListEvent *arg1 = (wxListEvent *) 0 ;
28904 wxString *result = 0 ;
28905 void *argp1 = 0 ;
28906 int res1 = 0 ;
28907 PyObject *swig_obj[1] ;
28908
28909 if (!args) SWIG_fail;
28910 swig_obj[0] = args;
28911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28912 if (!SWIG_IsOK(res1)) {
28913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28914 }
28915 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28916 {
28917 PyThreadState* __tstate = wxPyBeginAllowThreads();
28918 {
28919 wxString const &_result_ref = (arg1)->GetLabel();
28920 result = (wxString *) &_result_ref;
28921 }
28922 wxPyEndAllowThreads(__tstate);
28923 if (PyErr_Occurred()) SWIG_fail;
28924 }
28925 {
28926 #if wxUSE_UNICODE
28927 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28928 #else
28929 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28930 #endif
28931 }
28932 return resultobj;
28933 fail:
28934 return NULL;
28935 }
28936
28937
28938 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28939 PyObject *resultobj = 0;
28940 wxListEvent *arg1 = (wxListEvent *) 0 ;
28941 wxString *result = 0 ;
28942 void *argp1 = 0 ;
28943 int res1 = 0 ;
28944 PyObject *swig_obj[1] ;
28945
28946 if (!args) SWIG_fail;
28947 swig_obj[0] = args;
28948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28949 if (!SWIG_IsOK(res1)) {
28950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28951 }
28952 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28953 {
28954 PyThreadState* __tstate = wxPyBeginAllowThreads();
28955 {
28956 wxString const &_result_ref = (arg1)->GetText();
28957 result = (wxString *) &_result_ref;
28958 }
28959 wxPyEndAllowThreads(__tstate);
28960 if (PyErr_Occurred()) SWIG_fail;
28961 }
28962 {
28963 #if wxUSE_UNICODE
28964 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28965 #else
28966 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28967 #endif
28968 }
28969 return resultobj;
28970 fail:
28971 return NULL;
28972 }
28973
28974
28975 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28976 PyObject *resultobj = 0;
28977 wxListEvent *arg1 = (wxListEvent *) 0 ;
28978 int result;
28979 void *argp1 = 0 ;
28980 int res1 = 0 ;
28981 PyObject *swig_obj[1] ;
28982
28983 if (!args) SWIG_fail;
28984 swig_obj[0] = args;
28985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28986 if (!SWIG_IsOK(res1)) {
28987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28988 }
28989 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28990 {
28991 PyThreadState* __tstate = wxPyBeginAllowThreads();
28992 result = (int)(arg1)->GetImage();
28993 wxPyEndAllowThreads(__tstate);
28994 if (PyErr_Occurred()) SWIG_fail;
28995 }
28996 resultobj = SWIG_From_int(static_cast< int >(result));
28997 return resultobj;
28998 fail:
28999 return NULL;
29000 }
29001
29002
29003 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29004 PyObject *resultobj = 0;
29005 wxListEvent *arg1 = (wxListEvent *) 0 ;
29006 long result;
29007 void *argp1 = 0 ;
29008 int res1 = 0 ;
29009 PyObject *swig_obj[1] ;
29010
29011 if (!args) SWIG_fail;
29012 swig_obj[0] = args;
29013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29014 if (!SWIG_IsOK(res1)) {
29015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
29016 }
29017 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29018 {
29019 PyThreadState* __tstate = wxPyBeginAllowThreads();
29020 result = (long)(arg1)->GetData();
29021 wxPyEndAllowThreads(__tstate);
29022 if (PyErr_Occurred()) SWIG_fail;
29023 }
29024 resultobj = SWIG_From_long(static_cast< long >(result));
29025 return resultobj;
29026 fail:
29027 return NULL;
29028 }
29029
29030
29031 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29032 PyObject *resultobj = 0;
29033 wxListEvent *arg1 = (wxListEvent *) 0 ;
29034 long result;
29035 void *argp1 = 0 ;
29036 int res1 = 0 ;
29037 PyObject *swig_obj[1] ;
29038
29039 if (!args) SWIG_fail;
29040 swig_obj[0] = args;
29041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29042 if (!SWIG_IsOK(res1)) {
29043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
29044 }
29045 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29046 {
29047 PyThreadState* __tstate = wxPyBeginAllowThreads();
29048 result = (long)(arg1)->GetMask();
29049 wxPyEndAllowThreads(__tstate);
29050 if (PyErr_Occurred()) SWIG_fail;
29051 }
29052 resultobj = SWIG_From_long(static_cast< long >(result));
29053 return resultobj;
29054 fail:
29055 return NULL;
29056 }
29057
29058
29059 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29060 PyObject *resultobj = 0;
29061 wxListEvent *arg1 = (wxListEvent *) 0 ;
29062 wxListItem *result = 0 ;
29063 void *argp1 = 0 ;
29064 int res1 = 0 ;
29065 PyObject *swig_obj[1] ;
29066
29067 if (!args) SWIG_fail;
29068 swig_obj[0] = args;
29069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29070 if (!SWIG_IsOK(res1)) {
29071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
29072 }
29073 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29074 {
29075 PyThreadState* __tstate = wxPyBeginAllowThreads();
29076 {
29077 wxListItem const &_result_ref = (arg1)->GetItem();
29078 result = (wxListItem *) &_result_ref;
29079 }
29080 wxPyEndAllowThreads(__tstate);
29081 if (PyErr_Occurred()) SWIG_fail;
29082 }
29083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
29084 return resultobj;
29085 fail:
29086 return NULL;
29087 }
29088
29089
29090 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29091 PyObject *resultobj = 0;
29092 wxListEvent *arg1 = (wxListEvent *) 0 ;
29093 long result;
29094 void *argp1 = 0 ;
29095 int res1 = 0 ;
29096 PyObject *swig_obj[1] ;
29097
29098 if (!args) SWIG_fail;
29099 swig_obj[0] = args;
29100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29101 if (!SWIG_IsOK(res1)) {
29102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
29103 }
29104 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29105 {
29106 PyThreadState* __tstate = wxPyBeginAllowThreads();
29107 result = (long)(arg1)->GetCacheFrom();
29108 wxPyEndAllowThreads(__tstate);
29109 if (PyErr_Occurred()) SWIG_fail;
29110 }
29111 resultobj = SWIG_From_long(static_cast< long >(result));
29112 return resultobj;
29113 fail:
29114 return NULL;
29115 }
29116
29117
29118 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29119 PyObject *resultobj = 0;
29120 wxListEvent *arg1 = (wxListEvent *) 0 ;
29121 long result;
29122 void *argp1 = 0 ;
29123 int res1 = 0 ;
29124 PyObject *swig_obj[1] ;
29125
29126 if (!args) SWIG_fail;
29127 swig_obj[0] = args;
29128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29129 if (!SWIG_IsOK(res1)) {
29130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
29131 }
29132 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29133 {
29134 PyThreadState* __tstate = wxPyBeginAllowThreads();
29135 result = (long)(arg1)->GetCacheTo();
29136 wxPyEndAllowThreads(__tstate);
29137 if (PyErr_Occurred()) SWIG_fail;
29138 }
29139 resultobj = SWIG_From_long(static_cast< long >(result));
29140 return resultobj;
29141 fail:
29142 return NULL;
29143 }
29144
29145
29146 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29147 PyObject *resultobj = 0;
29148 wxListEvent *arg1 = (wxListEvent *) 0 ;
29149 bool result;
29150 void *argp1 = 0 ;
29151 int res1 = 0 ;
29152 PyObject *swig_obj[1] ;
29153
29154 if (!args) SWIG_fail;
29155 swig_obj[0] = args;
29156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29157 if (!SWIG_IsOK(res1)) {
29158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
29159 }
29160 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29161 {
29162 PyThreadState* __tstate = wxPyBeginAllowThreads();
29163 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
29164 wxPyEndAllowThreads(__tstate);
29165 if (PyErr_Occurred()) SWIG_fail;
29166 }
29167 {
29168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29169 }
29170 return resultobj;
29171 fail:
29172 return NULL;
29173 }
29174
29175
29176 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29177 PyObject *resultobj = 0;
29178 wxListEvent *arg1 = (wxListEvent *) 0 ;
29179 bool arg2 ;
29180 void *argp1 = 0 ;
29181 int res1 = 0 ;
29182 bool val2 ;
29183 int ecode2 = 0 ;
29184 PyObject * obj0 = 0 ;
29185 PyObject * obj1 = 0 ;
29186 char * kwnames[] = {
29187 (char *) "self",(char *) "editCancelled", NULL
29188 };
29189
29190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
29191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
29192 if (!SWIG_IsOK(res1)) {
29193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
29194 }
29195 arg1 = reinterpret_cast< wxListEvent * >(argp1);
29196 ecode2 = SWIG_AsVal_bool(obj1, &val2);
29197 if (!SWIG_IsOK(ecode2)) {
29198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
29199 }
29200 arg2 = static_cast< bool >(val2);
29201 {
29202 PyThreadState* __tstate = wxPyBeginAllowThreads();
29203 (arg1)->SetEditCanceled(arg2);
29204 wxPyEndAllowThreads(__tstate);
29205 if (PyErr_Occurred()) SWIG_fail;
29206 }
29207 resultobj = SWIG_Py_Void();
29208 return resultobj;
29209 fail:
29210 return NULL;
29211 }
29212
29213
29214 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29215 PyObject *obj;
29216 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29217 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
29218 return SWIG_Py_Void();
29219 }
29220
29221 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29222 return SWIG_Python_InitShadowInstance(args);
29223 }
29224
29225 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29226 PyObject *resultobj = 0;
29227 wxWindow *arg1 = (wxWindow *) 0 ;
29228 int arg2 = (int) -1 ;
29229 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29230 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29231 wxSize const &arg4_defvalue = wxDefaultSize ;
29232 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29233 long arg5 = (long) wxLC_ICON ;
29234 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29235 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29236 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
29237 wxString *arg7 = (wxString *) &arg7_defvalue ;
29238 wxPyListCtrl *result = 0 ;
29239 void *argp1 = 0 ;
29240 int res1 = 0 ;
29241 int val2 ;
29242 int ecode2 = 0 ;
29243 wxPoint temp3 ;
29244 wxSize temp4 ;
29245 long val5 ;
29246 int ecode5 = 0 ;
29247 void *argp6 = 0 ;
29248 int res6 = 0 ;
29249 bool temp7 = false ;
29250 PyObject * obj0 = 0 ;
29251 PyObject * obj1 = 0 ;
29252 PyObject * obj2 = 0 ;
29253 PyObject * obj3 = 0 ;
29254 PyObject * obj4 = 0 ;
29255 PyObject * obj5 = 0 ;
29256 PyObject * obj6 = 0 ;
29257 char * kwnames[] = {
29258 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29259 };
29260
29261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
29263 if (!SWIG_IsOK(res1)) {
29264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
29265 }
29266 arg1 = reinterpret_cast< wxWindow * >(argp1);
29267 if (obj1) {
29268 ecode2 = SWIG_AsVal_int(obj1, &val2);
29269 if (!SWIG_IsOK(ecode2)) {
29270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
29271 }
29272 arg2 = static_cast< int >(val2);
29273 }
29274 if (obj2) {
29275 {
29276 arg3 = &temp3;
29277 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29278 }
29279 }
29280 if (obj3) {
29281 {
29282 arg4 = &temp4;
29283 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29284 }
29285 }
29286 if (obj4) {
29287 ecode5 = SWIG_AsVal_long(obj4, &val5);
29288 if (!SWIG_IsOK(ecode5)) {
29289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
29290 }
29291 arg5 = static_cast< long >(val5);
29292 }
29293 if (obj5) {
29294 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
29295 if (!SWIG_IsOK(res6)) {
29296 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
29297 }
29298 if (!argp6) {
29299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
29300 }
29301 arg6 = reinterpret_cast< wxValidator * >(argp6);
29302 }
29303 if (obj6) {
29304 {
29305 arg7 = wxString_in_helper(obj6);
29306 if (arg7 == NULL) SWIG_fail;
29307 temp7 = true;
29308 }
29309 }
29310 {
29311 if (!wxPyCheckForApp()) SWIG_fail;
29312 PyThreadState* __tstate = wxPyBeginAllowThreads();
29313 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29314 wxPyEndAllowThreads(__tstate);
29315 if (PyErr_Occurred()) SWIG_fail;
29316 }
29317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
29318 {
29319 if (temp7)
29320 delete arg7;
29321 }
29322 return resultobj;
29323 fail:
29324 {
29325 if (temp7)
29326 delete arg7;
29327 }
29328 return NULL;
29329 }
29330
29331
29332 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29333 PyObject *resultobj = 0;
29334 wxPyListCtrl *result = 0 ;
29335
29336 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
29337 {
29338 if (!wxPyCheckForApp()) SWIG_fail;
29339 PyThreadState* __tstate = wxPyBeginAllowThreads();
29340 result = (wxPyListCtrl *)new wxPyListCtrl();
29341 wxPyEndAllowThreads(__tstate);
29342 if (PyErr_Occurred()) SWIG_fail;
29343 }
29344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
29345 return resultobj;
29346 fail:
29347 return NULL;
29348 }
29349
29350
29351 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29352 PyObject *resultobj = 0;
29353 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29354 wxWindow *arg2 = (wxWindow *) 0 ;
29355 int arg3 = (int) -1 ;
29356 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29357 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29358 wxSize const &arg5_defvalue = wxDefaultSize ;
29359 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29360 long arg6 = (long) wxLC_ICON ;
29361 wxValidator const &arg7_defvalue = wxDefaultValidator ;
29362 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
29363 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
29364 wxString *arg8 = (wxString *) &arg8_defvalue ;
29365 bool result;
29366 void *argp1 = 0 ;
29367 int res1 = 0 ;
29368 void *argp2 = 0 ;
29369 int res2 = 0 ;
29370 int val3 ;
29371 int ecode3 = 0 ;
29372 wxPoint temp4 ;
29373 wxSize temp5 ;
29374 long val6 ;
29375 int ecode6 = 0 ;
29376 void *argp7 = 0 ;
29377 int res7 = 0 ;
29378 bool temp8 = false ;
29379 PyObject * obj0 = 0 ;
29380 PyObject * obj1 = 0 ;
29381 PyObject * obj2 = 0 ;
29382 PyObject * obj3 = 0 ;
29383 PyObject * obj4 = 0 ;
29384 PyObject * obj5 = 0 ;
29385 PyObject * obj6 = 0 ;
29386 PyObject * obj7 = 0 ;
29387 char * kwnames[] = {
29388 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29389 };
29390
29391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29393 if (!SWIG_IsOK(res1)) {
29394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29395 }
29396 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29397 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29398 if (!SWIG_IsOK(res2)) {
29399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
29400 }
29401 arg2 = reinterpret_cast< wxWindow * >(argp2);
29402 if (obj2) {
29403 ecode3 = SWIG_AsVal_int(obj2, &val3);
29404 if (!SWIG_IsOK(ecode3)) {
29405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
29406 }
29407 arg3 = static_cast< int >(val3);
29408 }
29409 if (obj3) {
29410 {
29411 arg4 = &temp4;
29412 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29413 }
29414 }
29415 if (obj4) {
29416 {
29417 arg5 = &temp5;
29418 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29419 }
29420 }
29421 if (obj5) {
29422 ecode6 = SWIG_AsVal_long(obj5, &val6);
29423 if (!SWIG_IsOK(ecode6)) {
29424 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
29425 }
29426 arg6 = static_cast< long >(val6);
29427 }
29428 if (obj6) {
29429 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
29430 if (!SWIG_IsOK(res7)) {
29431 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29432 }
29433 if (!argp7) {
29434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
29435 }
29436 arg7 = reinterpret_cast< wxValidator * >(argp7);
29437 }
29438 if (obj7) {
29439 {
29440 arg8 = wxString_in_helper(obj7);
29441 if (arg8 == NULL) SWIG_fail;
29442 temp8 = true;
29443 }
29444 }
29445 {
29446 PyThreadState* __tstate = wxPyBeginAllowThreads();
29447 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
29448 wxPyEndAllowThreads(__tstate);
29449 if (PyErr_Occurred()) SWIG_fail;
29450 }
29451 {
29452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29453 }
29454 {
29455 if (temp8)
29456 delete arg8;
29457 }
29458 return resultobj;
29459 fail:
29460 {
29461 if (temp8)
29462 delete arg8;
29463 }
29464 return NULL;
29465 }
29466
29467
29468 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29469 PyObject *resultobj = 0;
29470 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29471 PyObject *arg2 = (PyObject *) 0 ;
29472 PyObject *arg3 = (PyObject *) 0 ;
29473 void *argp1 = 0 ;
29474 int res1 = 0 ;
29475 PyObject * obj0 = 0 ;
29476 PyObject * obj1 = 0 ;
29477 PyObject * obj2 = 0 ;
29478 char * kwnames[] = {
29479 (char *) "self",(char *) "self",(char *) "_class", NULL
29480 };
29481
29482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29484 if (!SWIG_IsOK(res1)) {
29485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29486 }
29487 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29488 arg2 = obj1;
29489 arg3 = obj2;
29490 {
29491 PyThreadState* __tstate = wxPyBeginAllowThreads();
29492 (arg1)->_setCallbackInfo(arg2,arg3);
29493 wxPyEndAllowThreads(__tstate);
29494 if (PyErr_Occurred()) SWIG_fail;
29495 }
29496 resultobj = SWIG_Py_Void();
29497 return resultobj;
29498 fail:
29499 return NULL;
29500 }
29501
29502
29503 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29504 PyObject *resultobj = 0;
29505 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29506 int arg2 ;
29507 wxListItem *result = 0 ;
29508 void *argp1 = 0 ;
29509 int res1 = 0 ;
29510 int val2 ;
29511 int ecode2 = 0 ;
29512 PyObject * obj0 = 0 ;
29513 PyObject * obj1 = 0 ;
29514 char * kwnames[] = {
29515 (char *) "self",(char *) "col", NULL
29516 };
29517
29518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29520 if (!SWIG_IsOK(res1)) {
29521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29522 }
29523 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29524 ecode2 = SWIG_AsVal_int(obj1, &val2);
29525 if (!SWIG_IsOK(ecode2)) {
29526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29527 }
29528 arg2 = static_cast< int >(val2);
29529 {
29530 PyThreadState* __tstate = wxPyBeginAllowThreads();
29531 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29532 wxPyEndAllowThreads(__tstate);
29533 if (PyErr_Occurred()) SWIG_fail;
29534 }
29535 {
29536 resultobj = wxPyMake_wxObject(result, 0);
29537 }
29538 return resultobj;
29539 fail:
29540 return NULL;
29541 }
29542
29543
29544 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29545 PyObject *resultobj = 0;
29546 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29547 int arg2 ;
29548 wxListItem *arg3 = 0 ;
29549 bool result;
29550 void *argp1 = 0 ;
29551 int res1 = 0 ;
29552 int val2 ;
29553 int ecode2 = 0 ;
29554 void *argp3 = 0 ;
29555 int res3 = 0 ;
29556 PyObject * obj0 = 0 ;
29557 PyObject * obj1 = 0 ;
29558 PyObject * obj2 = 0 ;
29559 char * kwnames[] = {
29560 (char *) "self",(char *) "col",(char *) "item", NULL
29561 };
29562
29563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29565 if (!SWIG_IsOK(res1)) {
29566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29567 }
29568 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29569 ecode2 = SWIG_AsVal_int(obj1, &val2);
29570 if (!SWIG_IsOK(ecode2)) {
29571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29572 }
29573 arg2 = static_cast< int >(val2);
29574 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29575 if (!SWIG_IsOK(res3)) {
29576 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29577 }
29578 if (!argp3) {
29579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29580 }
29581 arg3 = reinterpret_cast< wxListItem * >(argp3);
29582 {
29583 PyThreadState* __tstate = wxPyBeginAllowThreads();
29584 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29585 wxPyEndAllowThreads(__tstate);
29586 if (PyErr_Occurred()) SWIG_fail;
29587 }
29588 {
29589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29590 }
29591 return resultobj;
29592 fail:
29593 return NULL;
29594 }
29595
29596
29597 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29598 PyObject *resultobj = 0;
29599 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29600 int arg2 ;
29601 int result;
29602 void *argp1 = 0 ;
29603 int res1 = 0 ;
29604 int val2 ;
29605 int ecode2 = 0 ;
29606 PyObject * obj0 = 0 ;
29607 PyObject * obj1 = 0 ;
29608 char * kwnames[] = {
29609 (char *) "self",(char *) "col", NULL
29610 };
29611
29612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29614 if (!SWIG_IsOK(res1)) {
29615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29616 }
29617 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29618 ecode2 = SWIG_AsVal_int(obj1, &val2);
29619 if (!SWIG_IsOK(ecode2)) {
29620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29621 }
29622 arg2 = static_cast< int >(val2);
29623 {
29624 PyThreadState* __tstate = wxPyBeginAllowThreads();
29625 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29626 wxPyEndAllowThreads(__tstate);
29627 if (PyErr_Occurred()) SWIG_fail;
29628 }
29629 resultobj = SWIG_From_int(static_cast< int >(result));
29630 return resultobj;
29631 fail:
29632 return NULL;
29633 }
29634
29635
29636 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29637 PyObject *resultobj = 0;
29638 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29639 int arg2 ;
29640 int arg3 ;
29641 bool result;
29642 void *argp1 = 0 ;
29643 int res1 = 0 ;
29644 int val2 ;
29645 int ecode2 = 0 ;
29646 int val3 ;
29647 int ecode3 = 0 ;
29648 PyObject * obj0 = 0 ;
29649 PyObject * obj1 = 0 ;
29650 PyObject * obj2 = 0 ;
29651 char * kwnames[] = {
29652 (char *) "self",(char *) "col",(char *) "width", NULL
29653 };
29654
29655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29657 if (!SWIG_IsOK(res1)) {
29658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29659 }
29660 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29661 ecode2 = SWIG_AsVal_int(obj1, &val2);
29662 if (!SWIG_IsOK(ecode2)) {
29663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29664 }
29665 arg2 = static_cast< int >(val2);
29666 ecode3 = SWIG_AsVal_int(obj2, &val3);
29667 if (!SWIG_IsOK(ecode3)) {
29668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29669 }
29670 arg3 = static_cast< int >(val3);
29671 {
29672 PyThreadState* __tstate = wxPyBeginAllowThreads();
29673 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29674 wxPyEndAllowThreads(__tstate);
29675 if (PyErr_Occurred()) SWIG_fail;
29676 }
29677 {
29678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29679 }
29680 return resultobj;
29681 fail:
29682 return NULL;
29683 }
29684
29685
29686 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29687 PyObject *resultobj = 0;
29688 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29689 int result;
29690 void *argp1 = 0 ;
29691 int res1 = 0 ;
29692 PyObject *swig_obj[1] ;
29693
29694 if (!args) SWIG_fail;
29695 swig_obj[0] = args;
29696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29697 if (!SWIG_IsOK(res1)) {
29698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29699 }
29700 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29701 {
29702 PyThreadState* __tstate = wxPyBeginAllowThreads();
29703 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29704 wxPyEndAllowThreads(__tstate);
29705 if (PyErr_Occurred()) SWIG_fail;
29706 }
29707 resultobj = SWIG_From_int(static_cast< int >(result));
29708 return resultobj;
29709 fail:
29710 return NULL;
29711 }
29712
29713
29714 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29715 PyObject *resultobj = 0;
29716 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29717 wxRect result;
29718 void *argp1 = 0 ;
29719 int res1 = 0 ;
29720 PyObject *swig_obj[1] ;
29721
29722 if (!args) SWIG_fail;
29723 swig_obj[0] = args;
29724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29725 if (!SWIG_IsOK(res1)) {
29726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29727 }
29728 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29729 {
29730 PyThreadState* __tstate = wxPyBeginAllowThreads();
29731 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29732 wxPyEndAllowThreads(__tstate);
29733 if (PyErr_Occurred()) SWIG_fail;
29734 }
29735 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29736 return resultobj;
29737 fail:
29738 return NULL;
29739 }
29740
29741
29742 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29743 PyObject *resultobj = 0;
29744 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29745 wxTextCtrl *result = 0 ;
29746 void *argp1 = 0 ;
29747 int res1 = 0 ;
29748 PyObject *swig_obj[1] ;
29749
29750 if (!args) SWIG_fail;
29751 swig_obj[0] = args;
29752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29753 if (!SWIG_IsOK(res1)) {
29754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29755 }
29756 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29757 {
29758 PyThreadState* __tstate = wxPyBeginAllowThreads();
29759 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29760 wxPyEndAllowThreads(__tstate);
29761 if (PyErr_Occurred()) SWIG_fail;
29762 }
29763 {
29764 resultobj = wxPyMake_wxObject(result, 0);
29765 }
29766 return resultobj;
29767 fail:
29768 return NULL;
29769 }
29770
29771
29772 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29773 PyObject *resultobj = 0;
29774 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29775 long arg2 ;
29776 int arg3 = (int) 0 ;
29777 wxListItem *result = 0 ;
29778 void *argp1 = 0 ;
29779 int res1 = 0 ;
29780 long val2 ;
29781 int ecode2 = 0 ;
29782 int val3 ;
29783 int ecode3 = 0 ;
29784 PyObject * obj0 = 0 ;
29785 PyObject * obj1 = 0 ;
29786 PyObject * obj2 = 0 ;
29787 char * kwnames[] = {
29788 (char *) "self",(char *) "itemId",(char *) "col", NULL
29789 };
29790
29791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29793 if (!SWIG_IsOK(res1)) {
29794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29795 }
29796 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29797 ecode2 = SWIG_AsVal_long(obj1, &val2);
29798 if (!SWIG_IsOK(ecode2)) {
29799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29800 }
29801 arg2 = static_cast< long >(val2);
29802 if (obj2) {
29803 ecode3 = SWIG_AsVal_int(obj2, &val3);
29804 if (!SWIG_IsOK(ecode3)) {
29805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29806 }
29807 arg3 = static_cast< int >(val3);
29808 }
29809 {
29810 PyThreadState* __tstate = wxPyBeginAllowThreads();
29811 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29812 wxPyEndAllowThreads(__tstate);
29813 if (PyErr_Occurred()) SWIG_fail;
29814 }
29815 {
29816 resultobj = wxPyMake_wxObject(result, 0);
29817 }
29818 return resultobj;
29819 fail:
29820 return NULL;
29821 }
29822
29823
29824 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29825 PyObject *resultobj = 0;
29826 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29827 wxListItem *arg2 = 0 ;
29828 bool result;
29829 void *argp1 = 0 ;
29830 int res1 = 0 ;
29831 void *argp2 = 0 ;
29832 int res2 = 0 ;
29833 PyObject * obj0 = 0 ;
29834 PyObject * obj1 = 0 ;
29835 char * kwnames[] = {
29836 (char *) "self",(char *) "info", NULL
29837 };
29838
29839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29841 if (!SWIG_IsOK(res1)) {
29842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29843 }
29844 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29846 if (!SWIG_IsOK(res2)) {
29847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29848 }
29849 if (!argp2) {
29850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29851 }
29852 arg2 = reinterpret_cast< wxListItem * >(argp2);
29853 {
29854 PyThreadState* __tstate = wxPyBeginAllowThreads();
29855 result = (bool)(arg1)->SetItem(*arg2);
29856 wxPyEndAllowThreads(__tstate);
29857 if (PyErr_Occurred()) SWIG_fail;
29858 }
29859 {
29860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29861 }
29862 return resultobj;
29863 fail:
29864 return NULL;
29865 }
29866
29867
29868 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29869 PyObject *resultobj = 0;
29870 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29871 long arg2 ;
29872 int arg3 ;
29873 wxString *arg4 = 0 ;
29874 int arg5 = (int) -1 ;
29875 long result;
29876 void *argp1 = 0 ;
29877 int res1 = 0 ;
29878 long val2 ;
29879 int ecode2 = 0 ;
29880 int val3 ;
29881 int ecode3 = 0 ;
29882 bool temp4 = false ;
29883 int val5 ;
29884 int ecode5 = 0 ;
29885 PyObject * obj0 = 0 ;
29886 PyObject * obj1 = 0 ;
29887 PyObject * obj2 = 0 ;
29888 PyObject * obj3 = 0 ;
29889 PyObject * obj4 = 0 ;
29890 char * kwnames[] = {
29891 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29892 };
29893
29894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29896 if (!SWIG_IsOK(res1)) {
29897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29898 }
29899 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29900 ecode2 = SWIG_AsVal_long(obj1, &val2);
29901 if (!SWIG_IsOK(ecode2)) {
29902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29903 }
29904 arg2 = static_cast< long >(val2);
29905 ecode3 = SWIG_AsVal_int(obj2, &val3);
29906 if (!SWIG_IsOK(ecode3)) {
29907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29908 }
29909 arg3 = static_cast< int >(val3);
29910 {
29911 arg4 = wxString_in_helper(obj3);
29912 if (arg4 == NULL) SWIG_fail;
29913 temp4 = true;
29914 }
29915 if (obj4) {
29916 ecode5 = SWIG_AsVal_int(obj4, &val5);
29917 if (!SWIG_IsOK(ecode5)) {
29918 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29919 }
29920 arg5 = static_cast< int >(val5);
29921 }
29922 {
29923 PyThreadState* __tstate = wxPyBeginAllowThreads();
29924 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29925 wxPyEndAllowThreads(__tstate);
29926 if (PyErr_Occurred()) SWIG_fail;
29927 }
29928 resultobj = SWIG_From_long(static_cast< long >(result));
29929 {
29930 if (temp4)
29931 delete arg4;
29932 }
29933 return resultobj;
29934 fail:
29935 {
29936 if (temp4)
29937 delete arg4;
29938 }
29939 return NULL;
29940 }
29941
29942
29943 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29944 PyObject *resultobj = 0;
29945 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29946 long arg2 ;
29947 long arg3 ;
29948 int result;
29949 void *argp1 = 0 ;
29950 int res1 = 0 ;
29951 long val2 ;
29952 int ecode2 = 0 ;
29953 long val3 ;
29954 int ecode3 = 0 ;
29955 PyObject * obj0 = 0 ;
29956 PyObject * obj1 = 0 ;
29957 PyObject * obj2 = 0 ;
29958 char * kwnames[] = {
29959 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29960 };
29961
29962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29964 if (!SWIG_IsOK(res1)) {
29965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29966 }
29967 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29968 ecode2 = SWIG_AsVal_long(obj1, &val2);
29969 if (!SWIG_IsOK(ecode2)) {
29970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29971 }
29972 arg2 = static_cast< long >(val2);
29973 ecode3 = SWIG_AsVal_long(obj2, &val3);
29974 if (!SWIG_IsOK(ecode3)) {
29975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29976 }
29977 arg3 = static_cast< long >(val3);
29978 {
29979 PyThreadState* __tstate = wxPyBeginAllowThreads();
29980 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29981 wxPyEndAllowThreads(__tstate);
29982 if (PyErr_Occurred()) SWIG_fail;
29983 }
29984 resultobj = SWIG_From_int(static_cast< int >(result));
29985 return resultobj;
29986 fail:
29987 return NULL;
29988 }
29989
29990
29991 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29992 PyObject *resultobj = 0;
29993 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29994 long arg2 ;
29995 long arg3 ;
29996 long arg4 ;
29997 bool result;
29998 void *argp1 = 0 ;
29999 int res1 = 0 ;
30000 long val2 ;
30001 int ecode2 = 0 ;
30002 long val3 ;
30003 int ecode3 = 0 ;
30004 long val4 ;
30005 int ecode4 = 0 ;
30006 PyObject * obj0 = 0 ;
30007 PyObject * obj1 = 0 ;
30008 PyObject * obj2 = 0 ;
30009 PyObject * obj3 = 0 ;
30010 char * kwnames[] = {
30011 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
30012 };
30013
30014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30016 if (!SWIG_IsOK(res1)) {
30017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30018 }
30019 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30020 ecode2 = SWIG_AsVal_long(obj1, &val2);
30021 if (!SWIG_IsOK(ecode2)) {
30022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
30023 }
30024 arg2 = static_cast< long >(val2);
30025 ecode3 = SWIG_AsVal_long(obj2, &val3);
30026 if (!SWIG_IsOK(ecode3)) {
30027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
30028 }
30029 arg3 = static_cast< long >(val3);
30030 ecode4 = SWIG_AsVal_long(obj3, &val4);
30031 if (!SWIG_IsOK(ecode4)) {
30032 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
30033 }
30034 arg4 = static_cast< long >(val4);
30035 {
30036 PyThreadState* __tstate = wxPyBeginAllowThreads();
30037 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
30038 wxPyEndAllowThreads(__tstate);
30039 if (PyErr_Occurred()) SWIG_fail;
30040 }
30041 {
30042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30043 }
30044 return resultobj;
30045 fail:
30046 return NULL;
30047 }
30048
30049
30050 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30051 PyObject *resultobj = 0;
30052 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30053 long arg2 ;
30054 int arg3 ;
30055 int arg4 = (int) -1 ;
30056 bool result;
30057 void *argp1 = 0 ;
30058 int res1 = 0 ;
30059 long val2 ;
30060 int ecode2 = 0 ;
30061 int val3 ;
30062 int ecode3 = 0 ;
30063 int val4 ;
30064 int ecode4 = 0 ;
30065 PyObject * obj0 = 0 ;
30066 PyObject * obj1 = 0 ;
30067 PyObject * obj2 = 0 ;
30068 PyObject * obj3 = 0 ;
30069 char * kwnames[] = {
30070 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
30071 };
30072
30073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30075 if (!SWIG_IsOK(res1)) {
30076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30077 }
30078 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30079 ecode2 = SWIG_AsVal_long(obj1, &val2);
30080 if (!SWIG_IsOK(ecode2)) {
30081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
30082 }
30083 arg2 = static_cast< long >(val2);
30084 ecode3 = SWIG_AsVal_int(obj2, &val3);
30085 if (!SWIG_IsOK(ecode3)) {
30086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
30087 }
30088 arg3 = static_cast< int >(val3);
30089 if (obj3) {
30090 ecode4 = SWIG_AsVal_int(obj3, &val4);
30091 if (!SWIG_IsOK(ecode4)) {
30092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
30093 }
30094 arg4 = static_cast< int >(val4);
30095 }
30096 {
30097 PyThreadState* __tstate = wxPyBeginAllowThreads();
30098 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
30099 wxPyEndAllowThreads(__tstate);
30100 if (PyErr_Occurred()) SWIG_fail;
30101 }
30102 {
30103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30104 }
30105 return resultobj;
30106 fail:
30107 return NULL;
30108 }
30109
30110
30111 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30112 PyObject *resultobj = 0;
30113 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30114 long arg2 ;
30115 long arg3 ;
30116 int arg4 ;
30117 bool result;
30118 void *argp1 = 0 ;
30119 int res1 = 0 ;
30120 long val2 ;
30121 int ecode2 = 0 ;
30122 long val3 ;
30123 int ecode3 = 0 ;
30124 int val4 ;
30125 int ecode4 = 0 ;
30126 PyObject * obj0 = 0 ;
30127 PyObject * obj1 = 0 ;
30128 PyObject * obj2 = 0 ;
30129 PyObject * obj3 = 0 ;
30130 char * kwnames[] = {
30131 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
30132 };
30133
30134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30136 if (!SWIG_IsOK(res1)) {
30137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30138 }
30139 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30140 ecode2 = SWIG_AsVal_long(obj1, &val2);
30141 if (!SWIG_IsOK(ecode2)) {
30142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
30143 }
30144 arg2 = static_cast< long >(val2);
30145 ecode3 = SWIG_AsVal_long(obj2, &val3);
30146 if (!SWIG_IsOK(ecode3)) {
30147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
30148 }
30149 arg3 = static_cast< long >(val3);
30150 ecode4 = SWIG_AsVal_int(obj3, &val4);
30151 if (!SWIG_IsOK(ecode4)) {
30152 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
30153 }
30154 arg4 = static_cast< int >(val4);
30155 {
30156 PyThreadState* __tstate = wxPyBeginAllowThreads();
30157 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
30158 wxPyEndAllowThreads(__tstate);
30159 if (PyErr_Occurred()) SWIG_fail;
30160 }
30161 {
30162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30163 }
30164 return resultobj;
30165 fail:
30166 return NULL;
30167 }
30168
30169
30170 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30171 PyObject *resultobj = 0;
30172 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30173 long arg2 ;
30174 wxString result;
30175 void *argp1 = 0 ;
30176 int res1 = 0 ;
30177 long val2 ;
30178 int ecode2 = 0 ;
30179 PyObject * obj0 = 0 ;
30180 PyObject * obj1 = 0 ;
30181 char * kwnames[] = {
30182 (char *) "self",(char *) "item", NULL
30183 };
30184
30185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
30186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30187 if (!SWIG_IsOK(res1)) {
30188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30189 }
30190 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30191 ecode2 = SWIG_AsVal_long(obj1, &val2);
30192 if (!SWIG_IsOK(ecode2)) {
30193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
30194 }
30195 arg2 = static_cast< long >(val2);
30196 {
30197 PyThreadState* __tstate = wxPyBeginAllowThreads();
30198 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
30199 wxPyEndAllowThreads(__tstate);
30200 if (PyErr_Occurred()) SWIG_fail;
30201 }
30202 {
30203 #if wxUSE_UNICODE
30204 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30205 #else
30206 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30207 #endif
30208 }
30209 return resultobj;
30210 fail:
30211 return NULL;
30212 }
30213
30214
30215 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30216 PyObject *resultobj = 0;
30217 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30218 long arg2 ;
30219 wxString *arg3 = 0 ;
30220 void *argp1 = 0 ;
30221 int res1 = 0 ;
30222 long val2 ;
30223 int ecode2 = 0 ;
30224 bool temp3 = false ;
30225 PyObject * obj0 = 0 ;
30226 PyObject * obj1 = 0 ;
30227 PyObject * obj2 = 0 ;
30228 char * kwnames[] = {
30229 (char *) "self",(char *) "item",(char *) "str", NULL
30230 };
30231
30232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30234 if (!SWIG_IsOK(res1)) {
30235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30236 }
30237 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30238 ecode2 = SWIG_AsVal_long(obj1, &val2);
30239 if (!SWIG_IsOK(ecode2)) {
30240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
30241 }
30242 arg2 = static_cast< long >(val2);
30243 {
30244 arg3 = wxString_in_helper(obj2);
30245 if (arg3 == NULL) SWIG_fail;
30246 temp3 = true;
30247 }
30248 {
30249 PyThreadState* __tstate = wxPyBeginAllowThreads();
30250 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
30251 wxPyEndAllowThreads(__tstate);
30252 if (PyErr_Occurred()) SWIG_fail;
30253 }
30254 resultobj = SWIG_Py_Void();
30255 {
30256 if (temp3)
30257 delete arg3;
30258 }
30259 return resultobj;
30260 fail:
30261 {
30262 if (temp3)
30263 delete arg3;
30264 }
30265 return NULL;
30266 }
30267
30268
30269 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30270 PyObject *resultobj = 0;
30271 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30272 long arg2 ;
30273 long result;
30274 void *argp1 = 0 ;
30275 int res1 = 0 ;
30276 long val2 ;
30277 int ecode2 = 0 ;
30278 PyObject * obj0 = 0 ;
30279 PyObject * obj1 = 0 ;
30280 char * kwnames[] = {
30281 (char *) "self",(char *) "item", NULL
30282 };
30283
30284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
30285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30286 if (!SWIG_IsOK(res1)) {
30287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30288 }
30289 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30290 ecode2 = SWIG_AsVal_long(obj1, &val2);
30291 if (!SWIG_IsOK(ecode2)) {
30292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
30293 }
30294 arg2 = static_cast< long >(val2);
30295 {
30296 PyThreadState* __tstate = wxPyBeginAllowThreads();
30297 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
30298 wxPyEndAllowThreads(__tstate);
30299 if (PyErr_Occurred()) SWIG_fail;
30300 }
30301 resultobj = SWIG_From_long(static_cast< long >(result));
30302 return resultobj;
30303 fail:
30304 return NULL;
30305 }
30306
30307
30308 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30309 PyObject *resultobj = 0;
30310 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30311 long arg2 ;
30312 long arg3 ;
30313 bool result;
30314 void *argp1 = 0 ;
30315 int res1 = 0 ;
30316 long val2 ;
30317 int ecode2 = 0 ;
30318 long val3 ;
30319 int ecode3 = 0 ;
30320 PyObject * obj0 = 0 ;
30321 PyObject * obj1 = 0 ;
30322 PyObject * obj2 = 0 ;
30323 char * kwnames[] = {
30324 (char *) "self",(char *) "item",(char *) "data", NULL
30325 };
30326
30327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30329 if (!SWIG_IsOK(res1)) {
30330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30331 }
30332 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30333 ecode2 = SWIG_AsVal_long(obj1, &val2);
30334 if (!SWIG_IsOK(ecode2)) {
30335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
30336 }
30337 arg2 = static_cast< long >(val2);
30338 ecode3 = SWIG_AsVal_long(obj2, &val3);
30339 if (!SWIG_IsOK(ecode3)) {
30340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
30341 }
30342 arg3 = static_cast< long >(val3);
30343 {
30344 PyThreadState* __tstate = wxPyBeginAllowThreads();
30345 result = (bool)(arg1)->SetItemData(arg2,arg3);
30346 wxPyEndAllowThreads(__tstate);
30347 if (PyErr_Occurred()) SWIG_fail;
30348 }
30349 {
30350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30351 }
30352 return resultobj;
30353 fail:
30354 return NULL;
30355 }
30356
30357
30358 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30359 PyObject *resultobj = 0;
30360 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30361 long arg2 ;
30362 wxPoint result;
30363 void *argp1 = 0 ;
30364 int res1 = 0 ;
30365 long val2 ;
30366 int ecode2 = 0 ;
30367 PyObject * obj0 = 0 ;
30368 PyObject * obj1 = 0 ;
30369 char * kwnames[] = {
30370 (char *) "self",(char *) "item", NULL
30371 };
30372
30373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
30374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30375 if (!SWIG_IsOK(res1)) {
30376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30377 }
30378 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30379 ecode2 = SWIG_AsVal_long(obj1, &val2);
30380 if (!SWIG_IsOK(ecode2)) {
30381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
30382 }
30383 arg2 = static_cast< long >(val2);
30384 {
30385 PyThreadState* __tstate = wxPyBeginAllowThreads();
30386 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
30387 wxPyEndAllowThreads(__tstate);
30388 if (PyErr_Occurred()) SWIG_fail;
30389 }
30390 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
30391 return resultobj;
30392 fail:
30393 return NULL;
30394 }
30395
30396
30397 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30398 PyObject *resultobj = 0;
30399 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30400 long arg2 ;
30401 int arg3 = (int) wxLIST_RECT_BOUNDS ;
30402 wxRect result;
30403 void *argp1 = 0 ;
30404 int res1 = 0 ;
30405 long val2 ;
30406 int ecode2 = 0 ;
30407 int val3 ;
30408 int ecode3 = 0 ;
30409 PyObject * obj0 = 0 ;
30410 PyObject * obj1 = 0 ;
30411 PyObject * obj2 = 0 ;
30412 char * kwnames[] = {
30413 (char *) "self",(char *) "item",(char *) "code", NULL
30414 };
30415
30416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) 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_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
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_GetItemRect" "', 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_GetItemRect" "', expected argument " "3"" of type '" "int""'");
30431 }
30432 arg3 = static_cast< int >(val3);
30433 }
30434 {
30435 PyThreadState* __tstate = wxPyBeginAllowThreads();
30436 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
30437 wxPyEndAllowThreads(__tstate);
30438 if (PyErr_Occurred()) SWIG_fail;
30439 }
30440 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
30441 return resultobj;
30442 fail:
30443 return NULL;
30444 }
30445
30446
30447 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30448 PyObject *resultobj = 0;
30449 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30450 long arg2 ;
30451 wxPoint *arg3 = 0 ;
30452 bool result;
30453 void *argp1 = 0 ;
30454 int res1 = 0 ;
30455 long val2 ;
30456 int ecode2 = 0 ;
30457 wxPoint temp3 ;
30458 PyObject * obj0 = 0 ;
30459 PyObject * obj1 = 0 ;
30460 PyObject * obj2 = 0 ;
30461 char * kwnames[] = {
30462 (char *) "self",(char *) "item",(char *) "pos", NULL
30463 };
30464
30465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30467 if (!SWIG_IsOK(res1)) {
30468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30469 }
30470 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30471 ecode2 = SWIG_AsVal_long(obj1, &val2);
30472 if (!SWIG_IsOK(ecode2)) {
30473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30474 }
30475 arg2 = static_cast< long >(val2);
30476 {
30477 arg3 = &temp3;
30478 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30479 }
30480 {
30481 PyThreadState* __tstate = wxPyBeginAllowThreads();
30482 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30483 wxPyEndAllowThreads(__tstate);
30484 if (PyErr_Occurred()) SWIG_fail;
30485 }
30486 {
30487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30488 }
30489 return resultobj;
30490 fail:
30491 return NULL;
30492 }
30493
30494
30495 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30496 PyObject *resultobj = 0;
30497 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30498 int result;
30499 void *argp1 = 0 ;
30500 int res1 = 0 ;
30501 PyObject *swig_obj[1] ;
30502
30503 if (!args) SWIG_fail;
30504 swig_obj[0] = args;
30505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30506 if (!SWIG_IsOK(res1)) {
30507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30508 }
30509 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30510 {
30511 PyThreadState* __tstate = wxPyBeginAllowThreads();
30512 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30513 wxPyEndAllowThreads(__tstate);
30514 if (PyErr_Occurred()) SWIG_fail;
30515 }
30516 resultobj = SWIG_From_int(static_cast< int >(result));
30517 return resultobj;
30518 fail:
30519 return NULL;
30520 }
30521
30522
30523 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30524 PyObject *resultobj = 0;
30525 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30526 int result;
30527 void *argp1 = 0 ;
30528 int res1 = 0 ;
30529 PyObject *swig_obj[1] ;
30530
30531 if (!args) SWIG_fail;
30532 swig_obj[0] = args;
30533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30534 if (!SWIG_IsOK(res1)) {
30535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30536 }
30537 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30538 {
30539 PyThreadState* __tstate = wxPyBeginAllowThreads();
30540 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30541 wxPyEndAllowThreads(__tstate);
30542 if (PyErr_Occurred()) SWIG_fail;
30543 }
30544 resultobj = SWIG_From_int(static_cast< int >(result));
30545 return resultobj;
30546 fail:
30547 return NULL;
30548 }
30549
30550
30551 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30552 PyObject *resultobj = 0;
30553 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30554 wxSize result;
30555 void *argp1 = 0 ;
30556 int res1 = 0 ;
30557 PyObject *swig_obj[1] ;
30558
30559 if (!args) SWIG_fail;
30560 swig_obj[0] = args;
30561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30562 if (!SWIG_IsOK(res1)) {
30563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30564 }
30565 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30566 {
30567 PyThreadState* __tstate = wxPyBeginAllowThreads();
30568 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30569 wxPyEndAllowThreads(__tstate);
30570 if (PyErr_Occurred()) SWIG_fail;
30571 }
30572 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30573 return resultobj;
30574 fail:
30575 return NULL;
30576 }
30577
30578
30579 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30580 PyObject *resultobj = 0;
30581 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30582 int result;
30583 void *argp1 = 0 ;
30584 int res1 = 0 ;
30585 PyObject *swig_obj[1] ;
30586
30587 if (!args) SWIG_fail;
30588 swig_obj[0] = args;
30589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30590 if (!SWIG_IsOK(res1)) {
30591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30592 }
30593 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30594 {
30595 PyThreadState* __tstate = wxPyBeginAllowThreads();
30596 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30597 wxPyEndAllowThreads(__tstate);
30598 if (PyErr_Occurred()) SWIG_fail;
30599 }
30600 resultobj = SWIG_From_int(static_cast< int >(result));
30601 return resultobj;
30602 fail:
30603 return NULL;
30604 }
30605
30606
30607 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30608 PyObject *resultobj = 0;
30609 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30610 wxColour result;
30611 void *argp1 = 0 ;
30612 int res1 = 0 ;
30613 PyObject *swig_obj[1] ;
30614
30615 if (!args) SWIG_fail;
30616 swig_obj[0] = args;
30617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30618 if (!SWIG_IsOK(res1)) {
30619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30620 }
30621 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30622 {
30623 PyThreadState* __tstate = wxPyBeginAllowThreads();
30624 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30625 wxPyEndAllowThreads(__tstate);
30626 if (PyErr_Occurred()) SWIG_fail;
30627 }
30628 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30629 return resultobj;
30630 fail:
30631 return NULL;
30632 }
30633
30634
30635 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30636 PyObject *resultobj = 0;
30637 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30638 wxColour *arg2 = 0 ;
30639 void *argp1 = 0 ;
30640 int res1 = 0 ;
30641 wxColour temp2 ;
30642 PyObject * obj0 = 0 ;
30643 PyObject * obj1 = 0 ;
30644 char * kwnames[] = {
30645 (char *) "self",(char *) "col", NULL
30646 };
30647
30648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30650 if (!SWIG_IsOK(res1)) {
30651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30652 }
30653 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30654 {
30655 arg2 = &temp2;
30656 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30657 }
30658 {
30659 PyThreadState* __tstate = wxPyBeginAllowThreads();
30660 (arg1)->SetTextColour((wxColour const &)*arg2);
30661 wxPyEndAllowThreads(__tstate);
30662 if (PyErr_Occurred()) SWIG_fail;
30663 }
30664 resultobj = SWIG_Py_Void();
30665 return resultobj;
30666 fail:
30667 return NULL;
30668 }
30669
30670
30671 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30672 PyObject *resultobj = 0;
30673 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30674 long result;
30675 void *argp1 = 0 ;
30676 int res1 = 0 ;
30677 PyObject *swig_obj[1] ;
30678
30679 if (!args) SWIG_fail;
30680 swig_obj[0] = args;
30681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30682 if (!SWIG_IsOK(res1)) {
30683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30684 }
30685 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30686 {
30687 PyThreadState* __tstate = wxPyBeginAllowThreads();
30688 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30689 wxPyEndAllowThreads(__tstate);
30690 if (PyErr_Occurred()) SWIG_fail;
30691 }
30692 resultobj = SWIG_From_long(static_cast< long >(result));
30693 return resultobj;
30694 fail:
30695 return NULL;
30696 }
30697
30698
30699 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30700 PyObject *resultobj = 0;
30701 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30702 long arg2 ;
30703 bool arg3 = (bool) true ;
30704 void *argp1 = 0 ;
30705 int res1 = 0 ;
30706 long val2 ;
30707 int ecode2 = 0 ;
30708 bool val3 ;
30709 int ecode3 = 0 ;
30710 PyObject * obj0 = 0 ;
30711 PyObject * obj1 = 0 ;
30712 PyObject * obj2 = 0 ;
30713 char * kwnames[] = {
30714 (char *) "self",(char *) "style",(char *) "add", NULL
30715 };
30716
30717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30719 if (!SWIG_IsOK(res1)) {
30720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30721 }
30722 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30723 ecode2 = SWIG_AsVal_long(obj1, &val2);
30724 if (!SWIG_IsOK(ecode2)) {
30725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30726 }
30727 arg2 = static_cast< long >(val2);
30728 if (obj2) {
30729 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30730 if (!SWIG_IsOK(ecode3)) {
30731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30732 }
30733 arg3 = static_cast< bool >(val3);
30734 }
30735 {
30736 PyThreadState* __tstate = wxPyBeginAllowThreads();
30737 (arg1)->SetSingleStyle(arg2,arg3);
30738 wxPyEndAllowThreads(__tstate);
30739 if (PyErr_Occurred()) SWIG_fail;
30740 }
30741 resultobj = SWIG_Py_Void();
30742 return resultobj;
30743 fail:
30744 return NULL;
30745 }
30746
30747
30748 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30749 PyObject *resultobj = 0;
30750 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30751 long arg2 ;
30752 int arg3 = (int) wxLIST_NEXT_ALL ;
30753 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30754 long result;
30755 void *argp1 = 0 ;
30756 int res1 = 0 ;
30757 long val2 ;
30758 int ecode2 = 0 ;
30759 int val3 ;
30760 int ecode3 = 0 ;
30761 int val4 ;
30762 int ecode4 = 0 ;
30763 PyObject * obj0 = 0 ;
30764 PyObject * obj1 = 0 ;
30765 PyObject * obj2 = 0 ;
30766 PyObject * obj3 = 0 ;
30767 char * kwnames[] = {
30768 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30769 };
30770
30771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30773 if (!SWIG_IsOK(res1)) {
30774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30775 }
30776 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30777 ecode2 = SWIG_AsVal_long(obj1, &val2);
30778 if (!SWIG_IsOK(ecode2)) {
30779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30780 }
30781 arg2 = static_cast< long >(val2);
30782 if (obj2) {
30783 ecode3 = SWIG_AsVal_int(obj2, &val3);
30784 if (!SWIG_IsOK(ecode3)) {
30785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30786 }
30787 arg3 = static_cast< int >(val3);
30788 }
30789 if (obj3) {
30790 ecode4 = SWIG_AsVal_int(obj3, &val4);
30791 if (!SWIG_IsOK(ecode4)) {
30792 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30793 }
30794 arg4 = static_cast< int >(val4);
30795 }
30796 {
30797 PyThreadState* __tstate = wxPyBeginAllowThreads();
30798 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30799 wxPyEndAllowThreads(__tstate);
30800 if (PyErr_Occurred()) SWIG_fail;
30801 }
30802 resultobj = SWIG_From_long(static_cast< long >(result));
30803 return resultobj;
30804 fail:
30805 return NULL;
30806 }
30807
30808
30809 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30810 PyObject *resultobj = 0;
30811 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30812 int arg2 ;
30813 wxImageList *result = 0 ;
30814 void *argp1 = 0 ;
30815 int res1 = 0 ;
30816 int val2 ;
30817 int ecode2 = 0 ;
30818 PyObject * obj0 = 0 ;
30819 PyObject * obj1 = 0 ;
30820 char * kwnames[] = {
30821 (char *) "self",(char *) "which", NULL
30822 };
30823
30824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30826 if (!SWIG_IsOK(res1)) {
30827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30828 }
30829 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30830 ecode2 = SWIG_AsVal_int(obj1, &val2);
30831 if (!SWIG_IsOK(ecode2)) {
30832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30833 }
30834 arg2 = static_cast< int >(val2);
30835 {
30836 PyThreadState* __tstate = wxPyBeginAllowThreads();
30837 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30838 wxPyEndAllowThreads(__tstate);
30839 if (PyErr_Occurred()) SWIG_fail;
30840 }
30841 {
30842 resultobj = wxPyMake_wxObject(result, (bool)0);
30843 }
30844 return resultobj;
30845 fail:
30846 return NULL;
30847 }
30848
30849
30850 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30851 PyObject *resultobj = 0;
30852 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30853 wxImageList *arg2 = (wxImageList *) 0 ;
30854 int arg3 ;
30855 void *argp1 = 0 ;
30856 int res1 = 0 ;
30857 void *argp2 = 0 ;
30858 int res2 = 0 ;
30859 int val3 ;
30860 int ecode3 = 0 ;
30861 PyObject * obj0 = 0 ;
30862 PyObject * obj1 = 0 ;
30863 PyObject * obj2 = 0 ;
30864 char * kwnames[] = {
30865 (char *) "self",(char *) "imageList",(char *) "which", NULL
30866 };
30867
30868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30870 if (!SWIG_IsOK(res1)) {
30871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30872 }
30873 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30874 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30875 if (!SWIG_IsOK(res2)) {
30876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30877 }
30878 arg2 = reinterpret_cast< wxImageList * >(argp2);
30879 ecode3 = SWIG_AsVal_int(obj2, &val3);
30880 if (!SWIG_IsOK(ecode3)) {
30881 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30882 }
30883 arg3 = static_cast< int >(val3);
30884 {
30885 PyThreadState* __tstate = wxPyBeginAllowThreads();
30886 (arg1)->SetImageList(arg2,arg3);
30887 wxPyEndAllowThreads(__tstate);
30888 if (PyErr_Occurred()) SWIG_fail;
30889 }
30890 resultobj = SWIG_Py_Void();
30891 return resultobj;
30892 fail:
30893 return NULL;
30894 }
30895
30896
30897 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30898 PyObject *resultobj = 0;
30899 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30900 wxImageList *arg2 = (wxImageList *) 0 ;
30901 int arg3 ;
30902 void *argp1 = 0 ;
30903 int res1 = 0 ;
30904 int res2 = 0 ;
30905 int val3 ;
30906 int ecode3 = 0 ;
30907 PyObject * obj0 = 0 ;
30908 PyObject * obj1 = 0 ;
30909 PyObject * obj2 = 0 ;
30910 char * kwnames[] = {
30911 (char *) "self",(char *) "imageList",(char *) "which", NULL
30912 };
30913
30914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30916 if (!SWIG_IsOK(res1)) {
30917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30918 }
30919 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30920 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30921 if (!SWIG_IsOK(res2)) {
30922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30923 }
30924 ecode3 = SWIG_AsVal_int(obj2, &val3);
30925 if (!SWIG_IsOK(ecode3)) {
30926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30927 }
30928 arg3 = static_cast< int >(val3);
30929 {
30930 PyThreadState* __tstate = wxPyBeginAllowThreads();
30931 (arg1)->AssignImageList(arg2,arg3);
30932 wxPyEndAllowThreads(__tstate);
30933 if (PyErr_Occurred()) SWIG_fail;
30934 }
30935 resultobj = SWIG_Py_Void();
30936 return resultobj;
30937 fail:
30938 return NULL;
30939 }
30940
30941
30942 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30943 PyObject *resultobj = 0;
30944 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30945 bool result;
30946 void *argp1 = 0 ;
30947 int res1 = 0 ;
30948 PyObject *swig_obj[1] ;
30949
30950 if (!args) SWIG_fail;
30951 swig_obj[0] = args;
30952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30953 if (!SWIG_IsOK(res1)) {
30954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30955 }
30956 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30957 {
30958 PyThreadState* __tstate = wxPyBeginAllowThreads();
30959 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30960 wxPyEndAllowThreads(__tstate);
30961 if (PyErr_Occurred()) SWIG_fail;
30962 }
30963 {
30964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30965 }
30966 return resultobj;
30967 fail:
30968 return NULL;
30969 }
30970
30971
30972 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30973 PyObject *resultobj = 0;
30974 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30975 bool result;
30976 void *argp1 = 0 ;
30977 int res1 = 0 ;
30978 PyObject *swig_obj[1] ;
30979
30980 if (!args) SWIG_fail;
30981 swig_obj[0] = args;
30982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30983 if (!SWIG_IsOK(res1)) {
30984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30985 }
30986 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30987 {
30988 PyThreadState* __tstate = wxPyBeginAllowThreads();
30989 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30990 wxPyEndAllowThreads(__tstate);
30991 if (PyErr_Occurred()) SWIG_fail;
30992 }
30993 {
30994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30995 }
30996 return resultobj;
30997 fail:
30998 return NULL;
30999 }
31000
31001
31002 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31003 PyObject *resultobj = 0;
31004 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31005 long arg2 ;
31006 void *argp1 = 0 ;
31007 int res1 = 0 ;
31008 long val2 ;
31009 int ecode2 = 0 ;
31010 PyObject * obj0 = 0 ;
31011 PyObject * obj1 = 0 ;
31012 char * kwnames[] = {
31013 (char *) "self",(char *) "item", NULL
31014 };
31015
31016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
31017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31018 if (!SWIG_IsOK(res1)) {
31019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31020 }
31021 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31022 ecode2 = SWIG_AsVal_long(obj1, &val2);
31023 if (!SWIG_IsOK(ecode2)) {
31024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
31025 }
31026 arg2 = static_cast< long >(val2);
31027 {
31028 PyThreadState* __tstate = wxPyBeginAllowThreads();
31029 (arg1)->RefreshItem(arg2);
31030 wxPyEndAllowThreads(__tstate);
31031 if (PyErr_Occurred()) SWIG_fail;
31032 }
31033 resultobj = SWIG_Py_Void();
31034 return resultobj;
31035 fail:
31036 return NULL;
31037 }
31038
31039
31040 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31041 PyObject *resultobj = 0;
31042 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31043 long arg2 ;
31044 long arg3 ;
31045 void *argp1 = 0 ;
31046 int res1 = 0 ;
31047 long val2 ;
31048 int ecode2 = 0 ;
31049 long val3 ;
31050 int ecode3 = 0 ;
31051 PyObject * obj0 = 0 ;
31052 PyObject * obj1 = 0 ;
31053 PyObject * obj2 = 0 ;
31054 char * kwnames[] = {
31055 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
31056 };
31057
31058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31060 if (!SWIG_IsOK(res1)) {
31061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31062 }
31063 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31064 ecode2 = SWIG_AsVal_long(obj1, &val2);
31065 if (!SWIG_IsOK(ecode2)) {
31066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
31067 }
31068 arg2 = static_cast< long >(val2);
31069 ecode3 = SWIG_AsVal_long(obj2, &val3);
31070 if (!SWIG_IsOK(ecode3)) {
31071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
31072 }
31073 arg3 = static_cast< long >(val3);
31074 {
31075 PyThreadState* __tstate = wxPyBeginAllowThreads();
31076 (arg1)->RefreshItems(arg2,arg3);
31077 wxPyEndAllowThreads(__tstate);
31078 if (PyErr_Occurred()) SWIG_fail;
31079 }
31080 resultobj = SWIG_Py_Void();
31081 return resultobj;
31082 fail:
31083 return NULL;
31084 }
31085
31086
31087 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31088 PyObject *resultobj = 0;
31089 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31090 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
31091 bool result;
31092 void *argp1 = 0 ;
31093 int res1 = 0 ;
31094 int val2 ;
31095 int ecode2 = 0 ;
31096 PyObject * obj0 = 0 ;
31097 PyObject * obj1 = 0 ;
31098 char * kwnames[] = {
31099 (char *) "self",(char *) "flag", NULL
31100 };
31101
31102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
31103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31104 if (!SWIG_IsOK(res1)) {
31105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31106 }
31107 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31108 if (obj1) {
31109 ecode2 = SWIG_AsVal_int(obj1, &val2);
31110 if (!SWIG_IsOK(ecode2)) {
31111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
31112 }
31113 arg2 = static_cast< int >(val2);
31114 }
31115 {
31116 PyThreadState* __tstate = wxPyBeginAllowThreads();
31117 result = (bool)(arg1)->Arrange(arg2);
31118 wxPyEndAllowThreads(__tstate);
31119 if (PyErr_Occurred()) SWIG_fail;
31120 }
31121 {
31122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31123 }
31124 return resultobj;
31125 fail:
31126 return NULL;
31127 }
31128
31129
31130 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31131 PyObject *resultobj = 0;
31132 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31133 long arg2 ;
31134 bool result;
31135 void *argp1 = 0 ;
31136 int res1 = 0 ;
31137 long val2 ;
31138 int ecode2 = 0 ;
31139 PyObject * obj0 = 0 ;
31140 PyObject * obj1 = 0 ;
31141 char * kwnames[] = {
31142 (char *) "self",(char *) "item", NULL
31143 };
31144
31145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
31146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31147 if (!SWIG_IsOK(res1)) {
31148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31149 }
31150 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31151 ecode2 = SWIG_AsVal_long(obj1, &val2);
31152 if (!SWIG_IsOK(ecode2)) {
31153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
31154 }
31155 arg2 = static_cast< long >(val2);
31156 {
31157 PyThreadState* __tstate = wxPyBeginAllowThreads();
31158 result = (bool)(arg1)->DeleteItem(arg2);
31159 wxPyEndAllowThreads(__tstate);
31160 if (PyErr_Occurred()) SWIG_fail;
31161 }
31162 {
31163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31164 }
31165 return resultobj;
31166 fail:
31167 return NULL;
31168 }
31169
31170
31171 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31172 PyObject *resultobj = 0;
31173 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31174 bool result;
31175 void *argp1 = 0 ;
31176 int res1 = 0 ;
31177 PyObject *swig_obj[1] ;
31178
31179 if (!args) SWIG_fail;
31180 swig_obj[0] = args;
31181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31182 if (!SWIG_IsOK(res1)) {
31183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31184 }
31185 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31186 {
31187 PyThreadState* __tstate = wxPyBeginAllowThreads();
31188 result = (bool)(arg1)->DeleteAllItems();
31189 wxPyEndAllowThreads(__tstate);
31190 if (PyErr_Occurred()) SWIG_fail;
31191 }
31192 {
31193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31194 }
31195 return resultobj;
31196 fail:
31197 return NULL;
31198 }
31199
31200
31201 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31202 PyObject *resultobj = 0;
31203 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31204 int arg2 ;
31205 bool result;
31206 void *argp1 = 0 ;
31207 int res1 = 0 ;
31208 int val2 ;
31209 int ecode2 = 0 ;
31210 PyObject * obj0 = 0 ;
31211 PyObject * obj1 = 0 ;
31212 char * kwnames[] = {
31213 (char *) "self",(char *) "col", NULL
31214 };
31215
31216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
31217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31218 if (!SWIG_IsOK(res1)) {
31219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31220 }
31221 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31222 ecode2 = SWIG_AsVal_int(obj1, &val2);
31223 if (!SWIG_IsOK(ecode2)) {
31224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
31225 }
31226 arg2 = static_cast< int >(val2);
31227 {
31228 PyThreadState* __tstate = wxPyBeginAllowThreads();
31229 result = (bool)(arg1)->DeleteColumn(arg2);
31230 wxPyEndAllowThreads(__tstate);
31231 if (PyErr_Occurred()) SWIG_fail;
31232 }
31233 {
31234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31235 }
31236 return resultobj;
31237 fail:
31238 return NULL;
31239 }
31240
31241
31242 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31243 PyObject *resultobj = 0;
31244 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31245 bool result;
31246 void *argp1 = 0 ;
31247 int res1 = 0 ;
31248 PyObject *swig_obj[1] ;
31249
31250 if (!args) SWIG_fail;
31251 swig_obj[0] = args;
31252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31253 if (!SWIG_IsOK(res1)) {
31254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31255 }
31256 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31257 {
31258 PyThreadState* __tstate = wxPyBeginAllowThreads();
31259 result = (bool)(arg1)->DeleteAllColumns();
31260 wxPyEndAllowThreads(__tstate);
31261 if (PyErr_Occurred()) SWIG_fail;
31262 }
31263 {
31264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31265 }
31266 return resultobj;
31267 fail:
31268 return NULL;
31269 }
31270
31271
31272 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31273 PyObject *resultobj = 0;
31274 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31275 void *argp1 = 0 ;
31276 int res1 = 0 ;
31277 PyObject *swig_obj[1] ;
31278
31279 if (!args) SWIG_fail;
31280 swig_obj[0] = args;
31281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31282 if (!SWIG_IsOK(res1)) {
31283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31284 }
31285 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31286 {
31287 PyThreadState* __tstate = wxPyBeginAllowThreads();
31288 (arg1)->ClearAll();
31289 wxPyEndAllowThreads(__tstate);
31290 if (PyErr_Occurred()) SWIG_fail;
31291 }
31292 resultobj = SWIG_Py_Void();
31293 return resultobj;
31294 fail:
31295 return NULL;
31296 }
31297
31298
31299 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31300 PyObject *resultobj = 0;
31301 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31302 long arg2 ;
31303 wxTextCtrl *result = 0 ;
31304 void *argp1 = 0 ;
31305 int res1 = 0 ;
31306 long val2 ;
31307 int ecode2 = 0 ;
31308 PyObject * obj0 = 0 ;
31309 PyObject * obj1 = 0 ;
31310 char * kwnames[] = {
31311 (char *) "self",(char *) "item", NULL
31312 };
31313
31314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31316 if (!SWIG_IsOK(res1)) {
31317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31318 }
31319 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31320 ecode2 = SWIG_AsVal_long(obj1, &val2);
31321 if (!SWIG_IsOK(ecode2)) {
31322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
31323 }
31324 arg2 = static_cast< long >(val2);
31325 {
31326 PyThreadState* __tstate = wxPyBeginAllowThreads();
31327 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
31328 wxPyEndAllowThreads(__tstate);
31329 if (PyErr_Occurred()) SWIG_fail;
31330 }
31331 {
31332 resultobj = wxPyMake_wxObject(result, 0);
31333 }
31334 return resultobj;
31335 fail:
31336 return NULL;
31337 }
31338
31339
31340 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31341 PyObject *resultobj = 0;
31342 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31343 bool arg2 ;
31344 bool result;
31345 void *argp1 = 0 ;
31346 int res1 = 0 ;
31347 bool val2 ;
31348 int ecode2 = 0 ;
31349 PyObject * obj0 = 0 ;
31350 PyObject * obj1 = 0 ;
31351 char * kwnames[] = {
31352 (char *) "self",(char *) "cancel", NULL
31353 };
31354
31355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
31356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31357 if (!SWIG_IsOK(res1)) {
31358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31359 }
31360 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31361 ecode2 = SWIG_AsVal_bool(obj1, &val2);
31362 if (!SWIG_IsOK(ecode2)) {
31363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
31364 }
31365 arg2 = static_cast< bool >(val2);
31366 {
31367 PyThreadState* __tstate = wxPyBeginAllowThreads();
31368 result = (bool)(arg1)->EndEditLabel(arg2);
31369 wxPyEndAllowThreads(__tstate);
31370 if (PyErr_Occurred()) SWIG_fail;
31371 }
31372 {
31373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31374 }
31375 return resultobj;
31376 fail:
31377 return NULL;
31378 }
31379
31380
31381 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31382 PyObject *resultobj = 0;
31383 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31384 long arg2 ;
31385 bool result;
31386 void *argp1 = 0 ;
31387 int res1 = 0 ;
31388 long val2 ;
31389 int ecode2 = 0 ;
31390 PyObject * obj0 = 0 ;
31391 PyObject * obj1 = 0 ;
31392 char * kwnames[] = {
31393 (char *) "self",(char *) "item", NULL
31394 };
31395
31396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
31397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31398 if (!SWIG_IsOK(res1)) {
31399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31400 }
31401 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31402 ecode2 = SWIG_AsVal_long(obj1, &val2);
31403 if (!SWIG_IsOK(ecode2)) {
31404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
31405 }
31406 arg2 = static_cast< long >(val2);
31407 {
31408 PyThreadState* __tstate = wxPyBeginAllowThreads();
31409 result = (bool)(arg1)->EnsureVisible(arg2);
31410 wxPyEndAllowThreads(__tstate);
31411 if (PyErr_Occurred()) SWIG_fail;
31412 }
31413 {
31414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31415 }
31416 return resultobj;
31417 fail:
31418 return NULL;
31419 }
31420
31421
31422 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31423 PyObject *resultobj = 0;
31424 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31425 long arg2 ;
31426 wxString *arg3 = 0 ;
31427 bool arg4 = (bool) false ;
31428 long result;
31429 void *argp1 = 0 ;
31430 int res1 = 0 ;
31431 long val2 ;
31432 int ecode2 = 0 ;
31433 bool temp3 = false ;
31434 bool val4 ;
31435 int ecode4 = 0 ;
31436 PyObject * obj0 = 0 ;
31437 PyObject * obj1 = 0 ;
31438 PyObject * obj2 = 0 ;
31439 PyObject * obj3 = 0 ;
31440 char * kwnames[] = {
31441 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
31442 };
31443
31444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31446 if (!SWIG_IsOK(res1)) {
31447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31448 }
31449 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31450 ecode2 = SWIG_AsVal_long(obj1, &val2);
31451 if (!SWIG_IsOK(ecode2)) {
31452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
31453 }
31454 arg2 = static_cast< long >(val2);
31455 {
31456 arg3 = wxString_in_helper(obj2);
31457 if (arg3 == NULL) SWIG_fail;
31458 temp3 = true;
31459 }
31460 if (obj3) {
31461 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31462 if (!SWIG_IsOK(ecode4)) {
31463 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
31464 }
31465 arg4 = static_cast< bool >(val4);
31466 }
31467 {
31468 PyThreadState* __tstate = wxPyBeginAllowThreads();
31469 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31470 wxPyEndAllowThreads(__tstate);
31471 if (PyErr_Occurred()) SWIG_fail;
31472 }
31473 resultobj = SWIG_From_long(static_cast< long >(result));
31474 {
31475 if (temp3)
31476 delete arg3;
31477 }
31478 return resultobj;
31479 fail:
31480 {
31481 if (temp3)
31482 delete arg3;
31483 }
31484 return NULL;
31485 }
31486
31487
31488 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31489 PyObject *resultobj = 0;
31490 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31491 long arg2 ;
31492 long arg3 ;
31493 long result;
31494 void *argp1 = 0 ;
31495 int res1 = 0 ;
31496 long val2 ;
31497 int ecode2 = 0 ;
31498 long val3 ;
31499 int ecode3 = 0 ;
31500 PyObject * obj0 = 0 ;
31501 PyObject * obj1 = 0 ;
31502 PyObject * obj2 = 0 ;
31503 char * kwnames[] = {
31504 (char *) "self",(char *) "start",(char *) "data", NULL
31505 };
31506
31507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31509 if (!SWIG_IsOK(res1)) {
31510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31511 }
31512 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31513 ecode2 = SWIG_AsVal_long(obj1, &val2);
31514 if (!SWIG_IsOK(ecode2)) {
31515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31516 }
31517 arg2 = static_cast< long >(val2);
31518 ecode3 = SWIG_AsVal_long(obj2, &val3);
31519 if (!SWIG_IsOK(ecode3)) {
31520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31521 }
31522 arg3 = static_cast< long >(val3);
31523 {
31524 PyThreadState* __tstate = wxPyBeginAllowThreads();
31525 result = (long)(arg1)->FindItem(arg2,arg3);
31526 wxPyEndAllowThreads(__tstate);
31527 if (PyErr_Occurred()) SWIG_fail;
31528 }
31529 resultobj = SWIG_From_long(static_cast< long >(result));
31530 return resultobj;
31531 fail:
31532 return NULL;
31533 }
31534
31535
31536 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31537 PyObject *resultobj = 0;
31538 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31539 long arg2 ;
31540 wxPoint *arg3 = 0 ;
31541 int arg4 ;
31542 long result;
31543 void *argp1 = 0 ;
31544 int res1 = 0 ;
31545 long val2 ;
31546 int ecode2 = 0 ;
31547 wxPoint temp3 ;
31548 int val4 ;
31549 int ecode4 = 0 ;
31550 PyObject * obj0 = 0 ;
31551 PyObject * obj1 = 0 ;
31552 PyObject * obj2 = 0 ;
31553 PyObject * obj3 = 0 ;
31554 char * kwnames[] = {
31555 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31556 };
31557
31558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31560 if (!SWIG_IsOK(res1)) {
31561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31562 }
31563 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31564 ecode2 = SWIG_AsVal_long(obj1, &val2);
31565 if (!SWIG_IsOK(ecode2)) {
31566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31567 }
31568 arg2 = static_cast< long >(val2);
31569 {
31570 arg3 = &temp3;
31571 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31572 }
31573 ecode4 = SWIG_AsVal_int(obj3, &val4);
31574 if (!SWIG_IsOK(ecode4)) {
31575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31576 }
31577 arg4 = static_cast< int >(val4);
31578 {
31579 PyThreadState* __tstate = wxPyBeginAllowThreads();
31580 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31581 wxPyEndAllowThreads(__tstate);
31582 if (PyErr_Occurred()) SWIG_fail;
31583 }
31584 resultobj = SWIG_From_long(static_cast< long >(result));
31585 return resultobj;
31586 fail:
31587 return NULL;
31588 }
31589
31590
31591 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31592 PyObject *resultobj = 0;
31593 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31594 wxPoint *arg2 = 0 ;
31595 int *arg3 = 0 ;
31596 long result;
31597 void *argp1 = 0 ;
31598 int res1 = 0 ;
31599 wxPoint temp2 ;
31600 int temp3 ;
31601 int res3 = SWIG_TMPOBJ ;
31602 PyObject * obj0 = 0 ;
31603 PyObject * obj1 = 0 ;
31604 char * kwnames[] = {
31605 (char *) "self",(char *) "point", NULL
31606 };
31607
31608 arg3 = &temp3;
31609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31611 if (!SWIG_IsOK(res1)) {
31612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31613 }
31614 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31615 {
31616 arg2 = &temp2;
31617 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31618 }
31619 {
31620 PyThreadState* __tstate = wxPyBeginAllowThreads();
31621 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31622 wxPyEndAllowThreads(__tstate);
31623 if (PyErr_Occurred()) SWIG_fail;
31624 }
31625 resultobj = SWIG_From_long(static_cast< long >(result));
31626 if (SWIG_IsTmpObj(res3)) {
31627 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31628 } else {
31629 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31630 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31631 }
31632 return resultobj;
31633 fail:
31634 return NULL;
31635 }
31636
31637
31638 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31639 PyObject *resultobj = 0;
31640 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31641 wxPoint *arg2 = 0 ;
31642 int *arg3 = 0 ;
31643 long *arg4 = (long *) 0 ;
31644 long result;
31645 void *argp1 = 0 ;
31646 int res1 = 0 ;
31647 wxPoint temp2 ;
31648 int temp3 ;
31649 int res3 = SWIG_TMPOBJ ;
31650 long temp4 ;
31651 int res4 = SWIG_TMPOBJ ;
31652 PyObject * obj0 = 0 ;
31653 PyObject * obj1 = 0 ;
31654 char * kwnames[] = {
31655 (char *) "self",(char *) "point", NULL
31656 };
31657
31658 arg3 = &temp3;
31659 arg4 = &temp4;
31660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31662 if (!SWIG_IsOK(res1)) {
31663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31664 }
31665 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31666 {
31667 arg2 = &temp2;
31668 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31669 }
31670 {
31671 PyThreadState* __tstate = wxPyBeginAllowThreads();
31672 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31673 wxPyEndAllowThreads(__tstate);
31674 if (PyErr_Occurred()) SWIG_fail;
31675 }
31676 resultobj = SWIG_From_long(static_cast< long >(result));
31677 if (SWIG_IsTmpObj(res3)) {
31678 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31679 } else {
31680 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31681 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31682 }
31683 if (SWIG_IsTmpObj(res4)) {
31684 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31685 } else {
31686 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31687 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31688 }
31689 return resultobj;
31690 fail:
31691 return NULL;
31692 }
31693
31694
31695 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31696 PyObject *resultobj = 0;
31697 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31698 wxListItem *arg2 = 0 ;
31699 long result;
31700 void *argp1 = 0 ;
31701 int res1 = 0 ;
31702 void *argp2 = 0 ;
31703 int res2 = 0 ;
31704 PyObject * obj0 = 0 ;
31705 PyObject * obj1 = 0 ;
31706 char * kwnames[] = {
31707 (char *) "self",(char *) "info", NULL
31708 };
31709
31710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31712 if (!SWIG_IsOK(res1)) {
31713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31714 }
31715 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31717 if (!SWIG_IsOK(res2)) {
31718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31719 }
31720 if (!argp2) {
31721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31722 }
31723 arg2 = reinterpret_cast< wxListItem * >(argp2);
31724 {
31725 PyThreadState* __tstate = wxPyBeginAllowThreads();
31726 result = (long)(arg1)->InsertItem(*arg2);
31727 wxPyEndAllowThreads(__tstate);
31728 if (PyErr_Occurred()) SWIG_fail;
31729 }
31730 resultobj = SWIG_From_long(static_cast< long >(result));
31731 return resultobj;
31732 fail:
31733 return NULL;
31734 }
31735
31736
31737 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31738 PyObject *resultobj = 0;
31739 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31740 long arg2 ;
31741 wxString *arg3 = 0 ;
31742 int arg4 = (int) -1 ;
31743 long result;
31744 void *argp1 = 0 ;
31745 int res1 = 0 ;
31746 long val2 ;
31747 int ecode2 = 0 ;
31748 bool temp3 = false ;
31749 int val4 ;
31750 int ecode4 = 0 ;
31751 PyObject * obj0 = 0 ;
31752 PyObject * obj1 = 0 ;
31753 PyObject * obj2 = 0 ;
31754 PyObject * obj3 = 0 ;
31755 char * kwnames[] = {
31756 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31757 };
31758
31759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31761 if (!SWIG_IsOK(res1)) {
31762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31763 }
31764 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31765 ecode2 = SWIG_AsVal_long(obj1, &val2);
31766 if (!SWIG_IsOK(ecode2)) {
31767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31768 }
31769 arg2 = static_cast< long >(val2);
31770 {
31771 arg3 = wxString_in_helper(obj2);
31772 if (arg3 == NULL) SWIG_fail;
31773 temp3 = true;
31774 }
31775 if (obj3) {
31776 ecode4 = SWIG_AsVal_int(obj3, &val4);
31777 if (!SWIG_IsOK(ecode4)) {
31778 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31779 }
31780 arg4 = static_cast< int >(val4);
31781 }
31782 {
31783 PyThreadState* __tstate = wxPyBeginAllowThreads();
31784 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31785 wxPyEndAllowThreads(__tstate);
31786 if (PyErr_Occurred()) SWIG_fail;
31787 }
31788 resultobj = SWIG_From_long(static_cast< long >(result));
31789 {
31790 if (temp3)
31791 delete arg3;
31792 }
31793 return resultobj;
31794 fail:
31795 {
31796 if (temp3)
31797 delete arg3;
31798 }
31799 return NULL;
31800 }
31801
31802
31803 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31804 PyObject *resultobj = 0;
31805 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31806 long arg2 ;
31807 int arg3 ;
31808 long result;
31809 void *argp1 = 0 ;
31810 int res1 = 0 ;
31811 long val2 ;
31812 int ecode2 = 0 ;
31813 int val3 ;
31814 int ecode3 = 0 ;
31815 PyObject * obj0 = 0 ;
31816 PyObject * obj1 = 0 ;
31817 PyObject * obj2 = 0 ;
31818 char * kwnames[] = {
31819 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31820 };
31821
31822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31824 if (!SWIG_IsOK(res1)) {
31825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31826 }
31827 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31828 ecode2 = SWIG_AsVal_long(obj1, &val2);
31829 if (!SWIG_IsOK(ecode2)) {
31830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31831 }
31832 arg2 = static_cast< long >(val2);
31833 ecode3 = SWIG_AsVal_int(obj2, &val3);
31834 if (!SWIG_IsOK(ecode3)) {
31835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31836 }
31837 arg3 = static_cast< int >(val3);
31838 {
31839 PyThreadState* __tstate = wxPyBeginAllowThreads();
31840 result = (long)(arg1)->InsertItem(arg2,arg3);
31841 wxPyEndAllowThreads(__tstate);
31842 if (PyErr_Occurred()) SWIG_fail;
31843 }
31844 resultobj = SWIG_From_long(static_cast< long >(result));
31845 return resultobj;
31846 fail:
31847 return NULL;
31848 }
31849
31850
31851 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31852 PyObject *resultobj = 0;
31853 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31854 long arg2 ;
31855 wxString *arg3 = 0 ;
31856 int arg4 ;
31857 long result;
31858 void *argp1 = 0 ;
31859 int res1 = 0 ;
31860 long val2 ;
31861 int ecode2 = 0 ;
31862 bool temp3 = false ;
31863 int val4 ;
31864 int ecode4 = 0 ;
31865 PyObject * obj0 = 0 ;
31866 PyObject * obj1 = 0 ;
31867 PyObject * obj2 = 0 ;
31868 PyObject * obj3 = 0 ;
31869 char * kwnames[] = {
31870 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31871 };
31872
31873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31875 if (!SWIG_IsOK(res1)) {
31876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31877 }
31878 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31879 ecode2 = SWIG_AsVal_long(obj1, &val2);
31880 if (!SWIG_IsOK(ecode2)) {
31881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31882 }
31883 arg2 = static_cast< long >(val2);
31884 {
31885 arg3 = wxString_in_helper(obj2);
31886 if (arg3 == NULL) SWIG_fail;
31887 temp3 = true;
31888 }
31889 ecode4 = SWIG_AsVal_int(obj3, &val4);
31890 if (!SWIG_IsOK(ecode4)) {
31891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31892 }
31893 arg4 = static_cast< int >(val4);
31894 {
31895 PyThreadState* __tstate = wxPyBeginAllowThreads();
31896 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31897 wxPyEndAllowThreads(__tstate);
31898 if (PyErr_Occurred()) SWIG_fail;
31899 }
31900 resultobj = SWIG_From_long(static_cast< long >(result));
31901 {
31902 if (temp3)
31903 delete arg3;
31904 }
31905 return resultobj;
31906 fail:
31907 {
31908 if (temp3)
31909 delete arg3;
31910 }
31911 return NULL;
31912 }
31913
31914
31915 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31916 PyObject *resultobj = 0;
31917 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31918 long arg2 ;
31919 wxListItem *arg3 = 0 ;
31920 long result;
31921 void *argp1 = 0 ;
31922 int res1 = 0 ;
31923 long val2 ;
31924 int ecode2 = 0 ;
31925 void *argp3 = 0 ;
31926 int res3 = 0 ;
31927 PyObject * obj0 = 0 ;
31928 PyObject * obj1 = 0 ;
31929 PyObject * obj2 = 0 ;
31930 char * kwnames[] = {
31931 (char *) "self",(char *) "col",(char *) "info", NULL
31932 };
31933
31934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31936 if (!SWIG_IsOK(res1)) {
31937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31938 }
31939 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31940 ecode2 = SWIG_AsVal_long(obj1, &val2);
31941 if (!SWIG_IsOK(ecode2)) {
31942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31943 }
31944 arg2 = static_cast< long >(val2);
31945 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31946 if (!SWIG_IsOK(res3)) {
31947 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31948 }
31949 if (!argp3) {
31950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31951 }
31952 arg3 = reinterpret_cast< wxListItem * >(argp3);
31953 {
31954 PyThreadState* __tstate = wxPyBeginAllowThreads();
31955 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31956 wxPyEndAllowThreads(__tstate);
31957 if (PyErr_Occurred()) SWIG_fail;
31958 }
31959 resultobj = SWIG_From_long(static_cast< long >(result));
31960 return resultobj;
31961 fail:
31962 return NULL;
31963 }
31964
31965
31966 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31967 PyObject *resultobj = 0;
31968 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31969 long arg2 ;
31970 wxString *arg3 = 0 ;
31971 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31972 int arg5 = (int) -1 ;
31973 long result;
31974 void *argp1 = 0 ;
31975 int res1 = 0 ;
31976 long val2 ;
31977 int ecode2 = 0 ;
31978 bool temp3 = false ;
31979 int val4 ;
31980 int ecode4 = 0 ;
31981 int val5 ;
31982 int ecode5 = 0 ;
31983 PyObject * obj0 = 0 ;
31984 PyObject * obj1 = 0 ;
31985 PyObject * obj2 = 0 ;
31986 PyObject * obj3 = 0 ;
31987 PyObject * obj4 = 0 ;
31988 char * kwnames[] = {
31989 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31990 };
31991
31992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31994 if (!SWIG_IsOK(res1)) {
31995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31996 }
31997 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31998 ecode2 = SWIG_AsVal_long(obj1, &val2);
31999 if (!SWIG_IsOK(ecode2)) {
32000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
32001 }
32002 arg2 = static_cast< long >(val2);
32003 {
32004 arg3 = wxString_in_helper(obj2);
32005 if (arg3 == NULL) SWIG_fail;
32006 temp3 = true;
32007 }
32008 if (obj3) {
32009 ecode4 = SWIG_AsVal_int(obj3, &val4);
32010 if (!SWIG_IsOK(ecode4)) {
32011 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
32012 }
32013 arg4 = static_cast< int >(val4);
32014 }
32015 if (obj4) {
32016 ecode5 = SWIG_AsVal_int(obj4, &val5);
32017 if (!SWIG_IsOK(ecode5)) {
32018 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
32019 }
32020 arg5 = static_cast< int >(val5);
32021 }
32022 {
32023 PyThreadState* __tstate = wxPyBeginAllowThreads();
32024 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
32025 wxPyEndAllowThreads(__tstate);
32026 if (PyErr_Occurred()) SWIG_fail;
32027 }
32028 resultobj = SWIG_From_long(static_cast< long >(result));
32029 {
32030 if (temp3)
32031 delete arg3;
32032 }
32033 return resultobj;
32034 fail:
32035 {
32036 if (temp3)
32037 delete arg3;
32038 }
32039 return NULL;
32040 }
32041
32042
32043 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32044 PyObject *resultobj = 0;
32045 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32046 long arg2 ;
32047 void *argp1 = 0 ;
32048 int res1 = 0 ;
32049 long val2 ;
32050 int ecode2 = 0 ;
32051 PyObject * obj0 = 0 ;
32052 PyObject * obj1 = 0 ;
32053 char * kwnames[] = {
32054 (char *) "self",(char *) "count", NULL
32055 };
32056
32057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
32058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32059 if (!SWIG_IsOK(res1)) {
32060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32061 }
32062 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32063 ecode2 = SWIG_AsVal_long(obj1, &val2);
32064 if (!SWIG_IsOK(ecode2)) {
32065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
32066 }
32067 arg2 = static_cast< long >(val2);
32068 {
32069 PyThreadState* __tstate = wxPyBeginAllowThreads();
32070 (arg1)->SetItemCount(arg2);
32071 wxPyEndAllowThreads(__tstate);
32072 if (PyErr_Occurred()) SWIG_fail;
32073 }
32074 resultobj = SWIG_Py_Void();
32075 return resultobj;
32076 fail:
32077 return NULL;
32078 }
32079
32080
32081 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32082 PyObject *resultobj = 0;
32083 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32084 int arg2 ;
32085 int arg3 ;
32086 bool result;
32087 void *argp1 = 0 ;
32088 int res1 = 0 ;
32089 int val2 ;
32090 int ecode2 = 0 ;
32091 int val3 ;
32092 int ecode3 = 0 ;
32093 PyObject * obj0 = 0 ;
32094 PyObject * obj1 = 0 ;
32095 PyObject * obj2 = 0 ;
32096 char * kwnames[] = {
32097 (char *) "self",(char *) "dx",(char *) "dy", NULL
32098 };
32099
32100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32102 if (!SWIG_IsOK(res1)) {
32103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32104 }
32105 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32106 ecode2 = SWIG_AsVal_int(obj1, &val2);
32107 if (!SWIG_IsOK(ecode2)) {
32108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
32109 }
32110 arg2 = static_cast< int >(val2);
32111 ecode3 = SWIG_AsVal_int(obj2, &val3);
32112 if (!SWIG_IsOK(ecode3)) {
32113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
32114 }
32115 arg3 = static_cast< int >(val3);
32116 {
32117 PyThreadState* __tstate = wxPyBeginAllowThreads();
32118 result = (bool)(arg1)->ScrollList(arg2,arg3);
32119 wxPyEndAllowThreads(__tstate);
32120 if (PyErr_Occurred()) SWIG_fail;
32121 }
32122 {
32123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32124 }
32125 return resultobj;
32126 fail:
32127 return NULL;
32128 }
32129
32130
32131 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32132 PyObject *resultobj = 0;
32133 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32134 long arg2 ;
32135 wxColour *arg3 = 0 ;
32136 void *argp1 = 0 ;
32137 int res1 = 0 ;
32138 long val2 ;
32139 int ecode2 = 0 ;
32140 wxColour temp3 ;
32141 PyObject * obj0 = 0 ;
32142 PyObject * obj1 = 0 ;
32143 PyObject * obj2 = 0 ;
32144 char * kwnames[] = {
32145 (char *) "self",(char *) "item",(char *) "col", NULL
32146 };
32147
32148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32150 if (!SWIG_IsOK(res1)) {
32151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32152 }
32153 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32154 ecode2 = SWIG_AsVal_long(obj1, &val2);
32155 if (!SWIG_IsOK(ecode2)) {
32156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
32157 }
32158 arg2 = static_cast< long >(val2);
32159 {
32160 arg3 = &temp3;
32161 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32162 }
32163 {
32164 PyThreadState* __tstate = wxPyBeginAllowThreads();
32165 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
32166 wxPyEndAllowThreads(__tstate);
32167 if (PyErr_Occurred()) SWIG_fail;
32168 }
32169 resultobj = SWIG_Py_Void();
32170 return resultobj;
32171 fail:
32172 return NULL;
32173 }
32174
32175
32176 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32177 PyObject *resultobj = 0;
32178 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32179 long arg2 ;
32180 wxColour result;
32181 void *argp1 = 0 ;
32182 int res1 = 0 ;
32183 long val2 ;
32184 int ecode2 = 0 ;
32185 PyObject * obj0 = 0 ;
32186 PyObject * obj1 = 0 ;
32187 char * kwnames[] = {
32188 (char *) "self",(char *) "item", NULL
32189 };
32190
32191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
32192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32193 if (!SWIG_IsOK(res1)) {
32194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32195 }
32196 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32197 ecode2 = SWIG_AsVal_long(obj1, &val2);
32198 if (!SWIG_IsOK(ecode2)) {
32199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
32200 }
32201 arg2 = static_cast< long >(val2);
32202 {
32203 PyThreadState* __tstate = wxPyBeginAllowThreads();
32204 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
32205 wxPyEndAllowThreads(__tstate);
32206 if (PyErr_Occurred()) SWIG_fail;
32207 }
32208 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32209 return resultobj;
32210 fail:
32211 return NULL;
32212 }
32213
32214
32215 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32216 PyObject *resultobj = 0;
32217 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32218 long arg2 ;
32219 wxColour *arg3 = 0 ;
32220 void *argp1 = 0 ;
32221 int res1 = 0 ;
32222 long val2 ;
32223 int ecode2 = 0 ;
32224 wxColour temp3 ;
32225 PyObject * obj0 = 0 ;
32226 PyObject * obj1 = 0 ;
32227 PyObject * obj2 = 0 ;
32228 char * kwnames[] = {
32229 (char *) "self",(char *) "item",(char *) "col", NULL
32230 };
32231
32232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32234 if (!SWIG_IsOK(res1)) {
32235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32236 }
32237 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32238 ecode2 = SWIG_AsVal_long(obj1, &val2);
32239 if (!SWIG_IsOK(ecode2)) {
32240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
32241 }
32242 arg2 = static_cast< long >(val2);
32243 {
32244 arg3 = &temp3;
32245 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32246 }
32247 {
32248 PyThreadState* __tstate = wxPyBeginAllowThreads();
32249 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
32250 wxPyEndAllowThreads(__tstate);
32251 if (PyErr_Occurred()) SWIG_fail;
32252 }
32253 resultobj = SWIG_Py_Void();
32254 return resultobj;
32255 fail:
32256 return NULL;
32257 }
32258
32259
32260 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32261 PyObject *resultobj = 0;
32262 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32263 long arg2 ;
32264 wxColour result;
32265 void *argp1 = 0 ;
32266 int res1 = 0 ;
32267 long val2 ;
32268 int ecode2 = 0 ;
32269 PyObject * obj0 = 0 ;
32270 PyObject * obj1 = 0 ;
32271 char * kwnames[] = {
32272 (char *) "self",(char *) "item", NULL
32273 };
32274
32275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
32276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32277 if (!SWIG_IsOK(res1)) {
32278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32279 }
32280 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32281 ecode2 = SWIG_AsVal_long(obj1, &val2);
32282 if (!SWIG_IsOK(ecode2)) {
32283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
32284 }
32285 arg2 = static_cast< long >(val2);
32286 {
32287 PyThreadState* __tstate = wxPyBeginAllowThreads();
32288 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
32289 wxPyEndAllowThreads(__tstate);
32290 if (PyErr_Occurred()) SWIG_fail;
32291 }
32292 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32293 return resultobj;
32294 fail:
32295 return NULL;
32296 }
32297
32298
32299 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32300 PyObject *resultobj = 0;
32301 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32302 long arg2 ;
32303 wxFont *arg3 = 0 ;
32304 void *argp1 = 0 ;
32305 int res1 = 0 ;
32306 long val2 ;
32307 int ecode2 = 0 ;
32308 void *argp3 = 0 ;
32309 int res3 = 0 ;
32310 PyObject * obj0 = 0 ;
32311 PyObject * obj1 = 0 ;
32312 PyObject * obj2 = 0 ;
32313 char * kwnames[] = {
32314 (char *) "self",(char *) "item",(char *) "f", NULL
32315 };
32316
32317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32319 if (!SWIG_IsOK(res1)) {
32320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32321 }
32322 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32323 ecode2 = SWIG_AsVal_long(obj1, &val2);
32324 if (!SWIG_IsOK(ecode2)) {
32325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
32326 }
32327 arg2 = static_cast< long >(val2);
32328 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
32329 if (!SWIG_IsOK(res3)) {
32330 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32331 }
32332 if (!argp3) {
32333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
32334 }
32335 arg3 = reinterpret_cast< wxFont * >(argp3);
32336 {
32337 PyThreadState* __tstate = wxPyBeginAllowThreads();
32338 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
32339 wxPyEndAllowThreads(__tstate);
32340 if (PyErr_Occurred()) SWIG_fail;
32341 }
32342 resultobj = SWIG_Py_Void();
32343 return resultobj;
32344 fail:
32345 return NULL;
32346 }
32347
32348
32349 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32350 PyObject *resultobj = 0;
32351 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32352 long arg2 ;
32353 wxFont result;
32354 void *argp1 = 0 ;
32355 int res1 = 0 ;
32356 long val2 ;
32357 int ecode2 = 0 ;
32358 PyObject * obj0 = 0 ;
32359 PyObject * obj1 = 0 ;
32360 char * kwnames[] = {
32361 (char *) "self",(char *) "item", NULL
32362 };
32363
32364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
32365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32366 if (!SWIG_IsOK(res1)) {
32367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
32368 }
32369 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32370 ecode2 = SWIG_AsVal_long(obj1, &val2);
32371 if (!SWIG_IsOK(ecode2)) {
32372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
32373 }
32374 arg2 = static_cast< long >(val2);
32375 {
32376 PyThreadState* __tstate = wxPyBeginAllowThreads();
32377 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
32378 wxPyEndAllowThreads(__tstate);
32379 if (PyErr_Occurred()) SWIG_fail;
32380 }
32381 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
32382 return resultobj;
32383 fail:
32384 return NULL;
32385 }
32386
32387
32388 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32389 PyObject *resultobj = 0;
32390 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32391 PyObject *arg2 = (PyObject *) 0 ;
32392 bool result;
32393 void *argp1 = 0 ;
32394 int res1 = 0 ;
32395 PyObject * obj0 = 0 ;
32396 PyObject * obj1 = 0 ;
32397 char * kwnames[] = {
32398 (char *) "self",(char *) "func", NULL
32399 };
32400
32401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
32402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32403 if (!SWIG_IsOK(res1)) {
32404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32405 }
32406 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32407 arg2 = obj1;
32408 {
32409 PyThreadState* __tstate = wxPyBeginAllowThreads();
32410 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
32411 wxPyEndAllowThreads(__tstate);
32412 if (PyErr_Occurred()) SWIG_fail;
32413 }
32414 {
32415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32416 }
32417 return resultobj;
32418 fail:
32419 return NULL;
32420 }
32421
32422
32423 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32424 PyObject *resultobj = 0;
32425 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
32426 wxWindow *result = 0 ;
32427 void *argp1 = 0 ;
32428 int res1 = 0 ;
32429 PyObject *swig_obj[1] ;
32430
32431 if (!args) SWIG_fail;
32432 swig_obj[0] = args;
32433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
32434 if (!SWIG_IsOK(res1)) {
32435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
32436 }
32437 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
32438 {
32439 PyThreadState* __tstate = wxPyBeginAllowThreads();
32440 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
32441 wxPyEndAllowThreads(__tstate);
32442 if (PyErr_Occurred()) SWIG_fail;
32443 }
32444 {
32445 resultobj = wxPyMake_wxObject(result, 0);
32446 }
32447 return resultobj;
32448 fail:
32449 return NULL;
32450 }
32451
32452
32453 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32454 PyObject *resultobj = 0;
32455 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
32456 SwigValueWrapper<wxVisualAttributes > result;
32457 int val1 ;
32458 int ecode1 = 0 ;
32459 PyObject * obj0 = 0 ;
32460 char * kwnames[] = {
32461 (char *) "variant", NULL
32462 };
32463
32464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
32465 if (obj0) {
32466 ecode1 = SWIG_AsVal_int(obj0, &val1);
32467 if (!SWIG_IsOK(ecode1)) {
32468 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32469 }
32470 arg1 = static_cast< wxWindowVariant >(val1);
32471 }
32472 {
32473 if (!wxPyCheckForApp()) SWIG_fail;
32474 PyThreadState* __tstate = wxPyBeginAllowThreads();
32475 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32476 wxPyEndAllowThreads(__tstate);
32477 if (PyErr_Occurred()) SWIG_fail;
32478 }
32479 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32480 return resultobj;
32481 fail:
32482 return NULL;
32483 }
32484
32485
32486 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32487 PyObject *obj;
32488 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32489 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32490 return SWIG_Py_Void();
32491 }
32492
32493 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32494 return SWIG_Python_InitShadowInstance(args);
32495 }
32496
32497 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32498 PyObject *resultobj = 0;
32499 wxWindow *arg1 = (wxWindow *) 0 ;
32500 int arg2 = (int) -1 ;
32501 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32502 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32503 wxSize const &arg4_defvalue = wxDefaultSize ;
32504 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32505 long arg5 = (long) wxLC_REPORT ;
32506 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32507 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32508 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32509 wxString *arg7 = (wxString *) &arg7_defvalue ;
32510 wxListView *result = 0 ;
32511 void *argp1 = 0 ;
32512 int res1 = 0 ;
32513 int val2 ;
32514 int ecode2 = 0 ;
32515 wxPoint temp3 ;
32516 wxSize temp4 ;
32517 long val5 ;
32518 int ecode5 = 0 ;
32519 void *argp6 = 0 ;
32520 int res6 = 0 ;
32521 bool temp7 = false ;
32522 PyObject * obj0 = 0 ;
32523 PyObject * obj1 = 0 ;
32524 PyObject * obj2 = 0 ;
32525 PyObject * obj3 = 0 ;
32526 PyObject * obj4 = 0 ;
32527 PyObject * obj5 = 0 ;
32528 PyObject * obj6 = 0 ;
32529 char * kwnames[] = {
32530 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32531 };
32532
32533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32535 if (!SWIG_IsOK(res1)) {
32536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32537 }
32538 arg1 = reinterpret_cast< wxWindow * >(argp1);
32539 if (obj1) {
32540 ecode2 = SWIG_AsVal_int(obj1, &val2);
32541 if (!SWIG_IsOK(ecode2)) {
32542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32543 }
32544 arg2 = static_cast< int >(val2);
32545 }
32546 if (obj2) {
32547 {
32548 arg3 = &temp3;
32549 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32550 }
32551 }
32552 if (obj3) {
32553 {
32554 arg4 = &temp4;
32555 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
32556 }
32557 }
32558 if (obj4) {
32559 ecode5 = SWIG_AsVal_long(obj4, &val5);
32560 if (!SWIG_IsOK(ecode5)) {
32561 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32562 }
32563 arg5 = static_cast< long >(val5);
32564 }
32565 if (obj5) {
32566 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32567 if (!SWIG_IsOK(res6)) {
32568 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32569 }
32570 if (!argp6) {
32571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
32572 }
32573 arg6 = reinterpret_cast< wxValidator * >(argp6);
32574 }
32575 if (obj6) {
32576 {
32577 arg7 = wxString_in_helper(obj6);
32578 if (arg7 == NULL) SWIG_fail;
32579 temp7 = true;
32580 }
32581 }
32582 {
32583 if (!wxPyCheckForApp()) SWIG_fail;
32584 PyThreadState* __tstate = wxPyBeginAllowThreads();
32585 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32586 wxPyEndAllowThreads(__tstate);
32587 if (PyErr_Occurred()) SWIG_fail;
32588 }
32589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32590 {
32591 if (temp7)
32592 delete arg7;
32593 }
32594 return resultobj;
32595 fail:
32596 {
32597 if (temp7)
32598 delete arg7;
32599 }
32600 return NULL;
32601 }
32602
32603
32604 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32605 PyObject *resultobj = 0;
32606 wxListView *result = 0 ;
32607
32608 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32609 {
32610 if (!wxPyCheckForApp()) SWIG_fail;
32611 PyThreadState* __tstate = wxPyBeginAllowThreads();
32612 result = (wxListView *)new wxListView();
32613 wxPyEndAllowThreads(__tstate);
32614 if (PyErr_Occurred()) SWIG_fail;
32615 }
32616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32617 return resultobj;
32618 fail:
32619 return NULL;
32620 }
32621
32622
32623 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32624 PyObject *resultobj = 0;
32625 wxListView *arg1 = (wxListView *) 0 ;
32626 wxWindow *arg2 = (wxWindow *) 0 ;
32627 int arg3 = (int) -1 ;
32628 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32629 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32630 wxSize const &arg5_defvalue = wxDefaultSize ;
32631 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32632 long arg6 = (long) wxLC_REPORT ;
32633 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32634 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32635 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32636 wxString *arg8 = (wxString *) &arg8_defvalue ;
32637 bool result;
32638 void *argp1 = 0 ;
32639 int res1 = 0 ;
32640 void *argp2 = 0 ;
32641 int res2 = 0 ;
32642 int val3 ;
32643 int ecode3 = 0 ;
32644 wxPoint temp4 ;
32645 wxSize temp5 ;
32646 long val6 ;
32647 int ecode6 = 0 ;
32648 void *argp7 = 0 ;
32649 int res7 = 0 ;
32650 bool temp8 = false ;
32651 PyObject * obj0 = 0 ;
32652 PyObject * obj1 = 0 ;
32653 PyObject * obj2 = 0 ;
32654 PyObject * obj3 = 0 ;
32655 PyObject * obj4 = 0 ;
32656 PyObject * obj5 = 0 ;
32657 PyObject * obj6 = 0 ;
32658 PyObject * obj7 = 0 ;
32659 char * kwnames[] = {
32660 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32661 };
32662
32663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32665 if (!SWIG_IsOK(res1)) {
32666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32667 }
32668 arg1 = reinterpret_cast< wxListView * >(argp1);
32669 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32670 if (!SWIG_IsOK(res2)) {
32671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32672 }
32673 arg2 = reinterpret_cast< wxWindow * >(argp2);
32674 if (obj2) {
32675 ecode3 = SWIG_AsVal_int(obj2, &val3);
32676 if (!SWIG_IsOK(ecode3)) {
32677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32678 }
32679 arg3 = static_cast< int >(val3);
32680 }
32681 if (obj3) {
32682 {
32683 arg4 = &temp4;
32684 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32685 }
32686 }
32687 if (obj4) {
32688 {
32689 arg5 = &temp5;
32690 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32691 }
32692 }
32693 if (obj5) {
32694 ecode6 = SWIG_AsVal_long(obj5, &val6);
32695 if (!SWIG_IsOK(ecode6)) {
32696 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32697 }
32698 arg6 = static_cast< long >(val6);
32699 }
32700 if (obj6) {
32701 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32702 if (!SWIG_IsOK(res7)) {
32703 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32704 }
32705 if (!argp7) {
32706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32707 }
32708 arg7 = reinterpret_cast< wxValidator * >(argp7);
32709 }
32710 if (obj7) {
32711 {
32712 arg8 = wxString_in_helper(obj7);
32713 if (arg8 == NULL) SWIG_fail;
32714 temp8 = true;
32715 }
32716 }
32717 {
32718 PyThreadState* __tstate = wxPyBeginAllowThreads();
32719 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32720 wxPyEndAllowThreads(__tstate);
32721 if (PyErr_Occurred()) SWIG_fail;
32722 }
32723 {
32724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32725 }
32726 {
32727 if (temp8)
32728 delete arg8;
32729 }
32730 return resultobj;
32731 fail:
32732 {
32733 if (temp8)
32734 delete arg8;
32735 }
32736 return NULL;
32737 }
32738
32739
32740 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32741 PyObject *resultobj = 0;
32742 wxListView *arg1 = (wxListView *) 0 ;
32743 long arg2 ;
32744 bool arg3 = (bool) true ;
32745 void *argp1 = 0 ;
32746 int res1 = 0 ;
32747 long val2 ;
32748 int ecode2 = 0 ;
32749 bool val3 ;
32750 int ecode3 = 0 ;
32751 PyObject * obj0 = 0 ;
32752 PyObject * obj1 = 0 ;
32753 PyObject * obj2 = 0 ;
32754 char * kwnames[] = {
32755 (char *) "self",(char *) "n",(char *) "on", NULL
32756 };
32757
32758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32760 if (!SWIG_IsOK(res1)) {
32761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32762 }
32763 arg1 = reinterpret_cast< wxListView * >(argp1);
32764 ecode2 = SWIG_AsVal_long(obj1, &val2);
32765 if (!SWIG_IsOK(ecode2)) {
32766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32767 }
32768 arg2 = static_cast< long >(val2);
32769 if (obj2) {
32770 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32771 if (!SWIG_IsOK(ecode3)) {
32772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32773 }
32774 arg3 = static_cast< bool >(val3);
32775 }
32776 {
32777 PyThreadState* __tstate = wxPyBeginAllowThreads();
32778 (arg1)->Select(arg2,arg3);
32779 wxPyEndAllowThreads(__tstate);
32780 if (PyErr_Occurred()) SWIG_fail;
32781 }
32782 resultobj = SWIG_Py_Void();
32783 return resultobj;
32784 fail:
32785 return NULL;
32786 }
32787
32788
32789 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32790 PyObject *resultobj = 0;
32791 wxListView *arg1 = (wxListView *) 0 ;
32792 long arg2 ;
32793 void *argp1 = 0 ;
32794 int res1 = 0 ;
32795 long val2 ;
32796 int ecode2 = 0 ;
32797 PyObject * obj0 = 0 ;
32798 PyObject * obj1 = 0 ;
32799 char * kwnames[] = {
32800 (char *) "self",(char *) "index", NULL
32801 };
32802
32803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32805 if (!SWIG_IsOK(res1)) {
32806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32807 }
32808 arg1 = reinterpret_cast< wxListView * >(argp1);
32809 ecode2 = SWIG_AsVal_long(obj1, &val2);
32810 if (!SWIG_IsOK(ecode2)) {
32811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32812 }
32813 arg2 = static_cast< long >(val2);
32814 {
32815 PyThreadState* __tstate = wxPyBeginAllowThreads();
32816 (arg1)->Focus(arg2);
32817 wxPyEndAllowThreads(__tstate);
32818 if (PyErr_Occurred()) SWIG_fail;
32819 }
32820 resultobj = SWIG_Py_Void();
32821 return resultobj;
32822 fail:
32823 return NULL;
32824 }
32825
32826
32827 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32828 PyObject *resultobj = 0;
32829 wxListView *arg1 = (wxListView *) 0 ;
32830 long result;
32831 void *argp1 = 0 ;
32832 int res1 = 0 ;
32833 PyObject *swig_obj[1] ;
32834
32835 if (!args) SWIG_fail;
32836 swig_obj[0] = args;
32837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32838 if (!SWIG_IsOK(res1)) {
32839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32840 }
32841 arg1 = reinterpret_cast< wxListView * >(argp1);
32842 {
32843 PyThreadState* __tstate = wxPyBeginAllowThreads();
32844 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32845 wxPyEndAllowThreads(__tstate);
32846 if (PyErr_Occurred()) SWIG_fail;
32847 }
32848 resultobj = SWIG_From_long(static_cast< long >(result));
32849 return resultobj;
32850 fail:
32851 return NULL;
32852 }
32853
32854
32855 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32856 PyObject *resultobj = 0;
32857 wxListView *arg1 = (wxListView *) 0 ;
32858 long arg2 ;
32859 long result;
32860 void *argp1 = 0 ;
32861 int res1 = 0 ;
32862 long val2 ;
32863 int ecode2 = 0 ;
32864 PyObject * obj0 = 0 ;
32865 PyObject * obj1 = 0 ;
32866 char * kwnames[] = {
32867 (char *) "self",(char *) "item", NULL
32868 };
32869
32870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32872 if (!SWIG_IsOK(res1)) {
32873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32874 }
32875 arg1 = reinterpret_cast< wxListView * >(argp1);
32876 ecode2 = SWIG_AsVal_long(obj1, &val2);
32877 if (!SWIG_IsOK(ecode2)) {
32878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32879 }
32880 arg2 = static_cast< long >(val2);
32881 {
32882 PyThreadState* __tstate = wxPyBeginAllowThreads();
32883 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32884 wxPyEndAllowThreads(__tstate);
32885 if (PyErr_Occurred()) SWIG_fail;
32886 }
32887 resultobj = SWIG_From_long(static_cast< long >(result));
32888 return resultobj;
32889 fail:
32890 return NULL;
32891 }
32892
32893
32894 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32895 PyObject *resultobj = 0;
32896 wxListView *arg1 = (wxListView *) 0 ;
32897 long result;
32898 void *argp1 = 0 ;
32899 int res1 = 0 ;
32900 PyObject *swig_obj[1] ;
32901
32902 if (!args) SWIG_fail;
32903 swig_obj[0] = args;
32904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32905 if (!SWIG_IsOK(res1)) {
32906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32907 }
32908 arg1 = reinterpret_cast< wxListView * >(argp1);
32909 {
32910 PyThreadState* __tstate = wxPyBeginAllowThreads();
32911 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32912 wxPyEndAllowThreads(__tstate);
32913 if (PyErr_Occurred()) SWIG_fail;
32914 }
32915 resultobj = SWIG_From_long(static_cast< long >(result));
32916 return resultobj;
32917 fail:
32918 return NULL;
32919 }
32920
32921
32922 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32923 PyObject *resultobj = 0;
32924 wxListView *arg1 = (wxListView *) 0 ;
32925 long arg2 ;
32926 bool result;
32927 void *argp1 = 0 ;
32928 int res1 = 0 ;
32929 long val2 ;
32930 int ecode2 = 0 ;
32931 PyObject * obj0 = 0 ;
32932 PyObject * obj1 = 0 ;
32933 char * kwnames[] = {
32934 (char *) "self",(char *) "index", NULL
32935 };
32936
32937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32939 if (!SWIG_IsOK(res1)) {
32940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32941 }
32942 arg1 = reinterpret_cast< wxListView * >(argp1);
32943 ecode2 = SWIG_AsVal_long(obj1, &val2);
32944 if (!SWIG_IsOK(ecode2)) {
32945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32946 }
32947 arg2 = static_cast< long >(val2);
32948 {
32949 PyThreadState* __tstate = wxPyBeginAllowThreads();
32950 result = (bool)(arg1)->IsSelected(arg2);
32951 wxPyEndAllowThreads(__tstate);
32952 if (PyErr_Occurred()) SWIG_fail;
32953 }
32954 {
32955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32956 }
32957 return resultobj;
32958 fail:
32959 return NULL;
32960 }
32961
32962
32963 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32964 PyObject *resultobj = 0;
32965 wxListView *arg1 = (wxListView *) 0 ;
32966 int arg2 ;
32967 int arg3 ;
32968 void *argp1 = 0 ;
32969 int res1 = 0 ;
32970 int val2 ;
32971 int ecode2 = 0 ;
32972 int val3 ;
32973 int ecode3 = 0 ;
32974 PyObject * obj0 = 0 ;
32975 PyObject * obj1 = 0 ;
32976 PyObject * obj2 = 0 ;
32977 char * kwnames[] = {
32978 (char *) "self",(char *) "col",(char *) "image", NULL
32979 };
32980
32981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32983 if (!SWIG_IsOK(res1)) {
32984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32985 }
32986 arg1 = reinterpret_cast< wxListView * >(argp1);
32987 ecode2 = SWIG_AsVal_int(obj1, &val2);
32988 if (!SWIG_IsOK(ecode2)) {
32989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32990 }
32991 arg2 = static_cast< int >(val2);
32992 ecode3 = SWIG_AsVal_int(obj2, &val3);
32993 if (!SWIG_IsOK(ecode3)) {
32994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32995 }
32996 arg3 = static_cast< int >(val3);
32997 {
32998 PyThreadState* __tstate = wxPyBeginAllowThreads();
32999 (arg1)->SetColumnImage(arg2,arg3);
33000 wxPyEndAllowThreads(__tstate);
33001 if (PyErr_Occurred()) SWIG_fail;
33002 }
33003 resultobj = SWIG_Py_Void();
33004 return resultobj;
33005 fail:
33006 return NULL;
33007 }
33008
33009
33010 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33011 PyObject *resultobj = 0;
33012 wxListView *arg1 = (wxListView *) 0 ;
33013 int arg2 ;
33014 void *argp1 = 0 ;
33015 int res1 = 0 ;
33016 int val2 ;
33017 int ecode2 = 0 ;
33018 PyObject * obj0 = 0 ;
33019 PyObject * obj1 = 0 ;
33020 char * kwnames[] = {
33021 (char *) "self",(char *) "col", NULL
33022 };
33023
33024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
33025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
33026 if (!SWIG_IsOK(res1)) {
33027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
33028 }
33029 arg1 = reinterpret_cast< wxListView * >(argp1);
33030 ecode2 = SWIG_AsVal_int(obj1, &val2);
33031 if (!SWIG_IsOK(ecode2)) {
33032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
33033 }
33034 arg2 = static_cast< int >(val2);
33035 {
33036 PyThreadState* __tstate = wxPyBeginAllowThreads();
33037 (arg1)->ClearColumnImage(arg2);
33038 wxPyEndAllowThreads(__tstate);
33039 if (PyErr_Occurred()) SWIG_fail;
33040 }
33041 resultobj = SWIG_Py_Void();
33042 return resultobj;
33043 fail:
33044 return NULL;
33045 }
33046
33047
33048 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33049 PyObject *obj;
33050 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33051 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
33052 return SWIG_Py_Void();
33053 }
33054
33055 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33056 return SWIG_Python_InitShadowInstance(args);
33057 }
33058
33059 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
33060 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
33061 return 1;
33062 }
33063
33064
33065 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
33066 PyObject *pyobj = 0;
33067
33068 {
33069 #if wxUSE_UNICODE
33070 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
33071 #else
33072 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
33073 #endif
33074 }
33075 return pyobj;
33076 }
33077
33078
33079 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33080 PyObject *resultobj = 0;
33081 wxTreeItemId *result = 0 ;
33082
33083 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
33084 {
33085 PyThreadState* __tstate = wxPyBeginAllowThreads();
33086 result = (wxTreeItemId *)new wxTreeItemId();
33087 wxPyEndAllowThreads(__tstate);
33088 if (PyErr_Occurred()) SWIG_fail;
33089 }
33090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
33091 return resultobj;
33092 fail:
33093 return NULL;
33094 }
33095
33096
33097 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33098 PyObject *resultobj = 0;
33099 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33100 void *argp1 = 0 ;
33101 int res1 = 0 ;
33102 PyObject *swig_obj[1] ;
33103
33104 if (!args) SWIG_fail;
33105 swig_obj[0] = args;
33106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
33107 if (!SWIG_IsOK(res1)) {
33108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33109 }
33110 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33111 {
33112 PyThreadState* __tstate = wxPyBeginAllowThreads();
33113 delete arg1;
33114
33115 wxPyEndAllowThreads(__tstate);
33116 if (PyErr_Occurred()) SWIG_fail;
33117 }
33118 resultobj = SWIG_Py_Void();
33119 return resultobj;
33120 fail:
33121 return NULL;
33122 }
33123
33124
33125 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33126 PyObject *resultobj = 0;
33127 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33128 bool result;
33129 void *argp1 = 0 ;
33130 int res1 = 0 ;
33131 PyObject *swig_obj[1] ;
33132
33133 if (!args) SWIG_fail;
33134 swig_obj[0] = args;
33135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33136 if (!SWIG_IsOK(res1)) {
33137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
33138 }
33139 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33140 {
33141 PyThreadState* __tstate = wxPyBeginAllowThreads();
33142 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
33143 wxPyEndAllowThreads(__tstate);
33144 if (PyErr_Occurred()) SWIG_fail;
33145 }
33146 {
33147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33148 }
33149 return resultobj;
33150 fail:
33151 return NULL;
33152 }
33153
33154
33155 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33156 PyObject *resultobj = 0;
33157 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33158 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
33159 bool result;
33160 void *argp1 = 0 ;
33161 int res1 = 0 ;
33162 void *argp2 = 0 ;
33163 int res2 = 0 ;
33164 PyObject * obj0 = 0 ;
33165 PyObject * obj1 = 0 ;
33166 char * kwnames[] = {
33167 (char *) "self",(char *) "other", NULL
33168 };
33169
33170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
33171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33172 if (!SWIG_IsOK(res1)) {
33173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33174 }
33175 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33176 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33177 if (!SWIG_IsOK(res2)) {
33178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
33179 }
33180 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33181 {
33182 PyThreadState* __tstate = wxPyBeginAllowThreads();
33183 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
33184 wxPyEndAllowThreads(__tstate);
33185 if (PyErr_Occurred()) SWIG_fail;
33186 }
33187 {
33188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33189 }
33190 return resultobj;
33191 fail:
33192 return NULL;
33193 }
33194
33195
33196 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33197 PyObject *resultobj = 0;
33198 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33199 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
33200 bool result;
33201 void *argp1 = 0 ;
33202 int res1 = 0 ;
33203 void *argp2 = 0 ;
33204 int res2 = 0 ;
33205 PyObject * obj0 = 0 ;
33206 PyObject * obj1 = 0 ;
33207 char * kwnames[] = {
33208 (char *) "self",(char *) "other", NULL
33209 };
33210
33211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
33212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33213 if (!SWIG_IsOK(res1)) {
33214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33215 }
33216 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33217 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33218 if (!SWIG_IsOK(res2)) {
33219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
33220 }
33221 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33222 {
33223 PyThreadState* __tstate = wxPyBeginAllowThreads();
33224 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
33225 wxPyEndAllowThreads(__tstate);
33226 if (PyErr_Occurred()) SWIG_fail;
33227 }
33228 {
33229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33230 }
33231 return resultobj;
33232 fail:
33233 return NULL;
33234 }
33235
33236
33237 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33238 PyObject *resultobj = 0;
33239 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33240 void *arg2 = (void *) 0 ;
33241 void *argp1 = 0 ;
33242 int res1 = 0 ;
33243 int res2 ;
33244 PyObject *swig_obj[2] ;
33245
33246 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
33247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33248 if (!SWIG_IsOK(res1)) {
33249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33250 }
33251 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33252 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
33253 if (!SWIG_IsOK(res2)) {
33254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
33255 }
33256 if (arg1) (arg1)->m_pItem = arg2;
33257
33258 resultobj = SWIG_Py_Void();
33259 return resultobj;
33260 fail:
33261 return NULL;
33262 }
33263
33264
33265 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33266 PyObject *resultobj = 0;
33267 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
33268 void *result = 0 ;
33269 void *argp1 = 0 ;
33270 int res1 = 0 ;
33271 PyObject *swig_obj[1] ;
33272
33273 if (!args) SWIG_fail;
33274 swig_obj[0] = args;
33275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33276 if (!SWIG_IsOK(res1)) {
33277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
33278 }
33279 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
33280 result = (void *) ((arg1)->m_pItem);
33281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
33282 return resultobj;
33283 fail:
33284 return NULL;
33285 }
33286
33287
33288 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33289 PyObject *obj;
33290 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33291 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
33292 return SWIG_Py_Void();
33293 }
33294
33295 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33296 return SWIG_Python_InitShadowInstance(args);
33297 }
33298
33299 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33300 PyObject *resultobj = 0;
33301 PyObject *arg1 = (PyObject *) NULL ;
33302 wxPyTreeItemData *result = 0 ;
33303 PyObject * obj0 = 0 ;
33304 char * kwnames[] = {
33305 (char *) "obj", NULL
33306 };
33307
33308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
33309 if (obj0) {
33310 arg1 = obj0;
33311 }
33312 {
33313 PyThreadState* __tstate = wxPyBeginAllowThreads();
33314 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
33315 wxPyEndAllowThreads(__tstate);
33316 if (PyErr_Occurred()) SWIG_fail;
33317 }
33318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
33319 return resultobj;
33320 fail:
33321 return NULL;
33322 }
33323
33324
33325 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33326 PyObject *resultobj = 0;
33327 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33328 void *argp1 = 0 ;
33329 int res1 = 0 ;
33330 PyObject *swig_obj[1] ;
33331
33332 if (!args) SWIG_fail;
33333 swig_obj[0] = args;
33334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
33335 if (!SWIG_IsOK(res1)) {
33336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33337 }
33338 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33339 {
33340 PyThreadState* __tstate = wxPyBeginAllowThreads();
33341 delete arg1;
33342
33343 wxPyEndAllowThreads(__tstate);
33344 if (PyErr_Occurred()) SWIG_fail;
33345 }
33346 resultobj = SWIG_Py_Void();
33347 return resultobj;
33348 fail:
33349 return NULL;
33350 }
33351
33352
33353 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33354 PyObject *resultobj = 0;
33355 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33356 PyObject *result = 0 ;
33357 void *argp1 = 0 ;
33358 int res1 = 0 ;
33359 PyObject *swig_obj[1] ;
33360
33361 if (!args) SWIG_fail;
33362 swig_obj[0] = args;
33363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33364 if (!SWIG_IsOK(res1)) {
33365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33366 }
33367 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33368 {
33369 PyThreadState* __tstate = wxPyBeginAllowThreads();
33370 result = (PyObject *)(arg1)->GetData();
33371 wxPyEndAllowThreads(__tstate);
33372 if (PyErr_Occurred()) SWIG_fail;
33373 }
33374 resultobj = result;
33375 return resultobj;
33376 fail:
33377 return NULL;
33378 }
33379
33380
33381 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33382 PyObject *resultobj = 0;
33383 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33384 PyObject *arg2 = (PyObject *) 0 ;
33385 void *argp1 = 0 ;
33386 int res1 = 0 ;
33387 PyObject * obj0 = 0 ;
33388 PyObject * obj1 = 0 ;
33389 char * kwnames[] = {
33390 (char *) "self",(char *) "obj", NULL
33391 };
33392
33393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
33394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33395 if (!SWIG_IsOK(res1)) {
33396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33397 }
33398 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33399 arg2 = obj1;
33400 {
33401 PyThreadState* __tstate = wxPyBeginAllowThreads();
33402 (arg1)->SetData(arg2);
33403 wxPyEndAllowThreads(__tstate);
33404 if (PyErr_Occurred()) SWIG_fail;
33405 }
33406 resultobj = SWIG_Py_Void();
33407 return resultobj;
33408 fail:
33409 return NULL;
33410 }
33411
33412
33413 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33414 PyObject *resultobj = 0;
33415 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33416 wxTreeItemId *result = 0 ;
33417 void *argp1 = 0 ;
33418 int res1 = 0 ;
33419 PyObject *swig_obj[1] ;
33420
33421 if (!args) SWIG_fail;
33422 swig_obj[0] = args;
33423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33424 if (!SWIG_IsOK(res1)) {
33425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33426 }
33427 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33428 {
33429 PyThreadState* __tstate = wxPyBeginAllowThreads();
33430 {
33431 wxTreeItemId const &_result_ref = (arg1)->GetId();
33432 result = (wxTreeItemId *) &_result_ref;
33433 }
33434 wxPyEndAllowThreads(__tstate);
33435 if (PyErr_Occurred()) SWIG_fail;
33436 }
33437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
33438 return resultobj;
33439 fail:
33440 return NULL;
33441 }
33442
33443
33444 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33445 PyObject *resultobj = 0;
33446 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33447 wxTreeItemId *arg2 = 0 ;
33448 void *argp1 = 0 ;
33449 int res1 = 0 ;
33450 void *argp2 = 0 ;
33451 int res2 = 0 ;
33452 PyObject * obj0 = 0 ;
33453 PyObject * obj1 = 0 ;
33454 char * kwnames[] = {
33455 (char *) "self",(char *) "id", NULL
33456 };
33457
33458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
33459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33460 if (!SWIG_IsOK(res1)) {
33461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33462 }
33463 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33465 if (!SWIG_IsOK(res2)) {
33466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33467 }
33468 if (!argp2) {
33469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33470 }
33471 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33472 {
33473 PyThreadState* __tstate = wxPyBeginAllowThreads();
33474 (arg1)->SetId((wxTreeItemId const &)*arg2);
33475 wxPyEndAllowThreads(__tstate);
33476 if (PyErr_Occurred()) SWIG_fail;
33477 }
33478 resultobj = SWIG_Py_Void();
33479 return resultobj;
33480 fail:
33481 return NULL;
33482 }
33483
33484
33485 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33486 PyObject *resultobj = 0;
33487 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33488 void *argp1 = 0 ;
33489 int res1 = 0 ;
33490 PyObject *swig_obj[1] ;
33491
33492 if (!args) SWIG_fail;
33493 swig_obj[0] = args;
33494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33495 if (!SWIG_IsOK(res1)) {
33496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33497 }
33498 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33499 {
33500 PyThreadState* __tstate = wxPyBeginAllowThreads();
33501 wxPyTreeItemData_Destroy(arg1);
33502 wxPyEndAllowThreads(__tstate);
33503 if (PyErr_Occurred()) SWIG_fail;
33504 }
33505 resultobj = SWIG_Py_Void();
33506 return resultobj;
33507 fail:
33508 return NULL;
33509 }
33510
33511
33512 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33513 PyObject *obj;
33514 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33515 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33516 return SWIG_Py_Void();
33517 }
33518
33519 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33520 return SWIG_Python_InitShadowInstance(args);
33521 }
33522
33523 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33524 {
33525 void *argp = 0;
33526 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33527 if (!SWIG_IsOK(res)) {
33528 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33529 }
33530 if (!argp) {
33531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33532 } else {
33533 wxTreeItemId * temp;
33534 temp = reinterpret_cast< wxTreeItemId * >(argp);
33535 wxNullTreeItemId = *temp;
33536 if (SWIG_IsNewObj(res)) delete temp;
33537 }
33538 }
33539 return 0;
33540 fail:
33541 return 1;
33542 }
33543
33544
33545 SWIGINTERN PyObject *NullTreeItemId_get(void) {
33546 PyObject *pyobj = 0;
33547
33548 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33549 return pyobj;
33550 }
33551
33552
33553 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33554 PyObject *resultobj = 0;
33555 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33556 int arg2 = (int) 0 ;
33557 wxTreeEvent *result = 0 ;
33558 int val1 ;
33559 int ecode1 = 0 ;
33560 int val2 ;
33561 int ecode2 = 0 ;
33562
33563 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33564 if (swig_obj[0]) {
33565 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33566 if (!SWIG_IsOK(ecode1)) {
33567 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33568 }
33569 arg1 = static_cast< wxEventType >(val1);
33570 }
33571 if (swig_obj[1]) {
33572 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33573 if (!SWIG_IsOK(ecode2)) {
33574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33575 }
33576 arg2 = static_cast< int >(val2);
33577 }
33578 {
33579 PyThreadState* __tstate = wxPyBeginAllowThreads();
33580 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33581 wxPyEndAllowThreads(__tstate);
33582 if (PyErr_Occurred()) SWIG_fail;
33583 }
33584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33585 return resultobj;
33586 fail:
33587 return NULL;
33588 }
33589
33590
33591 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33592 PyObject *resultobj = 0;
33593 wxEventType arg1 ;
33594 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33595 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33596 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33597 wxTreeEvent *result = 0 ;
33598 int val1 ;
33599 int ecode1 = 0 ;
33600 void *argp2 = 0 ;
33601 int res2 = 0 ;
33602 void *argp3 = 0 ;
33603 int res3 = 0 ;
33604
33605 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33606 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33607 if (!SWIG_IsOK(ecode1)) {
33608 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33609 }
33610 arg1 = static_cast< wxEventType >(val1);
33611 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33612 if (!SWIG_IsOK(res2)) {
33613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33614 }
33615 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33616 if (swig_obj[2]) {
33617 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33618 if (!SWIG_IsOK(res3)) {
33619 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33620 }
33621 if (!argp3) {
33622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33623 }
33624 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33625 }
33626 {
33627 PyThreadState* __tstate = wxPyBeginAllowThreads();
33628 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33629 wxPyEndAllowThreads(__tstate);
33630 if (PyErr_Occurred()) SWIG_fail;
33631 }
33632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33633 return resultobj;
33634 fail:
33635 return NULL;
33636 }
33637
33638
33639 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33640 int argc;
33641 PyObject *argv[4];
33642
33643 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33644 --argc;
33645 if ((argc >= 0) && (argc <= 2)) {
33646 int _v = 0;
33647 if (argc > 1) {
33648 {
33649 {
33650 int res = SWIG_AsVal_int(argv[1], NULL);
33651 _v = SWIG_CheckState(res);
33652 }
33653 }
33654 if (!_v) goto check_1;
33655 }
33656 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33657 }
33658 check_1:
33659
33660 if ((argc >= 2) && (argc <= 3)) {
33661 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33662 }
33663
33664 fail:
33665 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33666 return NULL;
33667 }
33668
33669
33670 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33671 PyObject *resultobj = 0;
33672 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33673 wxTreeItemId result;
33674 void *argp1 = 0 ;
33675 int res1 = 0 ;
33676 PyObject *swig_obj[1] ;
33677
33678 if (!args) SWIG_fail;
33679 swig_obj[0] = args;
33680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33681 if (!SWIG_IsOK(res1)) {
33682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33683 }
33684 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33685 {
33686 PyThreadState* __tstate = wxPyBeginAllowThreads();
33687 result = ((wxTreeEvent const *)arg1)->GetItem();
33688 wxPyEndAllowThreads(__tstate);
33689 if (PyErr_Occurred()) SWIG_fail;
33690 }
33691 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33692 return resultobj;
33693 fail:
33694 return NULL;
33695 }
33696
33697
33698 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33699 PyObject *resultobj = 0;
33700 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33701 wxTreeItemId *arg2 = 0 ;
33702 void *argp1 = 0 ;
33703 int res1 = 0 ;
33704 void *argp2 = 0 ;
33705 int res2 = 0 ;
33706 PyObject * obj0 = 0 ;
33707 PyObject * obj1 = 0 ;
33708 char * kwnames[] = {
33709 (char *) "self",(char *) "item", NULL
33710 };
33711
33712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33714 if (!SWIG_IsOK(res1)) {
33715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33716 }
33717 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33719 if (!SWIG_IsOK(res2)) {
33720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33721 }
33722 if (!argp2) {
33723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33724 }
33725 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33726 {
33727 PyThreadState* __tstate = wxPyBeginAllowThreads();
33728 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33729 wxPyEndAllowThreads(__tstate);
33730 if (PyErr_Occurred()) SWIG_fail;
33731 }
33732 resultobj = SWIG_Py_Void();
33733 return resultobj;
33734 fail:
33735 return NULL;
33736 }
33737
33738
33739 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33740 PyObject *resultobj = 0;
33741 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33742 wxTreeItemId result;
33743 void *argp1 = 0 ;
33744 int res1 = 0 ;
33745 PyObject *swig_obj[1] ;
33746
33747 if (!args) SWIG_fail;
33748 swig_obj[0] = args;
33749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33750 if (!SWIG_IsOK(res1)) {
33751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33752 }
33753 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33754 {
33755 PyThreadState* __tstate = wxPyBeginAllowThreads();
33756 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33757 wxPyEndAllowThreads(__tstate);
33758 if (PyErr_Occurred()) SWIG_fail;
33759 }
33760 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33761 return resultobj;
33762 fail:
33763 return NULL;
33764 }
33765
33766
33767 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33768 PyObject *resultobj = 0;
33769 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33770 wxTreeItemId *arg2 = 0 ;
33771 void *argp1 = 0 ;
33772 int res1 = 0 ;
33773 void *argp2 = 0 ;
33774 int res2 = 0 ;
33775 PyObject * obj0 = 0 ;
33776 PyObject * obj1 = 0 ;
33777 char * kwnames[] = {
33778 (char *) "self",(char *) "item", NULL
33779 };
33780
33781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33783 if (!SWIG_IsOK(res1)) {
33784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33785 }
33786 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33787 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33788 if (!SWIG_IsOK(res2)) {
33789 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33790 }
33791 if (!argp2) {
33792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33793 }
33794 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33795 {
33796 PyThreadState* __tstate = wxPyBeginAllowThreads();
33797 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33798 wxPyEndAllowThreads(__tstate);
33799 if (PyErr_Occurred()) SWIG_fail;
33800 }
33801 resultobj = SWIG_Py_Void();
33802 return resultobj;
33803 fail:
33804 return NULL;
33805 }
33806
33807
33808 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33809 PyObject *resultobj = 0;
33810 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33811 wxPoint result;
33812 void *argp1 = 0 ;
33813 int res1 = 0 ;
33814 PyObject *swig_obj[1] ;
33815
33816 if (!args) SWIG_fail;
33817 swig_obj[0] = args;
33818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33819 if (!SWIG_IsOK(res1)) {
33820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33821 }
33822 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33823 {
33824 PyThreadState* __tstate = wxPyBeginAllowThreads();
33825 result = ((wxTreeEvent const *)arg1)->GetPoint();
33826 wxPyEndAllowThreads(__tstate);
33827 if (PyErr_Occurred()) SWIG_fail;
33828 }
33829 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33830 return resultobj;
33831 fail:
33832 return NULL;
33833 }
33834
33835
33836 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33837 PyObject *resultobj = 0;
33838 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33839 wxPoint *arg2 = 0 ;
33840 void *argp1 = 0 ;
33841 int res1 = 0 ;
33842 wxPoint temp2 ;
33843 PyObject * obj0 = 0 ;
33844 PyObject * obj1 = 0 ;
33845 char * kwnames[] = {
33846 (char *) "self",(char *) "pt", NULL
33847 };
33848
33849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33851 if (!SWIG_IsOK(res1)) {
33852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33853 }
33854 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33855 {
33856 arg2 = &temp2;
33857 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33858 }
33859 {
33860 PyThreadState* __tstate = wxPyBeginAllowThreads();
33861 (arg1)->SetPoint((wxPoint const &)*arg2);
33862 wxPyEndAllowThreads(__tstate);
33863 if (PyErr_Occurred()) SWIG_fail;
33864 }
33865 resultobj = SWIG_Py_Void();
33866 return resultobj;
33867 fail:
33868 return NULL;
33869 }
33870
33871
33872 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33873 PyObject *resultobj = 0;
33874 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33875 wxKeyEvent *result = 0 ;
33876 void *argp1 = 0 ;
33877 int res1 = 0 ;
33878 PyObject *swig_obj[1] ;
33879
33880 if (!args) SWIG_fail;
33881 swig_obj[0] = args;
33882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33883 if (!SWIG_IsOK(res1)) {
33884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33885 }
33886 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33887 {
33888 PyThreadState* __tstate = wxPyBeginAllowThreads();
33889 {
33890 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33891 result = (wxKeyEvent *) &_result_ref;
33892 }
33893 wxPyEndAllowThreads(__tstate);
33894 if (PyErr_Occurred()) SWIG_fail;
33895 }
33896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33897 return resultobj;
33898 fail:
33899 return NULL;
33900 }
33901
33902
33903 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33904 PyObject *resultobj = 0;
33905 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33906 int result;
33907 void *argp1 = 0 ;
33908 int res1 = 0 ;
33909 PyObject *swig_obj[1] ;
33910
33911 if (!args) SWIG_fail;
33912 swig_obj[0] = args;
33913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33914 if (!SWIG_IsOK(res1)) {
33915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33916 }
33917 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33918 {
33919 PyThreadState* __tstate = wxPyBeginAllowThreads();
33920 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33921 wxPyEndAllowThreads(__tstate);
33922 if (PyErr_Occurred()) SWIG_fail;
33923 }
33924 resultobj = SWIG_From_int(static_cast< int >(result));
33925 return resultobj;
33926 fail:
33927 return NULL;
33928 }
33929
33930
33931 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33932 PyObject *resultobj = 0;
33933 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33934 wxKeyEvent *arg2 = 0 ;
33935 void *argp1 = 0 ;
33936 int res1 = 0 ;
33937 void *argp2 = 0 ;
33938 int res2 = 0 ;
33939 PyObject * obj0 = 0 ;
33940 PyObject * obj1 = 0 ;
33941 char * kwnames[] = {
33942 (char *) "self",(char *) "evt", NULL
33943 };
33944
33945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33947 if (!SWIG_IsOK(res1)) {
33948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33949 }
33950 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33952 if (!SWIG_IsOK(res2)) {
33953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33954 }
33955 if (!argp2) {
33956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33957 }
33958 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33959 {
33960 PyThreadState* __tstate = wxPyBeginAllowThreads();
33961 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33962 wxPyEndAllowThreads(__tstate);
33963 if (PyErr_Occurred()) SWIG_fail;
33964 }
33965 resultobj = SWIG_Py_Void();
33966 return resultobj;
33967 fail:
33968 return NULL;
33969 }
33970
33971
33972 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33973 PyObject *resultobj = 0;
33974 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33975 wxString *result = 0 ;
33976 void *argp1 = 0 ;
33977 int res1 = 0 ;
33978 PyObject *swig_obj[1] ;
33979
33980 if (!args) SWIG_fail;
33981 swig_obj[0] = args;
33982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33983 if (!SWIG_IsOK(res1)) {
33984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33985 }
33986 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33987 {
33988 PyThreadState* __tstate = wxPyBeginAllowThreads();
33989 {
33990 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33991 result = (wxString *) &_result_ref;
33992 }
33993 wxPyEndAllowThreads(__tstate);
33994 if (PyErr_Occurred()) SWIG_fail;
33995 }
33996 {
33997 #if wxUSE_UNICODE
33998 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33999 #else
34000 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34001 #endif
34002 }
34003 return resultobj;
34004 fail:
34005 return NULL;
34006 }
34007
34008
34009 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34010 PyObject *resultobj = 0;
34011 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34012 wxString *arg2 = 0 ;
34013 void *argp1 = 0 ;
34014 int res1 = 0 ;
34015 bool temp2 = false ;
34016 PyObject * obj0 = 0 ;
34017 PyObject * obj1 = 0 ;
34018 char * kwnames[] = {
34019 (char *) "self",(char *) "label", NULL
34020 };
34021
34022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
34023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34024 if (!SWIG_IsOK(res1)) {
34025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
34026 }
34027 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34028 {
34029 arg2 = wxString_in_helper(obj1);
34030 if (arg2 == NULL) SWIG_fail;
34031 temp2 = true;
34032 }
34033 {
34034 PyThreadState* __tstate = wxPyBeginAllowThreads();
34035 (arg1)->SetLabel((wxString const &)*arg2);
34036 wxPyEndAllowThreads(__tstate);
34037 if (PyErr_Occurred()) SWIG_fail;
34038 }
34039 resultobj = SWIG_Py_Void();
34040 {
34041 if (temp2)
34042 delete arg2;
34043 }
34044 return resultobj;
34045 fail:
34046 {
34047 if (temp2)
34048 delete arg2;
34049 }
34050 return NULL;
34051 }
34052
34053
34054 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34055 PyObject *resultobj = 0;
34056 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34057 bool result;
34058 void *argp1 = 0 ;
34059 int res1 = 0 ;
34060 PyObject *swig_obj[1] ;
34061
34062 if (!args) SWIG_fail;
34063 swig_obj[0] = args;
34064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34065 if (!SWIG_IsOK(res1)) {
34066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
34067 }
34068 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34069 {
34070 PyThreadState* __tstate = wxPyBeginAllowThreads();
34071 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
34072 wxPyEndAllowThreads(__tstate);
34073 if (PyErr_Occurred()) SWIG_fail;
34074 }
34075 {
34076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34077 }
34078 return resultobj;
34079 fail:
34080 return NULL;
34081 }
34082
34083
34084 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34085 PyObject *resultobj = 0;
34086 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34087 bool arg2 ;
34088 void *argp1 = 0 ;
34089 int res1 = 0 ;
34090 bool val2 ;
34091 int ecode2 = 0 ;
34092 PyObject * obj0 = 0 ;
34093 PyObject * obj1 = 0 ;
34094 char * kwnames[] = {
34095 (char *) "self",(char *) "editCancelled", NULL
34096 };
34097
34098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
34099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34100 if (!SWIG_IsOK(res1)) {
34101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
34102 }
34103 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34104 ecode2 = SWIG_AsVal_bool(obj1, &val2);
34105 if (!SWIG_IsOK(ecode2)) {
34106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
34107 }
34108 arg2 = static_cast< bool >(val2);
34109 {
34110 PyThreadState* __tstate = wxPyBeginAllowThreads();
34111 (arg1)->SetEditCanceled(arg2);
34112 wxPyEndAllowThreads(__tstate);
34113 if (PyErr_Occurred()) SWIG_fail;
34114 }
34115 resultobj = SWIG_Py_Void();
34116 return resultobj;
34117 fail:
34118 return NULL;
34119 }
34120
34121
34122 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34123 PyObject *resultobj = 0;
34124 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34125 wxString *arg2 = 0 ;
34126 void *argp1 = 0 ;
34127 int res1 = 0 ;
34128 bool temp2 = false ;
34129 PyObject * obj0 = 0 ;
34130 PyObject * obj1 = 0 ;
34131 char * kwnames[] = {
34132 (char *) "self",(char *) "toolTip", NULL
34133 };
34134
34135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
34136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34137 if (!SWIG_IsOK(res1)) {
34138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
34139 }
34140 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34141 {
34142 arg2 = wxString_in_helper(obj1);
34143 if (arg2 == NULL) SWIG_fail;
34144 temp2 = true;
34145 }
34146 {
34147 PyThreadState* __tstate = wxPyBeginAllowThreads();
34148 (arg1)->SetToolTip((wxString const &)*arg2);
34149 wxPyEndAllowThreads(__tstate);
34150 if (PyErr_Occurred()) SWIG_fail;
34151 }
34152 resultobj = SWIG_Py_Void();
34153 {
34154 if (temp2)
34155 delete arg2;
34156 }
34157 return resultobj;
34158 fail:
34159 {
34160 if (temp2)
34161 delete arg2;
34162 }
34163 return NULL;
34164 }
34165
34166
34167 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34168 PyObject *resultobj = 0;
34169 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
34170 wxString result;
34171 void *argp1 = 0 ;
34172 int res1 = 0 ;
34173 PyObject *swig_obj[1] ;
34174
34175 if (!args) SWIG_fail;
34176 swig_obj[0] = args;
34177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
34178 if (!SWIG_IsOK(res1)) {
34179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
34180 }
34181 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
34182 {
34183 PyThreadState* __tstate = wxPyBeginAllowThreads();
34184 result = (arg1)->GetToolTip();
34185 wxPyEndAllowThreads(__tstate);
34186 if (PyErr_Occurred()) SWIG_fail;
34187 }
34188 {
34189 #if wxUSE_UNICODE
34190 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34191 #else
34192 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34193 #endif
34194 }
34195 return resultobj;
34196 fail:
34197 return NULL;
34198 }
34199
34200
34201 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34202 PyObject *obj;
34203 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34204 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
34205 return SWIG_Py_Void();
34206 }
34207
34208 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34209 return SWIG_Python_InitShadowInstance(args);
34210 }
34211
34212 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34213 PyObject *resultobj = 0;
34214 wxWindow *arg1 = (wxWindow *) 0 ;
34215 int arg2 = (int) -1 ;
34216 wxPoint const &arg3_defvalue = wxDefaultPosition ;
34217 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
34218 wxSize const &arg4_defvalue = wxDefaultSize ;
34219 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
34220 long arg5 = (long) wxTR_DEFAULT_STYLE ;
34221 wxValidator const &arg6_defvalue = wxDefaultValidator ;
34222 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
34223 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
34224 wxString *arg7 = (wxString *) &arg7_defvalue ;
34225 wxPyTreeCtrl *result = 0 ;
34226 void *argp1 = 0 ;
34227 int res1 = 0 ;
34228 int val2 ;
34229 int ecode2 = 0 ;
34230 wxPoint temp3 ;
34231 wxSize temp4 ;
34232 long val5 ;
34233 int ecode5 = 0 ;
34234 void *argp6 = 0 ;
34235 int res6 = 0 ;
34236 bool temp7 = false ;
34237 PyObject * obj0 = 0 ;
34238 PyObject * obj1 = 0 ;
34239 PyObject * obj2 = 0 ;
34240 PyObject * obj3 = 0 ;
34241 PyObject * obj4 = 0 ;
34242 PyObject * obj5 = 0 ;
34243 PyObject * obj6 = 0 ;
34244 char * kwnames[] = {
34245 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34246 };
34247
34248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
34250 if (!SWIG_IsOK(res1)) {
34251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
34252 }
34253 arg1 = reinterpret_cast< wxWindow * >(argp1);
34254 if (obj1) {
34255 ecode2 = SWIG_AsVal_int(obj1, &val2);
34256 if (!SWIG_IsOK(ecode2)) {
34257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
34258 }
34259 arg2 = static_cast< int >(val2);
34260 }
34261 if (obj2) {
34262 {
34263 arg3 = &temp3;
34264 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34265 }
34266 }
34267 if (obj3) {
34268 {
34269 arg4 = &temp4;
34270 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34271 }
34272 }
34273 if (obj4) {
34274 ecode5 = SWIG_AsVal_long(obj4, &val5);
34275 if (!SWIG_IsOK(ecode5)) {
34276 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
34277 }
34278 arg5 = static_cast< long >(val5);
34279 }
34280 if (obj5) {
34281 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
34282 if (!SWIG_IsOK(res6)) {
34283 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
34284 }
34285 if (!argp6) {
34286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
34287 }
34288 arg6 = reinterpret_cast< wxValidator * >(argp6);
34289 }
34290 if (obj6) {
34291 {
34292 arg7 = wxString_in_helper(obj6);
34293 if (arg7 == NULL) SWIG_fail;
34294 temp7 = true;
34295 }
34296 }
34297 {
34298 if (!wxPyCheckForApp()) SWIG_fail;
34299 PyThreadState* __tstate = wxPyBeginAllowThreads();
34300 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
34301 wxPyEndAllowThreads(__tstate);
34302 if (PyErr_Occurred()) SWIG_fail;
34303 }
34304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
34305 {
34306 if (temp7)
34307 delete arg7;
34308 }
34309 return resultobj;
34310 fail:
34311 {
34312 if (temp7)
34313 delete arg7;
34314 }
34315 return NULL;
34316 }
34317
34318
34319 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34320 PyObject *resultobj = 0;
34321 wxPyTreeCtrl *result = 0 ;
34322
34323 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
34324 {
34325 if (!wxPyCheckForApp()) SWIG_fail;
34326 PyThreadState* __tstate = wxPyBeginAllowThreads();
34327 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
34328 wxPyEndAllowThreads(__tstate);
34329 if (PyErr_Occurred()) SWIG_fail;
34330 }
34331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
34332 return resultobj;
34333 fail:
34334 return NULL;
34335 }
34336
34337
34338 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34339 PyObject *resultobj = 0;
34340 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34341 wxWindow *arg2 = (wxWindow *) 0 ;
34342 int arg3 = (int) -1 ;
34343 wxPoint const &arg4_defvalue = wxDefaultPosition ;
34344 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
34345 wxSize const &arg5_defvalue = wxDefaultSize ;
34346 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
34347 long arg6 = (long) wxTR_DEFAULT_STYLE ;
34348 wxValidator const &arg7_defvalue = wxDefaultValidator ;
34349 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
34350 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
34351 wxString *arg8 = (wxString *) &arg8_defvalue ;
34352 bool result;
34353 void *argp1 = 0 ;
34354 int res1 = 0 ;
34355 void *argp2 = 0 ;
34356 int res2 = 0 ;
34357 int val3 ;
34358 int ecode3 = 0 ;
34359 wxPoint temp4 ;
34360 wxSize temp5 ;
34361 long val6 ;
34362 int ecode6 = 0 ;
34363 void *argp7 = 0 ;
34364 int res7 = 0 ;
34365 bool temp8 = false ;
34366 PyObject * obj0 = 0 ;
34367 PyObject * obj1 = 0 ;
34368 PyObject * obj2 = 0 ;
34369 PyObject * obj3 = 0 ;
34370 PyObject * obj4 = 0 ;
34371 PyObject * obj5 = 0 ;
34372 PyObject * obj6 = 0 ;
34373 PyObject * obj7 = 0 ;
34374 char * kwnames[] = {
34375 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
34376 };
34377
34378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
34379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34380 if (!SWIG_IsOK(res1)) {
34381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34382 }
34383 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34384 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34385 if (!SWIG_IsOK(res2)) {
34386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
34387 }
34388 arg2 = reinterpret_cast< wxWindow * >(argp2);
34389 if (obj2) {
34390 ecode3 = SWIG_AsVal_int(obj2, &val3);
34391 if (!SWIG_IsOK(ecode3)) {
34392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
34393 }
34394 arg3 = static_cast< int >(val3);
34395 }
34396 if (obj3) {
34397 {
34398 arg4 = &temp4;
34399 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
34400 }
34401 }
34402 if (obj4) {
34403 {
34404 arg5 = &temp5;
34405 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
34406 }
34407 }
34408 if (obj5) {
34409 ecode6 = SWIG_AsVal_long(obj5, &val6);
34410 if (!SWIG_IsOK(ecode6)) {
34411 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
34412 }
34413 arg6 = static_cast< long >(val6);
34414 }
34415 if (obj6) {
34416 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
34417 if (!SWIG_IsOK(res7)) {
34418 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34419 }
34420 if (!argp7) {
34421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
34422 }
34423 arg7 = reinterpret_cast< wxValidator * >(argp7);
34424 }
34425 if (obj7) {
34426 {
34427 arg8 = wxString_in_helper(obj7);
34428 if (arg8 == NULL) SWIG_fail;
34429 temp8 = true;
34430 }
34431 }
34432 {
34433 PyThreadState* __tstate = wxPyBeginAllowThreads();
34434 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
34435 wxPyEndAllowThreads(__tstate);
34436 if (PyErr_Occurred()) SWIG_fail;
34437 }
34438 {
34439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34440 }
34441 {
34442 if (temp8)
34443 delete arg8;
34444 }
34445 return resultobj;
34446 fail:
34447 {
34448 if (temp8)
34449 delete arg8;
34450 }
34451 return NULL;
34452 }
34453
34454
34455 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34456 PyObject *resultobj = 0;
34457 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34458 PyObject *arg2 = (PyObject *) 0 ;
34459 PyObject *arg3 = (PyObject *) 0 ;
34460 void *argp1 = 0 ;
34461 int res1 = 0 ;
34462 PyObject * obj0 = 0 ;
34463 PyObject * obj1 = 0 ;
34464 PyObject * obj2 = 0 ;
34465 char * kwnames[] = {
34466 (char *) "self",(char *) "self",(char *) "_class", NULL
34467 };
34468
34469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34471 if (!SWIG_IsOK(res1)) {
34472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34473 }
34474 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34475 arg2 = obj1;
34476 arg3 = obj2;
34477 {
34478 PyThreadState* __tstate = wxPyBeginAllowThreads();
34479 (arg1)->_setCallbackInfo(arg2,arg3);
34480 wxPyEndAllowThreads(__tstate);
34481 if (PyErr_Occurred()) SWIG_fail;
34482 }
34483 resultobj = SWIG_Py_Void();
34484 return resultobj;
34485 fail:
34486 return NULL;
34487 }
34488
34489
34490 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34491 PyObject *resultobj = 0;
34492 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34493 unsigned int result;
34494 void *argp1 = 0 ;
34495 int res1 = 0 ;
34496 PyObject *swig_obj[1] ;
34497
34498 if (!args) SWIG_fail;
34499 swig_obj[0] = args;
34500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34501 if (!SWIG_IsOK(res1)) {
34502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34503 }
34504 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34505 {
34506 PyThreadState* __tstate = wxPyBeginAllowThreads();
34507 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
34508 wxPyEndAllowThreads(__tstate);
34509 if (PyErr_Occurred()) SWIG_fail;
34510 }
34511 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34512 return resultobj;
34513 fail:
34514 return NULL;
34515 }
34516
34517
34518 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34519 PyObject *resultobj = 0;
34520 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34521 unsigned int result;
34522 void *argp1 = 0 ;
34523 int res1 = 0 ;
34524 PyObject *swig_obj[1] ;
34525
34526 if (!args) SWIG_fail;
34527 swig_obj[0] = args;
34528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34529 if (!SWIG_IsOK(res1)) {
34530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34531 }
34532 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34533 {
34534 PyThreadState* __tstate = wxPyBeginAllowThreads();
34535 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34536 wxPyEndAllowThreads(__tstate);
34537 if (PyErr_Occurred()) SWIG_fail;
34538 }
34539 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34540 return resultobj;
34541 fail:
34542 return NULL;
34543 }
34544
34545
34546 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34547 PyObject *resultobj = 0;
34548 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34549 unsigned int arg2 ;
34550 void *argp1 = 0 ;
34551 int res1 = 0 ;
34552 unsigned int val2 ;
34553 int ecode2 = 0 ;
34554 PyObject * obj0 = 0 ;
34555 PyObject * obj1 = 0 ;
34556 char * kwnames[] = {
34557 (char *) "self",(char *) "indent", NULL
34558 };
34559
34560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34562 if (!SWIG_IsOK(res1)) {
34563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34564 }
34565 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34566 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34567 if (!SWIG_IsOK(ecode2)) {
34568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34569 }
34570 arg2 = static_cast< unsigned int >(val2);
34571 {
34572 PyThreadState* __tstate = wxPyBeginAllowThreads();
34573 (arg1)->SetIndent(arg2);
34574 wxPyEndAllowThreads(__tstate);
34575 if (PyErr_Occurred()) SWIG_fail;
34576 }
34577 resultobj = SWIG_Py_Void();
34578 return resultobj;
34579 fail:
34580 return NULL;
34581 }
34582
34583
34584 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34585 PyObject *resultobj = 0;
34586 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34587 unsigned int result;
34588 void *argp1 = 0 ;
34589 int res1 = 0 ;
34590 PyObject *swig_obj[1] ;
34591
34592 if (!args) SWIG_fail;
34593 swig_obj[0] = args;
34594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34595 if (!SWIG_IsOK(res1)) {
34596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34597 }
34598 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34599 {
34600 PyThreadState* __tstate = wxPyBeginAllowThreads();
34601 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34602 wxPyEndAllowThreads(__tstate);
34603 if (PyErr_Occurred()) SWIG_fail;
34604 }
34605 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34606 return resultobj;
34607 fail:
34608 return NULL;
34609 }
34610
34611
34612 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34613 PyObject *resultobj = 0;
34614 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34615 unsigned int arg2 ;
34616 void *argp1 = 0 ;
34617 int res1 = 0 ;
34618 unsigned int val2 ;
34619 int ecode2 = 0 ;
34620 PyObject * obj0 = 0 ;
34621 PyObject * obj1 = 0 ;
34622 char * kwnames[] = {
34623 (char *) "self",(char *) "spacing", NULL
34624 };
34625
34626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34628 if (!SWIG_IsOK(res1)) {
34629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34630 }
34631 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34632 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34633 if (!SWIG_IsOK(ecode2)) {
34634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34635 }
34636 arg2 = static_cast< unsigned int >(val2);
34637 {
34638 PyThreadState* __tstate = wxPyBeginAllowThreads();
34639 (arg1)->SetSpacing(arg2);
34640 wxPyEndAllowThreads(__tstate);
34641 if (PyErr_Occurred()) SWIG_fail;
34642 }
34643 resultobj = SWIG_Py_Void();
34644 return resultobj;
34645 fail:
34646 return NULL;
34647 }
34648
34649
34650 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34651 PyObject *resultobj = 0;
34652 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34653 wxImageList *result = 0 ;
34654 void *argp1 = 0 ;
34655 int res1 = 0 ;
34656 PyObject *swig_obj[1] ;
34657
34658 if (!args) SWIG_fail;
34659 swig_obj[0] = args;
34660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34661 if (!SWIG_IsOK(res1)) {
34662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34663 }
34664 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34665 {
34666 PyThreadState* __tstate = wxPyBeginAllowThreads();
34667 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34668 wxPyEndAllowThreads(__tstate);
34669 if (PyErr_Occurred()) SWIG_fail;
34670 }
34671 {
34672 resultobj = wxPyMake_wxObject(result, (bool)0);
34673 }
34674 return resultobj;
34675 fail:
34676 return NULL;
34677 }
34678
34679
34680 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34681 PyObject *resultobj = 0;
34682 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34683 wxImageList *result = 0 ;
34684 void *argp1 = 0 ;
34685 int res1 = 0 ;
34686 PyObject *swig_obj[1] ;
34687
34688 if (!args) SWIG_fail;
34689 swig_obj[0] = args;
34690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34691 if (!SWIG_IsOK(res1)) {
34692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34693 }
34694 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34695 {
34696 PyThreadState* __tstate = wxPyBeginAllowThreads();
34697 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34698 wxPyEndAllowThreads(__tstate);
34699 if (PyErr_Occurred()) SWIG_fail;
34700 }
34701 {
34702 resultobj = wxPyMake_wxObject(result, (bool)0);
34703 }
34704 return resultobj;
34705 fail:
34706 return NULL;
34707 }
34708
34709
34710 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34711 PyObject *resultobj = 0;
34712 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34713 wxImageList *arg2 = (wxImageList *) 0 ;
34714 void *argp1 = 0 ;
34715 int res1 = 0 ;
34716 void *argp2 = 0 ;
34717 int res2 = 0 ;
34718 PyObject * obj0 = 0 ;
34719 PyObject * obj1 = 0 ;
34720 char * kwnames[] = {
34721 (char *) "self",(char *) "imageList", NULL
34722 };
34723
34724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34726 if (!SWIG_IsOK(res1)) {
34727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34728 }
34729 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34730 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34731 if (!SWIG_IsOK(res2)) {
34732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34733 }
34734 arg2 = reinterpret_cast< wxImageList * >(argp2);
34735 {
34736 PyThreadState* __tstate = wxPyBeginAllowThreads();
34737 (arg1)->SetImageList(arg2);
34738 wxPyEndAllowThreads(__tstate);
34739 if (PyErr_Occurred()) SWIG_fail;
34740 }
34741 resultobj = SWIG_Py_Void();
34742 return resultobj;
34743 fail:
34744 return NULL;
34745 }
34746
34747
34748 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34749 PyObject *resultobj = 0;
34750 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34751 wxImageList *arg2 = (wxImageList *) 0 ;
34752 void *argp1 = 0 ;
34753 int res1 = 0 ;
34754 void *argp2 = 0 ;
34755 int res2 = 0 ;
34756 PyObject * obj0 = 0 ;
34757 PyObject * obj1 = 0 ;
34758 char * kwnames[] = {
34759 (char *) "self",(char *) "imageList", NULL
34760 };
34761
34762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34764 if (!SWIG_IsOK(res1)) {
34765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34766 }
34767 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34768 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34769 if (!SWIG_IsOK(res2)) {
34770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34771 }
34772 arg2 = reinterpret_cast< wxImageList * >(argp2);
34773 {
34774 PyThreadState* __tstate = wxPyBeginAllowThreads();
34775 (arg1)->SetStateImageList(arg2);
34776 wxPyEndAllowThreads(__tstate);
34777 if (PyErr_Occurred()) SWIG_fail;
34778 }
34779 resultobj = SWIG_Py_Void();
34780 return resultobj;
34781 fail:
34782 return NULL;
34783 }
34784
34785
34786 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34787 PyObject *resultobj = 0;
34788 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34789 wxImageList *arg2 = (wxImageList *) 0 ;
34790 void *argp1 = 0 ;
34791 int res1 = 0 ;
34792 int res2 = 0 ;
34793 PyObject * obj0 = 0 ;
34794 PyObject * obj1 = 0 ;
34795 char * kwnames[] = {
34796 (char *) "self",(char *) "imageList", NULL
34797 };
34798
34799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34801 if (!SWIG_IsOK(res1)) {
34802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34803 }
34804 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34805 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34806 if (!SWIG_IsOK(res2)) {
34807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34808 }
34809 {
34810 PyThreadState* __tstate = wxPyBeginAllowThreads();
34811 (arg1)->AssignImageList(arg2);
34812 wxPyEndAllowThreads(__tstate);
34813 if (PyErr_Occurred()) SWIG_fail;
34814 }
34815 resultobj = SWIG_Py_Void();
34816 return resultobj;
34817 fail:
34818 return NULL;
34819 }
34820
34821
34822 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34823 PyObject *resultobj = 0;
34824 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34825 wxImageList *arg2 = (wxImageList *) 0 ;
34826 void *argp1 = 0 ;
34827 int res1 = 0 ;
34828 int res2 = 0 ;
34829 PyObject * obj0 = 0 ;
34830 PyObject * obj1 = 0 ;
34831 char * kwnames[] = {
34832 (char *) "self",(char *) "imageList", NULL
34833 };
34834
34835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34837 if (!SWIG_IsOK(res1)) {
34838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34839 }
34840 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34841 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34842 if (!SWIG_IsOK(res2)) {
34843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34844 }
34845 {
34846 PyThreadState* __tstate = wxPyBeginAllowThreads();
34847 (arg1)->AssignStateImageList(arg2);
34848 wxPyEndAllowThreads(__tstate);
34849 if (PyErr_Occurred()) SWIG_fail;
34850 }
34851 resultobj = SWIG_Py_Void();
34852 return resultobj;
34853 fail:
34854 return NULL;
34855 }
34856
34857
34858 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34859 PyObject *resultobj = 0;
34860 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34861 wxTreeItemId *arg2 = 0 ;
34862 wxString result;
34863 void *argp1 = 0 ;
34864 int res1 = 0 ;
34865 void *argp2 = 0 ;
34866 int res2 = 0 ;
34867 PyObject * obj0 = 0 ;
34868 PyObject * obj1 = 0 ;
34869 char * kwnames[] = {
34870 (char *) "self",(char *) "item", NULL
34871 };
34872
34873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34875 if (!SWIG_IsOK(res1)) {
34876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34877 }
34878 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34880 if (!SWIG_IsOK(res2)) {
34881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34882 }
34883 if (!argp2) {
34884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34885 }
34886 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34887 {
34888 PyThreadState* __tstate = wxPyBeginAllowThreads();
34889 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34890 wxPyEndAllowThreads(__tstate);
34891 if (PyErr_Occurred()) SWIG_fail;
34892 }
34893 {
34894 #if wxUSE_UNICODE
34895 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34896 #else
34897 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34898 #endif
34899 }
34900 return resultobj;
34901 fail:
34902 return NULL;
34903 }
34904
34905
34906 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34907 PyObject *resultobj = 0;
34908 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34909 wxTreeItemId *arg2 = 0 ;
34910 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34911 int result;
34912 void *argp1 = 0 ;
34913 int res1 = 0 ;
34914 void *argp2 = 0 ;
34915 int res2 = 0 ;
34916 int val3 ;
34917 int ecode3 = 0 ;
34918 PyObject * obj0 = 0 ;
34919 PyObject * obj1 = 0 ;
34920 PyObject * obj2 = 0 ;
34921 char * kwnames[] = {
34922 (char *) "self",(char *) "item",(char *) "which", NULL
34923 };
34924
34925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34927 if (!SWIG_IsOK(res1)) {
34928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34929 }
34930 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34931 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34932 if (!SWIG_IsOK(res2)) {
34933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34934 }
34935 if (!argp2) {
34936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34937 }
34938 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34939 if (obj2) {
34940 ecode3 = SWIG_AsVal_int(obj2, &val3);
34941 if (!SWIG_IsOK(ecode3)) {
34942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34943 }
34944 arg3 = static_cast< wxTreeItemIcon >(val3);
34945 }
34946 {
34947 PyThreadState* __tstate = wxPyBeginAllowThreads();
34948 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34949 wxPyEndAllowThreads(__tstate);
34950 if (PyErr_Occurred()) SWIG_fail;
34951 }
34952 resultobj = SWIG_From_int(static_cast< int >(result));
34953 return resultobj;
34954 fail:
34955 return NULL;
34956 }
34957
34958
34959 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34960 PyObject *resultobj = 0;
34961 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34962 wxTreeItemId *arg2 = 0 ;
34963 wxPyTreeItemData *result = 0 ;
34964 void *argp1 = 0 ;
34965 int res1 = 0 ;
34966 void *argp2 = 0 ;
34967 int res2 = 0 ;
34968 PyObject * obj0 = 0 ;
34969 PyObject * obj1 = 0 ;
34970 char * kwnames[] = {
34971 (char *) "self",(char *) "item", NULL
34972 };
34973
34974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34976 if (!SWIG_IsOK(res1)) {
34977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34978 }
34979 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34980 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34981 if (!SWIG_IsOK(res2)) {
34982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34983 }
34984 if (!argp2) {
34985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34986 }
34987 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34988 {
34989 PyThreadState* __tstate = wxPyBeginAllowThreads();
34990 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34991 wxPyEndAllowThreads(__tstate);
34992 if (PyErr_Occurred()) SWIG_fail;
34993 }
34994 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34995 return resultobj;
34996 fail:
34997 return NULL;
34998 }
34999
35000
35001 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35002 PyObject *resultobj = 0;
35003 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35004 wxTreeItemId *arg2 = 0 ;
35005 PyObject *result = 0 ;
35006 void *argp1 = 0 ;
35007 int res1 = 0 ;
35008 void *argp2 = 0 ;
35009 int res2 = 0 ;
35010 PyObject * obj0 = 0 ;
35011 PyObject * obj1 = 0 ;
35012 char * kwnames[] = {
35013 (char *) "self",(char *) "item", NULL
35014 };
35015
35016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
35017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35018 if (!SWIG_IsOK(res1)) {
35019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35020 }
35021 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35023 if (!SWIG_IsOK(res2)) {
35024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35025 }
35026 if (!argp2) {
35027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35028 }
35029 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35030 {
35031 PyThreadState* __tstate = wxPyBeginAllowThreads();
35032 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
35033 wxPyEndAllowThreads(__tstate);
35034 if (PyErr_Occurred()) SWIG_fail;
35035 }
35036 resultobj = result;
35037 return resultobj;
35038 fail:
35039 return NULL;
35040 }
35041
35042
35043 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35044 PyObject *resultobj = 0;
35045 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35046 wxTreeItemId *arg2 = 0 ;
35047 wxColour result;
35048 void *argp1 = 0 ;
35049 int res1 = 0 ;
35050 void *argp2 = 0 ;
35051 int res2 = 0 ;
35052 PyObject * obj0 = 0 ;
35053 PyObject * obj1 = 0 ;
35054 char * kwnames[] = {
35055 (char *) "self",(char *) "item", NULL
35056 };
35057
35058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
35059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35060 if (!SWIG_IsOK(res1)) {
35061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35062 }
35063 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35064 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35065 if (!SWIG_IsOK(res2)) {
35066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35067 }
35068 if (!argp2) {
35069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35070 }
35071 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35072 {
35073 PyThreadState* __tstate = wxPyBeginAllowThreads();
35074 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
35075 wxPyEndAllowThreads(__tstate);
35076 if (PyErr_Occurred()) SWIG_fail;
35077 }
35078 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
35079 return resultobj;
35080 fail:
35081 return NULL;
35082 }
35083
35084
35085 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35086 PyObject *resultobj = 0;
35087 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35088 wxTreeItemId *arg2 = 0 ;
35089 wxColour result;
35090 void *argp1 = 0 ;
35091 int res1 = 0 ;
35092 void *argp2 = 0 ;
35093 int res2 = 0 ;
35094 PyObject * obj0 = 0 ;
35095 PyObject * obj1 = 0 ;
35096 char * kwnames[] = {
35097 (char *) "self",(char *) "item", NULL
35098 };
35099
35100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
35101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35102 if (!SWIG_IsOK(res1)) {
35103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35104 }
35105 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35107 if (!SWIG_IsOK(res2)) {
35108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35109 }
35110 if (!argp2) {
35111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35112 }
35113 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35114 {
35115 PyThreadState* __tstate = wxPyBeginAllowThreads();
35116 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
35117 wxPyEndAllowThreads(__tstate);
35118 if (PyErr_Occurred()) SWIG_fail;
35119 }
35120 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
35121 return resultobj;
35122 fail:
35123 return NULL;
35124 }
35125
35126
35127 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35128 PyObject *resultobj = 0;
35129 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35130 wxTreeItemId *arg2 = 0 ;
35131 wxFont result;
35132 void *argp1 = 0 ;
35133 int res1 = 0 ;
35134 void *argp2 = 0 ;
35135 int res2 = 0 ;
35136 PyObject * obj0 = 0 ;
35137 PyObject * obj1 = 0 ;
35138 char * kwnames[] = {
35139 (char *) "self",(char *) "item", NULL
35140 };
35141
35142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
35143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35144 if (!SWIG_IsOK(res1)) {
35145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35146 }
35147 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35148 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35149 if (!SWIG_IsOK(res2)) {
35150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35151 }
35152 if (!argp2) {
35153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35154 }
35155 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35156 {
35157 PyThreadState* __tstate = wxPyBeginAllowThreads();
35158 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
35159 wxPyEndAllowThreads(__tstate);
35160 if (PyErr_Occurred()) SWIG_fail;
35161 }
35162 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
35163 return resultobj;
35164 fail:
35165 return NULL;
35166 }
35167
35168
35169 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35170 PyObject *resultobj = 0;
35171 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35172 wxTreeItemId *arg2 = 0 ;
35173 wxString *arg3 = 0 ;
35174 void *argp1 = 0 ;
35175 int res1 = 0 ;
35176 void *argp2 = 0 ;
35177 int res2 = 0 ;
35178 bool temp3 = false ;
35179 PyObject * obj0 = 0 ;
35180 PyObject * obj1 = 0 ;
35181 PyObject * obj2 = 0 ;
35182 char * kwnames[] = {
35183 (char *) "self",(char *) "item",(char *) "text", NULL
35184 };
35185
35186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35188 if (!SWIG_IsOK(res1)) {
35189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35190 }
35191 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35192 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35193 if (!SWIG_IsOK(res2)) {
35194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35195 }
35196 if (!argp2) {
35197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35198 }
35199 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35200 {
35201 arg3 = wxString_in_helper(obj2);
35202 if (arg3 == NULL) SWIG_fail;
35203 temp3 = true;
35204 }
35205 {
35206 PyThreadState* __tstate = wxPyBeginAllowThreads();
35207 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
35208 wxPyEndAllowThreads(__tstate);
35209 if (PyErr_Occurred()) SWIG_fail;
35210 }
35211 resultobj = SWIG_Py_Void();
35212 {
35213 if (temp3)
35214 delete arg3;
35215 }
35216 return resultobj;
35217 fail:
35218 {
35219 if (temp3)
35220 delete arg3;
35221 }
35222 return NULL;
35223 }
35224
35225
35226 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35227 PyObject *resultobj = 0;
35228 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35229 wxTreeItemId *arg2 = 0 ;
35230 int arg3 ;
35231 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
35232 void *argp1 = 0 ;
35233 int res1 = 0 ;
35234 void *argp2 = 0 ;
35235 int res2 = 0 ;
35236 int val3 ;
35237 int ecode3 = 0 ;
35238 int val4 ;
35239 int ecode4 = 0 ;
35240 PyObject * obj0 = 0 ;
35241 PyObject * obj1 = 0 ;
35242 PyObject * obj2 = 0 ;
35243 PyObject * obj3 = 0 ;
35244 char * kwnames[] = {
35245 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
35246 };
35247
35248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35250 if (!SWIG_IsOK(res1)) {
35251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35252 }
35253 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35255 if (!SWIG_IsOK(res2)) {
35256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35257 }
35258 if (!argp2) {
35259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35260 }
35261 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35262 ecode3 = SWIG_AsVal_int(obj2, &val3);
35263 if (!SWIG_IsOK(ecode3)) {
35264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
35265 }
35266 arg3 = static_cast< int >(val3);
35267 if (obj3) {
35268 ecode4 = SWIG_AsVal_int(obj3, &val4);
35269 if (!SWIG_IsOK(ecode4)) {
35270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
35271 }
35272 arg4 = static_cast< wxTreeItemIcon >(val4);
35273 }
35274 {
35275 PyThreadState* __tstate = wxPyBeginAllowThreads();
35276 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
35277 wxPyEndAllowThreads(__tstate);
35278 if (PyErr_Occurred()) SWIG_fail;
35279 }
35280 resultobj = SWIG_Py_Void();
35281 return resultobj;
35282 fail:
35283 return NULL;
35284 }
35285
35286
35287 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35288 PyObject *resultobj = 0;
35289 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35290 wxTreeItemId *arg2 = 0 ;
35291 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
35292 void *argp1 = 0 ;
35293 int res1 = 0 ;
35294 void *argp2 = 0 ;
35295 int res2 = 0 ;
35296 int res3 = 0 ;
35297 PyObject * obj0 = 0 ;
35298 PyObject * obj1 = 0 ;
35299 PyObject * obj2 = 0 ;
35300 char * kwnames[] = {
35301 (char *) "self",(char *) "item",(char *) "data", NULL
35302 };
35303
35304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35306 if (!SWIG_IsOK(res1)) {
35307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35308 }
35309 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35310 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35311 if (!SWIG_IsOK(res2)) {
35312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35313 }
35314 if (!argp2) {
35315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35316 }
35317 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35318 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35319 if (!SWIG_IsOK(res3)) {
35320 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
35321 }
35322 {
35323 PyThreadState* __tstate = wxPyBeginAllowThreads();
35324 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
35325 wxPyEndAllowThreads(__tstate);
35326 if (PyErr_Occurred()) SWIG_fail;
35327 }
35328 resultobj = SWIG_Py_Void();
35329 return resultobj;
35330 fail:
35331 return NULL;
35332 }
35333
35334
35335 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35336 PyObject *resultobj = 0;
35337 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35338 wxTreeItemId *arg2 = 0 ;
35339 PyObject *arg3 = (PyObject *) 0 ;
35340 void *argp1 = 0 ;
35341 int res1 = 0 ;
35342 void *argp2 = 0 ;
35343 int res2 = 0 ;
35344 PyObject * obj0 = 0 ;
35345 PyObject * obj1 = 0 ;
35346 PyObject * obj2 = 0 ;
35347 char * kwnames[] = {
35348 (char *) "self",(char *) "item",(char *) "obj", NULL
35349 };
35350
35351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35353 if (!SWIG_IsOK(res1)) {
35354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35355 }
35356 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35357 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35358 if (!SWIG_IsOK(res2)) {
35359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35360 }
35361 if (!argp2) {
35362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35363 }
35364 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35365 arg3 = obj2;
35366 {
35367 PyThreadState* __tstate = wxPyBeginAllowThreads();
35368 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
35369 wxPyEndAllowThreads(__tstate);
35370 if (PyErr_Occurred()) SWIG_fail;
35371 }
35372 resultobj = SWIG_Py_Void();
35373 return resultobj;
35374 fail:
35375 return NULL;
35376 }
35377
35378
35379 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35380 PyObject *resultobj = 0;
35381 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35382 wxTreeItemId *arg2 = 0 ;
35383 bool arg3 = (bool) true ;
35384 void *argp1 = 0 ;
35385 int res1 = 0 ;
35386 void *argp2 = 0 ;
35387 int res2 = 0 ;
35388 bool val3 ;
35389 int ecode3 = 0 ;
35390 PyObject * obj0 = 0 ;
35391 PyObject * obj1 = 0 ;
35392 PyObject * obj2 = 0 ;
35393 char * kwnames[] = {
35394 (char *) "self",(char *) "item",(char *) "has", NULL
35395 };
35396
35397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35399 if (!SWIG_IsOK(res1)) {
35400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35401 }
35402 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35403 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35404 if (!SWIG_IsOK(res2)) {
35405 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35406 }
35407 if (!argp2) {
35408 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35409 }
35410 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35411 if (obj2) {
35412 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35413 if (!SWIG_IsOK(ecode3)) {
35414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
35415 }
35416 arg3 = static_cast< bool >(val3);
35417 }
35418 {
35419 PyThreadState* __tstate = wxPyBeginAllowThreads();
35420 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
35421 wxPyEndAllowThreads(__tstate);
35422 if (PyErr_Occurred()) SWIG_fail;
35423 }
35424 resultobj = SWIG_Py_Void();
35425 return resultobj;
35426 fail:
35427 return NULL;
35428 }
35429
35430
35431 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35432 PyObject *resultobj = 0;
35433 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35434 wxTreeItemId *arg2 = 0 ;
35435 bool arg3 = (bool) true ;
35436 void *argp1 = 0 ;
35437 int res1 = 0 ;
35438 void *argp2 = 0 ;
35439 int res2 = 0 ;
35440 bool val3 ;
35441 int ecode3 = 0 ;
35442 PyObject * obj0 = 0 ;
35443 PyObject * obj1 = 0 ;
35444 PyObject * obj2 = 0 ;
35445 char * kwnames[] = {
35446 (char *) "self",(char *) "item",(char *) "bold", NULL
35447 };
35448
35449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35451 if (!SWIG_IsOK(res1)) {
35452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35453 }
35454 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35455 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35456 if (!SWIG_IsOK(res2)) {
35457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35458 }
35459 if (!argp2) {
35460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35461 }
35462 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35463 if (obj2) {
35464 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35465 if (!SWIG_IsOK(ecode3)) {
35466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
35467 }
35468 arg3 = static_cast< bool >(val3);
35469 }
35470 {
35471 PyThreadState* __tstate = wxPyBeginAllowThreads();
35472 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35473 wxPyEndAllowThreads(__tstate);
35474 if (PyErr_Occurred()) SWIG_fail;
35475 }
35476 resultobj = SWIG_Py_Void();
35477 return resultobj;
35478 fail:
35479 return NULL;
35480 }
35481
35482
35483 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35484 PyObject *resultobj = 0;
35485 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35486 wxTreeItemId *arg2 = 0 ;
35487 bool arg3 = (bool) true ;
35488 void *argp1 = 0 ;
35489 int res1 = 0 ;
35490 void *argp2 = 0 ;
35491 int res2 = 0 ;
35492 bool val3 ;
35493 int ecode3 = 0 ;
35494 PyObject * obj0 = 0 ;
35495 PyObject * obj1 = 0 ;
35496 PyObject * obj2 = 0 ;
35497 char * kwnames[] = {
35498 (char *) "self",(char *) "item",(char *) "highlight", NULL
35499 };
35500
35501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35503 if (!SWIG_IsOK(res1)) {
35504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35505 }
35506 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35507 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35508 if (!SWIG_IsOK(res2)) {
35509 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35510 }
35511 if (!argp2) {
35512 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35513 }
35514 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35515 if (obj2) {
35516 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35517 if (!SWIG_IsOK(ecode3)) {
35518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35519 }
35520 arg3 = static_cast< bool >(val3);
35521 }
35522 {
35523 PyThreadState* __tstate = wxPyBeginAllowThreads();
35524 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35525 wxPyEndAllowThreads(__tstate);
35526 if (PyErr_Occurred()) SWIG_fail;
35527 }
35528 resultobj = SWIG_Py_Void();
35529 return resultobj;
35530 fail:
35531 return NULL;
35532 }
35533
35534
35535 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35536 PyObject *resultobj = 0;
35537 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35538 wxTreeItemId *arg2 = 0 ;
35539 wxColour *arg3 = 0 ;
35540 void *argp1 = 0 ;
35541 int res1 = 0 ;
35542 void *argp2 = 0 ;
35543 int res2 = 0 ;
35544 wxColour temp3 ;
35545 PyObject * obj0 = 0 ;
35546 PyObject * obj1 = 0 ;
35547 PyObject * obj2 = 0 ;
35548 char * kwnames[] = {
35549 (char *) "self",(char *) "item",(char *) "col", NULL
35550 };
35551
35552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35554 if (!SWIG_IsOK(res1)) {
35555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35556 }
35557 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35558 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35559 if (!SWIG_IsOK(res2)) {
35560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35561 }
35562 if (!argp2) {
35563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35564 }
35565 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35566 {
35567 arg3 = &temp3;
35568 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35569 }
35570 {
35571 PyThreadState* __tstate = wxPyBeginAllowThreads();
35572 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35573 wxPyEndAllowThreads(__tstate);
35574 if (PyErr_Occurred()) SWIG_fail;
35575 }
35576 resultobj = SWIG_Py_Void();
35577 return resultobj;
35578 fail:
35579 return NULL;
35580 }
35581
35582
35583 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35584 PyObject *resultobj = 0;
35585 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35586 wxTreeItemId *arg2 = 0 ;
35587 wxColour *arg3 = 0 ;
35588 void *argp1 = 0 ;
35589 int res1 = 0 ;
35590 void *argp2 = 0 ;
35591 int res2 = 0 ;
35592 wxColour temp3 ;
35593 PyObject * obj0 = 0 ;
35594 PyObject * obj1 = 0 ;
35595 PyObject * obj2 = 0 ;
35596 char * kwnames[] = {
35597 (char *) "self",(char *) "item",(char *) "col", NULL
35598 };
35599
35600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35602 if (!SWIG_IsOK(res1)) {
35603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35604 }
35605 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35607 if (!SWIG_IsOK(res2)) {
35608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35609 }
35610 if (!argp2) {
35611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35612 }
35613 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35614 {
35615 arg3 = &temp3;
35616 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35617 }
35618 {
35619 PyThreadState* __tstate = wxPyBeginAllowThreads();
35620 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35621 wxPyEndAllowThreads(__tstate);
35622 if (PyErr_Occurred()) SWIG_fail;
35623 }
35624 resultobj = SWIG_Py_Void();
35625 return resultobj;
35626 fail:
35627 return NULL;
35628 }
35629
35630
35631 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35632 PyObject *resultobj = 0;
35633 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35634 wxTreeItemId *arg2 = 0 ;
35635 wxFont *arg3 = 0 ;
35636 void *argp1 = 0 ;
35637 int res1 = 0 ;
35638 void *argp2 = 0 ;
35639 int res2 = 0 ;
35640 void *argp3 = 0 ;
35641 int res3 = 0 ;
35642 PyObject * obj0 = 0 ;
35643 PyObject * obj1 = 0 ;
35644 PyObject * obj2 = 0 ;
35645 char * kwnames[] = {
35646 (char *) "self",(char *) "item",(char *) "font", NULL
35647 };
35648
35649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35651 if (!SWIG_IsOK(res1)) {
35652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35653 }
35654 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35656 if (!SWIG_IsOK(res2)) {
35657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35658 }
35659 if (!argp2) {
35660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35661 }
35662 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35663 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35664 if (!SWIG_IsOK(res3)) {
35665 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35666 }
35667 if (!argp3) {
35668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35669 }
35670 arg3 = reinterpret_cast< wxFont * >(argp3);
35671 {
35672 PyThreadState* __tstate = wxPyBeginAllowThreads();
35673 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35674 wxPyEndAllowThreads(__tstate);
35675 if (PyErr_Occurred()) SWIG_fail;
35676 }
35677 resultobj = SWIG_Py_Void();
35678 return resultobj;
35679 fail:
35680 return NULL;
35681 }
35682
35683
35684 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35685 PyObject *resultobj = 0;
35686 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35687 wxTreeItemId *arg2 = 0 ;
35688 bool result;
35689 void *argp1 = 0 ;
35690 int res1 = 0 ;
35691 void *argp2 = 0 ;
35692 int res2 = 0 ;
35693 PyObject * obj0 = 0 ;
35694 PyObject * obj1 = 0 ;
35695 char * kwnames[] = {
35696 (char *) "self",(char *) "item", NULL
35697 };
35698
35699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35701 if (!SWIG_IsOK(res1)) {
35702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35703 }
35704 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35706 if (!SWIG_IsOK(res2)) {
35707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35708 }
35709 if (!argp2) {
35710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35711 }
35712 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35713 {
35714 PyThreadState* __tstate = wxPyBeginAllowThreads();
35715 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35716 wxPyEndAllowThreads(__tstate);
35717 if (PyErr_Occurred()) SWIG_fail;
35718 }
35719 {
35720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35721 }
35722 return resultobj;
35723 fail:
35724 return NULL;
35725 }
35726
35727
35728 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35729 PyObject *resultobj = 0;
35730 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35731 wxTreeItemId *arg2 = 0 ;
35732 bool result;
35733 void *argp1 = 0 ;
35734 int res1 = 0 ;
35735 void *argp2 = 0 ;
35736 int res2 = 0 ;
35737 PyObject * obj0 = 0 ;
35738 PyObject * obj1 = 0 ;
35739 char * kwnames[] = {
35740 (char *) "self",(char *) "item", NULL
35741 };
35742
35743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35745 if (!SWIG_IsOK(res1)) {
35746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35747 }
35748 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35749 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35750 if (!SWIG_IsOK(res2)) {
35751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35752 }
35753 if (!argp2) {
35754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35755 }
35756 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35757 {
35758 PyThreadState* __tstate = wxPyBeginAllowThreads();
35759 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35760 wxPyEndAllowThreads(__tstate);
35761 if (PyErr_Occurred()) SWIG_fail;
35762 }
35763 {
35764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35765 }
35766 return resultobj;
35767 fail:
35768 return NULL;
35769 }
35770
35771
35772 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35773 PyObject *resultobj = 0;
35774 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35775 wxTreeItemId *arg2 = 0 ;
35776 bool result;
35777 void *argp1 = 0 ;
35778 int res1 = 0 ;
35779 void *argp2 = 0 ;
35780 int res2 = 0 ;
35781 PyObject * obj0 = 0 ;
35782 PyObject * obj1 = 0 ;
35783 char * kwnames[] = {
35784 (char *) "self",(char *) "item", NULL
35785 };
35786
35787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35789 if (!SWIG_IsOK(res1)) {
35790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35791 }
35792 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35794 if (!SWIG_IsOK(res2)) {
35795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35796 }
35797 if (!argp2) {
35798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35799 }
35800 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35801 {
35802 PyThreadState* __tstate = wxPyBeginAllowThreads();
35803 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35804 wxPyEndAllowThreads(__tstate);
35805 if (PyErr_Occurred()) SWIG_fail;
35806 }
35807 {
35808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35809 }
35810 return resultobj;
35811 fail:
35812 return NULL;
35813 }
35814
35815
35816 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35817 PyObject *resultobj = 0;
35818 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35819 wxTreeItemId *arg2 = 0 ;
35820 bool result;
35821 void *argp1 = 0 ;
35822 int res1 = 0 ;
35823 void *argp2 = 0 ;
35824 int res2 = 0 ;
35825 PyObject * obj0 = 0 ;
35826 PyObject * obj1 = 0 ;
35827 char * kwnames[] = {
35828 (char *) "self",(char *) "item", NULL
35829 };
35830
35831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35833 if (!SWIG_IsOK(res1)) {
35834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35835 }
35836 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35837 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35838 if (!SWIG_IsOK(res2)) {
35839 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35840 }
35841 if (!argp2) {
35842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35843 }
35844 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35845 {
35846 PyThreadState* __tstate = wxPyBeginAllowThreads();
35847 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35848 wxPyEndAllowThreads(__tstate);
35849 if (PyErr_Occurred()) SWIG_fail;
35850 }
35851 {
35852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35853 }
35854 return resultobj;
35855 fail:
35856 return NULL;
35857 }
35858
35859
35860 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35861 PyObject *resultobj = 0;
35862 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35863 wxTreeItemId *arg2 = 0 ;
35864 bool result;
35865 void *argp1 = 0 ;
35866 int res1 = 0 ;
35867 void *argp2 = 0 ;
35868 int res2 = 0 ;
35869 PyObject * obj0 = 0 ;
35870 PyObject * obj1 = 0 ;
35871 char * kwnames[] = {
35872 (char *) "self",(char *) "item", NULL
35873 };
35874
35875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35877 if (!SWIG_IsOK(res1)) {
35878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35879 }
35880 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35881 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35882 if (!SWIG_IsOK(res2)) {
35883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35884 }
35885 if (!argp2) {
35886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35887 }
35888 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35889 {
35890 PyThreadState* __tstate = wxPyBeginAllowThreads();
35891 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35892 wxPyEndAllowThreads(__tstate);
35893 if (PyErr_Occurred()) SWIG_fail;
35894 }
35895 {
35896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35897 }
35898 return resultobj;
35899 fail:
35900 return NULL;
35901 }
35902
35903
35904 SWIGINTERN PyObject *_wrap_TreeCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35905 PyObject *resultobj = 0;
35906 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35907 bool result;
35908 void *argp1 = 0 ;
35909 int res1 = 0 ;
35910 PyObject *swig_obj[1] ;
35911
35912 if (!args) SWIG_fail;
35913 swig_obj[0] = args;
35914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35915 if (!SWIG_IsOK(res1)) {
35916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35917 }
35918 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35919 {
35920 PyThreadState* __tstate = wxPyBeginAllowThreads();
35921 result = (bool)((wxPyTreeCtrl const *)arg1)->IsEmpty();
35922 wxPyEndAllowThreads(__tstate);
35923 if (PyErr_Occurred()) SWIG_fail;
35924 }
35925 {
35926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35927 }
35928 return resultobj;
35929 fail:
35930 return NULL;
35931 }
35932
35933
35934 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35935 PyObject *resultobj = 0;
35936 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35937 wxTreeItemId *arg2 = 0 ;
35938 bool arg3 = (bool) true ;
35939 size_t result;
35940 void *argp1 = 0 ;
35941 int res1 = 0 ;
35942 void *argp2 = 0 ;
35943 int res2 = 0 ;
35944 bool val3 ;
35945 int ecode3 = 0 ;
35946 PyObject * obj0 = 0 ;
35947 PyObject * obj1 = 0 ;
35948 PyObject * obj2 = 0 ;
35949 char * kwnames[] = {
35950 (char *) "self",(char *) "item",(char *) "recursively", NULL
35951 };
35952
35953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35955 if (!SWIG_IsOK(res1)) {
35956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35957 }
35958 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35959 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35960 if (!SWIG_IsOK(res2)) {
35961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35962 }
35963 if (!argp2) {
35964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35965 }
35966 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35967 if (obj2) {
35968 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35969 if (!SWIG_IsOK(ecode3)) {
35970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35971 }
35972 arg3 = static_cast< bool >(val3);
35973 }
35974 {
35975 PyThreadState* __tstate = wxPyBeginAllowThreads();
35976 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35977 wxPyEndAllowThreads(__tstate);
35978 if (PyErr_Occurred()) SWIG_fail;
35979 }
35980 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35981 return resultobj;
35982 fail:
35983 return NULL;
35984 }
35985
35986
35987 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35988 PyObject *resultobj = 0;
35989 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35990 wxTreeItemId result;
35991 void *argp1 = 0 ;
35992 int res1 = 0 ;
35993 PyObject *swig_obj[1] ;
35994
35995 if (!args) SWIG_fail;
35996 swig_obj[0] = args;
35997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35998 if (!SWIG_IsOK(res1)) {
35999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36000 }
36001 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36002 {
36003 PyThreadState* __tstate = wxPyBeginAllowThreads();
36004 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
36005 wxPyEndAllowThreads(__tstate);
36006 if (PyErr_Occurred()) SWIG_fail;
36007 }
36008 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36009 return resultobj;
36010 fail:
36011 return NULL;
36012 }
36013
36014
36015 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36016 PyObject *resultobj = 0;
36017 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36018 wxTreeItemId result;
36019 void *argp1 = 0 ;
36020 int res1 = 0 ;
36021 PyObject *swig_obj[1] ;
36022
36023 if (!args) SWIG_fail;
36024 swig_obj[0] = args;
36025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36026 if (!SWIG_IsOK(res1)) {
36027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36028 }
36029 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36030 {
36031 PyThreadState* __tstate = wxPyBeginAllowThreads();
36032 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
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_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36044 PyObject *resultobj = 0;
36045 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36046 PyObject *result = 0 ;
36047 void *argp1 = 0 ;
36048 int res1 = 0 ;
36049 PyObject *swig_obj[1] ;
36050
36051 if (!args) SWIG_fail;
36052 swig_obj[0] = args;
36053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36054 if (!SWIG_IsOK(res1)) {
36055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36056 }
36057 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36058 {
36059 PyThreadState* __tstate = wxPyBeginAllowThreads();
36060 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
36061 wxPyEndAllowThreads(__tstate);
36062 if (PyErr_Occurred()) SWIG_fail;
36063 }
36064 resultobj = result;
36065 return resultobj;
36066 fail:
36067 return NULL;
36068 }
36069
36070
36071 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36072 PyObject *resultobj = 0;
36073 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36074 wxTreeItemId *arg2 = 0 ;
36075 wxTreeItemId result;
36076 void *argp1 = 0 ;
36077 int res1 = 0 ;
36078 void *argp2 = 0 ;
36079 int res2 = 0 ;
36080 PyObject * obj0 = 0 ;
36081 PyObject * obj1 = 0 ;
36082 char * kwnames[] = {
36083 (char *) "self",(char *) "item", NULL
36084 };
36085
36086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
36087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36088 if (!SWIG_IsOK(res1)) {
36089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36090 }
36091 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36093 if (!SWIG_IsOK(res2)) {
36094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36095 }
36096 if (!argp2) {
36097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36098 }
36099 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36100 {
36101 PyThreadState* __tstate = wxPyBeginAllowThreads();
36102 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
36103 wxPyEndAllowThreads(__tstate);
36104 if (PyErr_Occurred()) SWIG_fail;
36105 }
36106 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36107 return resultobj;
36108 fail:
36109 return NULL;
36110 }
36111
36112
36113 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36114 PyObject *resultobj = 0;
36115 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36116 wxTreeItemId *arg2 = 0 ;
36117 PyObject *result = 0 ;
36118 void *argp1 = 0 ;
36119 int res1 = 0 ;
36120 void *argp2 = 0 ;
36121 int res2 = 0 ;
36122 PyObject * obj0 = 0 ;
36123 PyObject * obj1 = 0 ;
36124 char * kwnames[] = {
36125 (char *) "self",(char *) "item", NULL
36126 };
36127
36128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
36129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36130 if (!SWIG_IsOK(res1)) {
36131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36132 }
36133 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36135 if (!SWIG_IsOK(res2)) {
36136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36137 }
36138 if (!argp2) {
36139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36140 }
36141 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36142 {
36143 PyThreadState* __tstate = wxPyBeginAllowThreads();
36144 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
36145 wxPyEndAllowThreads(__tstate);
36146 if (PyErr_Occurred()) SWIG_fail;
36147 }
36148 resultobj = result;
36149 return resultobj;
36150 fail:
36151 return NULL;
36152 }
36153
36154
36155 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36156 PyObject *resultobj = 0;
36157 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36158 wxTreeItemId *arg2 = 0 ;
36159 void *arg3 = (void *) 0 ;
36160 PyObject *result = 0 ;
36161 void *argp1 = 0 ;
36162 int res1 = 0 ;
36163 void *argp2 = 0 ;
36164 int res2 = 0 ;
36165 int res3 ;
36166 PyObject * obj0 = 0 ;
36167 PyObject * obj1 = 0 ;
36168 PyObject * obj2 = 0 ;
36169 char * kwnames[] = {
36170 (char *) "self",(char *) "item",(char *) "cookie", NULL
36171 };
36172
36173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36175 if (!SWIG_IsOK(res1)) {
36176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36177 }
36178 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36179 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36180 if (!SWIG_IsOK(res2)) {
36181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36182 }
36183 if (!argp2) {
36184 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36185 }
36186 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36187 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
36188 if (!SWIG_IsOK(res3)) {
36189 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
36190 }
36191 {
36192 PyThreadState* __tstate = wxPyBeginAllowThreads();
36193 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
36194 wxPyEndAllowThreads(__tstate);
36195 if (PyErr_Occurred()) SWIG_fail;
36196 }
36197 resultobj = result;
36198 return resultobj;
36199 fail:
36200 return NULL;
36201 }
36202
36203
36204 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36205 PyObject *resultobj = 0;
36206 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36207 wxTreeItemId *arg2 = 0 ;
36208 wxTreeItemId result;
36209 void *argp1 = 0 ;
36210 int res1 = 0 ;
36211 void *argp2 = 0 ;
36212 int res2 = 0 ;
36213 PyObject * obj0 = 0 ;
36214 PyObject * obj1 = 0 ;
36215 char * kwnames[] = {
36216 (char *) "self",(char *) "item", NULL
36217 };
36218
36219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
36220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36221 if (!SWIG_IsOK(res1)) {
36222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36223 }
36224 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36226 if (!SWIG_IsOK(res2)) {
36227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36228 }
36229 if (!argp2) {
36230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36231 }
36232 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36233 {
36234 PyThreadState* __tstate = wxPyBeginAllowThreads();
36235 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
36236 wxPyEndAllowThreads(__tstate);
36237 if (PyErr_Occurred()) SWIG_fail;
36238 }
36239 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36240 return resultobj;
36241 fail:
36242 return NULL;
36243 }
36244
36245
36246 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36247 PyObject *resultobj = 0;
36248 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36249 wxTreeItemId *arg2 = 0 ;
36250 wxTreeItemId result;
36251 void *argp1 = 0 ;
36252 int res1 = 0 ;
36253 void *argp2 = 0 ;
36254 int res2 = 0 ;
36255 PyObject * obj0 = 0 ;
36256 PyObject * obj1 = 0 ;
36257 char * kwnames[] = {
36258 (char *) "self",(char *) "item", NULL
36259 };
36260
36261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36263 if (!SWIG_IsOK(res1)) {
36264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36265 }
36266 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36267 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36268 if (!SWIG_IsOK(res2)) {
36269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36270 }
36271 if (!argp2) {
36272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36273 }
36274 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36275 {
36276 PyThreadState* __tstate = wxPyBeginAllowThreads();
36277 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
36278 wxPyEndAllowThreads(__tstate);
36279 if (PyErr_Occurred()) SWIG_fail;
36280 }
36281 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36282 return resultobj;
36283 fail:
36284 return NULL;
36285 }
36286
36287
36288 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36289 PyObject *resultobj = 0;
36290 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36291 wxTreeItemId *arg2 = 0 ;
36292 wxTreeItemId result;
36293 void *argp1 = 0 ;
36294 int res1 = 0 ;
36295 void *argp2 = 0 ;
36296 int res2 = 0 ;
36297 PyObject * obj0 = 0 ;
36298 PyObject * obj1 = 0 ;
36299 char * kwnames[] = {
36300 (char *) "self",(char *) "item", NULL
36301 };
36302
36303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
36304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36305 if (!SWIG_IsOK(res1)) {
36306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36307 }
36308 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36309 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36310 if (!SWIG_IsOK(res2)) {
36311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36312 }
36313 if (!argp2) {
36314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36315 }
36316 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36317 {
36318 PyThreadState* __tstate = wxPyBeginAllowThreads();
36319 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
36320 wxPyEndAllowThreads(__tstate);
36321 if (PyErr_Occurred()) SWIG_fail;
36322 }
36323 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36324 return resultobj;
36325 fail:
36326 return NULL;
36327 }
36328
36329
36330 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36331 PyObject *resultobj = 0;
36332 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36333 wxTreeItemId result;
36334 void *argp1 = 0 ;
36335 int res1 = 0 ;
36336 PyObject *swig_obj[1] ;
36337
36338 if (!args) SWIG_fail;
36339 swig_obj[0] = args;
36340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36341 if (!SWIG_IsOK(res1)) {
36342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36343 }
36344 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36345 {
36346 PyThreadState* __tstate = wxPyBeginAllowThreads();
36347 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
36348 wxPyEndAllowThreads(__tstate);
36349 if (PyErr_Occurred()) SWIG_fail;
36350 }
36351 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36352 return resultobj;
36353 fail:
36354 return NULL;
36355 }
36356
36357
36358 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36359 PyObject *resultobj = 0;
36360 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36361 wxTreeItemId *arg2 = 0 ;
36362 wxTreeItemId result;
36363 void *argp1 = 0 ;
36364 int res1 = 0 ;
36365 void *argp2 = 0 ;
36366 int res2 = 0 ;
36367 PyObject * obj0 = 0 ;
36368 PyObject * obj1 = 0 ;
36369 char * kwnames[] = {
36370 (char *) "self",(char *) "item", NULL
36371 };
36372
36373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36375 if (!SWIG_IsOK(res1)) {
36376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36377 }
36378 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36379 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36380 if (!SWIG_IsOK(res2)) {
36381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36382 }
36383 if (!argp2) {
36384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36385 }
36386 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36387 {
36388 PyThreadState* __tstate = wxPyBeginAllowThreads();
36389 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
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 return resultobj;
36395 fail:
36396 return NULL;
36397 }
36398
36399
36400 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36401 PyObject *resultobj = 0;
36402 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36403 wxTreeItemId *arg2 = 0 ;
36404 wxTreeItemId result;
36405 void *argp1 = 0 ;
36406 int res1 = 0 ;
36407 void *argp2 = 0 ;
36408 int res2 = 0 ;
36409 PyObject * obj0 = 0 ;
36410 PyObject * obj1 = 0 ;
36411 char * kwnames[] = {
36412 (char *) "self",(char *) "item", NULL
36413 };
36414
36415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36417 if (!SWIG_IsOK(res1)) {
36418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36419 }
36420 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36421 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36422 if (!SWIG_IsOK(res2)) {
36423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36424 }
36425 if (!argp2) {
36426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36427 }
36428 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36429 {
36430 PyThreadState* __tstate = wxPyBeginAllowThreads();
36431 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
36432 wxPyEndAllowThreads(__tstate);
36433 if (PyErr_Occurred()) SWIG_fail;
36434 }
36435 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36436 return resultobj;
36437 fail:
36438 return NULL;
36439 }
36440
36441
36442 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36443 PyObject *resultobj = 0;
36444 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36445 wxString *arg2 = 0 ;
36446 int arg3 = (int) -1 ;
36447 int arg4 = (int) -1 ;
36448 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
36449 wxTreeItemId result;
36450 void *argp1 = 0 ;
36451 int res1 = 0 ;
36452 bool temp2 = false ;
36453 int val3 ;
36454 int ecode3 = 0 ;
36455 int val4 ;
36456 int ecode4 = 0 ;
36457 int res5 = 0 ;
36458 PyObject * obj0 = 0 ;
36459 PyObject * obj1 = 0 ;
36460 PyObject * obj2 = 0 ;
36461 PyObject * obj3 = 0 ;
36462 PyObject * obj4 = 0 ;
36463 char * kwnames[] = {
36464 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36465 };
36466
36467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36469 if (!SWIG_IsOK(res1)) {
36470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36471 }
36472 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36473 {
36474 arg2 = wxString_in_helper(obj1);
36475 if (arg2 == NULL) SWIG_fail;
36476 temp2 = true;
36477 }
36478 if (obj2) {
36479 ecode3 = SWIG_AsVal_int(obj2, &val3);
36480 if (!SWIG_IsOK(ecode3)) {
36481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
36482 }
36483 arg3 = static_cast< int >(val3);
36484 }
36485 if (obj3) {
36486 ecode4 = SWIG_AsVal_int(obj3, &val4);
36487 if (!SWIG_IsOK(ecode4)) {
36488 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
36489 }
36490 arg4 = static_cast< int >(val4);
36491 }
36492 if (obj4) {
36493 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36494 if (!SWIG_IsOK(res5)) {
36495 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36496 }
36497 }
36498 {
36499 PyThreadState* __tstate = wxPyBeginAllowThreads();
36500 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36501 wxPyEndAllowThreads(__tstate);
36502 if (PyErr_Occurred()) SWIG_fail;
36503 }
36504 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36505 {
36506 if (temp2)
36507 delete arg2;
36508 }
36509 return resultobj;
36510 fail:
36511 {
36512 if (temp2)
36513 delete arg2;
36514 }
36515 return NULL;
36516 }
36517
36518
36519 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36520 PyObject *resultobj = 0;
36521 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36522 wxTreeItemId *arg2 = 0 ;
36523 wxString *arg3 = 0 ;
36524 int arg4 = (int) -1 ;
36525 int arg5 = (int) -1 ;
36526 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36527 wxTreeItemId result;
36528 void *argp1 = 0 ;
36529 int res1 = 0 ;
36530 void *argp2 = 0 ;
36531 int res2 = 0 ;
36532 bool temp3 = false ;
36533 int val4 ;
36534 int ecode4 = 0 ;
36535 int val5 ;
36536 int ecode5 = 0 ;
36537 int res6 = 0 ;
36538 PyObject * obj0 = 0 ;
36539 PyObject * obj1 = 0 ;
36540 PyObject * obj2 = 0 ;
36541 PyObject * obj3 = 0 ;
36542 PyObject * obj4 = 0 ;
36543 PyObject * obj5 = 0 ;
36544 char * kwnames[] = {
36545 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36546 };
36547
36548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36550 if (!SWIG_IsOK(res1)) {
36551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36552 }
36553 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36554 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36555 if (!SWIG_IsOK(res2)) {
36556 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36557 }
36558 if (!argp2) {
36559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36560 }
36561 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36562 {
36563 arg3 = wxString_in_helper(obj2);
36564 if (arg3 == NULL) SWIG_fail;
36565 temp3 = true;
36566 }
36567 if (obj3) {
36568 ecode4 = SWIG_AsVal_int(obj3, &val4);
36569 if (!SWIG_IsOK(ecode4)) {
36570 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36571 }
36572 arg4 = static_cast< int >(val4);
36573 }
36574 if (obj4) {
36575 ecode5 = SWIG_AsVal_int(obj4, &val5);
36576 if (!SWIG_IsOK(ecode5)) {
36577 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36578 }
36579 arg5 = static_cast< int >(val5);
36580 }
36581 if (obj5) {
36582 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36583 if (!SWIG_IsOK(res6)) {
36584 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36585 }
36586 }
36587 {
36588 PyThreadState* __tstate = wxPyBeginAllowThreads();
36589 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36590 wxPyEndAllowThreads(__tstate);
36591 if (PyErr_Occurred()) SWIG_fail;
36592 }
36593 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36594 {
36595 if (temp3)
36596 delete arg3;
36597 }
36598 return resultobj;
36599 fail:
36600 {
36601 if (temp3)
36602 delete arg3;
36603 }
36604 return NULL;
36605 }
36606
36607
36608 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36609 PyObject *resultobj = 0;
36610 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36611 wxTreeItemId *arg2 = 0 ;
36612 wxTreeItemId *arg3 = 0 ;
36613 wxString *arg4 = 0 ;
36614 int arg5 = (int) -1 ;
36615 int arg6 = (int) -1 ;
36616 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36617 wxTreeItemId result;
36618 void *argp1 = 0 ;
36619 int res1 = 0 ;
36620 void *argp2 = 0 ;
36621 int res2 = 0 ;
36622 void *argp3 = 0 ;
36623 int res3 = 0 ;
36624 bool temp4 = false ;
36625 int val5 ;
36626 int ecode5 = 0 ;
36627 int val6 ;
36628 int ecode6 = 0 ;
36629 int res7 = 0 ;
36630 PyObject * obj0 = 0 ;
36631 PyObject * obj1 = 0 ;
36632 PyObject * obj2 = 0 ;
36633 PyObject * obj3 = 0 ;
36634 PyObject * obj4 = 0 ;
36635 PyObject * obj5 = 0 ;
36636 PyObject * obj6 = 0 ;
36637 char * kwnames[] = {
36638 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36639 };
36640
36641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36643 if (!SWIG_IsOK(res1)) {
36644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36645 }
36646 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36647 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36648 if (!SWIG_IsOK(res2)) {
36649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36650 }
36651 if (!argp2) {
36652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36653 }
36654 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36655 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36656 if (!SWIG_IsOK(res3)) {
36657 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36658 }
36659 if (!argp3) {
36660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36661 }
36662 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36663 {
36664 arg4 = wxString_in_helper(obj3);
36665 if (arg4 == NULL) SWIG_fail;
36666 temp4 = true;
36667 }
36668 if (obj4) {
36669 ecode5 = SWIG_AsVal_int(obj4, &val5);
36670 if (!SWIG_IsOK(ecode5)) {
36671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36672 }
36673 arg5 = static_cast< int >(val5);
36674 }
36675 if (obj5) {
36676 ecode6 = SWIG_AsVal_int(obj5, &val6);
36677 if (!SWIG_IsOK(ecode6)) {
36678 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36679 }
36680 arg6 = static_cast< int >(val6);
36681 }
36682 if (obj6) {
36683 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36684 if (!SWIG_IsOK(res7)) {
36685 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36686 }
36687 }
36688 {
36689 PyThreadState* __tstate = wxPyBeginAllowThreads();
36690 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36691 wxPyEndAllowThreads(__tstate);
36692 if (PyErr_Occurred()) SWIG_fail;
36693 }
36694 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36695 {
36696 if (temp4)
36697 delete arg4;
36698 }
36699 return resultobj;
36700 fail:
36701 {
36702 if (temp4)
36703 delete arg4;
36704 }
36705 return NULL;
36706 }
36707
36708
36709 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36710 PyObject *resultobj = 0;
36711 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36712 wxTreeItemId *arg2 = 0 ;
36713 size_t arg3 ;
36714 wxString *arg4 = 0 ;
36715 int arg5 = (int) -1 ;
36716 int arg6 = (int) -1 ;
36717 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36718 wxTreeItemId result;
36719 void *argp1 = 0 ;
36720 int res1 = 0 ;
36721 void *argp2 = 0 ;
36722 int res2 = 0 ;
36723 size_t val3 ;
36724 int ecode3 = 0 ;
36725 bool temp4 = false ;
36726 int val5 ;
36727 int ecode5 = 0 ;
36728 int val6 ;
36729 int ecode6 = 0 ;
36730 int res7 = 0 ;
36731 PyObject * obj0 = 0 ;
36732 PyObject * obj1 = 0 ;
36733 PyObject * obj2 = 0 ;
36734 PyObject * obj3 = 0 ;
36735 PyObject * obj4 = 0 ;
36736 PyObject * obj5 = 0 ;
36737 PyObject * obj6 = 0 ;
36738 char * kwnames[] = {
36739 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36740 };
36741
36742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36744 if (!SWIG_IsOK(res1)) {
36745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36746 }
36747 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36748 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36749 if (!SWIG_IsOK(res2)) {
36750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36751 }
36752 if (!argp2) {
36753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36754 }
36755 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36756 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36757 if (!SWIG_IsOK(ecode3)) {
36758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36759 }
36760 arg3 = static_cast< size_t >(val3);
36761 {
36762 arg4 = wxString_in_helper(obj3);
36763 if (arg4 == NULL) SWIG_fail;
36764 temp4 = true;
36765 }
36766 if (obj4) {
36767 ecode5 = SWIG_AsVal_int(obj4, &val5);
36768 if (!SWIG_IsOK(ecode5)) {
36769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36770 }
36771 arg5 = static_cast< int >(val5);
36772 }
36773 if (obj5) {
36774 ecode6 = SWIG_AsVal_int(obj5, &val6);
36775 if (!SWIG_IsOK(ecode6)) {
36776 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36777 }
36778 arg6 = static_cast< int >(val6);
36779 }
36780 if (obj6) {
36781 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36782 if (!SWIG_IsOK(res7)) {
36783 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36784 }
36785 }
36786 {
36787 PyThreadState* __tstate = wxPyBeginAllowThreads();
36788 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36789 wxPyEndAllowThreads(__tstate);
36790 if (PyErr_Occurred()) SWIG_fail;
36791 }
36792 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36793 {
36794 if (temp4)
36795 delete arg4;
36796 }
36797 return resultobj;
36798 fail:
36799 {
36800 if (temp4)
36801 delete arg4;
36802 }
36803 return NULL;
36804 }
36805
36806
36807 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36808 PyObject *resultobj = 0;
36809 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36810 wxTreeItemId *arg2 = 0 ;
36811 wxString *arg3 = 0 ;
36812 int arg4 = (int) -1 ;
36813 int arg5 = (int) -1 ;
36814 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36815 wxTreeItemId result;
36816 void *argp1 = 0 ;
36817 int res1 = 0 ;
36818 void *argp2 = 0 ;
36819 int res2 = 0 ;
36820 bool temp3 = false ;
36821 int val4 ;
36822 int ecode4 = 0 ;
36823 int val5 ;
36824 int ecode5 = 0 ;
36825 int res6 = 0 ;
36826 PyObject * obj0 = 0 ;
36827 PyObject * obj1 = 0 ;
36828 PyObject * obj2 = 0 ;
36829 PyObject * obj3 = 0 ;
36830 PyObject * obj4 = 0 ;
36831 PyObject * obj5 = 0 ;
36832 char * kwnames[] = {
36833 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36834 };
36835
36836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36838 if (!SWIG_IsOK(res1)) {
36839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36840 }
36841 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36843 if (!SWIG_IsOK(res2)) {
36844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36845 }
36846 if (!argp2) {
36847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36848 }
36849 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36850 {
36851 arg3 = wxString_in_helper(obj2);
36852 if (arg3 == NULL) SWIG_fail;
36853 temp3 = true;
36854 }
36855 if (obj3) {
36856 ecode4 = SWIG_AsVal_int(obj3, &val4);
36857 if (!SWIG_IsOK(ecode4)) {
36858 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36859 }
36860 arg4 = static_cast< int >(val4);
36861 }
36862 if (obj4) {
36863 ecode5 = SWIG_AsVal_int(obj4, &val5);
36864 if (!SWIG_IsOK(ecode5)) {
36865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36866 }
36867 arg5 = static_cast< int >(val5);
36868 }
36869 if (obj5) {
36870 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36871 if (!SWIG_IsOK(res6)) {
36872 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36873 }
36874 }
36875 {
36876 PyThreadState* __tstate = wxPyBeginAllowThreads();
36877 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36878 wxPyEndAllowThreads(__tstate);
36879 if (PyErr_Occurred()) SWIG_fail;
36880 }
36881 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36882 {
36883 if (temp3)
36884 delete arg3;
36885 }
36886 return resultobj;
36887 fail:
36888 {
36889 if (temp3)
36890 delete arg3;
36891 }
36892 return NULL;
36893 }
36894
36895
36896 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36897 PyObject *resultobj = 0;
36898 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36899 wxTreeItemId *arg2 = 0 ;
36900 void *argp1 = 0 ;
36901 int res1 = 0 ;
36902 void *argp2 = 0 ;
36903 int res2 = 0 ;
36904 PyObject * obj0 = 0 ;
36905 PyObject * obj1 = 0 ;
36906 char * kwnames[] = {
36907 (char *) "self",(char *) "item", NULL
36908 };
36909
36910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36912 if (!SWIG_IsOK(res1)) {
36913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36914 }
36915 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36916 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36917 if (!SWIG_IsOK(res2)) {
36918 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36919 }
36920 if (!argp2) {
36921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36922 }
36923 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36924 {
36925 PyThreadState* __tstate = wxPyBeginAllowThreads();
36926 (arg1)->Delete((wxTreeItemId const &)*arg2);
36927 wxPyEndAllowThreads(__tstate);
36928 if (PyErr_Occurred()) SWIG_fail;
36929 }
36930 resultobj = SWIG_Py_Void();
36931 return resultobj;
36932 fail:
36933 return NULL;
36934 }
36935
36936
36937 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36938 PyObject *resultobj = 0;
36939 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36940 wxTreeItemId *arg2 = 0 ;
36941 void *argp1 = 0 ;
36942 int res1 = 0 ;
36943 void *argp2 = 0 ;
36944 int res2 = 0 ;
36945 PyObject * obj0 = 0 ;
36946 PyObject * obj1 = 0 ;
36947 char * kwnames[] = {
36948 (char *) "self",(char *) "item", NULL
36949 };
36950
36951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36953 if (!SWIG_IsOK(res1)) {
36954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36955 }
36956 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36957 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36958 if (!SWIG_IsOK(res2)) {
36959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36960 }
36961 if (!argp2) {
36962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36963 }
36964 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36965 {
36966 PyThreadState* __tstate = wxPyBeginAllowThreads();
36967 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36968 wxPyEndAllowThreads(__tstate);
36969 if (PyErr_Occurred()) SWIG_fail;
36970 }
36971 resultobj = SWIG_Py_Void();
36972 return resultobj;
36973 fail:
36974 return NULL;
36975 }
36976
36977
36978 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36979 PyObject *resultobj = 0;
36980 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36981 void *argp1 = 0 ;
36982 int res1 = 0 ;
36983 PyObject *swig_obj[1] ;
36984
36985 if (!args) SWIG_fail;
36986 swig_obj[0] = args;
36987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36988 if (!SWIG_IsOK(res1)) {
36989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36990 }
36991 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36992 {
36993 PyThreadState* __tstate = wxPyBeginAllowThreads();
36994 (arg1)->DeleteAllItems();
36995 wxPyEndAllowThreads(__tstate);
36996 if (PyErr_Occurred()) SWIG_fail;
36997 }
36998 resultobj = SWIG_Py_Void();
36999 return resultobj;
37000 fail:
37001 return NULL;
37002 }
37003
37004
37005 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37006 PyObject *resultobj = 0;
37007 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37008 wxTreeItemId *arg2 = 0 ;
37009 void *argp1 = 0 ;
37010 int res1 = 0 ;
37011 void *argp2 = 0 ;
37012 int res2 = 0 ;
37013 PyObject * obj0 = 0 ;
37014 PyObject * obj1 = 0 ;
37015 char * kwnames[] = {
37016 (char *) "self",(char *) "item", NULL
37017 };
37018
37019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) 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_Expand" "', 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_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37028 }
37029 if (!argp2) {
37030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37031 }
37032 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37033 {
37034 PyThreadState* __tstate = wxPyBeginAllowThreads();
37035 (arg1)->Expand((wxTreeItemId const &)*arg2);
37036 wxPyEndAllowThreads(__tstate);
37037 if (PyErr_Occurred()) SWIG_fail;
37038 }
37039 resultobj = SWIG_Py_Void();
37040 return resultobj;
37041 fail:
37042 return NULL;
37043 }
37044
37045
37046 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37047 PyObject *resultobj = 0;
37048 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37049 wxTreeItemId *arg2 = 0 ;
37050 void *argp1 = 0 ;
37051 int res1 = 0 ;
37052 void *argp2 = 0 ;
37053 int res2 = 0 ;
37054 PyObject * obj0 = 0 ;
37055 PyObject * obj1 = 0 ;
37056 char * kwnames[] = {
37057 (char *) "self",(char *) "item", NULL
37058 };
37059
37060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37062 if (!SWIG_IsOK(res1)) {
37063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37064 }
37065 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37067 if (!SWIG_IsOK(res2)) {
37068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37069 }
37070 if (!argp2) {
37071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37072 }
37073 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37074 {
37075 PyThreadState* __tstate = wxPyBeginAllowThreads();
37076 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
37077 wxPyEndAllowThreads(__tstate);
37078 if (PyErr_Occurred()) SWIG_fail;
37079 }
37080 resultobj = SWIG_Py_Void();
37081 return resultobj;
37082 fail:
37083 return NULL;
37084 }
37085
37086
37087 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37088 PyObject *resultobj = 0;
37089 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37090 void *argp1 = 0 ;
37091 int res1 = 0 ;
37092 PyObject *swig_obj[1] ;
37093
37094 if (!args) SWIG_fail;
37095 swig_obj[0] = args;
37096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37097 if (!SWIG_IsOK(res1)) {
37098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37099 }
37100 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37101 {
37102 PyThreadState* __tstate = wxPyBeginAllowThreads();
37103 (arg1)->ExpandAll();
37104 wxPyEndAllowThreads(__tstate);
37105 if (PyErr_Occurred()) SWIG_fail;
37106 }
37107 resultobj = SWIG_Py_Void();
37108 return resultobj;
37109 fail:
37110 return NULL;
37111 }
37112
37113
37114 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37115 PyObject *resultobj = 0;
37116 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37117 wxTreeItemId *arg2 = 0 ;
37118 void *argp1 = 0 ;
37119 int res1 = 0 ;
37120 void *argp2 = 0 ;
37121 int res2 = 0 ;
37122 PyObject * obj0 = 0 ;
37123 PyObject * obj1 = 0 ;
37124 char * kwnames[] = {
37125 (char *) "self",(char *) "item", NULL
37126 };
37127
37128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
37129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37130 if (!SWIG_IsOK(res1)) {
37131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37132 }
37133 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37135 if (!SWIG_IsOK(res2)) {
37136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37137 }
37138 if (!argp2) {
37139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37140 }
37141 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37142 {
37143 PyThreadState* __tstate = wxPyBeginAllowThreads();
37144 (arg1)->Collapse((wxTreeItemId const &)*arg2);
37145 wxPyEndAllowThreads(__tstate);
37146 if (PyErr_Occurred()) SWIG_fail;
37147 }
37148 resultobj = SWIG_Py_Void();
37149 return resultobj;
37150 fail:
37151 return NULL;
37152 }
37153
37154
37155 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37156 PyObject *resultobj = 0;
37157 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37158 wxTreeItemId *arg2 = 0 ;
37159 void *argp1 = 0 ;
37160 int res1 = 0 ;
37161 void *argp2 = 0 ;
37162 int res2 = 0 ;
37163 PyObject * obj0 = 0 ;
37164 PyObject * obj1 = 0 ;
37165 char * kwnames[] = {
37166 (char *) "self",(char *) "item", NULL
37167 };
37168
37169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37171 if (!SWIG_IsOK(res1)) {
37172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37173 }
37174 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37176 if (!SWIG_IsOK(res2)) {
37177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37178 }
37179 if (!argp2) {
37180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37181 }
37182 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37183 {
37184 PyThreadState* __tstate = wxPyBeginAllowThreads();
37185 (arg1)->CollapseAllChildren((wxTreeItemId const &)*arg2);
37186 wxPyEndAllowThreads(__tstate);
37187 if (PyErr_Occurred()) SWIG_fail;
37188 }
37189 resultobj = SWIG_Py_Void();
37190 return resultobj;
37191 fail:
37192 return NULL;
37193 }
37194
37195
37196 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37197 PyObject *resultobj = 0;
37198 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37199 void *argp1 = 0 ;
37200 int res1 = 0 ;
37201 PyObject *swig_obj[1] ;
37202
37203 if (!args) SWIG_fail;
37204 swig_obj[0] = args;
37205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37206 if (!SWIG_IsOK(res1)) {
37207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37208 }
37209 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37210 {
37211 PyThreadState* __tstate = wxPyBeginAllowThreads();
37212 (arg1)->CollapseAll();
37213 wxPyEndAllowThreads(__tstate);
37214 if (PyErr_Occurred()) SWIG_fail;
37215 }
37216 resultobj = SWIG_Py_Void();
37217 return resultobj;
37218 fail:
37219 return NULL;
37220 }
37221
37222
37223 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37224 PyObject *resultobj = 0;
37225 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37226 wxTreeItemId *arg2 = 0 ;
37227 void *argp1 = 0 ;
37228 int res1 = 0 ;
37229 void *argp2 = 0 ;
37230 int res2 = 0 ;
37231 PyObject * obj0 = 0 ;
37232 PyObject * obj1 = 0 ;
37233 char * kwnames[] = {
37234 (char *) "self",(char *) "item", NULL
37235 };
37236
37237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
37238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37239 if (!SWIG_IsOK(res1)) {
37240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37241 }
37242 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37243 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37244 if (!SWIG_IsOK(res2)) {
37245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37246 }
37247 if (!argp2) {
37248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37249 }
37250 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37251 {
37252 PyThreadState* __tstate = wxPyBeginAllowThreads();
37253 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
37254 wxPyEndAllowThreads(__tstate);
37255 if (PyErr_Occurred()) SWIG_fail;
37256 }
37257 resultobj = SWIG_Py_Void();
37258 return resultobj;
37259 fail:
37260 return NULL;
37261 }
37262
37263
37264 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37265 PyObject *resultobj = 0;
37266 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37267 wxTreeItemId *arg2 = 0 ;
37268 void *argp1 = 0 ;
37269 int res1 = 0 ;
37270 void *argp2 = 0 ;
37271 int res2 = 0 ;
37272 PyObject * obj0 = 0 ;
37273 PyObject * obj1 = 0 ;
37274 char * kwnames[] = {
37275 (char *) "self",(char *) "item", NULL
37276 };
37277
37278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
37279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37280 if (!SWIG_IsOK(res1)) {
37281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37282 }
37283 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37284 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37285 if (!SWIG_IsOK(res2)) {
37286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37287 }
37288 if (!argp2) {
37289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37290 }
37291 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37292 {
37293 PyThreadState* __tstate = wxPyBeginAllowThreads();
37294 (arg1)->Toggle((wxTreeItemId const &)*arg2);
37295 wxPyEndAllowThreads(__tstate);
37296 if (PyErr_Occurred()) SWIG_fail;
37297 }
37298 resultobj = SWIG_Py_Void();
37299 return resultobj;
37300 fail:
37301 return NULL;
37302 }
37303
37304
37305 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37306 PyObject *resultobj = 0;
37307 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37308 void *argp1 = 0 ;
37309 int res1 = 0 ;
37310 PyObject *swig_obj[1] ;
37311
37312 if (!args) SWIG_fail;
37313 swig_obj[0] = args;
37314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37315 if (!SWIG_IsOK(res1)) {
37316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37317 }
37318 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37319 {
37320 PyThreadState* __tstate = wxPyBeginAllowThreads();
37321 (arg1)->Unselect();
37322 wxPyEndAllowThreads(__tstate);
37323 if (PyErr_Occurred()) SWIG_fail;
37324 }
37325 resultobj = SWIG_Py_Void();
37326 return resultobj;
37327 fail:
37328 return NULL;
37329 }
37330
37331
37332 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37333 PyObject *resultobj = 0;
37334 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37335 wxTreeItemId *arg2 = 0 ;
37336 void *argp1 = 0 ;
37337 int res1 = 0 ;
37338 void *argp2 = 0 ;
37339 int res2 = 0 ;
37340 PyObject * obj0 = 0 ;
37341 PyObject * obj1 = 0 ;
37342 char * kwnames[] = {
37343 (char *) "self",(char *) "item", NULL
37344 };
37345
37346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
37347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37348 if (!SWIG_IsOK(res1)) {
37349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37350 }
37351 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37353 if (!SWIG_IsOK(res2)) {
37354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37355 }
37356 if (!argp2) {
37357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37358 }
37359 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37360 {
37361 PyThreadState* __tstate = wxPyBeginAllowThreads();
37362 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
37363 wxPyEndAllowThreads(__tstate);
37364 if (PyErr_Occurred()) SWIG_fail;
37365 }
37366 resultobj = SWIG_Py_Void();
37367 return resultobj;
37368 fail:
37369 return NULL;
37370 }
37371
37372
37373 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37374 PyObject *resultobj = 0;
37375 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37376 void *argp1 = 0 ;
37377 int res1 = 0 ;
37378 PyObject *swig_obj[1] ;
37379
37380 if (!args) SWIG_fail;
37381 swig_obj[0] = args;
37382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37383 if (!SWIG_IsOK(res1)) {
37384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37385 }
37386 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37387 {
37388 PyThreadState* __tstate = wxPyBeginAllowThreads();
37389 (arg1)->UnselectAll();
37390 wxPyEndAllowThreads(__tstate);
37391 if (PyErr_Occurred()) SWIG_fail;
37392 }
37393 resultobj = SWIG_Py_Void();
37394 return resultobj;
37395 fail:
37396 return NULL;
37397 }
37398
37399
37400 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37401 PyObject *resultobj = 0;
37402 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37403 wxTreeItemId *arg2 = 0 ;
37404 bool arg3 = (bool) true ;
37405 void *argp1 = 0 ;
37406 int res1 = 0 ;
37407 void *argp2 = 0 ;
37408 int res2 = 0 ;
37409 bool val3 ;
37410 int ecode3 = 0 ;
37411 PyObject * obj0 = 0 ;
37412 PyObject * obj1 = 0 ;
37413 PyObject * obj2 = 0 ;
37414 char * kwnames[] = {
37415 (char *) "self",(char *) "item",(char *) "select", NULL
37416 };
37417
37418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37420 if (!SWIG_IsOK(res1)) {
37421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37422 }
37423 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37424 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37425 if (!SWIG_IsOK(res2)) {
37426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37427 }
37428 if (!argp2) {
37429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37430 }
37431 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37432 if (obj2) {
37433 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37434 if (!SWIG_IsOK(ecode3)) {
37435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
37436 }
37437 arg3 = static_cast< bool >(val3);
37438 }
37439 {
37440 PyThreadState* __tstate = wxPyBeginAllowThreads();
37441 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
37442 wxPyEndAllowThreads(__tstate);
37443 if (PyErr_Occurred()) SWIG_fail;
37444 }
37445 resultobj = SWIG_Py_Void();
37446 return resultobj;
37447 fail:
37448 return NULL;
37449 }
37450
37451
37452 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37453 PyObject *resultobj = 0;
37454 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37455 wxTreeItemId *arg2 = 0 ;
37456 void *argp1 = 0 ;
37457 int res1 = 0 ;
37458 void *argp2 = 0 ;
37459 int res2 = 0 ;
37460 PyObject * obj0 = 0 ;
37461 PyObject * obj1 = 0 ;
37462 char * kwnames[] = {
37463 (char *) "self",(char *) "item", NULL
37464 };
37465
37466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
37467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37468 if (!SWIG_IsOK(res1)) {
37469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37470 }
37471 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37473 if (!SWIG_IsOK(res2)) {
37474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37475 }
37476 if (!argp2) {
37477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37478 }
37479 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37480 {
37481 PyThreadState* __tstate = wxPyBeginAllowThreads();
37482 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
37483 wxPyEndAllowThreads(__tstate);
37484 if (PyErr_Occurred()) SWIG_fail;
37485 }
37486 resultobj = SWIG_Py_Void();
37487 return resultobj;
37488 fail:
37489 return NULL;
37490 }
37491
37492
37493 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37494 PyObject *resultobj = 0;
37495 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37496 wxTreeItemId *arg2 = 0 ;
37497 void *argp1 = 0 ;
37498 int res1 = 0 ;
37499 void *argp2 = 0 ;
37500 int res2 = 0 ;
37501 PyObject * obj0 = 0 ;
37502 PyObject * obj1 = 0 ;
37503 char * kwnames[] = {
37504 (char *) "self",(char *) "item", NULL
37505 };
37506
37507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
37508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37509 if (!SWIG_IsOK(res1)) {
37510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37511 }
37512 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37514 if (!SWIG_IsOK(res2)) {
37515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37516 }
37517 if (!argp2) {
37518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37519 }
37520 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37521 {
37522 PyThreadState* __tstate = wxPyBeginAllowThreads();
37523 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
37524 wxPyEndAllowThreads(__tstate);
37525 if (PyErr_Occurred()) SWIG_fail;
37526 }
37527 resultobj = SWIG_Py_Void();
37528 return resultobj;
37529 fail:
37530 return NULL;
37531 }
37532
37533
37534 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37535 PyObject *resultobj = 0;
37536 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37537 wxTreeItemId *arg2 = 0 ;
37538 void *argp1 = 0 ;
37539 int res1 = 0 ;
37540 void *argp2 = 0 ;
37541 int res2 = 0 ;
37542 PyObject * obj0 = 0 ;
37543 PyObject * obj1 = 0 ;
37544 char * kwnames[] = {
37545 (char *) "self",(char *) "item", NULL
37546 };
37547
37548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
37549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37550 if (!SWIG_IsOK(res1)) {
37551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37552 }
37553 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37554 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37555 if (!SWIG_IsOK(res2)) {
37556 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37557 }
37558 if (!argp2) {
37559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37560 }
37561 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37562 {
37563 PyThreadState* __tstate = wxPyBeginAllowThreads();
37564 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
37565 wxPyEndAllowThreads(__tstate);
37566 if (PyErr_Occurred()) SWIG_fail;
37567 }
37568 resultobj = SWIG_Py_Void();
37569 return resultobj;
37570 fail:
37571 return NULL;
37572 }
37573
37574
37575 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37576 PyObject *resultobj = 0;
37577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37578 wxTreeItemId *arg2 = 0 ;
37579 void *argp1 = 0 ;
37580 int res1 = 0 ;
37581 void *argp2 = 0 ;
37582 int res2 = 0 ;
37583 PyObject * obj0 = 0 ;
37584 PyObject * obj1 = 0 ;
37585 char * kwnames[] = {
37586 (char *) "self",(char *) "item", NULL
37587 };
37588
37589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37591 if (!SWIG_IsOK(res1)) {
37592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37593 }
37594 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37595 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37596 if (!SWIG_IsOK(res2)) {
37597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37598 }
37599 if (!argp2) {
37600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37601 }
37602 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37603 {
37604 PyThreadState* __tstate = wxPyBeginAllowThreads();
37605 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37606 wxPyEndAllowThreads(__tstate);
37607 if (PyErr_Occurred()) SWIG_fail;
37608 }
37609 resultobj = SWIG_Py_Void();
37610 return resultobj;
37611 fail:
37612 return NULL;
37613 }
37614
37615
37616 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37617 PyObject *resultobj = 0;
37618 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37619 wxTextCtrl *result = 0 ;
37620 void *argp1 = 0 ;
37621 int res1 = 0 ;
37622 PyObject *swig_obj[1] ;
37623
37624 if (!args) SWIG_fail;
37625 swig_obj[0] = args;
37626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37627 if (!SWIG_IsOK(res1)) {
37628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37629 }
37630 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37631 {
37632 PyThreadState* __tstate = wxPyBeginAllowThreads();
37633 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37634 wxPyEndAllowThreads(__tstate);
37635 if (PyErr_Occurred()) SWIG_fail;
37636 }
37637 {
37638 resultobj = wxPyMake_wxObject(result, 0);
37639 }
37640 return resultobj;
37641 fail:
37642 return NULL;
37643 }
37644
37645
37646 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37647 PyObject *resultobj = 0;
37648 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37649 wxTreeItemId *arg2 = 0 ;
37650 bool arg3 = (bool) false ;
37651 void *argp1 = 0 ;
37652 int res1 = 0 ;
37653 void *argp2 = 0 ;
37654 int res2 = 0 ;
37655 bool val3 ;
37656 int ecode3 = 0 ;
37657 PyObject * obj0 = 0 ;
37658 PyObject * obj1 = 0 ;
37659 PyObject * obj2 = 0 ;
37660 char * kwnames[] = {
37661 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
37662 };
37663
37664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37666 if (!SWIG_IsOK(res1)) {
37667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37668 }
37669 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37670 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37671 if (!SWIG_IsOK(res2)) {
37672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37673 }
37674 if (!argp2) {
37675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37676 }
37677 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37678 if (obj2) {
37679 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37680 if (!SWIG_IsOK(ecode3)) {
37681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
37682 }
37683 arg3 = static_cast< bool >(val3);
37684 }
37685 {
37686 PyThreadState* __tstate = wxPyBeginAllowThreads();
37687 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
37688 wxPyEndAllowThreads(__tstate);
37689 if (PyErr_Occurred()) SWIG_fail;
37690 }
37691 resultobj = SWIG_Py_Void();
37692 return resultobj;
37693 fail:
37694 return NULL;
37695 }
37696
37697
37698 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37699 PyObject *resultobj = 0;
37700 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37701 wxTreeItemId *arg2 = 0 ;
37702 void *argp1 = 0 ;
37703 int res1 = 0 ;
37704 void *argp2 = 0 ;
37705 int res2 = 0 ;
37706 PyObject * obj0 = 0 ;
37707 PyObject * obj1 = 0 ;
37708 char * kwnames[] = {
37709 (char *) "self",(char *) "item", NULL
37710 };
37711
37712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37714 if (!SWIG_IsOK(res1)) {
37715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37716 }
37717 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37719 if (!SWIG_IsOK(res2)) {
37720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37721 }
37722 if (!argp2) {
37723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37724 }
37725 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37726 {
37727 PyThreadState* __tstate = wxPyBeginAllowThreads();
37728 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37729 wxPyEndAllowThreads(__tstate);
37730 if (PyErr_Occurred()) SWIG_fail;
37731 }
37732 resultobj = SWIG_Py_Void();
37733 return resultobj;
37734 fail:
37735 return NULL;
37736 }
37737
37738
37739 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37740 PyObject *resultobj = 0;
37741 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37742 wxPoint *arg2 = 0 ;
37743 int *arg3 = 0 ;
37744 wxTreeItemId result;
37745 void *argp1 = 0 ;
37746 int res1 = 0 ;
37747 wxPoint temp2 ;
37748 int temp3 ;
37749 int res3 = SWIG_TMPOBJ ;
37750 PyObject * obj0 = 0 ;
37751 PyObject * obj1 = 0 ;
37752 char * kwnames[] = {
37753 (char *) "self",(char *) "point", NULL
37754 };
37755
37756 arg3 = &temp3;
37757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37759 if (!SWIG_IsOK(res1)) {
37760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37761 }
37762 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37763 {
37764 arg2 = &temp2;
37765 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37766 }
37767 {
37768 PyThreadState* __tstate = wxPyBeginAllowThreads();
37769 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37770 wxPyEndAllowThreads(__tstate);
37771 if (PyErr_Occurred()) SWIG_fail;
37772 }
37773 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37774 if (SWIG_IsTmpObj(res3)) {
37775 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37776 } else {
37777 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37778 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37779 }
37780 return resultobj;
37781 fail:
37782 return NULL;
37783 }
37784
37785
37786 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37787 PyObject *resultobj = 0;
37788 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37789 wxTreeItemId *arg2 = 0 ;
37790 bool arg3 = (bool) false ;
37791 PyObject *result = 0 ;
37792 void *argp1 = 0 ;
37793 int res1 = 0 ;
37794 void *argp2 = 0 ;
37795 int res2 = 0 ;
37796 bool val3 ;
37797 int ecode3 = 0 ;
37798 PyObject * obj0 = 0 ;
37799 PyObject * obj1 = 0 ;
37800 PyObject * obj2 = 0 ;
37801 char * kwnames[] = {
37802 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37803 };
37804
37805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37807 if (!SWIG_IsOK(res1)) {
37808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37809 }
37810 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37812 if (!SWIG_IsOK(res2)) {
37813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37814 }
37815 if (!argp2) {
37816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37817 }
37818 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37819 if (obj2) {
37820 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37821 if (!SWIG_IsOK(ecode3)) {
37822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37823 }
37824 arg3 = static_cast< bool >(val3);
37825 }
37826 {
37827 PyThreadState* __tstate = wxPyBeginAllowThreads();
37828 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37829 wxPyEndAllowThreads(__tstate);
37830 if (PyErr_Occurred()) SWIG_fail;
37831 }
37832 resultobj = result;
37833 return resultobj;
37834 fail:
37835 return NULL;
37836 }
37837
37838
37839 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37840 PyObject *resultobj = 0;
37841 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37842 wxTreeItemId *arg2 = 0 ;
37843 int arg3 ;
37844 void *argp1 = 0 ;
37845 int res1 = 0 ;
37846 void *argp2 = 0 ;
37847 int res2 = 0 ;
37848 int val3 ;
37849 int ecode3 = 0 ;
37850 PyObject * obj0 = 0 ;
37851 PyObject * obj1 = 0 ;
37852 PyObject * obj2 = 0 ;
37853 char * kwnames[] = {
37854 (char *) "self",(char *) "node",(char *) "state", NULL
37855 };
37856
37857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37859 if (!SWIG_IsOK(res1)) {
37860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37861 }
37862 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37863 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37864 if (!SWIG_IsOK(res2)) {
37865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37866 }
37867 if (!argp2) {
37868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37869 }
37870 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37871 ecode3 = SWIG_AsVal_int(obj2, &val3);
37872 if (!SWIG_IsOK(ecode3)) {
37873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
37874 }
37875 arg3 = static_cast< int >(val3);
37876 {
37877 PyThreadState* __tstate = wxPyBeginAllowThreads();
37878 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
37879 wxPyEndAllowThreads(__tstate);
37880 if (PyErr_Occurred()) SWIG_fail;
37881 }
37882 resultobj = SWIG_Py_Void();
37883 return resultobj;
37884 fail:
37885 return NULL;
37886 }
37887
37888
37889 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37890 PyObject *resultobj = 0;
37891 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37892 wxTreeItemId *arg2 = 0 ;
37893 int result;
37894 void *argp1 = 0 ;
37895 int res1 = 0 ;
37896 void *argp2 = 0 ;
37897 int res2 = 0 ;
37898 PyObject * obj0 = 0 ;
37899 PyObject * obj1 = 0 ;
37900 char * kwnames[] = {
37901 (char *) "self",(char *) "node", NULL
37902 };
37903
37904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
37905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37906 if (!SWIG_IsOK(res1)) {
37907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37908 }
37909 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37911 if (!SWIG_IsOK(res2)) {
37912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37913 }
37914 if (!argp2) {
37915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37916 }
37917 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37918 {
37919 PyThreadState* __tstate = wxPyBeginAllowThreads();
37920 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
37921 wxPyEndAllowThreads(__tstate);
37922 if (PyErr_Occurred()) SWIG_fail;
37923 }
37924 resultobj = SWIG_From_int(static_cast< int >(result));
37925 return resultobj;
37926 fail:
37927 return NULL;
37928 }
37929
37930
37931 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37932 PyObject *resultobj = 0;
37933 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37934 SwigValueWrapper<wxVisualAttributes > result;
37935 int val1 ;
37936 int ecode1 = 0 ;
37937 PyObject * obj0 = 0 ;
37938 char * kwnames[] = {
37939 (char *) "variant", NULL
37940 };
37941
37942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37943 if (obj0) {
37944 ecode1 = SWIG_AsVal_int(obj0, &val1);
37945 if (!SWIG_IsOK(ecode1)) {
37946 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37947 }
37948 arg1 = static_cast< wxWindowVariant >(val1);
37949 }
37950 {
37951 if (!wxPyCheckForApp()) SWIG_fail;
37952 PyThreadState* __tstate = wxPyBeginAllowThreads();
37953 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37954 wxPyEndAllowThreads(__tstate);
37955 if (PyErr_Occurred()) SWIG_fail;
37956 }
37957 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37958 return resultobj;
37959 fail:
37960 return NULL;
37961 }
37962
37963
37964 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37965 PyObject *resultobj = 0;
37966 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37967 bool arg2 ;
37968 void *argp1 = 0 ;
37969 int res1 = 0 ;
37970 bool val2 ;
37971 int ecode2 = 0 ;
37972 PyObject * obj0 = 0 ;
37973 PyObject * obj1 = 0 ;
37974 char * kwnames[] = {
37975 (char *) "self",(char *) "q", NULL
37976 };
37977
37978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37980 if (!SWIG_IsOK(res1)) {
37981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37982 }
37983 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37984 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37985 if (!SWIG_IsOK(ecode2)) {
37986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37987 }
37988 arg2 = static_cast< bool >(val2);
37989 {
37990 PyThreadState* __tstate = wxPyBeginAllowThreads();
37991 (arg1)->SetQuickBestSize(arg2);
37992 wxPyEndAllowThreads(__tstate);
37993 if (PyErr_Occurred()) SWIG_fail;
37994 }
37995 resultobj = SWIG_Py_Void();
37996 return resultobj;
37997 fail:
37998 return NULL;
37999 }
38000
38001
38002 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38003 PyObject *resultobj = 0;
38004 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
38005 bool result;
38006 void *argp1 = 0 ;
38007 int res1 = 0 ;
38008 PyObject *swig_obj[1] ;
38009
38010 if (!args) SWIG_fail;
38011 swig_obj[0] = args;
38012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
38013 if (!SWIG_IsOK(res1)) {
38014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
38015 }
38016 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
38017 {
38018 PyThreadState* __tstate = wxPyBeginAllowThreads();
38019 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
38020 wxPyEndAllowThreads(__tstate);
38021 if (PyErr_Occurred()) SWIG_fail;
38022 }
38023 {
38024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38025 }
38026 return resultobj;
38027 fail:
38028 return NULL;
38029 }
38030
38031
38032 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38033 PyObject *obj;
38034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38035 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
38036 return SWIG_Py_Void();
38037 }
38038
38039 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38040 return SWIG_Python_InitShadowInstance(args);
38041 }
38042
38043 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
38044 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
38045 return 1;
38046 }
38047
38048
38049 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
38050 PyObject *pyobj = 0;
38051
38052 {
38053 #if wxUSE_UNICODE
38054 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
38055 #else
38056 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
38057 #endif
38058 }
38059 return pyobj;
38060 }
38061
38062
38063 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38064 PyObject *resultobj = 0;
38065 wxWindow *arg1 = (wxWindow *) 0 ;
38066 int arg2 = (int) (int)-1 ;
38067 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
38068 wxString *arg3 = (wxString *) &arg3_defvalue ;
38069 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38070 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38071 wxSize const &arg5_defvalue = wxDefaultSize ;
38072 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38073 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
38074 wxString const &arg7_defvalue = wxPyEmptyString ;
38075 wxString *arg7 = (wxString *) &arg7_defvalue ;
38076 int arg8 = (int) 0 ;
38077 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
38078 wxString *arg9 = (wxString *) &arg9_defvalue ;
38079 wxGenericDirCtrl *result = 0 ;
38080 void *argp1 = 0 ;
38081 int res1 = 0 ;
38082 int val2 ;
38083 int ecode2 = 0 ;
38084 bool temp3 = false ;
38085 wxPoint temp4 ;
38086 wxSize temp5 ;
38087 long val6 ;
38088 int ecode6 = 0 ;
38089 bool temp7 = false ;
38090 int val8 ;
38091 int ecode8 = 0 ;
38092 bool temp9 = false ;
38093 PyObject * obj0 = 0 ;
38094 PyObject * obj1 = 0 ;
38095 PyObject * obj2 = 0 ;
38096 PyObject * obj3 = 0 ;
38097 PyObject * obj4 = 0 ;
38098 PyObject * obj5 = 0 ;
38099 PyObject * obj6 = 0 ;
38100 PyObject * obj7 = 0 ;
38101 PyObject * obj8 = 0 ;
38102 char * kwnames[] = {
38103 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
38104 };
38105
38106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
38107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38108 if (!SWIG_IsOK(res1)) {
38109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
38110 }
38111 arg1 = reinterpret_cast< wxWindow * >(argp1);
38112 if (obj1) {
38113 ecode2 = SWIG_AsVal_int(obj1, &val2);
38114 if (!SWIG_IsOK(ecode2)) {
38115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
38116 }
38117 arg2 = static_cast< int >(val2);
38118 }
38119 if (obj2) {
38120 {
38121 arg3 = wxString_in_helper(obj2);
38122 if (arg3 == NULL) SWIG_fail;
38123 temp3 = true;
38124 }
38125 }
38126 if (obj3) {
38127 {
38128 arg4 = &temp4;
38129 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38130 }
38131 }
38132 if (obj4) {
38133 {
38134 arg5 = &temp5;
38135 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38136 }
38137 }
38138 if (obj5) {
38139 ecode6 = SWIG_AsVal_long(obj5, &val6);
38140 if (!SWIG_IsOK(ecode6)) {
38141 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
38142 }
38143 arg6 = static_cast< long >(val6);
38144 }
38145 if (obj6) {
38146 {
38147 arg7 = wxString_in_helper(obj6);
38148 if (arg7 == NULL) SWIG_fail;
38149 temp7 = true;
38150 }
38151 }
38152 if (obj7) {
38153 ecode8 = SWIG_AsVal_int(obj7, &val8);
38154 if (!SWIG_IsOK(ecode8)) {
38155 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
38156 }
38157 arg8 = static_cast< int >(val8);
38158 }
38159 if (obj8) {
38160 {
38161 arg9 = wxString_in_helper(obj8);
38162 if (arg9 == NULL) SWIG_fail;
38163 temp9 = true;
38164 }
38165 }
38166 {
38167 if (!wxPyCheckForApp()) SWIG_fail;
38168 PyThreadState* __tstate = wxPyBeginAllowThreads();
38169 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
38170 wxPyEndAllowThreads(__tstate);
38171 if (PyErr_Occurred()) SWIG_fail;
38172 }
38173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
38174 {
38175 if (temp3)
38176 delete arg3;
38177 }
38178 {
38179 if (temp7)
38180 delete arg7;
38181 }
38182 {
38183 if (temp9)
38184 delete arg9;
38185 }
38186 return resultobj;
38187 fail:
38188 {
38189 if (temp3)
38190 delete arg3;
38191 }
38192 {
38193 if (temp7)
38194 delete arg7;
38195 }
38196 {
38197 if (temp9)
38198 delete arg9;
38199 }
38200 return NULL;
38201 }
38202
38203
38204 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38205 PyObject *resultobj = 0;
38206 wxGenericDirCtrl *result = 0 ;
38207
38208 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
38209 {
38210 if (!wxPyCheckForApp()) SWIG_fail;
38211 PyThreadState* __tstate = wxPyBeginAllowThreads();
38212 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
38213 wxPyEndAllowThreads(__tstate);
38214 if (PyErr_Occurred()) SWIG_fail;
38215 }
38216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
38217 return resultobj;
38218 fail:
38219 return NULL;
38220 }
38221
38222
38223 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38224 PyObject *resultobj = 0;
38225 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38226 wxWindow *arg2 = (wxWindow *) 0 ;
38227 int arg3 = (int) (int)-1 ;
38228 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
38229 wxString *arg4 = (wxString *) &arg4_defvalue ;
38230 wxPoint const &arg5_defvalue = wxDefaultPosition ;
38231 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
38232 wxSize const &arg6_defvalue = wxDefaultSize ;
38233 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
38234 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
38235 wxString const &arg8_defvalue = wxPyEmptyString ;
38236 wxString *arg8 = (wxString *) &arg8_defvalue ;
38237 int arg9 = (int) 0 ;
38238 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
38239 wxString *arg10 = (wxString *) &arg10_defvalue ;
38240 bool result;
38241 void *argp1 = 0 ;
38242 int res1 = 0 ;
38243 void *argp2 = 0 ;
38244 int res2 = 0 ;
38245 int val3 ;
38246 int ecode3 = 0 ;
38247 bool temp4 = false ;
38248 wxPoint temp5 ;
38249 wxSize temp6 ;
38250 long val7 ;
38251 int ecode7 = 0 ;
38252 bool temp8 = false ;
38253 int val9 ;
38254 int ecode9 = 0 ;
38255 bool temp10 = false ;
38256 PyObject * obj0 = 0 ;
38257 PyObject * obj1 = 0 ;
38258 PyObject * obj2 = 0 ;
38259 PyObject * obj3 = 0 ;
38260 PyObject * obj4 = 0 ;
38261 PyObject * obj5 = 0 ;
38262 PyObject * obj6 = 0 ;
38263 PyObject * obj7 = 0 ;
38264 PyObject * obj8 = 0 ;
38265 PyObject * obj9 = 0 ;
38266 char * kwnames[] = {
38267 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
38268 };
38269
38270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
38271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38272 if (!SWIG_IsOK(res1)) {
38273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38274 }
38275 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38276 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
38277 if (!SWIG_IsOK(res2)) {
38278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
38279 }
38280 arg2 = reinterpret_cast< wxWindow * >(argp2);
38281 if (obj2) {
38282 ecode3 = SWIG_AsVal_int(obj2, &val3);
38283 if (!SWIG_IsOK(ecode3)) {
38284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38285 }
38286 arg3 = static_cast< int >(val3);
38287 }
38288 if (obj3) {
38289 {
38290 arg4 = wxString_in_helper(obj3);
38291 if (arg4 == NULL) SWIG_fail;
38292 temp4 = true;
38293 }
38294 }
38295 if (obj4) {
38296 {
38297 arg5 = &temp5;
38298 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
38299 }
38300 }
38301 if (obj5) {
38302 {
38303 arg6 = &temp6;
38304 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
38305 }
38306 }
38307 if (obj6) {
38308 ecode7 = SWIG_AsVal_long(obj6, &val7);
38309 if (!SWIG_IsOK(ecode7)) {
38310 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
38311 }
38312 arg7 = static_cast< long >(val7);
38313 }
38314 if (obj7) {
38315 {
38316 arg8 = wxString_in_helper(obj7);
38317 if (arg8 == NULL) SWIG_fail;
38318 temp8 = true;
38319 }
38320 }
38321 if (obj8) {
38322 ecode9 = SWIG_AsVal_int(obj8, &val9);
38323 if (!SWIG_IsOK(ecode9)) {
38324 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
38325 }
38326 arg9 = static_cast< int >(val9);
38327 }
38328 if (obj9) {
38329 {
38330 arg10 = wxString_in_helper(obj9);
38331 if (arg10 == NULL) SWIG_fail;
38332 temp10 = true;
38333 }
38334 }
38335 {
38336 PyThreadState* __tstate = wxPyBeginAllowThreads();
38337 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
38338 wxPyEndAllowThreads(__tstate);
38339 if (PyErr_Occurred()) SWIG_fail;
38340 }
38341 {
38342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38343 }
38344 {
38345 if (temp4)
38346 delete arg4;
38347 }
38348 {
38349 if (temp8)
38350 delete arg8;
38351 }
38352 {
38353 if (temp10)
38354 delete arg10;
38355 }
38356 return resultobj;
38357 fail:
38358 {
38359 if (temp4)
38360 delete arg4;
38361 }
38362 {
38363 if (temp8)
38364 delete arg8;
38365 }
38366 {
38367 if (temp10)
38368 delete arg10;
38369 }
38370 return NULL;
38371 }
38372
38373
38374 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38375 PyObject *resultobj = 0;
38376 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38377 wxString *arg2 = 0 ;
38378 bool result;
38379 void *argp1 = 0 ;
38380 int res1 = 0 ;
38381 bool temp2 = false ;
38382 PyObject * obj0 = 0 ;
38383 PyObject * obj1 = 0 ;
38384 char * kwnames[] = {
38385 (char *) "self",(char *) "path", NULL
38386 };
38387
38388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
38389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38390 if (!SWIG_IsOK(res1)) {
38391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38392 }
38393 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38394 {
38395 arg2 = wxString_in_helper(obj1);
38396 if (arg2 == NULL) SWIG_fail;
38397 temp2 = true;
38398 }
38399 {
38400 PyThreadState* __tstate = wxPyBeginAllowThreads();
38401 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
38402 wxPyEndAllowThreads(__tstate);
38403 if (PyErr_Occurred()) SWIG_fail;
38404 }
38405 {
38406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38407 }
38408 {
38409 if (temp2)
38410 delete arg2;
38411 }
38412 return resultobj;
38413 fail:
38414 {
38415 if (temp2)
38416 delete arg2;
38417 }
38418 return NULL;
38419 }
38420
38421
38422 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38423 PyObject *resultobj = 0;
38424 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38425 wxString *arg2 = 0 ;
38426 bool result;
38427 void *argp1 = 0 ;
38428 int res1 = 0 ;
38429 bool temp2 = false ;
38430 PyObject * obj0 = 0 ;
38431 PyObject * obj1 = 0 ;
38432 char * kwnames[] = {
38433 (char *) "self",(char *) "path", NULL
38434 };
38435
38436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
38437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38438 if (!SWIG_IsOK(res1)) {
38439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38440 }
38441 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38442 {
38443 arg2 = wxString_in_helper(obj1);
38444 if (arg2 == NULL) SWIG_fail;
38445 temp2 = true;
38446 }
38447 {
38448 PyThreadState* __tstate = wxPyBeginAllowThreads();
38449 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
38450 wxPyEndAllowThreads(__tstate);
38451 if (PyErr_Occurred()) SWIG_fail;
38452 }
38453 {
38454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38455 }
38456 {
38457 if (temp2)
38458 delete arg2;
38459 }
38460 return resultobj;
38461 fail:
38462 {
38463 if (temp2)
38464 delete arg2;
38465 }
38466 return NULL;
38467 }
38468
38469
38470 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38471 PyObject *resultobj = 0;
38472 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38473 wxString result;
38474 void *argp1 = 0 ;
38475 int res1 = 0 ;
38476 PyObject *swig_obj[1] ;
38477
38478 if (!args) SWIG_fail;
38479 swig_obj[0] = args;
38480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38481 if (!SWIG_IsOK(res1)) {
38482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38483 }
38484 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38485 {
38486 PyThreadState* __tstate = wxPyBeginAllowThreads();
38487 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
38488 wxPyEndAllowThreads(__tstate);
38489 if (PyErr_Occurred()) SWIG_fail;
38490 }
38491 {
38492 #if wxUSE_UNICODE
38493 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38494 #else
38495 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38496 #endif
38497 }
38498 return resultobj;
38499 fail:
38500 return NULL;
38501 }
38502
38503
38504 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38505 PyObject *resultobj = 0;
38506 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38507 wxString *arg2 = 0 ;
38508 void *argp1 = 0 ;
38509 int res1 = 0 ;
38510 bool temp2 = false ;
38511 PyObject * obj0 = 0 ;
38512 PyObject * obj1 = 0 ;
38513 char * kwnames[] = {
38514 (char *) "self",(char *) "path", NULL
38515 };
38516
38517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
38518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38519 if (!SWIG_IsOK(res1)) {
38520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38521 }
38522 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38523 {
38524 arg2 = wxString_in_helper(obj1);
38525 if (arg2 == NULL) SWIG_fail;
38526 temp2 = true;
38527 }
38528 {
38529 PyThreadState* __tstate = wxPyBeginAllowThreads();
38530 (arg1)->SetDefaultPath((wxString const &)*arg2);
38531 wxPyEndAllowThreads(__tstate);
38532 if (PyErr_Occurred()) SWIG_fail;
38533 }
38534 resultobj = SWIG_Py_Void();
38535 {
38536 if (temp2)
38537 delete arg2;
38538 }
38539 return resultobj;
38540 fail:
38541 {
38542 if (temp2)
38543 delete arg2;
38544 }
38545 return NULL;
38546 }
38547
38548
38549 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38550 PyObject *resultobj = 0;
38551 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38552 wxString result;
38553 void *argp1 = 0 ;
38554 int res1 = 0 ;
38555 PyObject *swig_obj[1] ;
38556
38557 if (!args) SWIG_fail;
38558 swig_obj[0] = args;
38559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38560 if (!SWIG_IsOK(res1)) {
38561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38562 }
38563 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38564 {
38565 PyThreadState* __tstate = wxPyBeginAllowThreads();
38566 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
38567 wxPyEndAllowThreads(__tstate);
38568 if (PyErr_Occurred()) SWIG_fail;
38569 }
38570 {
38571 #if wxUSE_UNICODE
38572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38573 #else
38574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38575 #endif
38576 }
38577 return resultobj;
38578 fail:
38579 return NULL;
38580 }
38581
38582
38583 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38584 PyObject *resultobj = 0;
38585 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38586 wxString result;
38587 void *argp1 = 0 ;
38588 int res1 = 0 ;
38589 PyObject *swig_obj[1] ;
38590
38591 if (!args) SWIG_fail;
38592 swig_obj[0] = args;
38593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38594 if (!SWIG_IsOK(res1)) {
38595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38596 }
38597 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38598 {
38599 PyThreadState* __tstate = wxPyBeginAllowThreads();
38600 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
38601 wxPyEndAllowThreads(__tstate);
38602 if (PyErr_Occurred()) SWIG_fail;
38603 }
38604 {
38605 #if wxUSE_UNICODE
38606 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38607 #else
38608 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38609 #endif
38610 }
38611 return resultobj;
38612 fail:
38613 return NULL;
38614 }
38615
38616
38617 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38618 PyObject *resultobj = 0;
38619 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38620 wxString *arg2 = 0 ;
38621 void *argp1 = 0 ;
38622 int res1 = 0 ;
38623 bool temp2 = false ;
38624 PyObject * obj0 = 0 ;
38625 PyObject * obj1 = 0 ;
38626 char * kwnames[] = {
38627 (char *) "self",(char *) "path", NULL
38628 };
38629
38630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
38631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38632 if (!SWIG_IsOK(res1)) {
38633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38634 }
38635 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38636 {
38637 arg2 = wxString_in_helper(obj1);
38638 if (arg2 == NULL) SWIG_fail;
38639 temp2 = true;
38640 }
38641 {
38642 PyThreadState* __tstate = wxPyBeginAllowThreads();
38643 (arg1)->SetPath((wxString const &)*arg2);
38644 wxPyEndAllowThreads(__tstate);
38645 if (PyErr_Occurred()) SWIG_fail;
38646 }
38647 resultobj = SWIG_Py_Void();
38648 {
38649 if (temp2)
38650 delete arg2;
38651 }
38652 return resultobj;
38653 fail:
38654 {
38655 if (temp2)
38656 delete arg2;
38657 }
38658 return NULL;
38659 }
38660
38661
38662 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38663 PyObject *resultobj = 0;
38664 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38665 bool arg2 ;
38666 void *argp1 = 0 ;
38667 int res1 = 0 ;
38668 bool val2 ;
38669 int ecode2 = 0 ;
38670 PyObject * obj0 = 0 ;
38671 PyObject * obj1 = 0 ;
38672 char * kwnames[] = {
38673 (char *) "self",(char *) "show", NULL
38674 };
38675
38676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
38677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38678 if (!SWIG_IsOK(res1)) {
38679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38680 }
38681 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38682 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38683 if (!SWIG_IsOK(ecode2)) {
38684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
38685 }
38686 arg2 = static_cast< bool >(val2);
38687 {
38688 PyThreadState* __tstate = wxPyBeginAllowThreads();
38689 (arg1)->ShowHidden(arg2);
38690 wxPyEndAllowThreads(__tstate);
38691 if (PyErr_Occurred()) SWIG_fail;
38692 }
38693 resultobj = SWIG_Py_Void();
38694 return resultobj;
38695 fail:
38696 return NULL;
38697 }
38698
38699
38700 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38701 PyObject *resultobj = 0;
38702 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38703 bool result;
38704 void *argp1 = 0 ;
38705 int res1 = 0 ;
38706 PyObject *swig_obj[1] ;
38707
38708 if (!args) SWIG_fail;
38709 swig_obj[0] = args;
38710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38711 if (!SWIG_IsOK(res1)) {
38712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38713 }
38714 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38715 {
38716 PyThreadState* __tstate = wxPyBeginAllowThreads();
38717 result = (bool)(arg1)->GetShowHidden();
38718 wxPyEndAllowThreads(__tstate);
38719 if (PyErr_Occurred()) SWIG_fail;
38720 }
38721 {
38722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38723 }
38724 return resultobj;
38725 fail:
38726 return NULL;
38727 }
38728
38729
38730 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38731 PyObject *resultobj = 0;
38732 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38733 wxString result;
38734 void *argp1 = 0 ;
38735 int res1 = 0 ;
38736 PyObject *swig_obj[1] ;
38737
38738 if (!args) SWIG_fail;
38739 swig_obj[0] = args;
38740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38741 if (!SWIG_IsOK(res1)) {
38742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38743 }
38744 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38745 {
38746 PyThreadState* __tstate = wxPyBeginAllowThreads();
38747 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38748 wxPyEndAllowThreads(__tstate);
38749 if (PyErr_Occurred()) SWIG_fail;
38750 }
38751 {
38752 #if wxUSE_UNICODE
38753 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38754 #else
38755 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38756 #endif
38757 }
38758 return resultobj;
38759 fail:
38760 return NULL;
38761 }
38762
38763
38764 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38765 PyObject *resultobj = 0;
38766 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38767 wxString *arg2 = 0 ;
38768 void *argp1 = 0 ;
38769 int res1 = 0 ;
38770 bool temp2 = false ;
38771 PyObject * obj0 = 0 ;
38772 PyObject * obj1 = 0 ;
38773 char * kwnames[] = {
38774 (char *) "self",(char *) "filter", NULL
38775 };
38776
38777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38779 if (!SWIG_IsOK(res1)) {
38780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38781 }
38782 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38783 {
38784 arg2 = wxString_in_helper(obj1);
38785 if (arg2 == NULL) SWIG_fail;
38786 temp2 = true;
38787 }
38788 {
38789 PyThreadState* __tstate = wxPyBeginAllowThreads();
38790 (arg1)->SetFilter((wxString const &)*arg2);
38791 wxPyEndAllowThreads(__tstate);
38792 if (PyErr_Occurred()) SWIG_fail;
38793 }
38794 resultobj = SWIG_Py_Void();
38795 {
38796 if (temp2)
38797 delete arg2;
38798 }
38799 return resultobj;
38800 fail:
38801 {
38802 if (temp2)
38803 delete arg2;
38804 }
38805 return NULL;
38806 }
38807
38808
38809 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38810 PyObject *resultobj = 0;
38811 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38812 int result;
38813 void *argp1 = 0 ;
38814 int res1 = 0 ;
38815 PyObject *swig_obj[1] ;
38816
38817 if (!args) SWIG_fail;
38818 swig_obj[0] = args;
38819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38820 if (!SWIG_IsOK(res1)) {
38821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38822 }
38823 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38824 {
38825 PyThreadState* __tstate = wxPyBeginAllowThreads();
38826 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38827 wxPyEndAllowThreads(__tstate);
38828 if (PyErr_Occurred()) SWIG_fail;
38829 }
38830 resultobj = SWIG_From_int(static_cast< int >(result));
38831 return resultobj;
38832 fail:
38833 return NULL;
38834 }
38835
38836
38837 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38838 PyObject *resultobj = 0;
38839 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38840 int arg2 ;
38841 void *argp1 = 0 ;
38842 int res1 = 0 ;
38843 int val2 ;
38844 int ecode2 = 0 ;
38845 PyObject * obj0 = 0 ;
38846 PyObject * obj1 = 0 ;
38847 char * kwnames[] = {
38848 (char *) "self",(char *) "n", NULL
38849 };
38850
38851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38853 if (!SWIG_IsOK(res1)) {
38854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38855 }
38856 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38857 ecode2 = SWIG_AsVal_int(obj1, &val2);
38858 if (!SWIG_IsOK(ecode2)) {
38859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38860 }
38861 arg2 = static_cast< int >(val2);
38862 {
38863 PyThreadState* __tstate = wxPyBeginAllowThreads();
38864 (arg1)->SetFilterIndex(arg2);
38865 wxPyEndAllowThreads(__tstate);
38866 if (PyErr_Occurred()) SWIG_fail;
38867 }
38868 resultobj = SWIG_Py_Void();
38869 return resultobj;
38870 fail:
38871 return NULL;
38872 }
38873
38874
38875 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38876 PyObject *resultobj = 0;
38877 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38878 wxTreeItemId result;
38879 void *argp1 = 0 ;
38880 int res1 = 0 ;
38881 PyObject *swig_obj[1] ;
38882
38883 if (!args) SWIG_fail;
38884 swig_obj[0] = args;
38885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38886 if (!SWIG_IsOK(res1)) {
38887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38888 }
38889 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38890 {
38891 PyThreadState* __tstate = wxPyBeginAllowThreads();
38892 result = (arg1)->GetRootId();
38893 wxPyEndAllowThreads(__tstate);
38894 if (PyErr_Occurred()) SWIG_fail;
38895 }
38896 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38897 return resultobj;
38898 fail:
38899 return NULL;
38900 }
38901
38902
38903 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38904 PyObject *resultobj = 0;
38905 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38906 wxPyTreeCtrl *result = 0 ;
38907 void *argp1 = 0 ;
38908 int res1 = 0 ;
38909 PyObject *swig_obj[1] ;
38910
38911 if (!args) SWIG_fail;
38912 swig_obj[0] = args;
38913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38914 if (!SWIG_IsOK(res1)) {
38915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38916 }
38917 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38918 {
38919 PyThreadState* __tstate = wxPyBeginAllowThreads();
38920 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38921 wxPyEndAllowThreads(__tstate);
38922 if (PyErr_Occurred()) SWIG_fail;
38923 }
38924 {
38925 resultobj = wxPyMake_wxObject(result, 0);
38926 }
38927 return resultobj;
38928 fail:
38929 return NULL;
38930 }
38931
38932
38933 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38934 PyObject *resultobj = 0;
38935 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38936 wxDirFilterListCtrl *result = 0 ;
38937 void *argp1 = 0 ;
38938 int res1 = 0 ;
38939 PyObject *swig_obj[1] ;
38940
38941 if (!args) SWIG_fail;
38942 swig_obj[0] = args;
38943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38944 if (!SWIG_IsOK(res1)) {
38945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38946 }
38947 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38948 {
38949 PyThreadState* __tstate = wxPyBeginAllowThreads();
38950 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38951 wxPyEndAllowThreads(__tstate);
38952 if (PyErr_Occurred()) SWIG_fail;
38953 }
38954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38955 return resultobj;
38956 fail:
38957 return NULL;
38958 }
38959
38960
38961 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38962 PyObject *resultobj = 0;
38963 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38964 wxTreeItemId arg2 ;
38965 wxString *arg3 = 0 ;
38966 bool *arg4 = 0 ;
38967 wxTreeItemId result;
38968 void *argp1 = 0 ;
38969 int res1 = 0 ;
38970 void *argp2 ;
38971 int res2 = 0 ;
38972 bool temp3 = false ;
38973 bool temp4 ;
38974 int res4 = SWIG_TMPOBJ ;
38975 PyObject * obj0 = 0 ;
38976 PyObject * obj1 = 0 ;
38977 PyObject * obj2 = 0 ;
38978 char * kwnames[] = {
38979 (char *) "self",(char *) "parentId",(char *) "path", NULL
38980 };
38981
38982 arg4 = &temp4;
38983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38985 if (!SWIG_IsOK(res1)) {
38986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38987 }
38988 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38989 {
38990 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38991 if (!SWIG_IsOK(res2)) {
38992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38993 }
38994 if (!argp2) {
38995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38996 } else {
38997 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38998 arg2 = *temp;
38999 if (SWIG_IsNewObj(res2)) delete temp;
39000 }
39001 }
39002 {
39003 arg3 = wxString_in_helper(obj2);
39004 if (arg3 == NULL) SWIG_fail;
39005 temp3 = true;
39006 }
39007 {
39008 PyThreadState* __tstate = wxPyBeginAllowThreads();
39009 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
39010 wxPyEndAllowThreads(__tstate);
39011 if (PyErr_Occurred()) SWIG_fail;
39012 }
39013 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
39014 if (SWIG_IsTmpObj(res4)) {
39015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
39016 } else {
39017 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39018 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
39019 }
39020 {
39021 if (temp3)
39022 delete arg3;
39023 }
39024 return resultobj;
39025 fail:
39026 {
39027 if (temp3)
39028 delete arg3;
39029 }
39030 return NULL;
39031 }
39032
39033
39034 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39035 PyObject *resultobj = 0;
39036 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
39037 void *argp1 = 0 ;
39038 int res1 = 0 ;
39039 PyObject *swig_obj[1] ;
39040
39041 if (!args) SWIG_fail;
39042 swig_obj[0] = args;
39043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
39044 if (!SWIG_IsOK(res1)) {
39045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
39046 }
39047 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
39048 {
39049 PyThreadState* __tstate = wxPyBeginAllowThreads();
39050 (arg1)->DoResize();
39051 wxPyEndAllowThreads(__tstate);
39052 if (PyErr_Occurred()) SWIG_fail;
39053 }
39054 resultobj = SWIG_Py_Void();
39055 return resultobj;
39056 fail:
39057 return NULL;
39058 }
39059
39060
39061 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39062 PyObject *resultobj = 0;
39063 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
39064 void *argp1 = 0 ;
39065 int res1 = 0 ;
39066 PyObject *swig_obj[1] ;
39067
39068 if (!args) SWIG_fail;
39069 swig_obj[0] = args;
39070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
39071 if (!SWIG_IsOK(res1)) {
39072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
39073 }
39074 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
39075 {
39076 PyThreadState* __tstate = wxPyBeginAllowThreads();
39077 (arg1)->ReCreateTree();
39078 wxPyEndAllowThreads(__tstate);
39079 if (PyErr_Occurred()) SWIG_fail;
39080 }
39081 resultobj = SWIG_Py_Void();
39082 return resultobj;
39083 fail:
39084 return NULL;
39085 }
39086
39087
39088 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39089 PyObject *obj;
39090 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39091 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
39092 return SWIG_Py_Void();
39093 }
39094
39095 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39096 return SWIG_Python_InitShadowInstance(args);
39097 }
39098
39099 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39100 PyObject *resultobj = 0;
39101 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
39102 int arg2 = (int) (int)-1 ;
39103 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39104 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39105 wxSize const &arg4_defvalue = wxDefaultSize ;
39106 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39107 long arg5 = (long) 0 ;
39108 wxDirFilterListCtrl *result = 0 ;
39109 void *argp1 = 0 ;
39110 int res1 = 0 ;
39111 int val2 ;
39112 int ecode2 = 0 ;
39113 wxPoint temp3 ;
39114 wxSize temp4 ;
39115 long val5 ;
39116 int ecode5 = 0 ;
39117 PyObject * obj0 = 0 ;
39118 PyObject * obj1 = 0 ;
39119 PyObject * obj2 = 0 ;
39120 PyObject * obj3 = 0 ;
39121 PyObject * obj4 = 0 ;
39122 char * kwnames[] = {
39123 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39124 };
39125
39126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
39128 if (!SWIG_IsOK(res1)) {
39129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
39130 }
39131 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
39132 if (obj1) {
39133 ecode2 = SWIG_AsVal_int(obj1, &val2);
39134 if (!SWIG_IsOK(ecode2)) {
39135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
39136 }
39137 arg2 = static_cast< int >(val2);
39138 }
39139 if (obj2) {
39140 {
39141 arg3 = &temp3;
39142 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39143 }
39144 }
39145 if (obj3) {
39146 {
39147 arg4 = &temp4;
39148 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39149 }
39150 }
39151 if (obj4) {
39152 ecode5 = SWIG_AsVal_long(obj4, &val5);
39153 if (!SWIG_IsOK(ecode5)) {
39154 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
39155 }
39156 arg5 = static_cast< long >(val5);
39157 }
39158 {
39159 if (!wxPyCheckForApp()) SWIG_fail;
39160 PyThreadState* __tstate = wxPyBeginAllowThreads();
39161 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39162 wxPyEndAllowThreads(__tstate);
39163 if (PyErr_Occurred()) SWIG_fail;
39164 }
39165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
39166 return resultobj;
39167 fail:
39168 return NULL;
39169 }
39170
39171
39172 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39173 PyObject *resultobj = 0;
39174 wxDirFilterListCtrl *result = 0 ;
39175
39176 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
39177 {
39178 if (!wxPyCheckForApp()) SWIG_fail;
39179 PyThreadState* __tstate = wxPyBeginAllowThreads();
39180 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
39181 wxPyEndAllowThreads(__tstate);
39182 if (PyErr_Occurred()) SWIG_fail;
39183 }
39184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
39185 return resultobj;
39186 fail:
39187 return NULL;
39188 }
39189
39190
39191 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39192 PyObject *resultobj = 0;
39193 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
39194 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
39195 int arg3 = (int) (int)-1 ;
39196 wxPoint const &arg4_defvalue = wxDefaultPosition ;
39197 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
39198 wxSize const &arg5_defvalue = wxDefaultSize ;
39199 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
39200 long arg6 = (long) 0 ;
39201 bool result;
39202 void *argp1 = 0 ;
39203 int res1 = 0 ;
39204 void *argp2 = 0 ;
39205 int res2 = 0 ;
39206 int val3 ;
39207 int ecode3 = 0 ;
39208 wxPoint temp4 ;
39209 wxSize temp5 ;
39210 long val6 ;
39211 int ecode6 = 0 ;
39212 PyObject * obj0 = 0 ;
39213 PyObject * obj1 = 0 ;
39214 PyObject * obj2 = 0 ;
39215 PyObject * obj3 = 0 ;
39216 PyObject * obj4 = 0 ;
39217 PyObject * obj5 = 0 ;
39218 char * kwnames[] = {
39219 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39220 };
39221
39222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
39224 if (!SWIG_IsOK(res1)) {
39225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
39226 }
39227 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
39228 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
39229 if (!SWIG_IsOK(res2)) {
39230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
39231 }
39232 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
39233 if (obj2) {
39234 ecode3 = SWIG_AsVal_int(obj2, &val3);
39235 if (!SWIG_IsOK(ecode3)) {
39236 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
39237 }
39238 arg3 = static_cast< int >(val3);
39239 }
39240 if (obj3) {
39241 {
39242 arg4 = &temp4;
39243 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
39244 }
39245 }
39246 if (obj4) {
39247 {
39248 arg5 = &temp5;
39249 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
39250 }
39251 }
39252 if (obj5) {
39253 ecode6 = SWIG_AsVal_long(obj5, &val6);
39254 if (!SWIG_IsOK(ecode6)) {
39255 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
39256 }
39257 arg6 = static_cast< long >(val6);
39258 }
39259 {
39260 PyThreadState* __tstate = wxPyBeginAllowThreads();
39261 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
39262 wxPyEndAllowThreads(__tstate);
39263 if (PyErr_Occurred()) SWIG_fail;
39264 }
39265 {
39266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39267 }
39268 return resultobj;
39269 fail:
39270 return NULL;
39271 }
39272
39273
39274 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39275 PyObject *resultobj = 0;
39276 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
39277 wxString *arg2 = 0 ;
39278 int arg3 ;
39279 void *argp1 = 0 ;
39280 int res1 = 0 ;
39281 bool temp2 = false ;
39282 int val3 ;
39283 int ecode3 = 0 ;
39284 PyObject * obj0 = 0 ;
39285 PyObject * obj1 = 0 ;
39286 PyObject * obj2 = 0 ;
39287 char * kwnames[] = {
39288 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
39289 };
39290
39291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
39293 if (!SWIG_IsOK(res1)) {
39294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
39295 }
39296 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
39297 {
39298 arg2 = wxString_in_helper(obj1);
39299 if (arg2 == NULL) SWIG_fail;
39300 temp2 = true;
39301 }
39302 ecode3 = SWIG_AsVal_int(obj2, &val3);
39303 if (!SWIG_IsOK(ecode3)) {
39304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
39305 }
39306 arg3 = static_cast< int >(val3);
39307 {
39308 PyThreadState* __tstate = wxPyBeginAllowThreads();
39309 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
39310 wxPyEndAllowThreads(__tstate);
39311 if (PyErr_Occurred()) SWIG_fail;
39312 }
39313 resultobj = SWIG_Py_Void();
39314 {
39315 if (temp2)
39316 delete arg2;
39317 }
39318 return resultobj;
39319 fail:
39320 {
39321 if (temp2)
39322 delete arg2;
39323 }
39324 return NULL;
39325 }
39326
39327
39328 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39329 PyObject *obj;
39330 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39331 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
39332 return SWIG_Py_Void();
39333 }
39334
39335 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39336 return SWIG_Python_InitShadowInstance(args);
39337 }
39338
39339 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39340 PyObject *resultobj = 0;
39341 wxWindow *arg1 = (wxWindow *) 0 ;
39342 int arg2 = (int) (int)-1 ;
39343 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39344 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39345 wxSize const &arg4_defvalue = wxDefaultSize ;
39346 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39347 long arg5 = (long) 0 ;
39348 wxValidator const &arg6_defvalue = wxDefaultValidator ;
39349 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
39350 wxString const &arg7_defvalue = wxPyControlNameStr ;
39351 wxString *arg7 = (wxString *) &arg7_defvalue ;
39352 wxPyControl *result = 0 ;
39353 void *argp1 = 0 ;
39354 int res1 = 0 ;
39355 int val2 ;
39356 int ecode2 = 0 ;
39357 wxPoint temp3 ;
39358 wxSize temp4 ;
39359 long val5 ;
39360 int ecode5 = 0 ;
39361 void *argp6 = 0 ;
39362 int res6 = 0 ;
39363 bool temp7 = false ;
39364 PyObject * obj0 = 0 ;
39365 PyObject * obj1 = 0 ;
39366 PyObject * obj2 = 0 ;
39367 PyObject * obj3 = 0 ;
39368 PyObject * obj4 = 0 ;
39369 PyObject * obj5 = 0 ;
39370 PyObject * obj6 = 0 ;
39371 char * kwnames[] = {
39372 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
39373 };
39374
39375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
39376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39377 if (!SWIG_IsOK(res1)) {
39378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
39379 }
39380 arg1 = reinterpret_cast< wxWindow * >(argp1);
39381 if (obj1) {
39382 ecode2 = SWIG_AsVal_int(obj1, &val2);
39383 if (!SWIG_IsOK(ecode2)) {
39384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
39385 }
39386 arg2 = static_cast< int >(val2);
39387 }
39388 if (obj2) {
39389 {
39390 arg3 = &temp3;
39391 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39392 }
39393 }
39394 if (obj3) {
39395 {
39396 arg4 = &temp4;
39397 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39398 }
39399 }
39400 if (obj4) {
39401 ecode5 = SWIG_AsVal_long(obj4, &val5);
39402 if (!SWIG_IsOK(ecode5)) {
39403 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
39404 }
39405 arg5 = static_cast< long >(val5);
39406 }
39407 if (obj5) {
39408 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
39409 if (!SWIG_IsOK(res6)) {
39410 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39411 }
39412 if (!argp6) {
39413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
39414 }
39415 arg6 = reinterpret_cast< wxValidator * >(argp6);
39416 }
39417 if (obj6) {
39418 {
39419 arg7 = wxString_in_helper(obj6);
39420 if (arg7 == NULL) SWIG_fail;
39421 temp7 = true;
39422 }
39423 }
39424 {
39425 if (!wxPyCheckForApp()) SWIG_fail;
39426 PyThreadState* __tstate = wxPyBeginAllowThreads();
39427 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
39428 wxPyEndAllowThreads(__tstate);
39429 if (PyErr_Occurred()) SWIG_fail;
39430 }
39431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
39432 {
39433 if (temp7)
39434 delete arg7;
39435 }
39436 return resultobj;
39437 fail:
39438 {
39439 if (temp7)
39440 delete arg7;
39441 }
39442 return NULL;
39443 }
39444
39445
39446 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39447 PyObject *resultobj = 0;
39448 wxPyControl *result = 0 ;
39449
39450 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
39451 {
39452 if (!wxPyCheckForApp()) SWIG_fail;
39453 PyThreadState* __tstate = wxPyBeginAllowThreads();
39454 result = (wxPyControl *)new wxPyControl();
39455 wxPyEndAllowThreads(__tstate);
39456 if (PyErr_Occurred()) SWIG_fail;
39457 }
39458 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
39459 return resultobj;
39460 fail:
39461 return NULL;
39462 }
39463
39464
39465 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39466 PyObject *resultobj = 0;
39467 wxPyControl *arg1 = (wxPyControl *) 0 ;
39468 PyObject *arg2 = (PyObject *) 0 ;
39469 PyObject *arg3 = (PyObject *) 0 ;
39470 void *argp1 = 0 ;
39471 int res1 = 0 ;
39472 PyObject * obj0 = 0 ;
39473 PyObject * obj1 = 0 ;
39474 PyObject * obj2 = 0 ;
39475 char * kwnames[] = {
39476 (char *) "self",(char *) "self",(char *) "_class", NULL
39477 };
39478
39479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39481 if (!SWIG_IsOK(res1)) {
39482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
39483 }
39484 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39485 arg2 = obj1;
39486 arg3 = obj2;
39487 {
39488 PyThreadState* __tstate = wxPyBeginAllowThreads();
39489 (arg1)->_setCallbackInfo(arg2,arg3);
39490 wxPyEndAllowThreads(__tstate);
39491 if (PyErr_Occurred()) SWIG_fail;
39492 }
39493 resultobj = SWIG_Py_Void();
39494 return resultobj;
39495 fail:
39496 return NULL;
39497 }
39498
39499
39500 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39501 PyObject *resultobj = 0;
39502 wxPyControl *arg1 = (wxPyControl *) 0 ;
39503 wxDC *arg2 = (wxDC *) 0 ;
39504 bool result;
39505 void *argp1 = 0 ;
39506 int res1 = 0 ;
39507 void *argp2 = 0 ;
39508 int res2 = 0 ;
39509 PyObject * obj0 = 0 ;
39510 PyObject * obj1 = 0 ;
39511 char * kwnames[] = {
39512 (char *) "self",(char *) "dc", NULL
39513 };
39514
39515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39517 if (!SWIG_IsOK(res1)) {
39518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
39519 }
39520 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39521 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
39522 if (!SWIG_IsOK(res2)) {
39523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
39524 }
39525 arg2 = reinterpret_cast< wxDC * >(argp2);
39526 {
39527 PyThreadState* __tstate = wxPyBeginAllowThreads();
39528 result = (bool)(arg1)->DoEraseBackground(arg2);
39529 wxPyEndAllowThreads(__tstate);
39530 if (PyErr_Occurred()) SWIG_fail;
39531 }
39532 {
39533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39534 }
39535 return resultobj;
39536 fail:
39537 return NULL;
39538 }
39539
39540
39541 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39542 PyObject *resultobj = 0;
39543 wxPyControl *arg1 = (wxPyControl *) 0 ;
39544 int arg2 ;
39545 int arg3 ;
39546 int arg4 ;
39547 int arg5 ;
39548 void *argp1 = 0 ;
39549 int res1 = 0 ;
39550 int val2 ;
39551 int ecode2 = 0 ;
39552 int val3 ;
39553 int ecode3 = 0 ;
39554 int val4 ;
39555 int ecode4 = 0 ;
39556 int val5 ;
39557 int ecode5 = 0 ;
39558 PyObject * obj0 = 0 ;
39559 PyObject * obj1 = 0 ;
39560 PyObject * obj2 = 0 ;
39561 PyObject * obj3 = 0 ;
39562 PyObject * obj4 = 0 ;
39563 char * kwnames[] = {
39564 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
39565 };
39566
39567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39569 if (!SWIG_IsOK(res1)) {
39570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
39571 }
39572 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39573 ecode2 = SWIG_AsVal_int(obj1, &val2);
39574 if (!SWIG_IsOK(ecode2)) {
39575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
39576 }
39577 arg2 = static_cast< int >(val2);
39578 ecode3 = SWIG_AsVal_int(obj2, &val3);
39579 if (!SWIG_IsOK(ecode3)) {
39580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
39581 }
39582 arg3 = static_cast< int >(val3);
39583 ecode4 = SWIG_AsVal_int(obj3, &val4);
39584 if (!SWIG_IsOK(ecode4)) {
39585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
39586 }
39587 arg4 = static_cast< int >(val4);
39588 ecode5 = SWIG_AsVal_int(obj4, &val5);
39589 if (!SWIG_IsOK(ecode5)) {
39590 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
39591 }
39592 arg5 = static_cast< int >(val5);
39593 {
39594 PyThreadState* __tstate = wxPyBeginAllowThreads();
39595 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
39596 wxPyEndAllowThreads(__tstate);
39597 if (PyErr_Occurred()) SWIG_fail;
39598 }
39599 resultobj = SWIG_Py_Void();
39600 return resultobj;
39601 fail:
39602 return NULL;
39603 }
39604
39605
39606 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39607 PyObject *resultobj = 0;
39608 wxPyControl *arg1 = (wxPyControl *) 0 ;
39609 int arg2 ;
39610 int arg3 ;
39611 int arg4 ;
39612 int arg5 ;
39613 int arg6 = (int) wxSIZE_AUTO ;
39614 void *argp1 = 0 ;
39615 int res1 = 0 ;
39616 int val2 ;
39617 int ecode2 = 0 ;
39618 int val3 ;
39619 int ecode3 = 0 ;
39620 int val4 ;
39621 int ecode4 = 0 ;
39622 int val5 ;
39623 int ecode5 = 0 ;
39624 int val6 ;
39625 int ecode6 = 0 ;
39626 PyObject * obj0 = 0 ;
39627 PyObject * obj1 = 0 ;
39628 PyObject * obj2 = 0 ;
39629 PyObject * obj3 = 0 ;
39630 PyObject * obj4 = 0 ;
39631 PyObject * obj5 = 0 ;
39632 char * kwnames[] = {
39633 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
39634 };
39635
39636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39638 if (!SWIG_IsOK(res1)) {
39639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39640 }
39641 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39642 ecode2 = SWIG_AsVal_int(obj1, &val2);
39643 if (!SWIG_IsOK(ecode2)) {
39644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
39645 }
39646 arg2 = static_cast< int >(val2);
39647 ecode3 = SWIG_AsVal_int(obj2, &val3);
39648 if (!SWIG_IsOK(ecode3)) {
39649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
39650 }
39651 arg3 = static_cast< int >(val3);
39652 ecode4 = SWIG_AsVal_int(obj3, &val4);
39653 if (!SWIG_IsOK(ecode4)) {
39654 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39655 }
39656 arg4 = static_cast< int >(val4);
39657 ecode5 = SWIG_AsVal_int(obj4, &val5);
39658 if (!SWIG_IsOK(ecode5)) {
39659 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39660 }
39661 arg5 = static_cast< int >(val5);
39662 if (obj5) {
39663 ecode6 = SWIG_AsVal_int(obj5, &val6);
39664 if (!SWIG_IsOK(ecode6)) {
39665 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39666 }
39667 arg6 = static_cast< int >(val6);
39668 }
39669 {
39670 PyThreadState* __tstate = wxPyBeginAllowThreads();
39671 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39672 wxPyEndAllowThreads(__tstate);
39673 if (PyErr_Occurred()) SWIG_fail;
39674 }
39675 resultobj = SWIG_Py_Void();
39676 return resultobj;
39677 fail:
39678 return NULL;
39679 }
39680
39681
39682 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39683 PyObject *resultobj = 0;
39684 wxPyControl *arg1 = (wxPyControl *) 0 ;
39685 int arg2 ;
39686 int arg3 ;
39687 void *argp1 = 0 ;
39688 int res1 = 0 ;
39689 int val2 ;
39690 int ecode2 = 0 ;
39691 int val3 ;
39692 int ecode3 = 0 ;
39693 PyObject * obj0 = 0 ;
39694 PyObject * obj1 = 0 ;
39695 PyObject * obj2 = 0 ;
39696 char * kwnames[] = {
39697 (char *) "self",(char *) "width",(char *) "height", NULL
39698 };
39699
39700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39702 if (!SWIG_IsOK(res1)) {
39703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39704 }
39705 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39706 ecode2 = SWIG_AsVal_int(obj1, &val2);
39707 if (!SWIG_IsOK(ecode2)) {
39708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39709 }
39710 arg2 = static_cast< int >(val2);
39711 ecode3 = SWIG_AsVal_int(obj2, &val3);
39712 if (!SWIG_IsOK(ecode3)) {
39713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39714 }
39715 arg3 = static_cast< int >(val3);
39716 {
39717 PyThreadState* __tstate = wxPyBeginAllowThreads();
39718 (arg1)->DoSetClientSize(arg2,arg3);
39719 wxPyEndAllowThreads(__tstate);
39720 if (PyErr_Occurred()) SWIG_fail;
39721 }
39722 resultobj = SWIG_Py_Void();
39723 return resultobj;
39724 fail:
39725 return NULL;
39726 }
39727
39728
39729 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39730 PyObject *resultobj = 0;
39731 wxPyControl *arg1 = (wxPyControl *) 0 ;
39732 int arg2 ;
39733 int arg3 ;
39734 void *argp1 = 0 ;
39735 int res1 = 0 ;
39736 int val2 ;
39737 int ecode2 = 0 ;
39738 int val3 ;
39739 int ecode3 = 0 ;
39740 PyObject * obj0 = 0 ;
39741 PyObject * obj1 = 0 ;
39742 PyObject * obj2 = 0 ;
39743 char * kwnames[] = {
39744 (char *) "self",(char *) "x",(char *) "y", NULL
39745 };
39746
39747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39749 if (!SWIG_IsOK(res1)) {
39750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39751 }
39752 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39753 ecode2 = SWIG_AsVal_int(obj1, &val2);
39754 if (!SWIG_IsOK(ecode2)) {
39755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39756 }
39757 arg2 = static_cast< int >(val2);
39758 ecode3 = SWIG_AsVal_int(obj2, &val3);
39759 if (!SWIG_IsOK(ecode3)) {
39760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39761 }
39762 arg3 = static_cast< int >(val3);
39763 {
39764 PyThreadState* __tstate = wxPyBeginAllowThreads();
39765 (arg1)->DoSetVirtualSize(arg2,arg3);
39766 wxPyEndAllowThreads(__tstate);
39767 if (PyErr_Occurred()) SWIG_fail;
39768 }
39769 resultobj = SWIG_Py_Void();
39770 return resultobj;
39771 fail:
39772 return NULL;
39773 }
39774
39775
39776 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39777 PyObject *resultobj = 0;
39778 wxPyControl *arg1 = (wxPyControl *) 0 ;
39779 int *arg2 = (int *) 0 ;
39780 int *arg3 = (int *) 0 ;
39781 void *argp1 = 0 ;
39782 int res1 = 0 ;
39783 int temp2 ;
39784 int res2 = SWIG_TMPOBJ ;
39785 int temp3 ;
39786 int res3 = SWIG_TMPOBJ ;
39787 PyObject *swig_obj[1] ;
39788
39789 arg2 = &temp2;
39790 arg3 = &temp3;
39791 if (!args) SWIG_fail;
39792 swig_obj[0] = args;
39793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39794 if (!SWIG_IsOK(res1)) {
39795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39796 }
39797 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39798 {
39799 PyThreadState* __tstate = wxPyBeginAllowThreads();
39800 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39801 wxPyEndAllowThreads(__tstate);
39802 if (PyErr_Occurred()) SWIG_fail;
39803 }
39804 resultobj = SWIG_Py_Void();
39805 if (SWIG_IsTmpObj(res2)) {
39806 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39807 } else {
39808 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39810 }
39811 if (SWIG_IsTmpObj(res3)) {
39812 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39813 } else {
39814 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39815 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39816 }
39817 return resultobj;
39818 fail:
39819 return NULL;
39820 }
39821
39822
39823 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39824 PyObject *resultobj = 0;
39825 wxPyControl *arg1 = (wxPyControl *) 0 ;
39826 int *arg2 = (int *) 0 ;
39827 int *arg3 = (int *) 0 ;
39828 void *argp1 = 0 ;
39829 int res1 = 0 ;
39830 int temp2 ;
39831 int res2 = SWIG_TMPOBJ ;
39832 int temp3 ;
39833 int res3 = SWIG_TMPOBJ ;
39834 PyObject *swig_obj[1] ;
39835
39836 arg2 = &temp2;
39837 arg3 = &temp3;
39838 if (!args) SWIG_fail;
39839 swig_obj[0] = args;
39840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39841 if (!SWIG_IsOK(res1)) {
39842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39843 }
39844 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39845 {
39846 PyThreadState* __tstate = wxPyBeginAllowThreads();
39847 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39848 wxPyEndAllowThreads(__tstate);
39849 if (PyErr_Occurred()) SWIG_fail;
39850 }
39851 resultobj = SWIG_Py_Void();
39852 if (SWIG_IsTmpObj(res2)) {
39853 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39854 } else {
39855 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39856 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39857 }
39858 if (SWIG_IsTmpObj(res3)) {
39859 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39860 } else {
39861 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39862 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39863 }
39864 return resultobj;
39865 fail:
39866 return NULL;
39867 }
39868
39869
39870 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39871 PyObject *resultobj = 0;
39872 wxPyControl *arg1 = (wxPyControl *) 0 ;
39873 int *arg2 = (int *) 0 ;
39874 int *arg3 = (int *) 0 ;
39875 void *argp1 = 0 ;
39876 int res1 = 0 ;
39877 int temp2 ;
39878 int res2 = SWIG_TMPOBJ ;
39879 int temp3 ;
39880 int res3 = SWIG_TMPOBJ ;
39881 PyObject *swig_obj[1] ;
39882
39883 arg2 = &temp2;
39884 arg3 = &temp3;
39885 if (!args) SWIG_fail;
39886 swig_obj[0] = args;
39887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39888 if (!SWIG_IsOK(res1)) {
39889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39890 }
39891 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39892 {
39893 PyThreadState* __tstate = wxPyBeginAllowThreads();
39894 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39895 wxPyEndAllowThreads(__tstate);
39896 if (PyErr_Occurred()) SWIG_fail;
39897 }
39898 resultobj = SWIG_Py_Void();
39899 if (SWIG_IsTmpObj(res2)) {
39900 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39901 } else {
39902 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39903 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39904 }
39905 if (SWIG_IsTmpObj(res3)) {
39906 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39907 } else {
39908 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39909 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39910 }
39911 return resultobj;
39912 fail:
39913 return NULL;
39914 }
39915
39916
39917 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39918 PyObject *resultobj = 0;
39919 wxPyControl *arg1 = (wxPyControl *) 0 ;
39920 wxSize result;
39921 void *argp1 = 0 ;
39922 int res1 = 0 ;
39923 PyObject *swig_obj[1] ;
39924
39925 if (!args) SWIG_fail;
39926 swig_obj[0] = args;
39927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39928 if (!SWIG_IsOK(res1)) {
39929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39930 }
39931 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39932 {
39933 PyThreadState* __tstate = wxPyBeginAllowThreads();
39934 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39935 wxPyEndAllowThreads(__tstate);
39936 if (PyErr_Occurred()) SWIG_fail;
39937 }
39938 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39939 return resultobj;
39940 fail:
39941 return NULL;
39942 }
39943
39944
39945 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39946 PyObject *resultobj = 0;
39947 wxPyControl *arg1 = (wxPyControl *) 0 ;
39948 wxSize result;
39949 void *argp1 = 0 ;
39950 int res1 = 0 ;
39951 PyObject *swig_obj[1] ;
39952
39953 if (!args) SWIG_fail;
39954 swig_obj[0] = args;
39955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39956 if (!SWIG_IsOK(res1)) {
39957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39958 }
39959 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39960 {
39961 PyThreadState* __tstate = wxPyBeginAllowThreads();
39962 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39963 wxPyEndAllowThreads(__tstate);
39964 if (PyErr_Occurred()) SWIG_fail;
39965 }
39966 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39967 return resultobj;
39968 fail:
39969 return NULL;
39970 }
39971
39972
39973 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39974 PyObject *resultobj = 0;
39975 wxPyControl *arg1 = (wxPyControl *) 0 ;
39976 SwigValueWrapper<wxVisualAttributes > result;
39977 void *argp1 = 0 ;
39978 int res1 = 0 ;
39979 PyObject *swig_obj[1] ;
39980
39981 if (!args) SWIG_fail;
39982 swig_obj[0] = args;
39983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39984 if (!SWIG_IsOK(res1)) {
39985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39986 }
39987 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39988 {
39989 PyThreadState* __tstate = wxPyBeginAllowThreads();
39990 result = (arg1)->GetDefaultAttributes();
39991 wxPyEndAllowThreads(__tstate);
39992 if (PyErr_Occurred()) SWIG_fail;
39993 }
39994 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39995 return resultobj;
39996 fail:
39997 return NULL;
39998 }
39999
40000
40001 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40002 PyObject *resultobj = 0;
40003 wxPyControl *arg1 = (wxPyControl *) 0 ;
40004 void *argp1 = 0 ;
40005 int res1 = 0 ;
40006 PyObject *swig_obj[1] ;
40007
40008 if (!args) SWIG_fail;
40009 swig_obj[0] = args;
40010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
40011 if (!SWIG_IsOK(res1)) {
40012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
40013 }
40014 arg1 = reinterpret_cast< wxPyControl * >(argp1);
40015 {
40016 PyThreadState* __tstate = wxPyBeginAllowThreads();
40017 (arg1)->OnInternalIdle();
40018 wxPyEndAllowThreads(__tstate);
40019 if (PyErr_Occurred()) SWIG_fail;
40020 }
40021 resultobj = SWIG_Py_Void();
40022 return resultobj;
40023 fail:
40024 return NULL;
40025 }
40026
40027
40028 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40029 PyObject *obj;
40030 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40031 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
40032 return SWIG_Py_Void();
40033 }
40034
40035 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40036 return SWIG_Python_InitShadowInstance(args);
40037 }
40038
40039 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40040 PyObject *resultobj = 0;
40041 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
40042 int arg2 = (int) 0 ;
40043 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40044 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40045 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
40046 wxHelpEvent *result = 0 ;
40047 int val1 ;
40048 int ecode1 = 0 ;
40049 int val2 ;
40050 int ecode2 = 0 ;
40051 wxPoint temp3 ;
40052 int val4 ;
40053 int ecode4 = 0 ;
40054 PyObject * obj0 = 0 ;
40055 PyObject * obj1 = 0 ;
40056 PyObject * obj2 = 0 ;
40057 PyObject * obj3 = 0 ;
40058 char * kwnames[] = {
40059 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
40060 };
40061
40062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40063 if (obj0) {
40064 ecode1 = SWIG_AsVal_int(obj0, &val1);
40065 if (!SWIG_IsOK(ecode1)) {
40066 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
40067 }
40068 arg1 = static_cast< wxEventType >(val1);
40069 }
40070 if (obj1) {
40071 ecode2 = SWIG_AsVal_int(obj1, &val2);
40072 if (!SWIG_IsOK(ecode2)) {
40073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
40074 }
40075 arg2 = static_cast< int >(val2);
40076 }
40077 if (obj2) {
40078 {
40079 arg3 = &temp3;
40080 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40081 }
40082 }
40083 if (obj3) {
40084 ecode4 = SWIG_AsVal_int(obj3, &val4);
40085 if (!SWIG_IsOK(ecode4)) {
40086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40087 }
40088 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40089 }
40090 {
40091 PyThreadState* __tstate = wxPyBeginAllowThreads();
40092 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
40093 wxPyEndAllowThreads(__tstate);
40094 if (PyErr_Occurred()) SWIG_fail;
40095 }
40096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
40097 return resultobj;
40098 fail:
40099 return NULL;
40100 }
40101
40102
40103 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40104 PyObject *resultobj = 0;
40105 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40106 wxPoint result;
40107 void *argp1 = 0 ;
40108 int res1 = 0 ;
40109 PyObject *swig_obj[1] ;
40110
40111 if (!args) SWIG_fail;
40112 swig_obj[0] = args;
40113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40114 if (!SWIG_IsOK(res1)) {
40115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40116 }
40117 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40118 {
40119 PyThreadState* __tstate = wxPyBeginAllowThreads();
40120 result = ((wxHelpEvent const *)arg1)->GetPosition();
40121 wxPyEndAllowThreads(__tstate);
40122 if (PyErr_Occurred()) SWIG_fail;
40123 }
40124 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
40125 return resultobj;
40126 fail:
40127 return NULL;
40128 }
40129
40130
40131 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40132 PyObject *resultobj = 0;
40133 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40134 wxPoint *arg2 = 0 ;
40135 void *argp1 = 0 ;
40136 int res1 = 0 ;
40137 wxPoint temp2 ;
40138 PyObject * obj0 = 0 ;
40139 PyObject * obj1 = 0 ;
40140 char * kwnames[] = {
40141 (char *) "self",(char *) "pos", NULL
40142 };
40143
40144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
40145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40146 if (!SWIG_IsOK(res1)) {
40147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40148 }
40149 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40150 {
40151 arg2 = &temp2;
40152 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40153 }
40154 {
40155 PyThreadState* __tstate = wxPyBeginAllowThreads();
40156 (arg1)->SetPosition((wxPoint const &)*arg2);
40157 wxPyEndAllowThreads(__tstate);
40158 if (PyErr_Occurred()) SWIG_fail;
40159 }
40160 resultobj = SWIG_Py_Void();
40161 return resultobj;
40162 fail:
40163 return NULL;
40164 }
40165
40166
40167 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40168 PyObject *resultobj = 0;
40169 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40170 wxString *result = 0 ;
40171 void *argp1 = 0 ;
40172 int res1 = 0 ;
40173 PyObject *swig_obj[1] ;
40174
40175 if (!args) SWIG_fail;
40176 swig_obj[0] = args;
40177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40178 if (!SWIG_IsOK(res1)) {
40179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40180 }
40181 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40182 {
40183 PyThreadState* __tstate = wxPyBeginAllowThreads();
40184 {
40185 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
40186 result = (wxString *) &_result_ref;
40187 }
40188 wxPyEndAllowThreads(__tstate);
40189 if (PyErr_Occurred()) SWIG_fail;
40190 }
40191 {
40192 #if wxUSE_UNICODE
40193 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
40194 #else
40195 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
40196 #endif
40197 }
40198 return resultobj;
40199 fail:
40200 return NULL;
40201 }
40202
40203
40204 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40205 PyObject *resultobj = 0;
40206 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40207 wxString *arg2 = 0 ;
40208 void *argp1 = 0 ;
40209 int res1 = 0 ;
40210 bool temp2 = false ;
40211 PyObject * obj0 = 0 ;
40212 PyObject * obj1 = 0 ;
40213 char * kwnames[] = {
40214 (char *) "self",(char *) "link", NULL
40215 };
40216
40217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
40218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40219 if (!SWIG_IsOK(res1)) {
40220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40221 }
40222 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40223 {
40224 arg2 = wxString_in_helper(obj1);
40225 if (arg2 == NULL) SWIG_fail;
40226 temp2 = true;
40227 }
40228 {
40229 PyThreadState* __tstate = wxPyBeginAllowThreads();
40230 (arg1)->SetLink((wxString const &)*arg2);
40231 wxPyEndAllowThreads(__tstate);
40232 if (PyErr_Occurred()) SWIG_fail;
40233 }
40234 resultobj = SWIG_Py_Void();
40235 {
40236 if (temp2)
40237 delete arg2;
40238 }
40239 return resultobj;
40240 fail:
40241 {
40242 if (temp2)
40243 delete arg2;
40244 }
40245 return NULL;
40246 }
40247
40248
40249 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40250 PyObject *resultobj = 0;
40251 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40252 wxString *result = 0 ;
40253 void *argp1 = 0 ;
40254 int res1 = 0 ;
40255 PyObject *swig_obj[1] ;
40256
40257 if (!args) SWIG_fail;
40258 swig_obj[0] = args;
40259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40260 if (!SWIG_IsOK(res1)) {
40261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40262 }
40263 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40264 {
40265 PyThreadState* __tstate = wxPyBeginAllowThreads();
40266 {
40267 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
40268 result = (wxString *) &_result_ref;
40269 }
40270 wxPyEndAllowThreads(__tstate);
40271 if (PyErr_Occurred()) SWIG_fail;
40272 }
40273 {
40274 #if wxUSE_UNICODE
40275 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
40276 #else
40277 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
40278 #endif
40279 }
40280 return resultobj;
40281 fail:
40282 return NULL;
40283 }
40284
40285
40286 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40287 PyObject *resultobj = 0;
40288 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40289 wxString *arg2 = 0 ;
40290 void *argp1 = 0 ;
40291 int res1 = 0 ;
40292 bool temp2 = false ;
40293 PyObject * obj0 = 0 ;
40294 PyObject * obj1 = 0 ;
40295 char * kwnames[] = {
40296 (char *) "self",(char *) "target", NULL
40297 };
40298
40299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
40300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40301 if (!SWIG_IsOK(res1)) {
40302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40303 }
40304 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40305 {
40306 arg2 = wxString_in_helper(obj1);
40307 if (arg2 == NULL) SWIG_fail;
40308 temp2 = true;
40309 }
40310 {
40311 PyThreadState* __tstate = wxPyBeginAllowThreads();
40312 (arg1)->SetTarget((wxString const &)*arg2);
40313 wxPyEndAllowThreads(__tstate);
40314 if (PyErr_Occurred()) SWIG_fail;
40315 }
40316 resultobj = SWIG_Py_Void();
40317 {
40318 if (temp2)
40319 delete arg2;
40320 }
40321 return resultobj;
40322 fail:
40323 {
40324 if (temp2)
40325 delete arg2;
40326 }
40327 return NULL;
40328 }
40329
40330
40331 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40332 PyObject *resultobj = 0;
40333 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40334 wxHelpEvent::Origin result;
40335 void *argp1 = 0 ;
40336 int res1 = 0 ;
40337 PyObject *swig_obj[1] ;
40338
40339 if (!args) SWIG_fail;
40340 swig_obj[0] = args;
40341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40342 if (!SWIG_IsOK(res1)) {
40343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
40344 }
40345 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40346 {
40347 PyThreadState* __tstate = wxPyBeginAllowThreads();
40348 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
40349 wxPyEndAllowThreads(__tstate);
40350 if (PyErr_Occurred()) SWIG_fail;
40351 }
40352 resultobj = SWIG_From_int(static_cast< int >(result));
40353 return resultobj;
40354 fail:
40355 return NULL;
40356 }
40357
40358
40359 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40360 PyObject *resultobj = 0;
40361 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
40362 wxHelpEvent::Origin arg2 ;
40363 void *argp1 = 0 ;
40364 int res1 = 0 ;
40365 int val2 ;
40366 int ecode2 = 0 ;
40367 PyObject * obj0 = 0 ;
40368 PyObject * obj1 = 0 ;
40369 char * kwnames[] = {
40370 (char *) "self",(char *) "origin", NULL
40371 };
40372
40373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
40374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
40375 if (!SWIG_IsOK(res1)) {
40376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
40377 }
40378 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
40379 ecode2 = SWIG_AsVal_int(obj1, &val2);
40380 if (!SWIG_IsOK(ecode2)) {
40381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
40382 }
40383 arg2 = static_cast< wxHelpEvent::Origin >(val2);
40384 {
40385 PyThreadState* __tstate = wxPyBeginAllowThreads();
40386 (arg1)->SetOrigin(arg2);
40387 wxPyEndAllowThreads(__tstate);
40388 if (PyErr_Occurred()) SWIG_fail;
40389 }
40390 resultobj = SWIG_Py_Void();
40391 return resultobj;
40392 fail:
40393 return NULL;
40394 }
40395
40396
40397 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40398 PyObject *obj;
40399 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40400 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
40401 return SWIG_Py_Void();
40402 }
40403
40404 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40405 return SWIG_Python_InitShadowInstance(args);
40406 }
40407
40408 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40409 PyObject *resultobj = 0;
40410 wxWindow *arg1 = (wxWindow *) NULL ;
40411 bool arg2 = (bool) true ;
40412 wxContextHelp *result = 0 ;
40413 void *argp1 = 0 ;
40414 int res1 = 0 ;
40415 bool val2 ;
40416 int ecode2 = 0 ;
40417 PyObject * obj0 = 0 ;
40418 PyObject * obj1 = 0 ;
40419 char * kwnames[] = {
40420 (char *) "window",(char *) "doNow", NULL
40421 };
40422
40423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40424 if (obj0) {
40425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40426 if (!SWIG_IsOK(res1)) {
40427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
40428 }
40429 arg1 = reinterpret_cast< wxWindow * >(argp1);
40430 }
40431 if (obj1) {
40432 ecode2 = SWIG_AsVal_bool(obj1, &val2);
40433 if (!SWIG_IsOK(ecode2)) {
40434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
40435 }
40436 arg2 = static_cast< bool >(val2);
40437 }
40438 {
40439 if (!wxPyCheckForApp()) SWIG_fail;
40440 PyThreadState* __tstate = wxPyBeginAllowThreads();
40441 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
40442 wxPyEndAllowThreads(__tstate);
40443 if (PyErr_Occurred()) SWIG_fail;
40444 }
40445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
40446 return resultobj;
40447 fail:
40448 return NULL;
40449 }
40450
40451
40452 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40453 PyObject *resultobj = 0;
40454 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40455 void *argp1 = 0 ;
40456 int res1 = 0 ;
40457 PyObject *swig_obj[1] ;
40458
40459 if (!args) SWIG_fail;
40460 swig_obj[0] = args;
40461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
40462 if (!SWIG_IsOK(res1)) {
40463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40464 }
40465 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40466 {
40467 PyThreadState* __tstate = wxPyBeginAllowThreads();
40468 delete arg1;
40469
40470 wxPyEndAllowThreads(__tstate);
40471 if (PyErr_Occurred()) SWIG_fail;
40472 }
40473 resultobj = SWIG_Py_Void();
40474 return resultobj;
40475 fail:
40476 return NULL;
40477 }
40478
40479
40480 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40481 PyObject *resultobj = 0;
40482 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40483 wxWindow *arg2 = (wxWindow *) NULL ;
40484 bool result;
40485 void *argp1 = 0 ;
40486 int res1 = 0 ;
40487 void *argp2 = 0 ;
40488 int res2 = 0 ;
40489 PyObject * obj0 = 0 ;
40490 PyObject * obj1 = 0 ;
40491 char * kwnames[] = {
40492 (char *) "self",(char *) "window", NULL
40493 };
40494
40495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40497 if (!SWIG_IsOK(res1)) {
40498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40499 }
40500 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40501 if (obj1) {
40502 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40503 if (!SWIG_IsOK(res2)) {
40504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40505 }
40506 arg2 = reinterpret_cast< wxWindow * >(argp2);
40507 }
40508 {
40509 PyThreadState* __tstate = wxPyBeginAllowThreads();
40510 result = (bool)(arg1)->BeginContextHelp(arg2);
40511 wxPyEndAllowThreads(__tstate);
40512 if (PyErr_Occurred()) SWIG_fail;
40513 }
40514 {
40515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40516 }
40517 return resultobj;
40518 fail:
40519 return NULL;
40520 }
40521
40522
40523 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40524 PyObject *resultobj = 0;
40525 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
40526 bool result;
40527 void *argp1 = 0 ;
40528 int res1 = 0 ;
40529 PyObject *swig_obj[1] ;
40530
40531 if (!args) SWIG_fail;
40532 swig_obj[0] = args;
40533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
40534 if (!SWIG_IsOK(res1)) {
40535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
40536 }
40537 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
40538 {
40539 PyThreadState* __tstate = wxPyBeginAllowThreads();
40540 result = (bool)(arg1)->EndContextHelp();
40541 wxPyEndAllowThreads(__tstate);
40542 if (PyErr_Occurred()) SWIG_fail;
40543 }
40544 {
40545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40546 }
40547 return resultobj;
40548 fail:
40549 return NULL;
40550 }
40551
40552
40553 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40554 PyObject *obj;
40555 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40556 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
40557 return SWIG_Py_Void();
40558 }
40559
40560 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40561 return SWIG_Python_InitShadowInstance(args);
40562 }
40563
40564 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40565 PyObject *resultobj = 0;
40566 wxWindow *arg1 = (wxWindow *) 0 ;
40567 int arg2 = (int) wxID_CONTEXT_HELP ;
40568 wxPoint const &arg3_defvalue = wxDefaultPosition ;
40569 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
40570 wxSize const &arg4_defvalue = wxDefaultSize ;
40571 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
40572 long arg5 = (long) wxBU_AUTODRAW ;
40573 wxContextHelpButton *result = 0 ;
40574 void *argp1 = 0 ;
40575 int res1 = 0 ;
40576 int val2 ;
40577 int ecode2 = 0 ;
40578 wxPoint temp3 ;
40579 wxSize temp4 ;
40580 long val5 ;
40581 int ecode5 = 0 ;
40582 PyObject * obj0 = 0 ;
40583 PyObject * obj1 = 0 ;
40584 PyObject * obj2 = 0 ;
40585 PyObject * obj3 = 0 ;
40586 PyObject * obj4 = 0 ;
40587 char * kwnames[] = {
40588 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
40589 };
40590
40591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40593 if (!SWIG_IsOK(res1)) {
40594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
40595 }
40596 arg1 = reinterpret_cast< wxWindow * >(argp1);
40597 if (obj1) {
40598 ecode2 = SWIG_AsVal_int(obj1, &val2);
40599 if (!SWIG_IsOK(ecode2)) {
40600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
40601 }
40602 arg2 = static_cast< int >(val2);
40603 }
40604 if (obj2) {
40605 {
40606 arg3 = &temp3;
40607 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40608 }
40609 }
40610 if (obj3) {
40611 {
40612 arg4 = &temp4;
40613 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
40614 }
40615 }
40616 if (obj4) {
40617 ecode5 = SWIG_AsVal_long(obj4, &val5);
40618 if (!SWIG_IsOK(ecode5)) {
40619 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
40620 }
40621 arg5 = static_cast< long >(val5);
40622 }
40623 {
40624 if (!wxPyCheckForApp()) SWIG_fail;
40625 PyThreadState* __tstate = wxPyBeginAllowThreads();
40626 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
40627 wxPyEndAllowThreads(__tstate);
40628 if (PyErr_Occurred()) SWIG_fail;
40629 }
40630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
40631 return resultobj;
40632 fail:
40633 return NULL;
40634 }
40635
40636
40637 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40638 PyObject *obj;
40639 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40640 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
40641 return SWIG_Py_Void();
40642 }
40643
40644 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40645 return SWIG_Python_InitShadowInstance(args);
40646 }
40647
40648 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40649 PyObject *resultobj = 0;
40650 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40651 void *argp1 = 0 ;
40652 int res1 = 0 ;
40653 PyObject *swig_obj[1] ;
40654
40655 if (!args) SWIG_fail;
40656 swig_obj[0] = args;
40657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40658 if (!SWIG_IsOK(res1)) {
40659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40660 }
40661 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40662 {
40663 PyThreadState* __tstate = wxPyBeginAllowThreads();
40664 delete arg1;
40665
40666 wxPyEndAllowThreads(__tstate);
40667 if (PyErr_Occurred()) SWIG_fail;
40668 }
40669 resultobj = SWIG_Py_Void();
40670 return resultobj;
40671 fail:
40672 return NULL;
40673 }
40674
40675
40676 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40677 PyObject *resultobj = 0;
40678 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40679 wxHelpProvider *result = 0 ;
40680 int res1 = 0 ;
40681 PyObject * obj0 = 0 ;
40682 char * kwnames[] = {
40683 (char *) "helpProvider", NULL
40684 };
40685
40686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40687 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40688 if (!SWIG_IsOK(res1)) {
40689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40690 }
40691 {
40692 PyThreadState* __tstate = wxPyBeginAllowThreads();
40693 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40694 wxPyEndAllowThreads(__tstate);
40695 if (PyErr_Occurred()) SWIG_fail;
40696 }
40697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40698 return resultobj;
40699 fail:
40700 return NULL;
40701 }
40702
40703
40704 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40705 PyObject *resultobj = 0;
40706 wxHelpProvider *result = 0 ;
40707
40708 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40709 {
40710 PyThreadState* __tstate = wxPyBeginAllowThreads();
40711 result = (wxHelpProvider *)wxHelpProvider::Get();
40712 wxPyEndAllowThreads(__tstate);
40713 if (PyErr_Occurred()) SWIG_fail;
40714 }
40715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40716 return resultobj;
40717 fail:
40718 return NULL;
40719 }
40720
40721
40722 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40723 PyObject *resultobj = 0;
40724 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40725 wxWindow *arg2 = (wxWindow *) 0 ;
40726 wxString result;
40727 void *argp1 = 0 ;
40728 int res1 = 0 ;
40729 void *argp2 = 0 ;
40730 int res2 = 0 ;
40731 PyObject * obj0 = 0 ;
40732 PyObject * obj1 = 0 ;
40733 char * kwnames[] = {
40734 (char *) "self",(char *) "window", NULL
40735 };
40736
40737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40739 if (!SWIG_IsOK(res1)) {
40740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40741 }
40742 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40743 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40744 if (!SWIG_IsOK(res2)) {
40745 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40746 }
40747 arg2 = reinterpret_cast< wxWindow * >(argp2);
40748 {
40749 PyThreadState* __tstate = wxPyBeginAllowThreads();
40750 result = (arg1)->GetHelp((wxWindow const *)arg2);
40751 wxPyEndAllowThreads(__tstate);
40752 if (PyErr_Occurred()) SWIG_fail;
40753 }
40754 {
40755 #if wxUSE_UNICODE
40756 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40757 #else
40758 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40759 #endif
40760 }
40761 return resultobj;
40762 fail:
40763 return NULL;
40764 }
40765
40766
40767 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40768 PyObject *resultobj = 0;
40769 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40770 wxWindow *arg2 = (wxWindow *) 0 ;
40771 bool result;
40772 void *argp1 = 0 ;
40773 int res1 = 0 ;
40774 void *argp2 = 0 ;
40775 int res2 = 0 ;
40776 PyObject * obj0 = 0 ;
40777 PyObject * obj1 = 0 ;
40778 char * kwnames[] = {
40779 (char *) "self",(char *) "window", NULL
40780 };
40781
40782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40784 if (!SWIG_IsOK(res1)) {
40785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40786 }
40787 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40788 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40789 if (!SWIG_IsOK(res2)) {
40790 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40791 }
40792 arg2 = reinterpret_cast< wxWindow * >(argp2);
40793 {
40794 PyThreadState* __tstate = wxPyBeginAllowThreads();
40795 result = (bool)(arg1)->ShowHelp(arg2);
40796 wxPyEndAllowThreads(__tstate);
40797 if (PyErr_Occurred()) SWIG_fail;
40798 }
40799 {
40800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40801 }
40802 return resultobj;
40803 fail:
40804 return NULL;
40805 }
40806
40807
40808 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40809 PyObject *resultobj = 0;
40810 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40811 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40812 wxPoint *arg3 = 0 ;
40813 wxHelpEvent::Origin arg4 ;
40814 bool result;
40815 void *argp1 = 0 ;
40816 int res1 = 0 ;
40817 void *argp2 = 0 ;
40818 int res2 = 0 ;
40819 wxPoint temp3 ;
40820 int val4 ;
40821 int ecode4 = 0 ;
40822 PyObject * obj0 = 0 ;
40823 PyObject * obj1 = 0 ;
40824 PyObject * obj2 = 0 ;
40825 PyObject * obj3 = 0 ;
40826 char * kwnames[] = {
40827 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40828 };
40829
40830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40832 if (!SWIG_IsOK(res1)) {
40833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40834 }
40835 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40836 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40837 if (!SWIG_IsOK(res2)) {
40838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40839 }
40840 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40841 {
40842 arg3 = &temp3;
40843 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40844 }
40845 ecode4 = SWIG_AsVal_int(obj3, &val4);
40846 if (!SWIG_IsOK(ecode4)) {
40847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40848 }
40849 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40850 {
40851 PyThreadState* __tstate = wxPyBeginAllowThreads();
40852 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40853 wxPyEndAllowThreads(__tstate);
40854 if (PyErr_Occurred()) SWIG_fail;
40855 }
40856 {
40857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40858 }
40859 return resultobj;
40860 fail:
40861 return NULL;
40862 }
40863
40864
40865 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40866 PyObject *resultobj = 0;
40867 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40868 wxWindow *arg2 = (wxWindow *) 0 ;
40869 wxString *arg3 = 0 ;
40870 void *argp1 = 0 ;
40871 int res1 = 0 ;
40872 void *argp2 = 0 ;
40873 int res2 = 0 ;
40874 bool temp3 = false ;
40875 PyObject * obj0 = 0 ;
40876 PyObject * obj1 = 0 ;
40877 PyObject * obj2 = 0 ;
40878 char * kwnames[] = {
40879 (char *) "self",(char *) "window",(char *) "text", NULL
40880 };
40881
40882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40884 if (!SWIG_IsOK(res1)) {
40885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40886 }
40887 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40888 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40889 if (!SWIG_IsOK(res2)) {
40890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40891 }
40892 arg2 = reinterpret_cast< wxWindow * >(argp2);
40893 {
40894 arg3 = wxString_in_helper(obj2);
40895 if (arg3 == NULL) SWIG_fail;
40896 temp3 = true;
40897 }
40898 {
40899 PyThreadState* __tstate = wxPyBeginAllowThreads();
40900 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40901 wxPyEndAllowThreads(__tstate);
40902 if (PyErr_Occurred()) SWIG_fail;
40903 }
40904 resultobj = SWIG_Py_Void();
40905 {
40906 if (temp3)
40907 delete arg3;
40908 }
40909 return resultobj;
40910 fail:
40911 {
40912 if (temp3)
40913 delete arg3;
40914 }
40915 return NULL;
40916 }
40917
40918
40919 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40920 PyObject *resultobj = 0;
40921 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40922 int arg2 ;
40923 wxString *arg3 = 0 ;
40924 void *argp1 = 0 ;
40925 int res1 = 0 ;
40926 int val2 ;
40927 int ecode2 = 0 ;
40928 bool temp3 = false ;
40929 PyObject * obj0 = 0 ;
40930 PyObject * obj1 = 0 ;
40931 PyObject * obj2 = 0 ;
40932 char * kwnames[] = {
40933 (char *) "self",(char *) "id",(char *) "text", NULL
40934 };
40935
40936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40938 if (!SWIG_IsOK(res1)) {
40939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40940 }
40941 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40942 ecode2 = SWIG_AsVal_int(obj1, &val2);
40943 if (!SWIG_IsOK(ecode2)) {
40944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40945 }
40946 arg2 = static_cast< int >(val2);
40947 {
40948 arg3 = wxString_in_helper(obj2);
40949 if (arg3 == NULL) SWIG_fail;
40950 temp3 = true;
40951 }
40952 {
40953 PyThreadState* __tstate = wxPyBeginAllowThreads();
40954 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40955 wxPyEndAllowThreads(__tstate);
40956 if (PyErr_Occurred()) SWIG_fail;
40957 }
40958 resultobj = SWIG_Py_Void();
40959 {
40960 if (temp3)
40961 delete arg3;
40962 }
40963 return resultobj;
40964 fail:
40965 {
40966 if (temp3)
40967 delete arg3;
40968 }
40969 return NULL;
40970 }
40971
40972
40973 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40974 PyObject *resultobj = 0;
40975 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40976 wxWindow *arg2 = (wxWindow *) 0 ;
40977 void *argp1 = 0 ;
40978 int res1 = 0 ;
40979 void *argp2 = 0 ;
40980 int res2 = 0 ;
40981 PyObject * obj0 = 0 ;
40982 PyObject * obj1 = 0 ;
40983 char * kwnames[] = {
40984 (char *) "self",(char *) "window", NULL
40985 };
40986
40987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40989 if (!SWIG_IsOK(res1)) {
40990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40991 }
40992 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40994 if (!SWIG_IsOK(res2)) {
40995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40996 }
40997 arg2 = reinterpret_cast< wxWindow * >(argp2);
40998 {
40999 PyThreadState* __tstate = wxPyBeginAllowThreads();
41000 (arg1)->RemoveHelp(arg2);
41001 wxPyEndAllowThreads(__tstate);
41002 if (PyErr_Occurred()) SWIG_fail;
41003 }
41004 resultobj = SWIG_Py_Void();
41005 return resultobj;
41006 fail:
41007 return NULL;
41008 }
41009
41010
41011 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41012 PyObject *resultobj = 0;
41013 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
41014 void *argp1 = 0 ;
41015 int res1 = 0 ;
41016 PyObject *swig_obj[1] ;
41017
41018 if (!args) SWIG_fail;
41019 swig_obj[0] = args;
41020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
41021 if (!SWIG_IsOK(res1)) {
41022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
41023 }
41024 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
41025 {
41026 PyThreadState* __tstate = wxPyBeginAllowThreads();
41027 wxHelpProvider_Destroy(arg1);
41028 wxPyEndAllowThreads(__tstate);
41029 if (PyErr_Occurred()) SWIG_fail;
41030 }
41031 resultobj = SWIG_Py_Void();
41032 return resultobj;
41033 fail:
41034 return NULL;
41035 }
41036
41037
41038 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41039 PyObject *obj;
41040 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41041 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
41042 return SWIG_Py_Void();
41043 }
41044
41045 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41046 PyObject *resultobj = 0;
41047 wxSimpleHelpProvider *result = 0 ;
41048
41049 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
41050 {
41051 PyThreadState* __tstate = wxPyBeginAllowThreads();
41052 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
41053 wxPyEndAllowThreads(__tstate);
41054 if (PyErr_Occurred()) SWIG_fail;
41055 }
41056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
41057 return resultobj;
41058 fail:
41059 return NULL;
41060 }
41061
41062
41063 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41064 PyObject *obj;
41065 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41066 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
41067 return SWIG_Py_Void();
41068 }
41069
41070 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41071 return SWIG_Python_InitShadowInstance(args);
41072 }
41073
41074 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41075 PyObject *resultobj = 0;
41076 wxBitmap *arg1 = 0 ;
41077 wxCursor const &arg2_defvalue = wxNullCursor ;
41078 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
41079 wxGenericDragImage *result = 0 ;
41080 void *argp1 = 0 ;
41081 int res1 = 0 ;
41082 void *argp2 = 0 ;
41083 int res2 = 0 ;
41084 PyObject * obj0 = 0 ;
41085 PyObject * obj1 = 0 ;
41086 char * kwnames[] = {
41087 (char *) "image",(char *) "cursor", NULL
41088 };
41089
41090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
41091 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
41092 if (!SWIG_IsOK(res1)) {
41093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
41094 }
41095 if (!argp1) {
41096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
41097 }
41098 arg1 = reinterpret_cast< wxBitmap * >(argp1);
41099 if (obj1) {
41100 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
41101 if (!SWIG_IsOK(res2)) {
41102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
41103 }
41104 if (!argp2) {
41105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
41106 }
41107 arg2 = reinterpret_cast< wxCursor * >(argp2);
41108 }
41109 {
41110 if (!wxPyCheckForApp()) SWIG_fail;
41111 PyThreadState* __tstate = wxPyBeginAllowThreads();
41112 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
41113 wxPyEndAllowThreads(__tstate);
41114 if (PyErr_Occurred()) SWIG_fail;
41115 }
41116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
41117 return resultobj;
41118 fail:
41119 return NULL;
41120 }
41121
41122
41123 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41124 PyObject *resultobj = 0;
41125 wxIcon *arg1 = 0 ;
41126 wxCursor const &arg2_defvalue = wxNullCursor ;
41127 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
41128 wxGenericDragImage *result = 0 ;
41129 void *argp1 = 0 ;
41130 int res1 = 0 ;
41131 void *argp2 = 0 ;
41132 int res2 = 0 ;
41133 PyObject * obj0 = 0 ;
41134 PyObject * obj1 = 0 ;
41135 char * kwnames[] = {
41136 (char *) "image",(char *) "cursor", NULL
41137 };
41138
41139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
41140 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
41141 if (!SWIG_IsOK(res1)) {
41142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
41143 }
41144 if (!argp1) {
41145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
41146 }
41147 arg1 = reinterpret_cast< wxIcon * >(argp1);
41148 if (obj1) {
41149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
41150 if (!SWIG_IsOK(res2)) {
41151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
41152 }
41153 if (!argp2) {
41154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
41155 }
41156 arg2 = reinterpret_cast< wxCursor * >(argp2);
41157 }
41158 {
41159 if (!wxPyCheckForApp()) SWIG_fail;
41160 PyThreadState* __tstate = wxPyBeginAllowThreads();
41161 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
41162 wxPyEndAllowThreads(__tstate);
41163 if (PyErr_Occurred()) SWIG_fail;
41164 }
41165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41166 return resultobj;
41167 fail:
41168 return NULL;
41169 }
41170
41171
41172 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41173 PyObject *resultobj = 0;
41174 wxString *arg1 = 0 ;
41175 wxCursor const &arg2_defvalue = wxNullCursor ;
41176 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
41177 wxGenericDragImage *result = 0 ;
41178 bool temp1 = false ;
41179 void *argp2 = 0 ;
41180 int res2 = 0 ;
41181 PyObject * obj0 = 0 ;
41182 PyObject * obj1 = 0 ;
41183 char * kwnames[] = {
41184 (char *) "str",(char *) "cursor", NULL
41185 };
41186
41187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
41188 {
41189 arg1 = wxString_in_helper(obj0);
41190 if (arg1 == NULL) SWIG_fail;
41191 temp1 = true;
41192 }
41193 if (obj1) {
41194 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
41195 if (!SWIG_IsOK(res2)) {
41196 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
41197 }
41198 if (!argp2) {
41199 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
41200 }
41201 arg2 = reinterpret_cast< wxCursor * >(argp2);
41202 }
41203 {
41204 if (!wxPyCheckForApp()) SWIG_fail;
41205 PyThreadState* __tstate = wxPyBeginAllowThreads();
41206 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
41207 wxPyEndAllowThreads(__tstate);
41208 if (PyErr_Occurred()) SWIG_fail;
41209 }
41210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41211 {
41212 if (temp1)
41213 delete arg1;
41214 }
41215 return resultobj;
41216 fail:
41217 {
41218 if (temp1)
41219 delete arg1;
41220 }
41221 return NULL;
41222 }
41223
41224
41225 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41226 PyObject *resultobj = 0;
41227 wxPyTreeCtrl *arg1 = 0 ;
41228 wxTreeItemId *arg2 = 0 ;
41229 wxGenericDragImage *result = 0 ;
41230 void *argp1 = 0 ;
41231 int res1 = 0 ;
41232 void *argp2 = 0 ;
41233 int res2 = 0 ;
41234 PyObject * obj0 = 0 ;
41235 PyObject * obj1 = 0 ;
41236 char * kwnames[] = {
41237 (char *) "treeCtrl",(char *) "id", NULL
41238 };
41239
41240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
41241 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
41242 if (!SWIG_IsOK(res1)) {
41243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
41244 }
41245 if (!argp1) {
41246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
41247 }
41248 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
41249 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
41250 if (!SWIG_IsOK(res2)) {
41251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
41252 }
41253 if (!argp2) {
41254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
41255 }
41256 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
41257 {
41258 if (!wxPyCheckForApp()) SWIG_fail;
41259 PyThreadState* __tstate = wxPyBeginAllowThreads();
41260 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
41261 wxPyEndAllowThreads(__tstate);
41262 if (PyErr_Occurred()) SWIG_fail;
41263 }
41264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41265 return resultobj;
41266 fail:
41267 return NULL;
41268 }
41269
41270
41271 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41272 PyObject *resultobj = 0;
41273 wxPyListCtrl *arg1 = 0 ;
41274 long arg2 ;
41275 wxGenericDragImage *result = 0 ;
41276 void *argp1 = 0 ;
41277 int res1 = 0 ;
41278 long val2 ;
41279 int ecode2 = 0 ;
41280 PyObject * obj0 = 0 ;
41281 PyObject * obj1 = 0 ;
41282 char * kwnames[] = {
41283 (char *) "listCtrl",(char *) "id", NULL
41284 };
41285
41286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
41287 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
41288 if (!SWIG_IsOK(res1)) {
41289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41290 }
41291 if (!argp1) {
41292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
41293 }
41294 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
41295 ecode2 = SWIG_AsVal_long(obj1, &val2);
41296 if (!SWIG_IsOK(ecode2)) {
41297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
41298 }
41299 arg2 = static_cast< long >(val2);
41300 {
41301 if (!wxPyCheckForApp()) SWIG_fail;
41302 PyThreadState* __tstate = wxPyBeginAllowThreads();
41303 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
41304 wxPyEndAllowThreads(__tstate);
41305 if (PyErr_Occurred()) SWIG_fail;
41306 }
41307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
41308 return resultobj;
41309 fail:
41310 return NULL;
41311 }
41312
41313
41314 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41315 PyObject *resultobj = 0;
41316 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41317 void *argp1 = 0 ;
41318 int res1 = 0 ;
41319 PyObject *swig_obj[1] ;
41320
41321 if (!args) SWIG_fail;
41322 swig_obj[0] = args;
41323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
41324 if (!SWIG_IsOK(res1)) {
41325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41326 }
41327 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41328 {
41329 PyThreadState* __tstate = wxPyBeginAllowThreads();
41330 delete arg1;
41331
41332 wxPyEndAllowThreads(__tstate);
41333 if (PyErr_Occurred()) SWIG_fail;
41334 }
41335 resultobj = SWIG_Py_Void();
41336 return resultobj;
41337 fail:
41338 return NULL;
41339 }
41340
41341
41342 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41343 PyObject *resultobj = 0;
41344 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41345 wxBitmap *arg2 = (wxBitmap *) 0 ;
41346 void *argp1 = 0 ;
41347 int res1 = 0 ;
41348 void *argp2 = 0 ;
41349 int res2 = 0 ;
41350 PyObject * obj0 = 0 ;
41351 PyObject * obj1 = 0 ;
41352 char * kwnames[] = {
41353 (char *) "self",(char *) "bitmap", NULL
41354 };
41355
41356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
41357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41358 if (!SWIG_IsOK(res1)) {
41359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41360 }
41361 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41362 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
41363 if (!SWIG_IsOK(res2)) {
41364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
41365 }
41366 arg2 = reinterpret_cast< wxBitmap * >(argp2);
41367 {
41368 PyThreadState* __tstate = wxPyBeginAllowThreads();
41369 (arg1)->SetBackingBitmap(arg2);
41370 wxPyEndAllowThreads(__tstate);
41371 if (PyErr_Occurred()) SWIG_fail;
41372 }
41373 resultobj = SWIG_Py_Void();
41374 return resultobj;
41375 fail:
41376 return NULL;
41377 }
41378
41379
41380 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41381 PyObject *resultobj = 0;
41382 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41383 wxPoint *arg2 = 0 ;
41384 wxWindow *arg3 = (wxWindow *) 0 ;
41385 bool arg4 = (bool) false ;
41386 wxRect *arg5 = (wxRect *) NULL ;
41387 bool result;
41388 void *argp1 = 0 ;
41389 int res1 = 0 ;
41390 wxPoint temp2 ;
41391 void *argp3 = 0 ;
41392 int res3 = 0 ;
41393 bool val4 ;
41394 int ecode4 = 0 ;
41395 void *argp5 = 0 ;
41396 int res5 = 0 ;
41397 PyObject * obj0 = 0 ;
41398 PyObject * obj1 = 0 ;
41399 PyObject * obj2 = 0 ;
41400 PyObject * obj3 = 0 ;
41401 PyObject * obj4 = 0 ;
41402 char * kwnames[] = {
41403 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
41404 };
41405
41406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41408 if (!SWIG_IsOK(res1)) {
41409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41410 }
41411 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41412 {
41413 arg2 = &temp2;
41414 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41415 }
41416 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41417 if (!SWIG_IsOK(res3)) {
41418 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
41419 }
41420 arg3 = reinterpret_cast< wxWindow * >(argp3);
41421 if (obj3) {
41422 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41423 if (!SWIG_IsOK(ecode4)) {
41424 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
41425 }
41426 arg4 = static_cast< bool >(val4);
41427 }
41428 if (obj4) {
41429 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
41430 if (!SWIG_IsOK(res5)) {
41431 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
41432 }
41433 arg5 = reinterpret_cast< wxRect * >(argp5);
41434 }
41435 {
41436 PyThreadState* __tstate = wxPyBeginAllowThreads();
41437 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
41438 wxPyEndAllowThreads(__tstate);
41439 if (PyErr_Occurred()) SWIG_fail;
41440 }
41441 {
41442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41443 }
41444 return resultobj;
41445 fail:
41446 return NULL;
41447 }
41448
41449
41450 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41451 PyObject *resultobj = 0;
41452 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41453 wxPoint *arg2 = 0 ;
41454 wxWindow *arg3 = (wxWindow *) 0 ;
41455 wxWindow *arg4 = (wxWindow *) 0 ;
41456 bool result;
41457 void *argp1 = 0 ;
41458 int res1 = 0 ;
41459 wxPoint temp2 ;
41460 void *argp3 = 0 ;
41461 int res3 = 0 ;
41462 void *argp4 = 0 ;
41463 int res4 = 0 ;
41464 PyObject * obj0 = 0 ;
41465 PyObject * obj1 = 0 ;
41466 PyObject * obj2 = 0 ;
41467 PyObject * obj3 = 0 ;
41468 char * kwnames[] = {
41469 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
41470 };
41471
41472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
41473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41474 if (!SWIG_IsOK(res1)) {
41475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41476 }
41477 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41478 {
41479 arg2 = &temp2;
41480 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41481 }
41482 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
41483 if (!SWIG_IsOK(res3)) {
41484 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
41485 }
41486 arg3 = reinterpret_cast< wxWindow * >(argp3);
41487 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
41488 if (!SWIG_IsOK(res4)) {
41489 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
41490 }
41491 arg4 = reinterpret_cast< wxWindow * >(argp4);
41492 {
41493 PyThreadState* __tstate = wxPyBeginAllowThreads();
41494 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
41495 wxPyEndAllowThreads(__tstate);
41496 if (PyErr_Occurred()) SWIG_fail;
41497 }
41498 {
41499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41500 }
41501 return resultobj;
41502 fail:
41503 return NULL;
41504 }
41505
41506
41507 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41508 PyObject *resultobj = 0;
41509 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41510 bool result;
41511 void *argp1 = 0 ;
41512 int res1 = 0 ;
41513 PyObject *swig_obj[1] ;
41514
41515 if (!args) SWIG_fail;
41516 swig_obj[0] = args;
41517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41518 if (!SWIG_IsOK(res1)) {
41519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41520 }
41521 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41522 {
41523 PyThreadState* __tstate = wxPyBeginAllowThreads();
41524 result = (bool)(arg1)->EndDrag();
41525 wxPyEndAllowThreads(__tstate);
41526 if (PyErr_Occurred()) SWIG_fail;
41527 }
41528 {
41529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41530 }
41531 return resultobj;
41532 fail:
41533 return NULL;
41534 }
41535
41536
41537 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41538 PyObject *resultobj = 0;
41539 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41540 wxPoint *arg2 = 0 ;
41541 bool result;
41542 void *argp1 = 0 ;
41543 int res1 = 0 ;
41544 wxPoint temp2 ;
41545 PyObject * obj0 = 0 ;
41546 PyObject * obj1 = 0 ;
41547 char * kwnames[] = {
41548 (char *) "self",(char *) "pt", NULL
41549 };
41550
41551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
41552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41553 if (!SWIG_IsOK(res1)) {
41554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41555 }
41556 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41557 {
41558 arg2 = &temp2;
41559 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41560 }
41561 {
41562 PyThreadState* __tstate = wxPyBeginAllowThreads();
41563 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
41564 wxPyEndAllowThreads(__tstate);
41565 if (PyErr_Occurred()) SWIG_fail;
41566 }
41567 {
41568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41569 }
41570 return resultobj;
41571 fail:
41572 return NULL;
41573 }
41574
41575
41576 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41577 PyObject *resultobj = 0;
41578 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41579 bool result;
41580 void *argp1 = 0 ;
41581 int res1 = 0 ;
41582 PyObject *swig_obj[1] ;
41583
41584 if (!args) SWIG_fail;
41585 swig_obj[0] = args;
41586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41587 if (!SWIG_IsOK(res1)) {
41588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41589 }
41590 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41591 {
41592 PyThreadState* __tstate = wxPyBeginAllowThreads();
41593 result = (bool)(arg1)->Show();
41594 wxPyEndAllowThreads(__tstate);
41595 if (PyErr_Occurred()) SWIG_fail;
41596 }
41597 {
41598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41599 }
41600 return resultobj;
41601 fail:
41602 return NULL;
41603 }
41604
41605
41606 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41607 PyObject *resultobj = 0;
41608 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41609 bool result;
41610 void *argp1 = 0 ;
41611 int res1 = 0 ;
41612 PyObject *swig_obj[1] ;
41613
41614 if (!args) SWIG_fail;
41615 swig_obj[0] = args;
41616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41617 if (!SWIG_IsOK(res1)) {
41618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41619 }
41620 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41621 {
41622 PyThreadState* __tstate = wxPyBeginAllowThreads();
41623 result = (bool)(arg1)->Hide();
41624 wxPyEndAllowThreads(__tstate);
41625 if (PyErr_Occurred()) SWIG_fail;
41626 }
41627 {
41628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41629 }
41630 return resultobj;
41631 fail:
41632 return NULL;
41633 }
41634
41635
41636 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41637 PyObject *resultobj = 0;
41638 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41639 wxPoint *arg2 = 0 ;
41640 wxRect result;
41641 void *argp1 = 0 ;
41642 int res1 = 0 ;
41643 wxPoint temp2 ;
41644 PyObject * obj0 = 0 ;
41645 PyObject * obj1 = 0 ;
41646 char * kwnames[] = {
41647 (char *) "self",(char *) "pos", NULL
41648 };
41649
41650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41652 if (!SWIG_IsOK(res1)) {
41653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41654 }
41655 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41656 {
41657 arg2 = &temp2;
41658 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41659 }
41660 {
41661 PyThreadState* __tstate = wxPyBeginAllowThreads();
41662 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41663 wxPyEndAllowThreads(__tstate);
41664 if (PyErr_Occurred()) SWIG_fail;
41665 }
41666 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41667 return resultobj;
41668 fail:
41669 return NULL;
41670 }
41671
41672
41673 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41674 PyObject *resultobj = 0;
41675 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41676 wxDC *arg2 = 0 ;
41677 wxPoint *arg3 = 0 ;
41678 bool result;
41679 void *argp1 = 0 ;
41680 int res1 = 0 ;
41681 void *argp2 = 0 ;
41682 int res2 = 0 ;
41683 wxPoint temp3 ;
41684 PyObject * obj0 = 0 ;
41685 PyObject * obj1 = 0 ;
41686 PyObject * obj2 = 0 ;
41687 char * kwnames[] = {
41688 (char *) "self",(char *) "dc",(char *) "pos", NULL
41689 };
41690
41691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41693 if (!SWIG_IsOK(res1)) {
41694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41695 }
41696 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41697 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41698 if (!SWIG_IsOK(res2)) {
41699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41700 }
41701 if (!argp2) {
41702 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41703 }
41704 arg2 = reinterpret_cast< wxDC * >(argp2);
41705 {
41706 arg3 = &temp3;
41707 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41708 }
41709 {
41710 PyThreadState* __tstate = wxPyBeginAllowThreads();
41711 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41712 wxPyEndAllowThreads(__tstate);
41713 if (PyErr_Occurred()) SWIG_fail;
41714 }
41715 {
41716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41717 }
41718 return resultobj;
41719 fail:
41720 return NULL;
41721 }
41722
41723
41724 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41725 PyObject *resultobj = 0;
41726 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41727 wxDC *arg2 = 0 ;
41728 wxMemoryDC *arg3 = 0 ;
41729 wxRect *arg4 = 0 ;
41730 wxRect *arg5 = 0 ;
41731 bool result;
41732 void *argp1 = 0 ;
41733 int res1 = 0 ;
41734 void *argp2 = 0 ;
41735 int res2 = 0 ;
41736 void *argp3 = 0 ;
41737 int res3 = 0 ;
41738 wxRect temp4 ;
41739 wxRect temp5 ;
41740 PyObject * obj0 = 0 ;
41741 PyObject * obj1 = 0 ;
41742 PyObject * obj2 = 0 ;
41743 PyObject * obj3 = 0 ;
41744 PyObject * obj4 = 0 ;
41745 char * kwnames[] = {
41746 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41747 };
41748
41749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41751 if (!SWIG_IsOK(res1)) {
41752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41753 }
41754 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41755 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41756 if (!SWIG_IsOK(res2)) {
41757 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41758 }
41759 if (!argp2) {
41760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41761 }
41762 arg2 = reinterpret_cast< wxDC * >(argp2);
41763 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41764 if (!SWIG_IsOK(res3)) {
41765 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41766 }
41767 if (!argp3) {
41768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41769 }
41770 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41771 {
41772 arg4 = &temp4;
41773 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41774 }
41775 {
41776 arg5 = &temp5;
41777 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41778 }
41779 {
41780 PyThreadState* __tstate = wxPyBeginAllowThreads();
41781 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41782 wxPyEndAllowThreads(__tstate);
41783 if (PyErr_Occurred()) SWIG_fail;
41784 }
41785 {
41786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41787 }
41788 return resultobj;
41789 fail:
41790 return NULL;
41791 }
41792
41793
41794 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41795 PyObject *resultobj = 0;
41796 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41797 wxPoint *arg2 = 0 ;
41798 wxPoint *arg3 = 0 ;
41799 bool arg4 ;
41800 bool arg5 ;
41801 bool result;
41802 void *argp1 = 0 ;
41803 int res1 = 0 ;
41804 wxPoint temp2 ;
41805 wxPoint temp3 ;
41806 bool val4 ;
41807 int ecode4 = 0 ;
41808 bool val5 ;
41809 int ecode5 = 0 ;
41810 PyObject * obj0 = 0 ;
41811 PyObject * obj1 = 0 ;
41812 PyObject * obj2 = 0 ;
41813 PyObject * obj3 = 0 ;
41814 PyObject * obj4 = 0 ;
41815 char * kwnames[] = {
41816 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41817 };
41818
41819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41821 if (!SWIG_IsOK(res1)) {
41822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41823 }
41824 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41825 {
41826 arg2 = &temp2;
41827 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41828 }
41829 {
41830 arg3 = &temp3;
41831 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41832 }
41833 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41834 if (!SWIG_IsOK(ecode4)) {
41835 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41836 }
41837 arg4 = static_cast< bool >(val4);
41838 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41839 if (!SWIG_IsOK(ecode5)) {
41840 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41841 }
41842 arg5 = static_cast< bool >(val5);
41843 {
41844 PyThreadState* __tstate = wxPyBeginAllowThreads();
41845 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41846 wxPyEndAllowThreads(__tstate);
41847 if (PyErr_Occurred()) SWIG_fail;
41848 }
41849 {
41850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41851 }
41852 return resultobj;
41853 fail:
41854 return NULL;
41855 }
41856
41857
41858 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41859 PyObject *obj;
41860 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41861 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41862 return SWIG_Py_Void();
41863 }
41864
41865 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41866 return SWIG_Python_InitShadowInstance(args);
41867 }
41868
41869 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41870 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41871 return 1;
41872 }
41873
41874
41875 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41876 PyObject *pyobj = 0;
41877
41878 {
41879 #if wxUSE_UNICODE
41880 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41881 #else
41882 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41883 #endif
41884 }
41885 return pyobj;
41886 }
41887
41888
41889 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41890 PyObject *resultobj = 0;
41891 wxWindow *arg1 = (wxWindow *) 0 ;
41892 int arg2 = (int) -1 ;
41893 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41894 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41895 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41896 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41897 wxSize const &arg5_defvalue = wxDefaultSize ;
41898 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41899 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41900 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41901 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41902 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41903 wxString *arg8 = (wxString *) &arg8_defvalue ;
41904 wxDatePickerCtrl *result = 0 ;
41905 void *argp1 = 0 ;
41906 int res1 = 0 ;
41907 int val2 ;
41908 int ecode2 = 0 ;
41909 void *argp3 = 0 ;
41910 int res3 = 0 ;
41911 wxPoint temp4 ;
41912 wxSize temp5 ;
41913 long val6 ;
41914 int ecode6 = 0 ;
41915 void *argp7 = 0 ;
41916 int res7 = 0 ;
41917 bool temp8 = false ;
41918 PyObject * obj0 = 0 ;
41919 PyObject * obj1 = 0 ;
41920 PyObject * obj2 = 0 ;
41921 PyObject * obj3 = 0 ;
41922 PyObject * obj4 = 0 ;
41923 PyObject * obj5 = 0 ;
41924 PyObject * obj6 = 0 ;
41925 PyObject * obj7 = 0 ;
41926 char * kwnames[] = {
41927 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41928 };
41929
41930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41932 if (!SWIG_IsOK(res1)) {
41933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41934 }
41935 arg1 = reinterpret_cast< wxWindow * >(argp1);
41936 if (obj1) {
41937 ecode2 = SWIG_AsVal_int(obj1, &val2);
41938 if (!SWIG_IsOK(ecode2)) {
41939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41940 }
41941 arg2 = static_cast< int >(val2);
41942 }
41943 if (obj2) {
41944 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41945 if (!SWIG_IsOK(res3)) {
41946 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41947 }
41948 if (!argp3) {
41949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41950 }
41951 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41952 }
41953 if (obj3) {
41954 {
41955 arg4 = &temp4;
41956 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41957 }
41958 }
41959 if (obj4) {
41960 {
41961 arg5 = &temp5;
41962 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41963 }
41964 }
41965 if (obj5) {
41966 ecode6 = SWIG_AsVal_long(obj5, &val6);
41967 if (!SWIG_IsOK(ecode6)) {
41968 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41969 }
41970 arg6 = static_cast< long >(val6);
41971 }
41972 if (obj6) {
41973 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41974 if (!SWIG_IsOK(res7)) {
41975 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41976 }
41977 if (!argp7) {
41978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41979 }
41980 arg7 = reinterpret_cast< wxValidator * >(argp7);
41981 }
41982 if (obj7) {
41983 {
41984 arg8 = wxString_in_helper(obj7);
41985 if (arg8 == NULL) SWIG_fail;
41986 temp8 = true;
41987 }
41988 }
41989 {
41990 if (!wxPyCheckForApp()) SWIG_fail;
41991 PyThreadState* __tstate = wxPyBeginAllowThreads();
41992 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41993 wxPyEndAllowThreads(__tstate);
41994 if (PyErr_Occurred()) SWIG_fail;
41995 }
41996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41997 {
41998 if (temp8)
41999 delete arg8;
42000 }
42001 return resultobj;
42002 fail:
42003 {
42004 if (temp8)
42005 delete arg8;
42006 }
42007 return NULL;
42008 }
42009
42010
42011 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42012 PyObject *resultobj = 0;
42013 wxDatePickerCtrl *result = 0 ;
42014
42015 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
42016 {
42017 if (!wxPyCheckForApp()) SWIG_fail;
42018 PyThreadState* __tstate = wxPyBeginAllowThreads();
42019 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
42020 wxPyEndAllowThreads(__tstate);
42021 if (PyErr_Occurred()) SWIG_fail;
42022 }
42023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
42024 return resultobj;
42025 fail:
42026 return NULL;
42027 }
42028
42029
42030 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42031 PyObject *resultobj = 0;
42032 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42033 wxWindow *arg2 = (wxWindow *) 0 ;
42034 int arg3 = (int) -1 ;
42035 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
42036 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
42037 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42038 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42039 wxSize const &arg6_defvalue = wxDefaultSize ;
42040 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42041 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
42042 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42043 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42044 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
42045 wxString *arg9 = (wxString *) &arg9_defvalue ;
42046 bool result;
42047 void *argp1 = 0 ;
42048 int res1 = 0 ;
42049 void *argp2 = 0 ;
42050 int res2 = 0 ;
42051 int val3 ;
42052 int ecode3 = 0 ;
42053 void *argp4 = 0 ;
42054 int res4 = 0 ;
42055 wxPoint temp5 ;
42056 wxSize temp6 ;
42057 long val7 ;
42058 int ecode7 = 0 ;
42059 void *argp8 = 0 ;
42060 int res8 = 0 ;
42061 bool temp9 = false ;
42062 PyObject * obj0 = 0 ;
42063 PyObject * obj1 = 0 ;
42064 PyObject * obj2 = 0 ;
42065 PyObject * obj3 = 0 ;
42066 PyObject * obj4 = 0 ;
42067 PyObject * obj5 = 0 ;
42068 PyObject * obj6 = 0 ;
42069 PyObject * obj7 = 0 ;
42070 PyObject * obj8 = 0 ;
42071 char * kwnames[] = {
42072 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42073 };
42074
42075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42077 if (!SWIG_IsOK(res1)) {
42078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42079 }
42080 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42081 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42082 if (!SWIG_IsOK(res2)) {
42083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42084 }
42085 arg2 = reinterpret_cast< wxWindow * >(argp2);
42086 if (obj2) {
42087 ecode3 = SWIG_AsVal_int(obj2, &val3);
42088 if (!SWIG_IsOK(ecode3)) {
42089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42090 }
42091 arg3 = static_cast< int >(val3);
42092 }
42093 if (obj3) {
42094 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
42095 if (!SWIG_IsOK(res4)) {
42096 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
42097 }
42098 if (!argp4) {
42099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
42100 }
42101 arg4 = reinterpret_cast< wxDateTime * >(argp4);
42102 }
42103 if (obj4) {
42104 {
42105 arg5 = &temp5;
42106 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42107 }
42108 }
42109 if (obj5) {
42110 {
42111 arg6 = &temp6;
42112 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42113 }
42114 }
42115 if (obj6) {
42116 ecode7 = SWIG_AsVal_long(obj6, &val7);
42117 if (!SWIG_IsOK(ecode7)) {
42118 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
42119 }
42120 arg7 = static_cast< long >(val7);
42121 }
42122 if (obj7) {
42123 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42124 if (!SWIG_IsOK(res8)) {
42125 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
42126 }
42127 if (!argp8) {
42128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
42129 }
42130 arg8 = reinterpret_cast< wxValidator * >(argp8);
42131 }
42132 if (obj8) {
42133 {
42134 arg9 = wxString_in_helper(obj8);
42135 if (arg9 == NULL) SWIG_fail;
42136 temp9 = true;
42137 }
42138 }
42139 {
42140 PyThreadState* __tstate = wxPyBeginAllowThreads();
42141 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42142 wxPyEndAllowThreads(__tstate);
42143 if (PyErr_Occurred()) SWIG_fail;
42144 }
42145 {
42146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42147 }
42148 {
42149 if (temp9)
42150 delete arg9;
42151 }
42152 return resultobj;
42153 fail:
42154 {
42155 if (temp9)
42156 delete arg9;
42157 }
42158 return NULL;
42159 }
42160
42161
42162 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42163 PyObject *resultobj = 0;
42164 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42165 wxDateTime *arg2 = 0 ;
42166 void *argp1 = 0 ;
42167 int res1 = 0 ;
42168 void *argp2 = 0 ;
42169 int res2 = 0 ;
42170 PyObject * obj0 = 0 ;
42171 PyObject * obj1 = 0 ;
42172 char * kwnames[] = {
42173 (char *) "self",(char *) "dt", NULL
42174 };
42175
42176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
42177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42178 if (!SWIG_IsOK(res1)) {
42179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42180 }
42181 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42182 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
42183 if (!SWIG_IsOK(res2)) {
42184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42185 }
42186 if (!argp2) {
42187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42188 }
42189 arg2 = reinterpret_cast< wxDateTime * >(argp2);
42190 {
42191 PyThreadState* __tstate = wxPyBeginAllowThreads();
42192 (arg1)->SetValue((wxDateTime const &)*arg2);
42193 wxPyEndAllowThreads(__tstate);
42194 if (PyErr_Occurred()) SWIG_fail;
42195 }
42196 resultobj = SWIG_Py_Void();
42197 return resultobj;
42198 fail:
42199 return NULL;
42200 }
42201
42202
42203 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42204 PyObject *resultobj = 0;
42205 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42206 wxDateTime result;
42207 void *argp1 = 0 ;
42208 int res1 = 0 ;
42209 PyObject *swig_obj[1] ;
42210
42211 if (!args) SWIG_fail;
42212 swig_obj[0] = args;
42213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42214 if (!SWIG_IsOK(res1)) {
42215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
42216 }
42217 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42218 {
42219 PyThreadState* __tstate = wxPyBeginAllowThreads();
42220 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
42221 wxPyEndAllowThreads(__tstate);
42222 if (PyErr_Occurred()) SWIG_fail;
42223 }
42224 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42225 return resultobj;
42226 fail:
42227 return NULL;
42228 }
42229
42230
42231 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42232 PyObject *resultobj = 0;
42233 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42234 wxDateTime *arg2 = 0 ;
42235 wxDateTime *arg3 = 0 ;
42236 void *argp1 = 0 ;
42237 int res1 = 0 ;
42238 void *argp2 = 0 ;
42239 int res2 = 0 ;
42240 void *argp3 = 0 ;
42241 int res3 = 0 ;
42242 PyObject * obj0 = 0 ;
42243 PyObject * obj1 = 0 ;
42244 PyObject * obj2 = 0 ;
42245 char * kwnames[] = {
42246 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
42247 };
42248
42249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42251 if (!SWIG_IsOK(res1)) {
42252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42253 }
42254 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
42256 if (!SWIG_IsOK(res2)) {
42257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42258 }
42259 if (!argp2) {
42260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
42261 }
42262 arg2 = reinterpret_cast< wxDateTime * >(argp2);
42263 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
42264 if (!SWIG_IsOK(res3)) {
42265 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
42266 }
42267 if (!argp3) {
42268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
42269 }
42270 arg3 = reinterpret_cast< wxDateTime * >(argp3);
42271 {
42272 PyThreadState* __tstate = wxPyBeginAllowThreads();
42273 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
42274 wxPyEndAllowThreads(__tstate);
42275 if (PyErr_Occurred()) SWIG_fail;
42276 }
42277 resultobj = SWIG_Py_Void();
42278 return resultobj;
42279 fail:
42280 return NULL;
42281 }
42282
42283
42284 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42285 PyObject *resultobj = 0;
42286 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42287 wxDateTime result;
42288 void *argp1 = 0 ;
42289 int res1 = 0 ;
42290 PyObject *swig_obj[1] ;
42291
42292 if (!args) SWIG_fail;
42293 swig_obj[0] = args;
42294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42295 if (!SWIG_IsOK(res1)) {
42296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42297 }
42298 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42299 {
42300 PyThreadState* __tstate = wxPyBeginAllowThreads();
42301 result = wxDatePickerCtrl_GetLowerLimit(arg1);
42302 wxPyEndAllowThreads(__tstate);
42303 if (PyErr_Occurred()) SWIG_fail;
42304 }
42305 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42306 return resultobj;
42307 fail:
42308 return NULL;
42309 }
42310
42311
42312 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42313 PyObject *resultobj = 0;
42314 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
42315 wxDateTime result;
42316 void *argp1 = 0 ;
42317 int res1 = 0 ;
42318 PyObject *swig_obj[1] ;
42319
42320 if (!args) SWIG_fail;
42321 swig_obj[0] = args;
42322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
42323 if (!SWIG_IsOK(res1)) {
42324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
42325 }
42326 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
42327 {
42328 PyThreadState* __tstate = wxPyBeginAllowThreads();
42329 result = wxDatePickerCtrl_GetUpperLimit(arg1);
42330 wxPyEndAllowThreads(__tstate);
42331 if (PyErr_Occurred()) SWIG_fail;
42332 }
42333 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
42334 return resultobj;
42335 fail:
42336 return NULL;
42337 }
42338
42339
42340 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42341 PyObject *obj;
42342 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42343 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
42344 return SWIG_Py_Void();
42345 }
42346
42347 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42348 return SWIG_Python_InitShadowInstance(args);
42349 }
42350
42351 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
42352 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
42353 return 1;
42354 }
42355
42356
42357 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
42358 PyObject *pyobj = 0;
42359
42360 {
42361 #if wxUSE_UNICODE
42362 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42363 #else
42364 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
42365 #endif
42366 }
42367 return pyobj;
42368 }
42369
42370
42371 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42372 PyObject *resultobj = 0;
42373 wxWindow *arg1 = (wxWindow *) 0 ;
42374 int arg2 ;
42375 wxString *arg3 = 0 ;
42376 wxString *arg4 = 0 ;
42377 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42378 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42379 wxSize const &arg6_defvalue = wxDefaultSize ;
42380 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42381 long arg7 = (long) wxHL_DEFAULT_STYLE ;
42382 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
42383 wxString *arg8 = (wxString *) &arg8_defvalue ;
42384 wxHyperlinkCtrl *result = 0 ;
42385 void *argp1 = 0 ;
42386 int res1 = 0 ;
42387 int val2 ;
42388 int ecode2 = 0 ;
42389 bool temp3 = false ;
42390 bool temp4 = false ;
42391 wxPoint temp5 ;
42392 wxSize temp6 ;
42393 long val7 ;
42394 int ecode7 = 0 ;
42395 bool temp8 = false ;
42396 PyObject * obj0 = 0 ;
42397 PyObject * obj1 = 0 ;
42398 PyObject * obj2 = 0 ;
42399 PyObject * obj3 = 0 ;
42400 PyObject * obj4 = 0 ;
42401 PyObject * obj5 = 0 ;
42402 PyObject * obj6 = 0 ;
42403 PyObject * obj7 = 0 ;
42404 char * kwnames[] = {
42405 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42406 };
42407
42408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42410 if (!SWIG_IsOK(res1)) {
42411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42412 }
42413 arg1 = reinterpret_cast< wxWindow * >(argp1);
42414 ecode2 = SWIG_AsVal_int(obj1, &val2);
42415 if (!SWIG_IsOK(ecode2)) {
42416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
42417 }
42418 arg2 = static_cast< int >(val2);
42419 {
42420 arg3 = wxString_in_helper(obj2);
42421 if (arg3 == NULL) SWIG_fail;
42422 temp3 = true;
42423 }
42424 {
42425 arg4 = wxString_in_helper(obj3);
42426 if (arg4 == NULL) SWIG_fail;
42427 temp4 = true;
42428 }
42429 if (obj4) {
42430 {
42431 arg5 = &temp5;
42432 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42433 }
42434 }
42435 if (obj5) {
42436 {
42437 arg6 = &temp6;
42438 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42439 }
42440 }
42441 if (obj6) {
42442 ecode7 = SWIG_AsVal_long(obj6, &val7);
42443 if (!SWIG_IsOK(ecode7)) {
42444 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
42445 }
42446 arg7 = static_cast< long >(val7);
42447 }
42448 if (obj7) {
42449 {
42450 arg8 = wxString_in_helper(obj7);
42451 if (arg8 == NULL) SWIG_fail;
42452 temp8 = true;
42453 }
42454 }
42455 {
42456 if (!wxPyCheckForApp()) SWIG_fail;
42457 PyThreadState* __tstate = wxPyBeginAllowThreads();
42458 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
42459 wxPyEndAllowThreads(__tstate);
42460 if (PyErr_Occurred()) SWIG_fail;
42461 }
42462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
42463 {
42464 if (temp3)
42465 delete arg3;
42466 }
42467 {
42468 if (temp4)
42469 delete arg4;
42470 }
42471 {
42472 if (temp8)
42473 delete arg8;
42474 }
42475 return resultobj;
42476 fail:
42477 {
42478 if (temp3)
42479 delete arg3;
42480 }
42481 {
42482 if (temp4)
42483 delete arg4;
42484 }
42485 {
42486 if (temp8)
42487 delete arg8;
42488 }
42489 return NULL;
42490 }
42491
42492
42493 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42494 PyObject *resultobj = 0;
42495 wxHyperlinkCtrl *result = 0 ;
42496
42497 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
42498 {
42499 if (!wxPyCheckForApp()) SWIG_fail;
42500 PyThreadState* __tstate = wxPyBeginAllowThreads();
42501 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
42502 wxPyEndAllowThreads(__tstate);
42503 if (PyErr_Occurred()) SWIG_fail;
42504 }
42505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
42506 return resultobj;
42507 fail:
42508 return NULL;
42509 }
42510
42511
42512 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42513 PyObject *resultobj = 0;
42514 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42515 wxWindow *arg2 = (wxWindow *) 0 ;
42516 int arg3 ;
42517 wxString *arg4 = 0 ;
42518 wxString *arg5 = 0 ;
42519 wxPoint const &arg6_defvalue = wxDefaultPosition ;
42520 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
42521 wxSize const &arg7_defvalue = wxDefaultSize ;
42522 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
42523 long arg8 = (long) wxHL_DEFAULT_STYLE ;
42524 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
42525 wxString *arg9 = (wxString *) &arg9_defvalue ;
42526 bool result;
42527 void *argp1 = 0 ;
42528 int res1 = 0 ;
42529 void *argp2 = 0 ;
42530 int res2 = 0 ;
42531 int val3 ;
42532 int ecode3 = 0 ;
42533 bool temp4 = false ;
42534 bool temp5 = false ;
42535 wxPoint temp6 ;
42536 wxSize temp7 ;
42537 long val8 ;
42538 int ecode8 = 0 ;
42539 bool temp9 = false ;
42540 PyObject * obj0 = 0 ;
42541 PyObject * obj1 = 0 ;
42542 PyObject * obj2 = 0 ;
42543 PyObject * obj3 = 0 ;
42544 PyObject * obj4 = 0 ;
42545 PyObject * obj5 = 0 ;
42546 PyObject * obj6 = 0 ;
42547 PyObject * obj7 = 0 ;
42548 PyObject * obj8 = 0 ;
42549 char * kwnames[] = {
42550 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
42551 };
42552
42553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42555 if (!SWIG_IsOK(res1)) {
42556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42557 }
42558 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42559 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42560 if (!SWIG_IsOK(res2)) {
42561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42562 }
42563 arg2 = reinterpret_cast< wxWindow * >(argp2);
42564 ecode3 = SWIG_AsVal_int(obj2, &val3);
42565 if (!SWIG_IsOK(ecode3)) {
42566 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42567 }
42568 arg3 = static_cast< int >(val3);
42569 {
42570 arg4 = wxString_in_helper(obj3);
42571 if (arg4 == NULL) SWIG_fail;
42572 temp4 = true;
42573 }
42574 {
42575 arg5 = wxString_in_helper(obj4);
42576 if (arg5 == NULL) SWIG_fail;
42577 temp5 = true;
42578 }
42579 if (obj5) {
42580 {
42581 arg6 = &temp6;
42582 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
42583 }
42584 }
42585 if (obj6) {
42586 {
42587 arg7 = &temp7;
42588 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
42589 }
42590 }
42591 if (obj7) {
42592 ecode8 = SWIG_AsVal_long(obj7, &val8);
42593 if (!SWIG_IsOK(ecode8)) {
42594 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
42595 }
42596 arg8 = static_cast< long >(val8);
42597 }
42598 if (obj8) {
42599 {
42600 arg9 = wxString_in_helper(obj8);
42601 if (arg9 == NULL) SWIG_fail;
42602 temp9 = true;
42603 }
42604 }
42605 {
42606 PyThreadState* __tstate = wxPyBeginAllowThreads();
42607 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
42608 wxPyEndAllowThreads(__tstate);
42609 if (PyErr_Occurred()) SWIG_fail;
42610 }
42611 {
42612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42613 }
42614 {
42615 if (temp4)
42616 delete arg4;
42617 }
42618 {
42619 if (temp5)
42620 delete arg5;
42621 }
42622 {
42623 if (temp9)
42624 delete arg9;
42625 }
42626 return resultobj;
42627 fail:
42628 {
42629 if (temp4)
42630 delete arg4;
42631 }
42632 {
42633 if (temp5)
42634 delete arg5;
42635 }
42636 {
42637 if (temp9)
42638 delete arg9;
42639 }
42640 return NULL;
42641 }
42642
42643
42644 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42645 PyObject *resultobj = 0;
42646 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42647 wxColour result;
42648 void *argp1 = 0 ;
42649 int res1 = 0 ;
42650 PyObject *swig_obj[1] ;
42651
42652 if (!args) SWIG_fail;
42653 swig_obj[0] = args;
42654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42655 if (!SWIG_IsOK(res1)) {
42656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42657 }
42658 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42659 {
42660 PyThreadState* __tstate = wxPyBeginAllowThreads();
42661 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42662 wxPyEndAllowThreads(__tstate);
42663 if (PyErr_Occurred()) SWIG_fail;
42664 }
42665 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42666 return resultobj;
42667 fail:
42668 return NULL;
42669 }
42670
42671
42672 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42673 PyObject *resultobj = 0;
42674 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42675 wxColour *arg2 = 0 ;
42676 void *argp1 = 0 ;
42677 int res1 = 0 ;
42678 wxColour temp2 ;
42679 PyObject * obj0 = 0 ;
42680 PyObject * obj1 = 0 ;
42681 char * kwnames[] = {
42682 (char *) "self",(char *) "colour", NULL
42683 };
42684
42685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42687 if (!SWIG_IsOK(res1)) {
42688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42689 }
42690 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42691 {
42692 arg2 = &temp2;
42693 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42694 }
42695 {
42696 PyThreadState* __tstate = wxPyBeginAllowThreads();
42697 (arg1)->SetHoverColour((wxColour const &)*arg2);
42698 wxPyEndAllowThreads(__tstate);
42699 if (PyErr_Occurred()) SWIG_fail;
42700 }
42701 resultobj = SWIG_Py_Void();
42702 return resultobj;
42703 fail:
42704 return NULL;
42705 }
42706
42707
42708 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42709 PyObject *resultobj = 0;
42710 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42711 wxColour result;
42712 void *argp1 = 0 ;
42713 int res1 = 0 ;
42714 PyObject *swig_obj[1] ;
42715
42716 if (!args) SWIG_fail;
42717 swig_obj[0] = args;
42718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42719 if (!SWIG_IsOK(res1)) {
42720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42721 }
42722 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42723 {
42724 PyThreadState* __tstate = wxPyBeginAllowThreads();
42725 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42726 wxPyEndAllowThreads(__tstate);
42727 if (PyErr_Occurred()) SWIG_fail;
42728 }
42729 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42730 return resultobj;
42731 fail:
42732 return NULL;
42733 }
42734
42735
42736 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42737 PyObject *resultobj = 0;
42738 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42739 wxColour *arg2 = 0 ;
42740 void *argp1 = 0 ;
42741 int res1 = 0 ;
42742 wxColour temp2 ;
42743 PyObject * obj0 = 0 ;
42744 PyObject * obj1 = 0 ;
42745 char * kwnames[] = {
42746 (char *) "self",(char *) "colour", NULL
42747 };
42748
42749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42751 if (!SWIG_IsOK(res1)) {
42752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42753 }
42754 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42755 {
42756 arg2 = &temp2;
42757 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42758 }
42759 {
42760 PyThreadState* __tstate = wxPyBeginAllowThreads();
42761 (arg1)->SetNormalColour((wxColour const &)*arg2);
42762 wxPyEndAllowThreads(__tstate);
42763 if (PyErr_Occurred()) SWIG_fail;
42764 }
42765 resultobj = SWIG_Py_Void();
42766 return resultobj;
42767 fail:
42768 return NULL;
42769 }
42770
42771
42772 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42773 PyObject *resultobj = 0;
42774 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42775 wxColour result;
42776 void *argp1 = 0 ;
42777 int res1 = 0 ;
42778 PyObject *swig_obj[1] ;
42779
42780 if (!args) SWIG_fail;
42781 swig_obj[0] = args;
42782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42783 if (!SWIG_IsOK(res1)) {
42784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42785 }
42786 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42787 {
42788 PyThreadState* __tstate = wxPyBeginAllowThreads();
42789 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42790 wxPyEndAllowThreads(__tstate);
42791 if (PyErr_Occurred()) SWIG_fail;
42792 }
42793 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42794 return resultobj;
42795 fail:
42796 return NULL;
42797 }
42798
42799
42800 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42801 PyObject *resultobj = 0;
42802 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42803 wxColour *arg2 = 0 ;
42804 void *argp1 = 0 ;
42805 int res1 = 0 ;
42806 wxColour temp2 ;
42807 PyObject * obj0 = 0 ;
42808 PyObject * obj1 = 0 ;
42809 char * kwnames[] = {
42810 (char *) "self",(char *) "colour", NULL
42811 };
42812
42813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42815 if (!SWIG_IsOK(res1)) {
42816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42817 }
42818 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42819 {
42820 arg2 = &temp2;
42821 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42822 }
42823 {
42824 PyThreadState* __tstate = wxPyBeginAllowThreads();
42825 (arg1)->SetVisitedColour((wxColour const &)*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_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42837 PyObject *resultobj = 0;
42838 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42839 wxString 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_wxHyperlinkCtrl, 0 | 0 );
42847 if (!SWIG_IsOK(res1)) {
42848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42849 }
42850 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42851 {
42852 PyThreadState* __tstate = wxPyBeginAllowThreads();
42853 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42854 wxPyEndAllowThreads(__tstate);
42855 if (PyErr_Occurred()) SWIG_fail;
42856 }
42857 {
42858 #if wxUSE_UNICODE
42859 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42860 #else
42861 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42862 #endif
42863 }
42864 return resultobj;
42865 fail:
42866 return NULL;
42867 }
42868
42869
42870 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42871 PyObject *resultobj = 0;
42872 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42873 wxString *arg2 = 0 ;
42874 void *argp1 = 0 ;
42875 int res1 = 0 ;
42876 bool temp2 = false ;
42877 PyObject * obj0 = 0 ;
42878 PyObject * obj1 = 0 ;
42879 char * kwnames[] = {
42880 (char *) "self",(char *) "url", NULL
42881 };
42882
42883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42885 if (!SWIG_IsOK(res1)) {
42886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42887 }
42888 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42889 {
42890 arg2 = wxString_in_helper(obj1);
42891 if (arg2 == NULL) SWIG_fail;
42892 temp2 = true;
42893 }
42894 {
42895 PyThreadState* __tstate = wxPyBeginAllowThreads();
42896 (arg1)->SetURL((wxString const &)*arg2);
42897 wxPyEndAllowThreads(__tstate);
42898 if (PyErr_Occurred()) SWIG_fail;
42899 }
42900 resultobj = SWIG_Py_Void();
42901 {
42902 if (temp2)
42903 delete arg2;
42904 }
42905 return resultobj;
42906 fail:
42907 {
42908 if (temp2)
42909 delete arg2;
42910 }
42911 return NULL;
42912 }
42913
42914
42915 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42916 PyObject *resultobj = 0;
42917 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42918 bool arg2 = (bool) true ;
42919 void *argp1 = 0 ;
42920 int res1 = 0 ;
42921 bool val2 ;
42922 int ecode2 = 0 ;
42923 PyObject * obj0 = 0 ;
42924 PyObject * obj1 = 0 ;
42925 char * kwnames[] = {
42926 (char *) "self",(char *) "visited", NULL
42927 };
42928
42929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42931 if (!SWIG_IsOK(res1)) {
42932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42933 }
42934 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42935 if (obj1) {
42936 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42937 if (!SWIG_IsOK(ecode2)) {
42938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42939 }
42940 arg2 = static_cast< bool >(val2);
42941 }
42942 {
42943 PyThreadState* __tstate = wxPyBeginAllowThreads();
42944 (arg1)->SetVisited(arg2);
42945 wxPyEndAllowThreads(__tstate);
42946 if (PyErr_Occurred()) SWIG_fail;
42947 }
42948 resultobj = SWIG_Py_Void();
42949 return resultobj;
42950 fail:
42951 return NULL;
42952 }
42953
42954
42955 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42956 PyObject *resultobj = 0;
42957 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42958 bool result;
42959 void *argp1 = 0 ;
42960 int res1 = 0 ;
42961 PyObject *swig_obj[1] ;
42962
42963 if (!args) SWIG_fail;
42964 swig_obj[0] = args;
42965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42966 if (!SWIG_IsOK(res1)) {
42967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42968 }
42969 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42970 {
42971 PyThreadState* __tstate = wxPyBeginAllowThreads();
42972 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42973 wxPyEndAllowThreads(__tstate);
42974 if (PyErr_Occurred()) SWIG_fail;
42975 }
42976 {
42977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42978 }
42979 return resultobj;
42980 fail:
42981 return NULL;
42982 }
42983
42984
42985 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42986 PyObject *obj;
42987 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42988 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42989 return SWIG_Py_Void();
42990 }
42991
42992 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42993 return SWIG_Python_InitShadowInstance(args);
42994 }
42995
42996 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42997 PyObject *resultobj = 0;
42998 wxObject *arg1 = (wxObject *) 0 ;
42999 int arg2 ;
43000 wxString *arg3 = 0 ;
43001 wxHyperlinkEvent *result = 0 ;
43002 void *argp1 = 0 ;
43003 int res1 = 0 ;
43004 int val2 ;
43005 int ecode2 = 0 ;
43006 bool temp3 = false ;
43007 PyObject * obj0 = 0 ;
43008 PyObject * obj1 = 0 ;
43009 PyObject * obj2 = 0 ;
43010 char * kwnames[] = {
43011 (char *) "generator",(char *) "id",(char *) "url", NULL
43012 };
43013
43014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43016 if (!SWIG_IsOK(res1)) {
43017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43018 }
43019 arg1 = reinterpret_cast< wxObject * >(argp1);
43020 ecode2 = SWIG_AsVal_int(obj1, &val2);
43021 if (!SWIG_IsOK(ecode2)) {
43022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
43023 }
43024 arg2 = static_cast< int >(val2);
43025 {
43026 arg3 = wxString_in_helper(obj2);
43027 if (arg3 == NULL) SWIG_fail;
43028 temp3 = true;
43029 }
43030 {
43031 PyThreadState* __tstate = wxPyBeginAllowThreads();
43032 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
43033 wxPyEndAllowThreads(__tstate);
43034 if (PyErr_Occurred()) SWIG_fail;
43035 }
43036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
43037 {
43038 if (temp3)
43039 delete arg3;
43040 }
43041 return resultobj;
43042 fail:
43043 {
43044 if (temp3)
43045 delete arg3;
43046 }
43047 return NULL;
43048 }
43049
43050
43051 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43052 PyObject *resultobj = 0;
43053 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
43054 wxString result;
43055 void *argp1 = 0 ;
43056 int res1 = 0 ;
43057 PyObject *swig_obj[1] ;
43058
43059 if (!args) SWIG_fail;
43060 swig_obj[0] = args;
43061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
43062 if (!SWIG_IsOK(res1)) {
43063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
43064 }
43065 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
43066 {
43067 PyThreadState* __tstate = wxPyBeginAllowThreads();
43068 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
43069 wxPyEndAllowThreads(__tstate);
43070 if (PyErr_Occurred()) SWIG_fail;
43071 }
43072 {
43073 #if wxUSE_UNICODE
43074 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43075 #else
43076 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43077 #endif
43078 }
43079 return resultobj;
43080 fail:
43081 return NULL;
43082 }
43083
43084
43085 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43086 PyObject *resultobj = 0;
43087 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
43088 wxString *arg2 = 0 ;
43089 void *argp1 = 0 ;
43090 int res1 = 0 ;
43091 bool temp2 = false ;
43092 PyObject * obj0 = 0 ;
43093 PyObject * obj1 = 0 ;
43094 char * kwnames[] = {
43095 (char *) "self",(char *) "url", NULL
43096 };
43097
43098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
43099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
43100 if (!SWIG_IsOK(res1)) {
43101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
43102 }
43103 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
43104 {
43105 arg2 = wxString_in_helper(obj1);
43106 if (arg2 == NULL) SWIG_fail;
43107 temp2 = true;
43108 }
43109 {
43110 PyThreadState* __tstate = wxPyBeginAllowThreads();
43111 (arg1)->SetURL((wxString const &)*arg2);
43112 wxPyEndAllowThreads(__tstate);
43113 if (PyErr_Occurred()) SWIG_fail;
43114 }
43115 resultobj = SWIG_Py_Void();
43116 {
43117 if (temp2)
43118 delete arg2;
43119 }
43120 return resultobj;
43121 fail:
43122 {
43123 if (temp2)
43124 delete arg2;
43125 }
43126 return NULL;
43127 }
43128
43129
43130 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43131 PyObject *obj;
43132 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43133 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
43134 return SWIG_Py_Void();
43135 }
43136
43137 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43138 return SWIG_Python_InitShadowInstance(args);
43139 }
43140
43141 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43142 PyObject *resultobj = 0;
43143 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43144 wxWindow *arg2 = (wxWindow *) 0 ;
43145 int arg3 ;
43146 wxString const &arg4_defvalue = wxEmptyString ;
43147 wxString *arg4 = (wxString *) &arg4_defvalue ;
43148 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43149 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43150 wxSize const &arg6_defvalue = wxDefaultSize ;
43151 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43152 long arg7 = (long) 0 ;
43153 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43154 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43155 wxString const &arg9_defvalue = wxButtonNameStr ;
43156 wxString *arg9 = (wxString *) &arg9_defvalue ;
43157 bool result;
43158 void *argp1 = 0 ;
43159 int res1 = 0 ;
43160 void *argp2 = 0 ;
43161 int res2 = 0 ;
43162 int val3 ;
43163 int ecode3 = 0 ;
43164 bool temp4 = false ;
43165 wxPoint temp5 ;
43166 wxSize temp6 ;
43167 long val7 ;
43168 int ecode7 = 0 ;
43169 void *argp8 = 0 ;
43170 int res8 = 0 ;
43171 bool temp9 = false ;
43172 PyObject * obj0 = 0 ;
43173 PyObject * obj1 = 0 ;
43174 PyObject * obj2 = 0 ;
43175 PyObject * obj3 = 0 ;
43176 PyObject * obj4 = 0 ;
43177 PyObject * obj5 = 0 ;
43178 PyObject * obj6 = 0 ;
43179 PyObject * obj7 = 0 ;
43180 PyObject * obj8 = 0 ;
43181 char * kwnames[] = {
43182 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43183 };
43184
43185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43187 if (!SWIG_IsOK(res1)) {
43188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43189 }
43190 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43191 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43192 if (!SWIG_IsOK(res2)) {
43193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
43194 }
43195 arg2 = reinterpret_cast< wxWindow * >(argp2);
43196 ecode3 = SWIG_AsVal_int(obj2, &val3);
43197 if (!SWIG_IsOK(ecode3)) {
43198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
43199 }
43200 arg3 = static_cast< int >(val3);
43201 if (obj3) {
43202 {
43203 arg4 = wxString_in_helper(obj3);
43204 if (arg4 == NULL) SWIG_fail;
43205 temp4 = true;
43206 }
43207 }
43208 if (obj4) {
43209 {
43210 arg5 = &temp5;
43211 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43212 }
43213 }
43214 if (obj5) {
43215 {
43216 arg6 = &temp6;
43217 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43218 }
43219 }
43220 if (obj6) {
43221 ecode7 = SWIG_AsVal_long(obj6, &val7);
43222 if (!SWIG_IsOK(ecode7)) {
43223 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
43224 }
43225 arg7 = static_cast< long >(val7);
43226 }
43227 if (obj7) {
43228 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43229 if (!SWIG_IsOK(res8)) {
43230 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
43231 }
43232 if (!argp8) {
43233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
43234 }
43235 arg8 = reinterpret_cast< wxValidator * >(argp8);
43236 }
43237 if (obj8) {
43238 {
43239 arg9 = wxString_in_helper(obj8);
43240 if (arg9 == NULL) SWIG_fail;
43241 temp9 = true;
43242 }
43243 }
43244 {
43245 PyThreadState* __tstate = wxPyBeginAllowThreads();
43246 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43247 wxPyEndAllowThreads(__tstate);
43248 if (PyErr_Occurred()) SWIG_fail;
43249 }
43250 {
43251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43252 }
43253 {
43254 if (temp4)
43255 delete arg4;
43256 }
43257 {
43258 if (temp9)
43259 delete arg9;
43260 }
43261 return resultobj;
43262 fail:
43263 {
43264 if (temp4)
43265 delete arg4;
43266 }
43267 {
43268 if (temp9)
43269 delete arg9;
43270 }
43271 return NULL;
43272 }
43273
43274
43275 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43276 PyObject *resultobj = 0;
43277 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43278 int arg2 ;
43279 void *argp1 = 0 ;
43280 int res1 = 0 ;
43281 int val2 ;
43282 int ecode2 = 0 ;
43283 PyObject * obj0 = 0 ;
43284 PyObject * obj1 = 0 ;
43285 char * kwnames[] = {
43286 (char *) "self",(char *) "newmargin", NULL
43287 };
43288
43289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
43290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43291 if (!SWIG_IsOK(res1)) {
43292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43293 }
43294 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43295 ecode2 = SWIG_AsVal_int(obj1, &val2);
43296 if (!SWIG_IsOK(ecode2)) {
43297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
43298 }
43299 arg2 = static_cast< int >(val2);
43300 {
43301 PyThreadState* __tstate = wxPyBeginAllowThreads();
43302 (arg1)->SetInternalMargin(arg2);
43303 wxPyEndAllowThreads(__tstate);
43304 if (PyErr_Occurred()) SWIG_fail;
43305 }
43306 resultobj = SWIG_Py_Void();
43307 return resultobj;
43308 fail:
43309 return NULL;
43310 }
43311
43312
43313 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43314 PyObject *resultobj = 0;
43315 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43316 int result;
43317 void *argp1 = 0 ;
43318 int res1 = 0 ;
43319 PyObject *swig_obj[1] ;
43320
43321 if (!args) SWIG_fail;
43322 swig_obj[0] = args;
43323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43324 if (!SWIG_IsOK(res1)) {
43325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43326 }
43327 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43328 {
43329 PyThreadState* __tstate = wxPyBeginAllowThreads();
43330 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
43331 wxPyEndAllowThreads(__tstate);
43332 if (PyErr_Occurred()) SWIG_fail;
43333 }
43334 resultobj = SWIG_From_int(static_cast< int >(result));
43335 return resultobj;
43336 fail:
43337 return NULL;
43338 }
43339
43340
43341 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43342 PyObject *resultobj = 0;
43343 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43344 int arg2 ;
43345 void *argp1 = 0 ;
43346 int res1 = 0 ;
43347 int val2 ;
43348 int ecode2 = 0 ;
43349 PyObject * obj0 = 0 ;
43350 PyObject * obj1 = 0 ;
43351 char * kwnames[] = {
43352 (char *) "self",(char *) "prop", NULL
43353 };
43354
43355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43357 if (!SWIG_IsOK(res1)) {
43358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43359 }
43360 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43361 ecode2 = SWIG_AsVal_int(obj1, &val2);
43362 if (!SWIG_IsOK(ecode2)) {
43363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43364 }
43365 arg2 = static_cast< int >(val2);
43366 {
43367 PyThreadState* __tstate = wxPyBeginAllowThreads();
43368 (arg1)->SetTextCtrlProportion(arg2);
43369 wxPyEndAllowThreads(__tstate);
43370 if (PyErr_Occurred()) SWIG_fail;
43371 }
43372 resultobj = SWIG_Py_Void();
43373 return resultobj;
43374 fail:
43375 return NULL;
43376 }
43377
43378
43379 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43380 PyObject *resultobj = 0;
43381 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43382 int result;
43383 void *argp1 = 0 ;
43384 int res1 = 0 ;
43385 PyObject *swig_obj[1] ;
43386
43387 if (!args) SWIG_fail;
43388 swig_obj[0] = args;
43389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43390 if (!SWIG_IsOK(res1)) {
43391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43392 }
43393 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43394 {
43395 PyThreadState* __tstate = wxPyBeginAllowThreads();
43396 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
43397 wxPyEndAllowThreads(__tstate);
43398 if (PyErr_Occurred()) SWIG_fail;
43399 }
43400 resultobj = SWIG_From_int(static_cast< int >(result));
43401 return resultobj;
43402 fail:
43403 return NULL;
43404 }
43405
43406
43407 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43408 PyObject *resultobj = 0;
43409 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43410 int arg2 ;
43411 void *argp1 = 0 ;
43412 int res1 = 0 ;
43413 int val2 ;
43414 int ecode2 = 0 ;
43415 PyObject * obj0 = 0 ;
43416 PyObject * obj1 = 0 ;
43417 char * kwnames[] = {
43418 (char *) "self",(char *) "prop", NULL
43419 };
43420
43421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
43422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43423 if (!SWIG_IsOK(res1)) {
43424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43425 }
43426 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43427 ecode2 = SWIG_AsVal_int(obj1, &val2);
43428 if (!SWIG_IsOK(ecode2)) {
43429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
43430 }
43431 arg2 = static_cast< int >(val2);
43432 {
43433 PyThreadState* __tstate = wxPyBeginAllowThreads();
43434 (arg1)->SetPickerCtrlProportion(arg2);
43435 wxPyEndAllowThreads(__tstate);
43436 if (PyErr_Occurred()) SWIG_fail;
43437 }
43438 resultobj = SWIG_Py_Void();
43439 return resultobj;
43440 fail:
43441 return NULL;
43442 }
43443
43444
43445 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43446 PyObject *resultobj = 0;
43447 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43448 int result;
43449 void *argp1 = 0 ;
43450 int res1 = 0 ;
43451 PyObject *swig_obj[1] ;
43452
43453 if (!args) SWIG_fail;
43454 swig_obj[0] = args;
43455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43456 if (!SWIG_IsOK(res1)) {
43457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43458 }
43459 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43460 {
43461 PyThreadState* __tstate = wxPyBeginAllowThreads();
43462 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
43463 wxPyEndAllowThreads(__tstate);
43464 if (PyErr_Occurred()) SWIG_fail;
43465 }
43466 resultobj = SWIG_From_int(static_cast< int >(result));
43467 return resultobj;
43468 fail:
43469 return NULL;
43470 }
43471
43472
43473 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43474 PyObject *resultobj = 0;
43475 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43476 bool result;
43477 void *argp1 = 0 ;
43478 int res1 = 0 ;
43479 PyObject *swig_obj[1] ;
43480
43481 if (!args) SWIG_fail;
43482 swig_obj[0] = args;
43483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43484 if (!SWIG_IsOK(res1)) {
43485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43486 }
43487 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43488 {
43489 PyThreadState* __tstate = wxPyBeginAllowThreads();
43490 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
43491 wxPyEndAllowThreads(__tstate);
43492 if (PyErr_Occurred()) SWIG_fail;
43493 }
43494 {
43495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43496 }
43497 return resultobj;
43498 fail:
43499 return NULL;
43500 }
43501
43502
43503 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43504 PyObject *resultobj = 0;
43505 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43506 bool arg2 = (bool) true ;
43507 void *argp1 = 0 ;
43508 int res1 = 0 ;
43509 bool val2 ;
43510 int ecode2 = 0 ;
43511 PyObject * obj0 = 0 ;
43512 PyObject * obj1 = 0 ;
43513 char * kwnames[] = {
43514 (char *) "self",(char *) "grow", NULL
43515 };
43516
43517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43519 if (!SWIG_IsOK(res1)) {
43520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43521 }
43522 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43523 if (obj1) {
43524 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43525 if (!SWIG_IsOK(ecode2)) {
43526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43527 }
43528 arg2 = static_cast< bool >(val2);
43529 }
43530 {
43531 PyThreadState* __tstate = wxPyBeginAllowThreads();
43532 (arg1)->SetTextCtrlGrowable(arg2);
43533 wxPyEndAllowThreads(__tstate);
43534 if (PyErr_Occurred()) SWIG_fail;
43535 }
43536 resultobj = SWIG_Py_Void();
43537 return resultobj;
43538 fail:
43539 return NULL;
43540 }
43541
43542
43543 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43544 PyObject *resultobj = 0;
43545 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43546 bool result;
43547 void *argp1 = 0 ;
43548 int res1 = 0 ;
43549 PyObject *swig_obj[1] ;
43550
43551 if (!args) SWIG_fail;
43552 swig_obj[0] = args;
43553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43554 if (!SWIG_IsOK(res1)) {
43555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43556 }
43557 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43558 {
43559 PyThreadState* __tstate = wxPyBeginAllowThreads();
43560 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
43561 wxPyEndAllowThreads(__tstate);
43562 if (PyErr_Occurred()) SWIG_fail;
43563 }
43564 {
43565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43566 }
43567 return resultobj;
43568 fail:
43569 return NULL;
43570 }
43571
43572
43573 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43574 PyObject *resultobj = 0;
43575 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43576 bool arg2 = (bool) true ;
43577 void *argp1 = 0 ;
43578 int res1 = 0 ;
43579 bool val2 ;
43580 int ecode2 = 0 ;
43581 PyObject * obj0 = 0 ;
43582 PyObject * obj1 = 0 ;
43583 char * kwnames[] = {
43584 (char *) "self",(char *) "grow", NULL
43585 };
43586
43587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
43588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43589 if (!SWIG_IsOK(res1)) {
43590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43591 }
43592 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43593 if (obj1) {
43594 ecode2 = SWIG_AsVal_bool(obj1, &val2);
43595 if (!SWIG_IsOK(ecode2)) {
43596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
43597 }
43598 arg2 = static_cast< bool >(val2);
43599 }
43600 {
43601 PyThreadState* __tstate = wxPyBeginAllowThreads();
43602 (arg1)->SetPickerCtrlGrowable(arg2);
43603 wxPyEndAllowThreads(__tstate);
43604 if (PyErr_Occurred()) SWIG_fail;
43605 }
43606 resultobj = SWIG_Py_Void();
43607 return resultobj;
43608 fail:
43609 return NULL;
43610 }
43611
43612
43613 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43614 PyObject *resultobj = 0;
43615 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43616 bool result;
43617 void *argp1 = 0 ;
43618 int res1 = 0 ;
43619 PyObject *swig_obj[1] ;
43620
43621 if (!args) SWIG_fail;
43622 swig_obj[0] = args;
43623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43624 if (!SWIG_IsOK(res1)) {
43625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
43626 }
43627 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43628 {
43629 PyThreadState* __tstate = wxPyBeginAllowThreads();
43630 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
43631 wxPyEndAllowThreads(__tstate);
43632 if (PyErr_Occurred()) SWIG_fail;
43633 }
43634 {
43635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43636 }
43637 return resultobj;
43638 fail:
43639 return NULL;
43640 }
43641
43642
43643 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43644 PyObject *resultobj = 0;
43645 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43646 wxTextCtrl *result = 0 ;
43647 void *argp1 = 0 ;
43648 int res1 = 0 ;
43649 PyObject *swig_obj[1] ;
43650
43651 if (!args) SWIG_fail;
43652 swig_obj[0] = args;
43653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43654 if (!SWIG_IsOK(res1)) {
43655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43656 }
43657 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43658 {
43659 PyThreadState* __tstate = wxPyBeginAllowThreads();
43660 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
43661 wxPyEndAllowThreads(__tstate);
43662 if (PyErr_Occurred()) SWIG_fail;
43663 }
43664 {
43665 resultobj = wxPyMake_wxObject(result, 0);
43666 }
43667 return resultobj;
43668 fail:
43669 return NULL;
43670 }
43671
43672
43673 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43674 PyObject *resultobj = 0;
43675 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
43676 wxControl *result = 0 ;
43677 void *argp1 = 0 ;
43678 int res1 = 0 ;
43679 PyObject *swig_obj[1] ;
43680
43681 if (!args) SWIG_fail;
43682 swig_obj[0] = args;
43683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
43684 if (!SWIG_IsOK(res1)) {
43685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
43686 }
43687 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
43688 {
43689 PyThreadState* __tstate = wxPyBeginAllowThreads();
43690 result = (wxControl *)(arg1)->GetPickerCtrl();
43691 wxPyEndAllowThreads(__tstate);
43692 if (PyErr_Occurred()) SWIG_fail;
43693 }
43694 {
43695 resultobj = wxPyMake_wxObject(result, 0);
43696 }
43697 return resultobj;
43698 fail:
43699 return NULL;
43700 }
43701
43702
43703 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43704 PyObject *obj;
43705 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43706 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
43707 return SWIG_Py_Void();
43708 }
43709
43710 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43711 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43712 return 1;
43713 }
43714
43715
43716 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43717 PyObject *pyobj = 0;
43718
43719 {
43720 #if wxUSE_UNICODE
43721 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43722 #else
43723 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43724 #endif
43725 }
43726 return pyobj;
43727 }
43728
43729
43730 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43731 PyObject *resultobj = 0;
43732 wxWindow *arg1 = (wxWindow *) 0 ;
43733 int arg2 = (int) -1 ;
43734 wxColour const &arg3_defvalue = *wxBLACK ;
43735 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43736 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43737 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43738 wxSize const &arg5_defvalue = wxDefaultSize ;
43739 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43740 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43741 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43742 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43743 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43744 wxString *arg8 = (wxString *) &arg8_defvalue ;
43745 wxColourPickerCtrl *result = 0 ;
43746 void *argp1 = 0 ;
43747 int res1 = 0 ;
43748 int val2 ;
43749 int ecode2 = 0 ;
43750 wxColour temp3 ;
43751 wxPoint temp4 ;
43752 wxSize temp5 ;
43753 long val6 ;
43754 int ecode6 = 0 ;
43755 void *argp7 = 0 ;
43756 int res7 = 0 ;
43757 bool temp8 = false ;
43758 PyObject * obj0 = 0 ;
43759 PyObject * obj1 = 0 ;
43760 PyObject * obj2 = 0 ;
43761 PyObject * obj3 = 0 ;
43762 PyObject * obj4 = 0 ;
43763 PyObject * obj5 = 0 ;
43764 PyObject * obj6 = 0 ;
43765 PyObject * obj7 = 0 ;
43766 char * kwnames[] = {
43767 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43768 };
43769
43770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43772 if (!SWIG_IsOK(res1)) {
43773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43774 }
43775 arg1 = reinterpret_cast< wxWindow * >(argp1);
43776 if (obj1) {
43777 ecode2 = SWIG_AsVal_int(obj1, &val2);
43778 if (!SWIG_IsOK(ecode2)) {
43779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43780 }
43781 arg2 = static_cast< int >(val2);
43782 }
43783 if (obj2) {
43784 {
43785 arg3 = &temp3;
43786 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43787 }
43788 }
43789 if (obj3) {
43790 {
43791 arg4 = &temp4;
43792 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43793 }
43794 }
43795 if (obj4) {
43796 {
43797 arg5 = &temp5;
43798 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43799 }
43800 }
43801 if (obj5) {
43802 ecode6 = SWIG_AsVal_long(obj5, &val6);
43803 if (!SWIG_IsOK(ecode6)) {
43804 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43805 }
43806 arg6 = static_cast< long >(val6);
43807 }
43808 if (obj6) {
43809 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43810 if (!SWIG_IsOK(res7)) {
43811 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43812 }
43813 if (!argp7) {
43814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43815 }
43816 arg7 = reinterpret_cast< wxValidator * >(argp7);
43817 }
43818 if (obj7) {
43819 {
43820 arg8 = wxString_in_helper(obj7);
43821 if (arg8 == NULL) SWIG_fail;
43822 temp8 = true;
43823 }
43824 }
43825 {
43826 if (!wxPyCheckForApp()) SWIG_fail;
43827 PyThreadState* __tstate = wxPyBeginAllowThreads();
43828 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43829 wxPyEndAllowThreads(__tstate);
43830 if (PyErr_Occurred()) SWIG_fail;
43831 }
43832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43833 {
43834 if (temp8)
43835 delete arg8;
43836 }
43837 return resultobj;
43838 fail:
43839 {
43840 if (temp8)
43841 delete arg8;
43842 }
43843 return NULL;
43844 }
43845
43846
43847 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43848 PyObject *resultobj = 0;
43849 wxColourPickerCtrl *result = 0 ;
43850
43851 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43852 {
43853 if (!wxPyCheckForApp()) SWIG_fail;
43854 PyThreadState* __tstate = wxPyBeginAllowThreads();
43855 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43856 wxPyEndAllowThreads(__tstate);
43857 if (PyErr_Occurred()) SWIG_fail;
43858 }
43859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43860 return resultobj;
43861 fail:
43862 return NULL;
43863 }
43864
43865
43866 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43867 PyObject *resultobj = 0;
43868 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43869 wxWindow *arg2 = (wxWindow *) 0 ;
43870 int arg3 ;
43871 wxColour const &arg4_defvalue = *wxBLACK ;
43872 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43873 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43874 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43875 wxSize const &arg6_defvalue = wxDefaultSize ;
43876 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43877 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43878 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43879 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43880 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43881 wxString *arg9 = (wxString *) &arg9_defvalue ;
43882 bool result;
43883 void *argp1 = 0 ;
43884 int res1 = 0 ;
43885 void *argp2 = 0 ;
43886 int res2 = 0 ;
43887 int val3 ;
43888 int ecode3 = 0 ;
43889 wxColour temp4 ;
43890 wxPoint temp5 ;
43891 wxSize temp6 ;
43892 long val7 ;
43893 int ecode7 = 0 ;
43894 void *argp8 = 0 ;
43895 int res8 = 0 ;
43896 bool temp9 = false ;
43897 PyObject * obj0 = 0 ;
43898 PyObject * obj1 = 0 ;
43899 PyObject * obj2 = 0 ;
43900 PyObject * obj3 = 0 ;
43901 PyObject * obj4 = 0 ;
43902 PyObject * obj5 = 0 ;
43903 PyObject * obj6 = 0 ;
43904 PyObject * obj7 = 0 ;
43905 PyObject * obj8 = 0 ;
43906 char * kwnames[] = {
43907 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43908 };
43909
43910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43912 if (!SWIG_IsOK(res1)) {
43913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43914 }
43915 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43916 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43917 if (!SWIG_IsOK(res2)) {
43918 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43919 }
43920 arg2 = reinterpret_cast< wxWindow * >(argp2);
43921 ecode3 = SWIG_AsVal_int(obj2, &val3);
43922 if (!SWIG_IsOK(ecode3)) {
43923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43924 }
43925 arg3 = static_cast< int >(val3);
43926 if (obj3) {
43927 {
43928 arg4 = &temp4;
43929 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43930 }
43931 }
43932 if (obj4) {
43933 {
43934 arg5 = &temp5;
43935 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43936 }
43937 }
43938 if (obj5) {
43939 {
43940 arg6 = &temp6;
43941 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43942 }
43943 }
43944 if (obj6) {
43945 ecode7 = SWIG_AsVal_long(obj6, &val7);
43946 if (!SWIG_IsOK(ecode7)) {
43947 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43948 }
43949 arg7 = static_cast< long >(val7);
43950 }
43951 if (obj7) {
43952 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43953 if (!SWIG_IsOK(res8)) {
43954 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43955 }
43956 if (!argp8) {
43957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43958 }
43959 arg8 = reinterpret_cast< wxValidator * >(argp8);
43960 }
43961 if (obj8) {
43962 {
43963 arg9 = wxString_in_helper(obj8);
43964 if (arg9 == NULL) SWIG_fail;
43965 temp9 = true;
43966 }
43967 }
43968 {
43969 PyThreadState* __tstate = wxPyBeginAllowThreads();
43970 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43971 wxPyEndAllowThreads(__tstate);
43972 if (PyErr_Occurred()) SWIG_fail;
43973 }
43974 {
43975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43976 }
43977 {
43978 if (temp9)
43979 delete arg9;
43980 }
43981 return resultobj;
43982 fail:
43983 {
43984 if (temp9)
43985 delete arg9;
43986 }
43987 return NULL;
43988 }
43989
43990
43991 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43992 PyObject *resultobj = 0;
43993 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43994 wxColour result;
43995 void *argp1 = 0 ;
43996 int res1 = 0 ;
43997 PyObject *swig_obj[1] ;
43998
43999 if (!args) SWIG_fail;
44000 swig_obj[0] = args;
44001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
44002 if (!SWIG_IsOK(res1)) {
44003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
44004 }
44005 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
44006 {
44007 PyThreadState* __tstate = wxPyBeginAllowThreads();
44008 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
44009 wxPyEndAllowThreads(__tstate);
44010 if (PyErr_Occurred()) SWIG_fail;
44011 }
44012 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
44013 return resultobj;
44014 fail:
44015 return NULL;
44016 }
44017
44018
44019 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44020 PyObject *resultobj = 0;
44021 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
44022 wxColour *arg2 = 0 ;
44023 void *argp1 = 0 ;
44024 int res1 = 0 ;
44025 wxColour temp2 ;
44026 PyObject * obj0 = 0 ;
44027 PyObject * obj1 = 0 ;
44028 char * kwnames[] = {
44029 (char *) "self",(char *) "col", NULL
44030 };
44031
44032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
44033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
44034 if (!SWIG_IsOK(res1)) {
44035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
44036 }
44037 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
44038 {
44039 arg2 = &temp2;
44040 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
44041 }
44042 {
44043 PyThreadState* __tstate = wxPyBeginAllowThreads();
44044 (arg1)->SetColour((wxColour const &)*arg2);
44045 wxPyEndAllowThreads(__tstate);
44046 if (PyErr_Occurred()) SWIG_fail;
44047 }
44048 resultobj = SWIG_Py_Void();
44049 return resultobj;
44050 fail:
44051 return NULL;
44052 }
44053
44054
44055 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44056 PyObject *obj;
44057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44058 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
44059 return SWIG_Py_Void();
44060 }
44061
44062 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44063 return SWIG_Python_InitShadowInstance(args);
44064 }
44065
44066 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44067 PyObject *resultobj = 0;
44068 wxObject *arg1 = (wxObject *) 0 ;
44069 int arg2 ;
44070 wxColour *arg3 = 0 ;
44071 wxColourPickerEvent *result = 0 ;
44072 void *argp1 = 0 ;
44073 int res1 = 0 ;
44074 int val2 ;
44075 int ecode2 = 0 ;
44076 wxColour temp3 ;
44077 PyObject * obj0 = 0 ;
44078 PyObject * obj1 = 0 ;
44079 PyObject * obj2 = 0 ;
44080 char * kwnames[] = {
44081 (char *) "generator",(char *) "id",(char *) "col", NULL
44082 };
44083
44084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
44086 if (!SWIG_IsOK(res1)) {
44087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
44088 }
44089 arg1 = reinterpret_cast< wxObject * >(argp1);
44090 ecode2 = SWIG_AsVal_int(obj1, &val2);
44091 if (!SWIG_IsOK(ecode2)) {
44092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
44093 }
44094 arg2 = static_cast< int >(val2);
44095 {
44096 arg3 = &temp3;
44097 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
44098 }
44099 {
44100 PyThreadState* __tstate = wxPyBeginAllowThreads();
44101 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
44102 wxPyEndAllowThreads(__tstate);
44103 if (PyErr_Occurred()) SWIG_fail;
44104 }
44105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
44106 return resultobj;
44107 fail:
44108 return NULL;
44109 }
44110
44111
44112 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44113 PyObject *resultobj = 0;
44114 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
44115 wxColour result;
44116 void *argp1 = 0 ;
44117 int res1 = 0 ;
44118 PyObject *swig_obj[1] ;
44119
44120 if (!args) SWIG_fail;
44121 swig_obj[0] = args;
44122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
44123 if (!SWIG_IsOK(res1)) {
44124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
44125 }
44126 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
44127 {
44128 PyThreadState* __tstate = wxPyBeginAllowThreads();
44129 result = ((wxColourPickerEvent const *)arg1)->GetColour();
44130 wxPyEndAllowThreads(__tstate);
44131 if (PyErr_Occurred()) SWIG_fail;
44132 }
44133 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
44134 return resultobj;
44135 fail:
44136 return NULL;
44137 }
44138
44139
44140 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44141 PyObject *resultobj = 0;
44142 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
44143 wxColour *arg2 = 0 ;
44144 void *argp1 = 0 ;
44145 int res1 = 0 ;
44146 wxColour temp2 ;
44147 PyObject * obj0 = 0 ;
44148 PyObject * obj1 = 0 ;
44149 char * kwnames[] = {
44150 (char *) "self",(char *) "c", NULL
44151 };
44152
44153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
44154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
44155 if (!SWIG_IsOK(res1)) {
44156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
44157 }
44158 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
44159 {
44160 arg2 = &temp2;
44161 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
44162 }
44163 {
44164 PyThreadState* __tstate = wxPyBeginAllowThreads();
44165 (arg1)->SetColour((wxColour const &)*arg2);
44166 wxPyEndAllowThreads(__tstate);
44167 if (PyErr_Occurred()) SWIG_fail;
44168 }
44169 resultobj = SWIG_Py_Void();
44170 return resultobj;
44171 fail:
44172 return NULL;
44173 }
44174
44175
44176 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44177 PyObject *obj;
44178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44179 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
44180 return SWIG_Py_Void();
44181 }
44182
44183 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44184 return SWIG_Python_InitShadowInstance(args);
44185 }
44186
44187 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
44188 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
44189 return 1;
44190 }
44191
44192
44193 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
44194 PyObject *pyobj = 0;
44195
44196 {
44197 #if wxUSE_UNICODE
44198 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
44199 #else
44200 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
44201 #endif
44202 }
44203 return pyobj;
44204 }
44205
44206
44207 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
44208 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
44209 return 1;
44210 }
44211
44212
44213 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
44214 PyObject *pyobj = 0;
44215
44216 {
44217 #if wxUSE_UNICODE
44218 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
44219 #else
44220 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
44221 #endif
44222 }
44223 return pyobj;
44224 }
44225
44226
44227 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
44228 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
44229 return 1;
44230 }
44231
44232
44233 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
44234 PyObject *pyobj = 0;
44235
44236 {
44237 #if wxUSE_UNICODE
44238 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
44239 #else
44240 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
44241 #endif
44242 }
44243 return pyobj;
44244 }
44245
44246
44247 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
44248 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
44249 return 1;
44250 }
44251
44252
44253 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
44254 PyObject *pyobj = 0;
44255
44256 {
44257 #if wxUSE_UNICODE
44258 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
44259 #else
44260 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
44261 #endif
44262 }
44263 return pyobj;
44264 }
44265
44266
44267 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
44268 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
44269 return 1;
44270 }
44271
44272
44273 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
44274 PyObject *pyobj = 0;
44275
44276 {
44277 #if wxUSE_UNICODE
44278 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
44279 #else
44280 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
44281 #endif
44282 }
44283 return pyobj;
44284 }
44285
44286
44287 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44288 PyObject *resultobj = 0;
44289 wxWindow *arg1 = (wxWindow *) 0 ;
44290 int arg2 = (int) -1 ;
44291 wxString const &arg3_defvalue = wxPyEmptyString ;
44292 wxString *arg3 = (wxString *) &arg3_defvalue ;
44293 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
44294 wxString *arg4 = (wxString *) &arg4_defvalue ;
44295 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44296 wxString *arg5 = (wxString *) &arg5_defvalue ;
44297 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44298 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44299 wxSize const &arg7_defvalue = wxDefaultSize ;
44300 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44301 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
44302 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44303 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44304 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
44305 wxString *arg10 = (wxString *) &arg10_defvalue ;
44306 wxFilePickerCtrl *result = 0 ;
44307 void *argp1 = 0 ;
44308 int res1 = 0 ;
44309 int val2 ;
44310 int ecode2 = 0 ;
44311 bool temp3 = false ;
44312 bool temp4 = false ;
44313 bool temp5 = false ;
44314 wxPoint temp6 ;
44315 wxSize temp7 ;
44316 long val8 ;
44317 int ecode8 = 0 ;
44318 void *argp9 = 0 ;
44319 int res9 = 0 ;
44320 bool temp10 = false ;
44321 PyObject * obj0 = 0 ;
44322 PyObject * obj1 = 0 ;
44323 PyObject * obj2 = 0 ;
44324 PyObject * obj3 = 0 ;
44325 PyObject * obj4 = 0 ;
44326 PyObject * obj5 = 0 ;
44327 PyObject * obj6 = 0 ;
44328 PyObject * obj7 = 0 ;
44329 PyObject * obj8 = 0 ;
44330 PyObject * obj9 = 0 ;
44331 char * kwnames[] = {
44332 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44333 };
44334
44335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44337 if (!SWIG_IsOK(res1)) {
44338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44339 }
44340 arg1 = reinterpret_cast< wxWindow * >(argp1);
44341 if (obj1) {
44342 ecode2 = SWIG_AsVal_int(obj1, &val2);
44343 if (!SWIG_IsOK(ecode2)) {
44344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
44345 }
44346 arg2 = static_cast< int >(val2);
44347 }
44348 if (obj2) {
44349 {
44350 arg3 = wxString_in_helper(obj2);
44351 if (arg3 == NULL) SWIG_fail;
44352 temp3 = true;
44353 }
44354 }
44355 if (obj3) {
44356 {
44357 arg4 = wxString_in_helper(obj3);
44358 if (arg4 == NULL) SWIG_fail;
44359 temp4 = true;
44360 }
44361 }
44362 if (obj4) {
44363 {
44364 arg5 = wxString_in_helper(obj4);
44365 if (arg5 == NULL) SWIG_fail;
44366 temp5 = true;
44367 }
44368 }
44369 if (obj5) {
44370 {
44371 arg6 = &temp6;
44372 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44373 }
44374 }
44375 if (obj6) {
44376 {
44377 arg7 = &temp7;
44378 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44379 }
44380 }
44381 if (obj7) {
44382 ecode8 = SWIG_AsVal_long(obj7, &val8);
44383 if (!SWIG_IsOK(ecode8)) {
44384 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
44385 }
44386 arg8 = static_cast< long >(val8);
44387 }
44388 if (obj8) {
44389 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44390 if (!SWIG_IsOK(res9)) {
44391 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44392 }
44393 if (!argp9) {
44394 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
44395 }
44396 arg9 = reinterpret_cast< wxValidator * >(argp9);
44397 }
44398 if (obj9) {
44399 {
44400 arg10 = wxString_in_helper(obj9);
44401 if (arg10 == NULL) SWIG_fail;
44402 temp10 = true;
44403 }
44404 }
44405 {
44406 if (!wxPyCheckForApp()) SWIG_fail;
44407 PyThreadState* __tstate = wxPyBeginAllowThreads();
44408 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);
44409 wxPyEndAllowThreads(__tstate);
44410 if (PyErr_Occurred()) SWIG_fail;
44411 }
44412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
44413 {
44414 if (temp3)
44415 delete arg3;
44416 }
44417 {
44418 if (temp4)
44419 delete arg4;
44420 }
44421 {
44422 if (temp5)
44423 delete arg5;
44424 }
44425 {
44426 if (temp10)
44427 delete arg10;
44428 }
44429 return resultobj;
44430 fail:
44431 {
44432 if (temp3)
44433 delete arg3;
44434 }
44435 {
44436 if (temp4)
44437 delete arg4;
44438 }
44439 {
44440 if (temp5)
44441 delete arg5;
44442 }
44443 {
44444 if (temp10)
44445 delete arg10;
44446 }
44447 return NULL;
44448 }
44449
44450
44451 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44452 PyObject *resultobj = 0;
44453 wxFilePickerCtrl *result = 0 ;
44454
44455 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
44456 {
44457 if (!wxPyCheckForApp()) SWIG_fail;
44458 PyThreadState* __tstate = wxPyBeginAllowThreads();
44459 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
44460 wxPyEndAllowThreads(__tstate);
44461 if (PyErr_Occurred()) SWIG_fail;
44462 }
44463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
44464 return resultobj;
44465 fail:
44466 return NULL;
44467 }
44468
44469
44470 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44471 PyObject *resultobj = 0;
44472 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44473 wxWindow *arg2 = (wxWindow *) 0 ;
44474 int arg3 = (int) -1 ;
44475 wxString const &arg4_defvalue = wxPyEmptyString ;
44476 wxString *arg4 = (wxString *) &arg4_defvalue ;
44477 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
44478 wxString *arg5 = (wxString *) &arg5_defvalue ;
44479 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
44480 wxString *arg6 = (wxString *) &arg6_defvalue ;
44481 wxPoint const &arg7_defvalue = wxDefaultPosition ;
44482 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
44483 wxSize const &arg8_defvalue = wxDefaultSize ;
44484 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
44485 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
44486 wxValidator const &arg10_defvalue = wxDefaultValidator ;
44487 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
44488 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
44489 wxString *arg11 = (wxString *) &arg11_defvalue ;
44490 bool result;
44491 void *argp1 = 0 ;
44492 int res1 = 0 ;
44493 void *argp2 = 0 ;
44494 int res2 = 0 ;
44495 int val3 ;
44496 int ecode3 = 0 ;
44497 bool temp4 = false ;
44498 bool temp5 = false ;
44499 bool temp6 = false ;
44500 wxPoint temp7 ;
44501 wxSize temp8 ;
44502 long val9 ;
44503 int ecode9 = 0 ;
44504 void *argp10 = 0 ;
44505 int res10 = 0 ;
44506 bool temp11 = false ;
44507 PyObject * obj0 = 0 ;
44508 PyObject * obj1 = 0 ;
44509 PyObject * obj2 = 0 ;
44510 PyObject * obj3 = 0 ;
44511 PyObject * obj4 = 0 ;
44512 PyObject * obj5 = 0 ;
44513 PyObject * obj6 = 0 ;
44514 PyObject * obj7 = 0 ;
44515 PyObject * obj8 = 0 ;
44516 PyObject * obj9 = 0 ;
44517 PyObject * obj10 = 0 ;
44518 char * kwnames[] = {
44519 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44520 };
44521
44522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
44523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44524 if (!SWIG_IsOK(res1)) {
44525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44526 }
44527 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44528 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44529 if (!SWIG_IsOK(res2)) {
44530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44531 }
44532 arg2 = reinterpret_cast< wxWindow * >(argp2);
44533 if (obj2) {
44534 ecode3 = SWIG_AsVal_int(obj2, &val3);
44535 if (!SWIG_IsOK(ecode3)) {
44536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44537 }
44538 arg3 = static_cast< int >(val3);
44539 }
44540 if (obj3) {
44541 {
44542 arg4 = wxString_in_helper(obj3);
44543 if (arg4 == NULL) SWIG_fail;
44544 temp4 = true;
44545 }
44546 }
44547 if (obj4) {
44548 {
44549 arg5 = wxString_in_helper(obj4);
44550 if (arg5 == NULL) SWIG_fail;
44551 temp5 = true;
44552 }
44553 }
44554 if (obj5) {
44555 {
44556 arg6 = wxString_in_helper(obj5);
44557 if (arg6 == NULL) SWIG_fail;
44558 temp6 = true;
44559 }
44560 }
44561 if (obj6) {
44562 {
44563 arg7 = &temp7;
44564 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
44565 }
44566 }
44567 if (obj7) {
44568 {
44569 arg8 = &temp8;
44570 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
44571 }
44572 }
44573 if (obj8) {
44574 ecode9 = SWIG_AsVal_long(obj8, &val9);
44575 if (!SWIG_IsOK(ecode9)) {
44576 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
44577 }
44578 arg9 = static_cast< long >(val9);
44579 }
44580 if (obj9) {
44581 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
44582 if (!SWIG_IsOK(res10)) {
44583 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44584 }
44585 if (!argp10) {
44586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
44587 }
44588 arg10 = reinterpret_cast< wxValidator * >(argp10);
44589 }
44590 if (obj10) {
44591 {
44592 arg11 = wxString_in_helper(obj10);
44593 if (arg11 == NULL) SWIG_fail;
44594 temp11 = true;
44595 }
44596 }
44597 {
44598 PyThreadState* __tstate = wxPyBeginAllowThreads();
44599 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);
44600 wxPyEndAllowThreads(__tstate);
44601 if (PyErr_Occurred()) SWIG_fail;
44602 }
44603 {
44604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44605 }
44606 {
44607 if (temp4)
44608 delete arg4;
44609 }
44610 {
44611 if (temp5)
44612 delete arg5;
44613 }
44614 {
44615 if (temp6)
44616 delete arg6;
44617 }
44618 {
44619 if (temp11)
44620 delete arg11;
44621 }
44622 return resultobj;
44623 fail:
44624 {
44625 if (temp4)
44626 delete arg4;
44627 }
44628 {
44629 if (temp5)
44630 delete arg5;
44631 }
44632 {
44633 if (temp6)
44634 delete arg6;
44635 }
44636 {
44637 if (temp11)
44638 delete arg11;
44639 }
44640 return NULL;
44641 }
44642
44643
44644 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44645 PyObject *resultobj = 0;
44646 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44647 wxString result;
44648 void *argp1 = 0 ;
44649 int res1 = 0 ;
44650 PyObject *swig_obj[1] ;
44651
44652 if (!args) SWIG_fail;
44653 swig_obj[0] = args;
44654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44655 if (!SWIG_IsOK(res1)) {
44656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44657 }
44658 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44659 {
44660 PyThreadState* __tstate = wxPyBeginAllowThreads();
44661 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
44662 wxPyEndAllowThreads(__tstate);
44663 if (PyErr_Occurred()) SWIG_fail;
44664 }
44665 {
44666 #if wxUSE_UNICODE
44667 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44668 #else
44669 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44670 #endif
44671 }
44672 return resultobj;
44673 fail:
44674 return NULL;
44675 }
44676
44677
44678 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44679 PyObject *resultobj = 0;
44680 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44681 wxString *arg2 = 0 ;
44682 void *argp1 = 0 ;
44683 int res1 = 0 ;
44684 bool temp2 = false ;
44685 PyObject * obj0 = 0 ;
44686 PyObject * obj1 = 0 ;
44687 char * kwnames[] = {
44688 (char *) "self",(char *) "str", NULL
44689 };
44690
44691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44693 if (!SWIG_IsOK(res1)) {
44694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
44695 }
44696 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44697 {
44698 arg2 = wxString_in_helper(obj1);
44699 if (arg2 == NULL) SWIG_fail;
44700 temp2 = true;
44701 }
44702 {
44703 PyThreadState* __tstate = wxPyBeginAllowThreads();
44704 (arg1)->SetPath((wxString const &)*arg2);
44705 wxPyEndAllowThreads(__tstate);
44706 if (PyErr_Occurred()) SWIG_fail;
44707 }
44708 resultobj = SWIG_Py_Void();
44709 {
44710 if (temp2)
44711 delete arg2;
44712 }
44713 return resultobj;
44714 fail:
44715 {
44716 if (temp2)
44717 delete arg2;
44718 }
44719 return NULL;
44720 }
44721
44722
44723 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44724 PyObject *resultobj = 0;
44725 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44726 wxString *arg2 = 0 ;
44727 bool result;
44728 void *argp1 = 0 ;
44729 int res1 = 0 ;
44730 bool temp2 = false ;
44731 PyObject * obj0 = 0 ;
44732 PyObject * obj1 = 0 ;
44733 char * kwnames[] = {
44734 (char *) "self",(char *) "path", NULL
44735 };
44736
44737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44739 if (!SWIG_IsOK(res1)) {
44740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44741 }
44742 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44743 {
44744 arg2 = wxString_in_helper(obj1);
44745 if (arg2 == NULL) SWIG_fail;
44746 temp2 = true;
44747 }
44748 {
44749 PyThreadState* __tstate = wxPyBeginAllowThreads();
44750 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44751 wxPyEndAllowThreads(__tstate);
44752 if (PyErr_Occurred()) SWIG_fail;
44753 }
44754 {
44755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44756 }
44757 {
44758 if (temp2)
44759 delete arg2;
44760 }
44761 return resultobj;
44762 fail:
44763 {
44764 if (temp2)
44765 delete arg2;
44766 }
44767 return NULL;
44768 }
44769
44770
44771 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44772 PyObject *resultobj = 0;
44773 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44774 wxString result;
44775 void *argp1 = 0 ;
44776 int res1 = 0 ;
44777 PyObject *swig_obj[1] ;
44778
44779 if (!args) SWIG_fail;
44780 swig_obj[0] = args;
44781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44782 if (!SWIG_IsOK(res1)) {
44783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44784 }
44785 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44786 {
44787 PyThreadState* __tstate = wxPyBeginAllowThreads();
44788 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44789 wxPyEndAllowThreads(__tstate);
44790 if (PyErr_Occurred()) SWIG_fail;
44791 }
44792 {
44793 #if wxUSE_UNICODE
44794 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44795 #else
44796 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44797 #endif
44798 }
44799 return resultobj;
44800 fail:
44801 return NULL;
44802 }
44803
44804
44805 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44806 PyObject *obj;
44807 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44808 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44809 return SWIG_Py_Void();
44810 }
44811
44812 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44813 return SWIG_Python_InitShadowInstance(args);
44814 }
44815
44816 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44817 PyObject *resultobj = 0;
44818 wxWindow *arg1 = (wxWindow *) 0 ;
44819 int arg2 = (int) -1 ;
44820 wxString const &arg3_defvalue = wxPyEmptyString ;
44821 wxString *arg3 = (wxString *) &arg3_defvalue ;
44822 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44823 wxString *arg4 = (wxString *) &arg4_defvalue ;
44824 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44825 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44826 wxSize const &arg6_defvalue = wxDefaultSize ;
44827 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44828 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44829 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44830 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44831 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44832 wxString *arg9 = (wxString *) &arg9_defvalue ;
44833 wxDirPickerCtrl *result = 0 ;
44834 void *argp1 = 0 ;
44835 int res1 = 0 ;
44836 int val2 ;
44837 int ecode2 = 0 ;
44838 bool temp3 = false ;
44839 bool temp4 = false ;
44840 wxPoint temp5 ;
44841 wxSize temp6 ;
44842 long val7 ;
44843 int ecode7 = 0 ;
44844 void *argp8 = 0 ;
44845 int res8 = 0 ;
44846 bool temp9 = false ;
44847 PyObject * obj0 = 0 ;
44848 PyObject * obj1 = 0 ;
44849 PyObject * obj2 = 0 ;
44850 PyObject * obj3 = 0 ;
44851 PyObject * obj4 = 0 ;
44852 PyObject * obj5 = 0 ;
44853 PyObject * obj6 = 0 ;
44854 PyObject * obj7 = 0 ;
44855 PyObject * obj8 = 0 ;
44856 char * kwnames[] = {
44857 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44858 };
44859
44860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44862 if (!SWIG_IsOK(res1)) {
44863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44864 }
44865 arg1 = reinterpret_cast< wxWindow * >(argp1);
44866 if (obj1) {
44867 ecode2 = SWIG_AsVal_int(obj1, &val2);
44868 if (!SWIG_IsOK(ecode2)) {
44869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44870 }
44871 arg2 = static_cast< int >(val2);
44872 }
44873 if (obj2) {
44874 {
44875 arg3 = wxString_in_helper(obj2);
44876 if (arg3 == NULL) SWIG_fail;
44877 temp3 = true;
44878 }
44879 }
44880 if (obj3) {
44881 {
44882 arg4 = wxString_in_helper(obj3);
44883 if (arg4 == NULL) SWIG_fail;
44884 temp4 = true;
44885 }
44886 }
44887 if (obj4) {
44888 {
44889 arg5 = &temp5;
44890 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44891 }
44892 }
44893 if (obj5) {
44894 {
44895 arg6 = &temp6;
44896 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44897 }
44898 }
44899 if (obj6) {
44900 ecode7 = SWIG_AsVal_long(obj6, &val7);
44901 if (!SWIG_IsOK(ecode7)) {
44902 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44903 }
44904 arg7 = static_cast< long >(val7);
44905 }
44906 if (obj7) {
44907 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44908 if (!SWIG_IsOK(res8)) {
44909 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44910 }
44911 if (!argp8) {
44912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44913 }
44914 arg8 = reinterpret_cast< wxValidator * >(argp8);
44915 }
44916 if (obj8) {
44917 {
44918 arg9 = wxString_in_helper(obj8);
44919 if (arg9 == NULL) SWIG_fail;
44920 temp9 = true;
44921 }
44922 }
44923 {
44924 if (!wxPyCheckForApp()) SWIG_fail;
44925 PyThreadState* __tstate = wxPyBeginAllowThreads();
44926 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);
44927 wxPyEndAllowThreads(__tstate);
44928 if (PyErr_Occurred()) SWIG_fail;
44929 }
44930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44931 {
44932 if (temp3)
44933 delete arg3;
44934 }
44935 {
44936 if (temp4)
44937 delete arg4;
44938 }
44939 {
44940 if (temp9)
44941 delete arg9;
44942 }
44943 return resultobj;
44944 fail:
44945 {
44946 if (temp3)
44947 delete arg3;
44948 }
44949 {
44950 if (temp4)
44951 delete arg4;
44952 }
44953 {
44954 if (temp9)
44955 delete arg9;
44956 }
44957 return NULL;
44958 }
44959
44960
44961 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44962 PyObject *resultobj = 0;
44963 wxDirPickerCtrl *result = 0 ;
44964
44965 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44966 {
44967 if (!wxPyCheckForApp()) SWIG_fail;
44968 PyThreadState* __tstate = wxPyBeginAllowThreads();
44969 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44970 wxPyEndAllowThreads(__tstate);
44971 if (PyErr_Occurred()) SWIG_fail;
44972 }
44973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44974 return resultobj;
44975 fail:
44976 return NULL;
44977 }
44978
44979
44980 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44981 PyObject *resultobj = 0;
44982 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44983 wxWindow *arg2 = (wxWindow *) 0 ;
44984 int arg3 = (int) -1 ;
44985 wxString const &arg4_defvalue = wxPyEmptyString ;
44986 wxString *arg4 = (wxString *) &arg4_defvalue ;
44987 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44988 wxString *arg5 = (wxString *) &arg5_defvalue ;
44989 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44990 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44991 wxSize const &arg7_defvalue = wxDefaultSize ;
44992 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44993 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44994 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44995 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44996 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44997 wxString *arg10 = (wxString *) &arg10_defvalue ;
44998 bool result;
44999 void *argp1 = 0 ;
45000 int res1 = 0 ;
45001 void *argp2 = 0 ;
45002 int res2 = 0 ;
45003 int val3 ;
45004 int ecode3 = 0 ;
45005 bool temp4 = false ;
45006 bool temp5 = false ;
45007 wxPoint temp6 ;
45008 wxSize temp7 ;
45009 long val8 ;
45010 int ecode8 = 0 ;
45011 void *argp9 = 0 ;
45012 int res9 = 0 ;
45013 bool temp10 = false ;
45014 PyObject * obj0 = 0 ;
45015 PyObject * obj1 = 0 ;
45016 PyObject * obj2 = 0 ;
45017 PyObject * obj3 = 0 ;
45018 PyObject * obj4 = 0 ;
45019 PyObject * obj5 = 0 ;
45020 PyObject * obj6 = 0 ;
45021 PyObject * obj7 = 0 ;
45022 PyObject * obj8 = 0 ;
45023 PyObject * obj9 = 0 ;
45024 char * kwnames[] = {
45025 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45026 };
45027
45028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
45029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45030 if (!SWIG_IsOK(res1)) {
45031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
45032 }
45033 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45034 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45035 if (!SWIG_IsOK(res2)) {
45036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45037 }
45038 arg2 = reinterpret_cast< wxWindow * >(argp2);
45039 if (obj2) {
45040 ecode3 = SWIG_AsVal_int(obj2, &val3);
45041 if (!SWIG_IsOK(ecode3)) {
45042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45043 }
45044 arg3 = static_cast< int >(val3);
45045 }
45046 if (obj3) {
45047 {
45048 arg4 = wxString_in_helper(obj3);
45049 if (arg4 == NULL) SWIG_fail;
45050 temp4 = true;
45051 }
45052 }
45053 if (obj4) {
45054 {
45055 arg5 = wxString_in_helper(obj4);
45056 if (arg5 == NULL) SWIG_fail;
45057 temp5 = true;
45058 }
45059 }
45060 if (obj5) {
45061 {
45062 arg6 = &temp6;
45063 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
45064 }
45065 }
45066 if (obj6) {
45067 {
45068 arg7 = &temp7;
45069 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
45070 }
45071 }
45072 if (obj7) {
45073 ecode8 = SWIG_AsVal_long(obj7, &val8);
45074 if (!SWIG_IsOK(ecode8)) {
45075 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
45076 }
45077 arg8 = static_cast< long >(val8);
45078 }
45079 if (obj8) {
45080 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
45081 if (!SWIG_IsOK(res9)) {
45082 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
45083 }
45084 if (!argp9) {
45085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
45086 }
45087 arg9 = reinterpret_cast< wxValidator * >(argp9);
45088 }
45089 if (obj9) {
45090 {
45091 arg10 = wxString_in_helper(obj9);
45092 if (arg10 == NULL) SWIG_fail;
45093 temp10 = true;
45094 }
45095 }
45096 {
45097 PyThreadState* __tstate = wxPyBeginAllowThreads();
45098 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);
45099 wxPyEndAllowThreads(__tstate);
45100 if (PyErr_Occurred()) SWIG_fail;
45101 }
45102 {
45103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45104 }
45105 {
45106 if (temp4)
45107 delete arg4;
45108 }
45109 {
45110 if (temp5)
45111 delete arg5;
45112 }
45113 {
45114 if (temp10)
45115 delete arg10;
45116 }
45117 return resultobj;
45118 fail:
45119 {
45120 if (temp4)
45121 delete arg4;
45122 }
45123 {
45124 if (temp5)
45125 delete arg5;
45126 }
45127 {
45128 if (temp10)
45129 delete arg10;
45130 }
45131 return NULL;
45132 }
45133
45134
45135 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45136 PyObject *resultobj = 0;
45137 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45138 wxString result;
45139 void *argp1 = 0 ;
45140 int res1 = 0 ;
45141 PyObject *swig_obj[1] ;
45142
45143 if (!args) SWIG_fail;
45144 swig_obj[0] = args;
45145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45146 if (!SWIG_IsOK(res1)) {
45147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
45148 }
45149 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45150 {
45151 PyThreadState* __tstate = wxPyBeginAllowThreads();
45152 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
45153 wxPyEndAllowThreads(__tstate);
45154 if (PyErr_Occurred()) SWIG_fail;
45155 }
45156 {
45157 #if wxUSE_UNICODE
45158 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45159 #else
45160 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45161 #endif
45162 }
45163 return resultobj;
45164 fail:
45165 return NULL;
45166 }
45167
45168
45169 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45170 PyObject *resultobj = 0;
45171 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45172 wxString *arg2 = 0 ;
45173 void *argp1 = 0 ;
45174 int res1 = 0 ;
45175 bool temp2 = false ;
45176 PyObject * obj0 = 0 ;
45177 PyObject * obj1 = 0 ;
45178 char * kwnames[] = {
45179 (char *) "self",(char *) "str", NULL
45180 };
45181
45182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
45183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45184 if (!SWIG_IsOK(res1)) {
45185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
45186 }
45187 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45188 {
45189 arg2 = wxString_in_helper(obj1);
45190 if (arg2 == NULL) SWIG_fail;
45191 temp2 = true;
45192 }
45193 {
45194 PyThreadState* __tstate = wxPyBeginAllowThreads();
45195 (arg1)->SetPath((wxString const &)*arg2);
45196 wxPyEndAllowThreads(__tstate);
45197 if (PyErr_Occurred()) SWIG_fail;
45198 }
45199 resultobj = SWIG_Py_Void();
45200 {
45201 if (temp2)
45202 delete arg2;
45203 }
45204 return resultobj;
45205 fail:
45206 {
45207 if (temp2)
45208 delete arg2;
45209 }
45210 return NULL;
45211 }
45212
45213
45214 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45215 PyObject *resultobj = 0;
45216 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45217 wxString *arg2 = 0 ;
45218 bool result;
45219 void *argp1 = 0 ;
45220 int res1 = 0 ;
45221 bool temp2 = false ;
45222 PyObject * obj0 = 0 ;
45223 PyObject * obj1 = 0 ;
45224 char * kwnames[] = {
45225 (char *) "self",(char *) "path", NULL
45226 };
45227
45228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
45229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45230 if (!SWIG_IsOK(res1)) {
45231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
45232 }
45233 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45234 {
45235 arg2 = wxString_in_helper(obj1);
45236 if (arg2 == NULL) SWIG_fail;
45237 temp2 = true;
45238 }
45239 {
45240 PyThreadState* __tstate = wxPyBeginAllowThreads();
45241 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
45242 wxPyEndAllowThreads(__tstate);
45243 if (PyErr_Occurred()) SWIG_fail;
45244 }
45245 {
45246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45247 }
45248 {
45249 if (temp2)
45250 delete arg2;
45251 }
45252 return resultobj;
45253 fail:
45254 {
45255 if (temp2)
45256 delete arg2;
45257 }
45258 return NULL;
45259 }
45260
45261
45262 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45263 PyObject *resultobj = 0;
45264 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
45265 wxString result;
45266 void *argp1 = 0 ;
45267 int res1 = 0 ;
45268 PyObject *swig_obj[1] ;
45269
45270 if (!args) SWIG_fail;
45271 swig_obj[0] = args;
45272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
45273 if (!SWIG_IsOK(res1)) {
45274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
45275 }
45276 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
45277 {
45278 PyThreadState* __tstate = wxPyBeginAllowThreads();
45279 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
45280 wxPyEndAllowThreads(__tstate);
45281 if (PyErr_Occurred()) SWIG_fail;
45282 }
45283 {
45284 #if wxUSE_UNICODE
45285 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45286 #else
45287 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45288 #endif
45289 }
45290 return resultobj;
45291 fail:
45292 return NULL;
45293 }
45294
45295
45296 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45297 PyObject *obj;
45298 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45299 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
45300 return SWIG_Py_Void();
45301 }
45302
45303 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45304 return SWIG_Python_InitShadowInstance(args);
45305 }
45306
45307 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45308 PyObject *resultobj = 0;
45309 wxEventType arg1 ;
45310 wxObject *arg2 = (wxObject *) 0 ;
45311 int arg3 ;
45312 wxString *arg4 = 0 ;
45313 wxFileDirPickerEvent *result = 0 ;
45314 int val1 ;
45315 int ecode1 = 0 ;
45316 void *argp2 = 0 ;
45317 int res2 = 0 ;
45318 int val3 ;
45319 int ecode3 = 0 ;
45320 bool temp4 = false ;
45321 PyObject * obj0 = 0 ;
45322 PyObject * obj1 = 0 ;
45323 PyObject * obj2 = 0 ;
45324 PyObject * obj3 = 0 ;
45325 char * kwnames[] = {
45326 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
45327 };
45328
45329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
45330 ecode1 = SWIG_AsVal_int(obj0, &val1);
45331 if (!SWIG_IsOK(ecode1)) {
45332 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
45333 }
45334 arg1 = static_cast< wxEventType >(val1);
45335 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
45336 if (!SWIG_IsOK(res2)) {
45337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
45338 }
45339 arg2 = reinterpret_cast< wxObject * >(argp2);
45340 ecode3 = SWIG_AsVal_int(obj2, &val3);
45341 if (!SWIG_IsOK(ecode3)) {
45342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
45343 }
45344 arg3 = static_cast< int >(val3);
45345 {
45346 arg4 = wxString_in_helper(obj3);
45347 if (arg4 == NULL) SWIG_fail;
45348 temp4 = true;
45349 }
45350 {
45351 PyThreadState* __tstate = wxPyBeginAllowThreads();
45352 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
45353 wxPyEndAllowThreads(__tstate);
45354 if (PyErr_Occurred()) SWIG_fail;
45355 }
45356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
45357 {
45358 if (temp4)
45359 delete arg4;
45360 }
45361 return resultobj;
45362 fail:
45363 {
45364 if (temp4)
45365 delete arg4;
45366 }
45367 return NULL;
45368 }
45369
45370
45371 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45372 PyObject *resultobj = 0;
45373 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45374 wxString result;
45375 void *argp1 = 0 ;
45376 int res1 = 0 ;
45377 PyObject *swig_obj[1] ;
45378
45379 if (!args) SWIG_fail;
45380 swig_obj[0] = args;
45381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45382 if (!SWIG_IsOK(res1)) {
45383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
45384 }
45385 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45386 {
45387 PyThreadState* __tstate = wxPyBeginAllowThreads();
45388 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
45389 wxPyEndAllowThreads(__tstate);
45390 if (PyErr_Occurred()) SWIG_fail;
45391 }
45392 {
45393 #if wxUSE_UNICODE
45394 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
45395 #else
45396 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
45397 #endif
45398 }
45399 return resultobj;
45400 fail:
45401 return NULL;
45402 }
45403
45404
45405 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45406 PyObject *resultobj = 0;
45407 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
45408 wxString *arg2 = 0 ;
45409 void *argp1 = 0 ;
45410 int res1 = 0 ;
45411 bool temp2 = false ;
45412 PyObject * obj0 = 0 ;
45413 PyObject * obj1 = 0 ;
45414 char * kwnames[] = {
45415 (char *) "self",(char *) "p", NULL
45416 };
45417
45418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
45419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
45420 if (!SWIG_IsOK(res1)) {
45421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
45422 }
45423 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
45424 {
45425 arg2 = wxString_in_helper(obj1);
45426 if (arg2 == NULL) SWIG_fail;
45427 temp2 = true;
45428 }
45429 {
45430 PyThreadState* __tstate = wxPyBeginAllowThreads();
45431 (arg1)->SetPath((wxString const &)*arg2);
45432 wxPyEndAllowThreads(__tstate);
45433 if (PyErr_Occurred()) SWIG_fail;
45434 }
45435 resultobj = SWIG_Py_Void();
45436 {
45437 if (temp2)
45438 delete arg2;
45439 }
45440 return resultobj;
45441 fail:
45442 {
45443 if (temp2)
45444 delete arg2;
45445 }
45446 return NULL;
45447 }
45448
45449
45450 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45451 PyObject *obj;
45452 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45453 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
45454 return SWIG_Py_Void();
45455 }
45456
45457 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45458 return SWIG_Python_InitShadowInstance(args);
45459 }
45460
45461 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
45462 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
45463 return 1;
45464 }
45465
45466
45467 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
45468 PyObject *pyobj = 0;
45469
45470 {
45471 #if wxUSE_UNICODE
45472 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45473 #else
45474 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
45475 #endif
45476 }
45477 return pyobj;
45478 }
45479
45480
45481 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45482 PyObject *resultobj = 0;
45483 wxWindow *arg1 = (wxWindow *) 0 ;
45484 int arg2 = (int) -1 ;
45485 wxFont const &arg3_defvalue = wxNullFont ;
45486 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
45487 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45488 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45489 wxSize const &arg5_defvalue = wxDefaultSize ;
45490 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45491 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
45492 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45493 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45494 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
45495 wxString *arg8 = (wxString *) &arg8_defvalue ;
45496 wxFontPickerCtrl *result = 0 ;
45497 void *argp1 = 0 ;
45498 int res1 = 0 ;
45499 int val2 ;
45500 int ecode2 = 0 ;
45501 void *argp3 = 0 ;
45502 int res3 = 0 ;
45503 wxPoint temp4 ;
45504 wxSize temp5 ;
45505 long val6 ;
45506 int ecode6 = 0 ;
45507 void *argp7 = 0 ;
45508 int res7 = 0 ;
45509 bool temp8 = false ;
45510 PyObject * obj0 = 0 ;
45511 PyObject * obj1 = 0 ;
45512 PyObject * obj2 = 0 ;
45513 PyObject * obj3 = 0 ;
45514 PyObject * obj4 = 0 ;
45515 PyObject * obj5 = 0 ;
45516 PyObject * obj6 = 0 ;
45517 PyObject * obj7 = 0 ;
45518 char * kwnames[] = {
45519 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45520 };
45521
45522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45524 if (!SWIG_IsOK(res1)) {
45525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
45526 }
45527 arg1 = reinterpret_cast< wxWindow * >(argp1);
45528 if (obj1) {
45529 ecode2 = SWIG_AsVal_int(obj1, &val2);
45530 if (!SWIG_IsOK(ecode2)) {
45531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
45532 }
45533 arg2 = static_cast< int >(val2);
45534 }
45535 if (obj2) {
45536 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45537 if (!SWIG_IsOK(res3)) {
45538 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45539 }
45540 if (!argp3) {
45541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
45542 }
45543 arg3 = reinterpret_cast< wxFont * >(argp3);
45544 }
45545 if (obj3) {
45546 {
45547 arg4 = &temp4;
45548 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45549 }
45550 }
45551 if (obj4) {
45552 {
45553 arg5 = &temp5;
45554 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45555 }
45556 }
45557 if (obj5) {
45558 ecode6 = SWIG_AsVal_long(obj5, &val6);
45559 if (!SWIG_IsOK(ecode6)) {
45560 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
45561 }
45562 arg6 = static_cast< long >(val6);
45563 }
45564 if (obj6) {
45565 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45566 if (!SWIG_IsOK(res7)) {
45567 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45568 }
45569 if (!argp7) {
45570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
45571 }
45572 arg7 = reinterpret_cast< wxValidator * >(argp7);
45573 }
45574 if (obj7) {
45575 {
45576 arg8 = wxString_in_helper(obj7);
45577 if (arg8 == NULL) SWIG_fail;
45578 temp8 = true;
45579 }
45580 }
45581 {
45582 if (!wxPyCheckForApp()) SWIG_fail;
45583 PyThreadState* __tstate = wxPyBeginAllowThreads();
45584 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45585 wxPyEndAllowThreads(__tstate);
45586 if (PyErr_Occurred()) SWIG_fail;
45587 }
45588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
45589 {
45590 if (temp8)
45591 delete arg8;
45592 }
45593 return resultobj;
45594 fail:
45595 {
45596 if (temp8)
45597 delete arg8;
45598 }
45599 return NULL;
45600 }
45601
45602
45603 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45604 PyObject *resultobj = 0;
45605 wxFontPickerCtrl *result = 0 ;
45606
45607 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
45608 {
45609 if (!wxPyCheckForApp()) SWIG_fail;
45610 PyThreadState* __tstate = wxPyBeginAllowThreads();
45611 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
45612 wxPyEndAllowThreads(__tstate);
45613 if (PyErr_Occurred()) SWIG_fail;
45614 }
45615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
45616 return resultobj;
45617 fail:
45618 return NULL;
45619 }
45620
45621
45622 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45623 PyObject *resultobj = 0;
45624 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45625 wxWindow *arg2 = (wxWindow *) 0 ;
45626 int arg3 = (int) -1 ;
45627 wxFont const &arg4_defvalue = wxNullFont ;
45628 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
45629 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45630 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45631 wxSize const &arg6_defvalue = wxDefaultSize ;
45632 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45633 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
45634 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45635 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45636 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
45637 wxString *arg9 = (wxString *) &arg9_defvalue ;
45638 bool result;
45639 void *argp1 = 0 ;
45640 int res1 = 0 ;
45641 void *argp2 = 0 ;
45642 int res2 = 0 ;
45643 int val3 ;
45644 int ecode3 = 0 ;
45645 void *argp4 = 0 ;
45646 int res4 = 0 ;
45647 wxPoint temp5 ;
45648 wxSize temp6 ;
45649 long val7 ;
45650 int ecode7 = 0 ;
45651 void *argp8 = 0 ;
45652 int res8 = 0 ;
45653 bool temp9 = false ;
45654 PyObject * obj0 = 0 ;
45655 PyObject * obj1 = 0 ;
45656 PyObject * obj2 = 0 ;
45657 PyObject * obj3 = 0 ;
45658 PyObject * obj4 = 0 ;
45659 PyObject * obj5 = 0 ;
45660 PyObject * obj6 = 0 ;
45661 PyObject * obj7 = 0 ;
45662 PyObject * obj8 = 0 ;
45663 char * kwnames[] = {
45664 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
45665 };
45666
45667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45669 if (!SWIG_IsOK(res1)) {
45670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45671 }
45672 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45673 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45674 if (!SWIG_IsOK(res2)) {
45675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45676 }
45677 arg2 = reinterpret_cast< wxWindow * >(argp2);
45678 if (obj2) {
45679 ecode3 = SWIG_AsVal_int(obj2, &val3);
45680 if (!SWIG_IsOK(ecode3)) {
45681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
45682 }
45683 arg3 = static_cast< int >(val3);
45684 }
45685 if (obj3) {
45686 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
45687 if (!SWIG_IsOK(res4)) {
45688 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45689 }
45690 if (!argp4) {
45691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
45692 }
45693 arg4 = reinterpret_cast< wxFont * >(argp4);
45694 }
45695 if (obj4) {
45696 {
45697 arg5 = &temp5;
45698 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45699 }
45700 }
45701 if (obj5) {
45702 {
45703 arg6 = &temp6;
45704 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45705 }
45706 }
45707 if (obj6) {
45708 ecode7 = SWIG_AsVal_long(obj6, &val7);
45709 if (!SWIG_IsOK(ecode7)) {
45710 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45711 }
45712 arg7 = static_cast< long >(val7);
45713 }
45714 if (obj7) {
45715 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45716 if (!SWIG_IsOK(res8)) {
45717 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45718 }
45719 if (!argp8) {
45720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45721 }
45722 arg8 = reinterpret_cast< wxValidator * >(argp8);
45723 }
45724 if (obj8) {
45725 {
45726 arg9 = wxString_in_helper(obj8);
45727 if (arg9 == NULL) SWIG_fail;
45728 temp9 = true;
45729 }
45730 }
45731 {
45732 PyThreadState* __tstate = wxPyBeginAllowThreads();
45733 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45734 wxPyEndAllowThreads(__tstate);
45735 if (PyErr_Occurred()) SWIG_fail;
45736 }
45737 {
45738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45739 }
45740 {
45741 if (temp9)
45742 delete arg9;
45743 }
45744 return resultobj;
45745 fail:
45746 {
45747 if (temp9)
45748 delete arg9;
45749 }
45750 return NULL;
45751 }
45752
45753
45754 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45755 PyObject *resultobj = 0;
45756 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45757 wxFont result;
45758 void *argp1 = 0 ;
45759 int res1 = 0 ;
45760 PyObject *swig_obj[1] ;
45761
45762 if (!args) SWIG_fail;
45763 swig_obj[0] = args;
45764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45765 if (!SWIG_IsOK(res1)) {
45766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45767 }
45768 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45769 {
45770 PyThreadState* __tstate = wxPyBeginAllowThreads();
45771 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45772 wxPyEndAllowThreads(__tstate);
45773 if (PyErr_Occurred()) SWIG_fail;
45774 }
45775 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45776 return resultobj;
45777 fail:
45778 return NULL;
45779 }
45780
45781
45782 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45783 PyObject *resultobj = 0;
45784 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45785 wxFont *arg2 = 0 ;
45786 void *argp1 = 0 ;
45787 int res1 = 0 ;
45788 void *argp2 = 0 ;
45789 int res2 = 0 ;
45790 PyObject * obj0 = 0 ;
45791 PyObject * obj1 = 0 ;
45792 char * kwnames[] = {
45793 (char *) "self",(char *) "f", NULL
45794 };
45795
45796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45798 if (!SWIG_IsOK(res1)) {
45799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45800 }
45801 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45802 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45803 if (!SWIG_IsOK(res2)) {
45804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45805 }
45806 if (!argp2) {
45807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45808 }
45809 arg2 = reinterpret_cast< wxFont * >(argp2);
45810 {
45811 PyThreadState* __tstate = wxPyBeginAllowThreads();
45812 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45813 wxPyEndAllowThreads(__tstate);
45814 if (PyErr_Occurred()) SWIG_fail;
45815 }
45816 resultobj = SWIG_Py_Void();
45817 return resultobj;
45818 fail:
45819 return NULL;
45820 }
45821
45822
45823 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45824 PyObject *resultobj = 0;
45825 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45826 unsigned int arg2 ;
45827 void *argp1 = 0 ;
45828 int res1 = 0 ;
45829 unsigned int val2 ;
45830 int ecode2 = 0 ;
45831 PyObject * obj0 = 0 ;
45832 PyObject * obj1 = 0 ;
45833 char * kwnames[] = {
45834 (char *) "self",(char *) "max", NULL
45835 };
45836
45837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45839 if (!SWIG_IsOK(res1)) {
45840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45841 }
45842 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45843 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45844 if (!SWIG_IsOK(ecode2)) {
45845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45846 }
45847 arg2 = static_cast< unsigned int >(val2);
45848 {
45849 PyThreadState* __tstate = wxPyBeginAllowThreads();
45850 (arg1)->SetMaxPointSize(arg2);
45851 wxPyEndAllowThreads(__tstate);
45852 if (PyErr_Occurred()) SWIG_fail;
45853 }
45854 resultobj = SWIG_Py_Void();
45855 return resultobj;
45856 fail:
45857 return NULL;
45858 }
45859
45860
45861 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45862 PyObject *resultobj = 0;
45863 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45864 unsigned int result;
45865 void *argp1 = 0 ;
45866 int res1 = 0 ;
45867 PyObject *swig_obj[1] ;
45868
45869 if (!args) SWIG_fail;
45870 swig_obj[0] = args;
45871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45872 if (!SWIG_IsOK(res1)) {
45873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45874 }
45875 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45876 {
45877 PyThreadState* __tstate = wxPyBeginAllowThreads();
45878 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45879 wxPyEndAllowThreads(__tstate);
45880 if (PyErr_Occurred()) SWIG_fail;
45881 }
45882 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45883 return resultobj;
45884 fail:
45885 return NULL;
45886 }
45887
45888
45889 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45890 PyObject *obj;
45891 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45892 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45893 return SWIG_Py_Void();
45894 }
45895
45896 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45897 return SWIG_Python_InitShadowInstance(args);
45898 }
45899
45900 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45901 PyObject *resultobj = 0;
45902 wxObject *arg1 = (wxObject *) 0 ;
45903 int arg2 ;
45904 wxFont *arg3 = 0 ;
45905 wxFontPickerEvent *result = 0 ;
45906 void *argp1 = 0 ;
45907 int res1 = 0 ;
45908 int val2 ;
45909 int ecode2 = 0 ;
45910 void *argp3 = 0 ;
45911 int res3 = 0 ;
45912 PyObject * obj0 = 0 ;
45913 PyObject * obj1 = 0 ;
45914 PyObject * obj2 = 0 ;
45915 char * kwnames[] = {
45916 (char *) "generator",(char *) "id",(char *) "f", NULL
45917 };
45918
45919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45921 if (!SWIG_IsOK(res1)) {
45922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45923 }
45924 arg1 = reinterpret_cast< wxObject * >(argp1);
45925 ecode2 = SWIG_AsVal_int(obj1, &val2);
45926 if (!SWIG_IsOK(ecode2)) {
45927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45928 }
45929 arg2 = static_cast< int >(val2);
45930 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45931 if (!SWIG_IsOK(res3)) {
45932 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45933 }
45934 if (!argp3) {
45935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45936 }
45937 arg3 = reinterpret_cast< wxFont * >(argp3);
45938 {
45939 PyThreadState* __tstate = wxPyBeginAllowThreads();
45940 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45941 wxPyEndAllowThreads(__tstate);
45942 if (PyErr_Occurred()) SWIG_fail;
45943 }
45944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45945 return resultobj;
45946 fail:
45947 return NULL;
45948 }
45949
45950
45951 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45952 PyObject *resultobj = 0;
45953 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45954 wxFont result;
45955 void *argp1 = 0 ;
45956 int res1 = 0 ;
45957 PyObject *swig_obj[1] ;
45958
45959 if (!args) SWIG_fail;
45960 swig_obj[0] = args;
45961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45962 if (!SWIG_IsOK(res1)) {
45963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45964 }
45965 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45966 {
45967 PyThreadState* __tstate = wxPyBeginAllowThreads();
45968 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45969 wxPyEndAllowThreads(__tstate);
45970 if (PyErr_Occurred()) SWIG_fail;
45971 }
45972 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45973 return resultobj;
45974 fail:
45975 return NULL;
45976 }
45977
45978
45979 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45980 PyObject *resultobj = 0;
45981 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45982 wxFont *arg2 = 0 ;
45983 void *argp1 = 0 ;
45984 int res1 = 0 ;
45985 void *argp2 = 0 ;
45986 int res2 = 0 ;
45987 PyObject * obj0 = 0 ;
45988 PyObject * obj1 = 0 ;
45989 char * kwnames[] = {
45990 (char *) "self",(char *) "c", NULL
45991 };
45992
45993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45995 if (!SWIG_IsOK(res1)) {
45996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45997 }
45998 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
46000 if (!SWIG_IsOK(res2)) {
46001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
46002 }
46003 if (!argp2) {
46004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
46005 }
46006 arg2 = reinterpret_cast< wxFont * >(argp2);
46007 {
46008 PyThreadState* __tstate = wxPyBeginAllowThreads();
46009 (arg1)->SetFont((wxFont const &)*arg2);
46010 wxPyEndAllowThreads(__tstate);
46011 if (PyErr_Occurred()) SWIG_fail;
46012 }
46013 resultobj = SWIG_Py_Void();
46014 return resultobj;
46015 fail:
46016 return NULL;
46017 }
46018
46019
46020 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46021 PyObject *obj;
46022 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46023 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
46024 return SWIG_Py_Void();
46025 }
46026
46027 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46028 return SWIG_Python_InitShadowInstance(args);
46029 }
46030
46031 SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
46032 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
46033 return 1;
46034 }
46035
46036
46037 SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
46038 PyObject *pyobj = 0;
46039
46040 {
46041 #if wxUSE_UNICODE
46042 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
46043 #else
46044 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
46045 #endif
46046 }
46047 return pyobj;
46048 }
46049
46050
46051 SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46052 PyObject *resultobj = 0;
46053 wxWindow *arg1 = (wxWindow *) 0 ;
46054 int arg2 = (int) -1 ;
46055 wxString const &arg3_defvalue = wxPyEmptyString ;
46056 wxString *arg3 = (wxString *) &arg3_defvalue ;
46057 wxPoint const &arg4_defvalue = wxDefaultPosition ;
46058 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
46059 wxSize const &arg5_defvalue = wxDefaultSize ;
46060 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
46061 long arg6 = (long) wxCP_DEFAULT_STYLE ;
46062 wxValidator const &arg7_defvalue = wxDefaultValidator ;
46063 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
46064 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
46065 wxString *arg8 = (wxString *) &arg8_defvalue ;
46066 wxCollapsiblePane *result = 0 ;
46067 void *argp1 = 0 ;
46068 int res1 = 0 ;
46069 int val2 ;
46070 int ecode2 = 0 ;
46071 bool temp3 = false ;
46072 wxPoint temp4 ;
46073 wxSize temp5 ;
46074 long val6 ;
46075 int ecode6 = 0 ;
46076 void *argp7 = 0 ;
46077 int res7 = 0 ;
46078 bool temp8 = false ;
46079 PyObject * obj0 = 0 ;
46080 PyObject * obj1 = 0 ;
46081 PyObject * obj2 = 0 ;
46082 PyObject * obj3 = 0 ;
46083 PyObject * obj4 = 0 ;
46084 PyObject * obj5 = 0 ;
46085 PyObject * obj6 = 0 ;
46086 PyObject * obj7 = 0 ;
46087 char * kwnames[] = {
46088 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
46089 };
46090
46091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46093 if (!SWIG_IsOK(res1)) {
46094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
46095 }
46096 arg1 = reinterpret_cast< wxWindow * >(argp1);
46097 if (obj1) {
46098 ecode2 = SWIG_AsVal_int(obj1, &val2);
46099 if (!SWIG_IsOK(ecode2)) {
46100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
46101 }
46102 arg2 = static_cast< int >(val2);
46103 }
46104 if (obj2) {
46105 {
46106 arg3 = wxString_in_helper(obj2);
46107 if (arg3 == NULL) SWIG_fail;
46108 temp3 = true;
46109 }
46110 }
46111 if (obj3) {
46112 {
46113 arg4 = &temp4;
46114 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46115 }
46116 }
46117 if (obj4) {
46118 {
46119 arg5 = &temp5;
46120 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46121 }
46122 }
46123 if (obj5) {
46124 ecode6 = SWIG_AsVal_long(obj5, &val6);
46125 if (!SWIG_IsOK(ecode6)) {
46126 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
46127 }
46128 arg6 = static_cast< long >(val6);
46129 }
46130 if (obj6) {
46131 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46132 if (!SWIG_IsOK(res7)) {
46133 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
46134 }
46135 if (!argp7) {
46136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
46137 }
46138 arg7 = reinterpret_cast< wxValidator * >(argp7);
46139 }
46140 if (obj7) {
46141 {
46142 arg8 = wxString_in_helper(obj7);
46143 if (arg8 == NULL) SWIG_fail;
46144 temp8 = true;
46145 }
46146 }
46147 {
46148 if (!wxPyCheckForApp()) SWIG_fail;
46149 PyThreadState* __tstate = wxPyBeginAllowThreads();
46150 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46151 wxPyEndAllowThreads(__tstate);
46152 if (PyErr_Occurred()) SWIG_fail;
46153 }
46154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
46155 {
46156 if (temp3)
46157 delete arg3;
46158 }
46159 {
46160 if (temp8)
46161 delete arg8;
46162 }
46163 return resultobj;
46164 fail:
46165 {
46166 if (temp3)
46167 delete arg3;
46168 }
46169 {
46170 if (temp8)
46171 delete arg8;
46172 }
46173 return NULL;
46174 }
46175
46176
46177 SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46178 PyObject *resultobj = 0;
46179 wxCollapsiblePane *result = 0 ;
46180
46181 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
46182 {
46183 if (!wxPyCheckForApp()) SWIG_fail;
46184 PyThreadState* __tstate = wxPyBeginAllowThreads();
46185 result = (wxCollapsiblePane *)new wxCollapsiblePane();
46186 wxPyEndAllowThreads(__tstate);
46187 if (PyErr_Occurred()) SWIG_fail;
46188 }
46189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
46190 return resultobj;
46191 fail:
46192 return NULL;
46193 }
46194
46195
46196 SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46197 PyObject *resultobj = 0;
46198 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46199 wxWindow *arg2 = (wxWindow *) 0 ;
46200 int arg3 = (int) -1 ;
46201 wxString const &arg4_defvalue = wxPyEmptyString ;
46202 wxString *arg4 = (wxString *) &arg4_defvalue ;
46203 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46204 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46205 wxSize const &arg6_defvalue = wxDefaultSize ;
46206 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46207 long arg7 = (long) wxCP_DEFAULT_STYLE ;
46208 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46209 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46210 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
46211 wxString *arg9 = (wxString *) &arg9_defvalue ;
46212 bool result;
46213 void *argp1 = 0 ;
46214 int res1 = 0 ;
46215 void *argp2 = 0 ;
46216 int res2 = 0 ;
46217 int val3 ;
46218 int ecode3 = 0 ;
46219 bool temp4 = false ;
46220 wxPoint temp5 ;
46221 wxSize temp6 ;
46222 long val7 ;
46223 int ecode7 = 0 ;
46224 void *argp8 = 0 ;
46225 int res8 = 0 ;
46226 bool temp9 = false ;
46227 PyObject * obj0 = 0 ;
46228 PyObject * obj1 = 0 ;
46229 PyObject * obj2 = 0 ;
46230 PyObject * obj3 = 0 ;
46231 PyObject * obj4 = 0 ;
46232 PyObject * obj5 = 0 ;
46233 PyObject * obj6 = 0 ;
46234 PyObject * obj7 = 0 ;
46235 PyObject * obj8 = 0 ;
46236 char * kwnames[] = {
46237 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
46238 };
46239
46240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46242 if (!SWIG_IsOK(res1)) {
46243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46244 }
46245 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46246 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46247 if (!SWIG_IsOK(res2)) {
46248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46249 }
46250 arg2 = reinterpret_cast< wxWindow * >(argp2);
46251 if (obj2) {
46252 ecode3 = SWIG_AsVal_int(obj2, &val3);
46253 if (!SWIG_IsOK(ecode3)) {
46254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
46255 }
46256 arg3 = static_cast< int >(val3);
46257 }
46258 if (obj3) {
46259 {
46260 arg4 = wxString_in_helper(obj3);
46261 if (arg4 == NULL) SWIG_fail;
46262 temp4 = true;
46263 }
46264 }
46265 if (obj4) {
46266 {
46267 arg5 = &temp5;
46268 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46269 }
46270 }
46271 if (obj5) {
46272 {
46273 arg6 = &temp6;
46274 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46275 }
46276 }
46277 if (obj6) {
46278 ecode7 = SWIG_AsVal_long(obj6, &val7);
46279 if (!SWIG_IsOK(ecode7)) {
46280 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
46281 }
46282 arg7 = static_cast< long >(val7);
46283 }
46284 if (obj7) {
46285 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46286 if (!SWIG_IsOK(res8)) {
46287 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46288 }
46289 if (!argp8) {
46290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46291 }
46292 arg8 = reinterpret_cast< wxValidator * >(argp8);
46293 }
46294 if (obj8) {
46295 {
46296 arg9 = wxString_in_helper(obj8);
46297 if (arg9 == NULL) SWIG_fail;
46298 temp9 = true;
46299 }
46300 }
46301 {
46302 PyThreadState* __tstate = wxPyBeginAllowThreads();
46303 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46304 wxPyEndAllowThreads(__tstate);
46305 if (PyErr_Occurred()) SWIG_fail;
46306 }
46307 {
46308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46309 }
46310 {
46311 if (temp4)
46312 delete arg4;
46313 }
46314 {
46315 if (temp9)
46316 delete arg9;
46317 }
46318 return resultobj;
46319 fail:
46320 {
46321 if (temp4)
46322 delete arg4;
46323 }
46324 {
46325 if (temp9)
46326 delete arg9;
46327 }
46328 return NULL;
46329 }
46330
46331
46332 SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46333 PyObject *resultobj = 0;
46334 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46335 bool arg2 = (bool) true ;
46336 void *argp1 = 0 ;
46337 int res1 = 0 ;
46338 bool val2 ;
46339 int ecode2 = 0 ;
46340 PyObject * obj0 = 0 ;
46341 PyObject * obj1 = 0 ;
46342 char * kwnames[] = {
46343 (char *) "self",(char *) "collapse", NULL
46344 };
46345
46346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
46347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46348 if (!SWIG_IsOK(res1)) {
46349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46350 }
46351 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46352 if (obj1) {
46353 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46354 if (!SWIG_IsOK(ecode2)) {
46355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
46356 }
46357 arg2 = static_cast< bool >(val2);
46358 }
46359 {
46360 PyThreadState* __tstate = wxPyBeginAllowThreads();
46361 (arg1)->Collapse(arg2);
46362 wxPyEndAllowThreads(__tstate);
46363 if (PyErr_Occurred()) SWIG_fail;
46364 }
46365 resultobj = SWIG_Py_Void();
46366 return resultobj;
46367 fail:
46368 return NULL;
46369 }
46370
46371
46372 SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46373 PyObject *resultobj = 0;
46374 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46375 void *argp1 = 0 ;
46376 int res1 = 0 ;
46377 PyObject *swig_obj[1] ;
46378
46379 if (!args) SWIG_fail;
46380 swig_obj[0] = args;
46381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46382 if (!SWIG_IsOK(res1)) {
46383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
46384 }
46385 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46386 {
46387 PyThreadState* __tstate = wxPyBeginAllowThreads();
46388 (arg1)->Expand();
46389 wxPyEndAllowThreads(__tstate);
46390 if (PyErr_Occurred()) SWIG_fail;
46391 }
46392 resultobj = SWIG_Py_Void();
46393 return resultobj;
46394 fail:
46395 return NULL;
46396 }
46397
46398
46399 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46400 PyObject *resultobj = 0;
46401 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46402 bool result;
46403 void *argp1 = 0 ;
46404 int res1 = 0 ;
46405 PyObject *swig_obj[1] ;
46406
46407 if (!args) SWIG_fail;
46408 swig_obj[0] = args;
46409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46410 if (!SWIG_IsOK(res1)) {
46411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46412 }
46413 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46414 {
46415 PyThreadState* __tstate = wxPyBeginAllowThreads();
46416 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
46417 wxPyEndAllowThreads(__tstate);
46418 if (PyErr_Occurred()) SWIG_fail;
46419 }
46420 {
46421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46422 }
46423 return resultobj;
46424 fail:
46425 return NULL;
46426 }
46427
46428
46429 SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46430 PyObject *resultobj = 0;
46431 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46432 bool result;
46433 void *argp1 = 0 ;
46434 int res1 = 0 ;
46435 PyObject *swig_obj[1] ;
46436
46437 if (!args) SWIG_fail;
46438 swig_obj[0] = args;
46439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46440 if (!SWIG_IsOK(res1)) {
46441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46442 }
46443 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46444 {
46445 PyThreadState* __tstate = wxPyBeginAllowThreads();
46446 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
46447 wxPyEndAllowThreads(__tstate);
46448 if (PyErr_Occurred()) SWIG_fail;
46449 }
46450 {
46451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46452 }
46453 return resultobj;
46454 fail:
46455 return NULL;
46456 }
46457
46458
46459 SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46460 PyObject *resultobj = 0;
46461 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
46462 wxWindow *result = 0 ;
46463 void *argp1 = 0 ;
46464 int res1 = 0 ;
46465 PyObject *swig_obj[1] ;
46466
46467 if (!args) SWIG_fail;
46468 swig_obj[0] = args;
46469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
46470 if (!SWIG_IsOK(res1)) {
46471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
46472 }
46473 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
46474 {
46475 PyThreadState* __tstate = wxPyBeginAllowThreads();
46476 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
46477 wxPyEndAllowThreads(__tstate);
46478 if (PyErr_Occurred()) SWIG_fail;
46479 }
46480 {
46481 resultobj = wxPyMake_wxObject(result, 0);
46482 }
46483 return resultobj;
46484 fail:
46485 return NULL;
46486 }
46487
46488
46489 SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46490 PyObject *obj;
46491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46492 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
46493 return SWIG_Py_Void();
46494 }
46495
46496 SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46497 return SWIG_Python_InitShadowInstance(args);
46498 }
46499
46500 SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46501 PyObject *resultobj = 0;
46502 wxObject *arg1 = (wxObject *) 0 ;
46503 int arg2 ;
46504 bool arg3 ;
46505 wxCollapsiblePaneEvent *result = 0 ;
46506 void *argp1 = 0 ;
46507 int res1 = 0 ;
46508 int val2 ;
46509 int ecode2 = 0 ;
46510 bool val3 ;
46511 int ecode3 = 0 ;
46512 PyObject * obj0 = 0 ;
46513 PyObject * obj1 = 0 ;
46514 PyObject * obj2 = 0 ;
46515 char * kwnames[] = {
46516 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
46517 };
46518
46519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
46520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
46521 if (!SWIG_IsOK(res1)) {
46522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
46523 }
46524 arg1 = reinterpret_cast< wxObject * >(argp1);
46525 ecode2 = SWIG_AsVal_int(obj1, &val2);
46526 if (!SWIG_IsOK(ecode2)) {
46527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
46528 }
46529 arg2 = static_cast< int >(val2);
46530 ecode3 = SWIG_AsVal_bool(obj2, &val3);
46531 if (!SWIG_IsOK(ecode3)) {
46532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
46533 }
46534 arg3 = static_cast< bool >(val3);
46535 {
46536 PyThreadState* __tstate = wxPyBeginAllowThreads();
46537 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
46538 wxPyEndAllowThreads(__tstate);
46539 if (PyErr_Occurred()) SWIG_fail;
46540 }
46541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
46542 return resultobj;
46543 fail:
46544 return NULL;
46545 }
46546
46547
46548 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46549 PyObject *resultobj = 0;
46550 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46551 bool result;
46552 void *argp1 = 0 ;
46553 int res1 = 0 ;
46554 PyObject *swig_obj[1] ;
46555
46556 if (!args) SWIG_fail;
46557 swig_obj[0] = args;
46558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46559 if (!SWIG_IsOK(res1)) {
46560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
46561 }
46562 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46563 {
46564 PyThreadState* __tstate = wxPyBeginAllowThreads();
46565 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
46566 wxPyEndAllowThreads(__tstate);
46567 if (PyErr_Occurred()) SWIG_fail;
46568 }
46569 {
46570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46571 }
46572 return resultobj;
46573 fail:
46574 return NULL;
46575 }
46576
46577
46578 SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46579 PyObject *resultobj = 0;
46580 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
46581 bool arg2 ;
46582 void *argp1 = 0 ;
46583 int res1 = 0 ;
46584 bool val2 ;
46585 int ecode2 = 0 ;
46586 PyObject * obj0 = 0 ;
46587 PyObject * obj1 = 0 ;
46588 char * kwnames[] = {
46589 (char *) "self",(char *) "c", NULL
46590 };
46591
46592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
46593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
46594 if (!SWIG_IsOK(res1)) {
46595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
46596 }
46597 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
46598 ecode2 = SWIG_AsVal_bool(obj1, &val2);
46599 if (!SWIG_IsOK(ecode2)) {
46600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
46601 }
46602 arg2 = static_cast< bool >(val2);
46603 {
46604 PyThreadState* __tstate = wxPyBeginAllowThreads();
46605 (arg1)->SetCollapsed(arg2);
46606 wxPyEndAllowThreads(__tstate);
46607 if (PyErr_Occurred()) SWIG_fail;
46608 }
46609 resultobj = SWIG_Py_Void();
46610 return resultobj;
46611 fail:
46612 return NULL;
46613 }
46614
46615
46616 SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46617 PyObject *obj;
46618 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
46619 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
46620 return SWIG_Py_Void();
46621 }
46622
46623 SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46624 return SWIG_Python_InitShadowInstance(args);
46625 }
46626
46627 SWIGINTERN int SearchCtrlNameStr_set(PyObject *) {
46628 SWIG_Error(SWIG_AttributeError,"Variable SearchCtrlNameStr is read-only.");
46629 return 1;
46630 }
46631
46632
46633 SWIGINTERN PyObject *SearchCtrlNameStr_get(void) {
46634 PyObject *pyobj = 0;
46635
46636 {
46637 #if wxUSE_UNICODE
46638 pyobj = PyUnicode_FromWideChar((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46639 #else
46640 pyobj = PyString_FromStringAndSize((&wxPySearchCtrlNameStr)->c_str(), (&wxPySearchCtrlNameStr)->Len());
46641 #endif
46642 }
46643 return pyobj;
46644 }
46645
46646
46647 SWIGINTERN PyObject *_wrap_new_SearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46648 PyObject *resultobj = 0;
46649 wxWindow *arg1 = (wxWindow *) 0 ;
46650 int arg2 = (int) -1 ;
46651 wxString const &arg3_defvalue = wxEmptyString ;
46652 wxString *arg3 = (wxString *) &arg3_defvalue ;
46653 wxPoint const &arg4_defvalue = wxDefaultPosition ;
46654 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
46655 wxSize const &arg5_defvalue = wxDefaultSize ;
46656 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
46657 long arg6 = (long) 0 ;
46658 wxValidator const &arg7_defvalue = wxDefaultValidator ;
46659 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
46660 wxString const &arg8_defvalue = wxPySearchCtrlNameStr ;
46661 wxString *arg8 = (wxString *) &arg8_defvalue ;
46662 wxSearchCtrl *result = 0 ;
46663 void *argp1 = 0 ;
46664 int res1 = 0 ;
46665 int val2 ;
46666 int ecode2 = 0 ;
46667 bool temp3 = false ;
46668 wxPoint temp4 ;
46669 wxSize temp5 ;
46670 long val6 ;
46671 int ecode6 = 0 ;
46672 void *argp7 = 0 ;
46673 int res7 = 0 ;
46674 bool temp8 = false ;
46675 PyObject * obj0 = 0 ;
46676 PyObject * obj1 = 0 ;
46677 PyObject * obj2 = 0 ;
46678 PyObject * obj3 = 0 ;
46679 PyObject * obj4 = 0 ;
46680 PyObject * obj5 = 0 ;
46681 PyObject * obj6 = 0 ;
46682 PyObject * obj7 = 0 ;
46683 char * kwnames[] = {
46684 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46685 };
46686
46687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_SearchCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
46688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
46689 if (!SWIG_IsOK(res1)) {
46690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SearchCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
46691 }
46692 arg1 = reinterpret_cast< wxWindow * >(argp1);
46693 if (obj1) {
46694 ecode2 = SWIG_AsVal_int(obj1, &val2);
46695 if (!SWIG_IsOK(ecode2)) {
46696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SearchCtrl" "', expected argument " "2"" of type '" "int""'");
46697 }
46698 arg2 = static_cast< int >(val2);
46699 }
46700 if (obj2) {
46701 {
46702 arg3 = wxString_in_helper(obj2);
46703 if (arg3 == NULL) SWIG_fail;
46704 temp3 = true;
46705 }
46706 }
46707 if (obj3) {
46708 {
46709 arg4 = &temp4;
46710 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
46711 }
46712 }
46713 if (obj4) {
46714 {
46715 arg5 = &temp5;
46716 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
46717 }
46718 }
46719 if (obj5) {
46720 ecode6 = SWIG_AsVal_long(obj5, &val6);
46721 if (!SWIG_IsOK(ecode6)) {
46722 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SearchCtrl" "', expected argument " "6"" of type '" "long""'");
46723 }
46724 arg6 = static_cast< long >(val6);
46725 }
46726 if (obj6) {
46727 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
46728 if (!SWIG_IsOK(res7)) {
46729 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46730 }
46731 if (!argp7) {
46732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SearchCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
46733 }
46734 arg7 = reinterpret_cast< wxValidator * >(argp7);
46735 }
46736 if (obj7) {
46737 {
46738 arg8 = wxString_in_helper(obj7);
46739 if (arg8 == NULL) SWIG_fail;
46740 temp8 = true;
46741 }
46742 }
46743 {
46744 if (!wxPyCheckForApp()) SWIG_fail;
46745 PyThreadState* __tstate = wxPyBeginAllowThreads();
46746 result = (wxSearchCtrl *)new wxSearchCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
46747 wxPyEndAllowThreads(__tstate);
46748 if (PyErr_Occurred()) SWIG_fail;
46749 }
46750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_NEW | 0 );
46751 {
46752 if (temp3)
46753 delete arg3;
46754 }
46755 {
46756 if (temp8)
46757 delete arg8;
46758 }
46759 return resultobj;
46760 fail:
46761 {
46762 if (temp3)
46763 delete arg3;
46764 }
46765 {
46766 if (temp8)
46767 delete arg8;
46768 }
46769 return NULL;
46770 }
46771
46772
46773 SWIGINTERN PyObject *_wrap_new_PreSearchCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46774 PyObject *resultobj = 0;
46775 wxSearchCtrl *result = 0 ;
46776
46777 if (!SWIG_Python_UnpackTuple(args,"new_PreSearchCtrl",0,0,0)) SWIG_fail;
46778 {
46779 if (!wxPyCheckForApp()) SWIG_fail;
46780 PyThreadState* __tstate = wxPyBeginAllowThreads();
46781 result = (wxSearchCtrl *)new wxSearchCtrl();
46782 wxPyEndAllowThreads(__tstate);
46783 if (PyErr_Occurred()) SWIG_fail;
46784 }
46785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSearchCtrl, SWIG_POINTER_OWN | 0 );
46786 return resultobj;
46787 fail:
46788 return NULL;
46789 }
46790
46791
46792 SWIGINTERN PyObject *_wrap_SearchCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46793 PyObject *resultobj = 0;
46794 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46795 wxWindow *arg2 = (wxWindow *) 0 ;
46796 int arg3 = (int) -1 ;
46797 wxString const &arg4_defvalue = wxEmptyString ;
46798 wxString *arg4 = (wxString *) &arg4_defvalue ;
46799 wxPoint const &arg5_defvalue = wxDefaultPosition ;
46800 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
46801 wxSize const &arg6_defvalue = wxDefaultSize ;
46802 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
46803 long arg7 = (long) 0 ;
46804 wxValidator const &arg8_defvalue = wxDefaultValidator ;
46805 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
46806 wxString const &arg9_defvalue = wxPySearchCtrlNameStr ;
46807 wxString *arg9 = (wxString *) &arg9_defvalue ;
46808 bool result;
46809 void *argp1 = 0 ;
46810 int res1 = 0 ;
46811 void *argp2 = 0 ;
46812 int res2 = 0 ;
46813 int val3 ;
46814 int ecode3 = 0 ;
46815 bool temp4 = false ;
46816 wxPoint temp5 ;
46817 wxSize temp6 ;
46818 long val7 ;
46819 int ecode7 = 0 ;
46820 void *argp8 = 0 ;
46821 int res8 = 0 ;
46822 bool temp9 = false ;
46823 PyObject * obj0 = 0 ;
46824 PyObject * obj1 = 0 ;
46825 PyObject * obj2 = 0 ;
46826 PyObject * obj3 = 0 ;
46827 PyObject * obj4 = 0 ;
46828 PyObject * obj5 = 0 ;
46829 PyObject * obj6 = 0 ;
46830 PyObject * obj7 = 0 ;
46831 PyObject * obj8 = 0 ;
46832 char * kwnames[] = {
46833 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
46834 };
46835
46836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:SearchCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
46837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46838 if (!SWIG_IsOK(res1)) {
46839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_Create" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46840 }
46841 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46842 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
46843 if (!SWIG_IsOK(res2)) {
46844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
46845 }
46846 arg2 = reinterpret_cast< wxWindow * >(argp2);
46847 if (obj2) {
46848 ecode3 = SWIG_AsVal_int(obj2, &val3);
46849 if (!SWIG_IsOK(ecode3)) {
46850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SearchCtrl_Create" "', expected argument " "3"" of type '" "int""'");
46851 }
46852 arg3 = static_cast< int >(val3);
46853 }
46854 if (obj3) {
46855 {
46856 arg4 = wxString_in_helper(obj3);
46857 if (arg4 == NULL) SWIG_fail;
46858 temp4 = true;
46859 }
46860 }
46861 if (obj4) {
46862 {
46863 arg5 = &temp5;
46864 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
46865 }
46866 }
46867 if (obj5) {
46868 {
46869 arg6 = &temp6;
46870 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
46871 }
46872 }
46873 if (obj6) {
46874 ecode7 = SWIG_AsVal_long(obj6, &val7);
46875 if (!SWIG_IsOK(ecode7)) {
46876 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SearchCtrl_Create" "', expected argument " "7"" of type '" "long""'");
46877 }
46878 arg7 = static_cast< long >(val7);
46879 }
46880 if (obj7) {
46881 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
46882 if (!SWIG_IsOK(res8)) {
46883 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46884 }
46885 if (!argp8) {
46886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
46887 }
46888 arg8 = reinterpret_cast< wxValidator * >(argp8);
46889 }
46890 if (obj8) {
46891 {
46892 arg9 = wxString_in_helper(obj8);
46893 if (arg9 == NULL) SWIG_fail;
46894 temp9 = true;
46895 }
46896 }
46897 {
46898 PyThreadState* __tstate = wxPyBeginAllowThreads();
46899 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
46900 wxPyEndAllowThreads(__tstate);
46901 if (PyErr_Occurred()) SWIG_fail;
46902 }
46903 {
46904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
46905 }
46906 {
46907 if (temp4)
46908 delete arg4;
46909 }
46910 {
46911 if (temp9)
46912 delete arg9;
46913 }
46914 return resultobj;
46915 fail:
46916 {
46917 if (temp4)
46918 delete arg4;
46919 }
46920 {
46921 if (temp9)
46922 delete arg9;
46923 }
46924 return NULL;
46925 }
46926
46927
46928 SWIGINTERN PyObject *_wrap_SearchCtrl_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46929 PyObject *resultobj = 0;
46930 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46931 wxMenu *arg2 = (wxMenu *) 0 ;
46932 void *argp1 = 0 ;
46933 int res1 = 0 ;
46934 void *argp2 = 0 ;
46935 int res2 = 0 ;
46936 PyObject * obj0 = 0 ;
46937 PyObject * obj1 = 0 ;
46938 char * kwnames[] = {
46939 (char *) "self",(char *) "menu", NULL
46940 };
46941
46942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
46943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46944 if (!SWIG_IsOK(res1)) {
46945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46946 }
46947 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46948 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
46949 if (!SWIG_IsOK(res2)) {
46950 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
46951 }
46952 arg2 = reinterpret_cast< wxMenu * >(argp2);
46953 {
46954 PyThreadState* __tstate = wxPyBeginAllowThreads();
46955 (arg1)->SetMenu(arg2);
46956 wxPyEndAllowThreads(__tstate);
46957 if (PyErr_Occurred()) SWIG_fail;
46958 }
46959 resultobj = SWIG_Py_Void();
46960 return resultobj;
46961 fail:
46962 return NULL;
46963 }
46964
46965
46966 SWIGINTERN PyObject *_wrap_SearchCtrl_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
46967 PyObject *resultobj = 0;
46968 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46969 wxMenu *result = 0 ;
46970 void *argp1 = 0 ;
46971 int res1 = 0 ;
46972 PyObject *swig_obj[1] ;
46973
46974 if (!args) SWIG_fail;
46975 swig_obj[0] = args;
46976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
46977 if (!SWIG_IsOK(res1)) {
46978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetMenu" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
46979 }
46980 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
46981 {
46982 PyThreadState* __tstate = wxPyBeginAllowThreads();
46983 result = (wxMenu *)(arg1)->GetMenu();
46984 wxPyEndAllowThreads(__tstate);
46985 if (PyErr_Occurred()) SWIG_fail;
46986 }
46987 {
46988 resultobj = wxPyMake_wxObject(result, 0);
46989 }
46990 return resultobj;
46991 fail:
46992 return NULL;
46993 }
46994
46995
46996 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowSearchButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
46997 PyObject *resultobj = 0;
46998 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
46999 bool arg2 ;
47000 void *argp1 = 0 ;
47001 int res1 = 0 ;
47002 bool val2 ;
47003 int ecode2 = 0 ;
47004 PyObject * obj0 = 0 ;
47005 PyObject * obj1 = 0 ;
47006 char * kwnames[] = {
47007 (char *) "self",(char *) "show", NULL
47008 };
47009
47010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowSearchButton",kwnames,&obj0,&obj1)) SWIG_fail;
47011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47012 if (!SWIG_IsOK(res1)) {
47013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47014 }
47015 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47016 ecode2 = SWIG_AsVal_bool(obj1, &val2);
47017 if (!SWIG_IsOK(ecode2)) {
47018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowSearchButton" "', expected argument " "2"" of type '" "bool""'");
47019 }
47020 arg2 = static_cast< bool >(val2);
47021 {
47022 PyThreadState* __tstate = wxPyBeginAllowThreads();
47023 (arg1)->ShowSearchButton(arg2);
47024 wxPyEndAllowThreads(__tstate);
47025 if (PyErr_Occurred()) SWIG_fail;
47026 }
47027 resultobj = SWIG_Py_Void();
47028 return resultobj;
47029 fail:
47030 return NULL;
47031 }
47032
47033
47034 SWIGINTERN PyObject *_wrap_SearchCtrl_IsSearchButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47035 PyObject *resultobj = 0;
47036 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47037 bool result;
47038 void *argp1 = 0 ;
47039 int res1 = 0 ;
47040 PyObject *swig_obj[1] ;
47041
47042 if (!args) SWIG_fail;
47043 swig_obj[0] = args;
47044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47045 if (!SWIG_IsOK(res1)) {
47046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsSearchButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
47047 }
47048 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47049 {
47050 PyThreadState* __tstate = wxPyBeginAllowThreads();
47051 result = (bool)((wxSearchCtrl const *)arg1)->IsSearchButtonVisible();
47052 wxPyEndAllowThreads(__tstate);
47053 if (PyErr_Occurred()) SWIG_fail;
47054 }
47055 {
47056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
47057 }
47058 return resultobj;
47059 fail:
47060 return NULL;
47061 }
47062
47063
47064 SWIGINTERN PyObject *_wrap_SearchCtrl_ShowCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47065 PyObject *resultobj = 0;
47066 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47067 bool arg2 ;
47068 void *argp1 = 0 ;
47069 int res1 = 0 ;
47070 bool val2 ;
47071 int ecode2 = 0 ;
47072 PyObject * obj0 = 0 ;
47073 PyObject * obj1 = 0 ;
47074 char * kwnames[] = {
47075 (char *) "self",(char *) "show", NULL
47076 };
47077
47078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_ShowCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
47079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47080 if (!SWIG_IsOK(res1)) {
47081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47082 }
47083 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47084 ecode2 = SWIG_AsVal_bool(obj1, &val2);
47085 if (!SWIG_IsOK(ecode2)) {
47086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SearchCtrl_ShowCancelButton" "', expected argument " "2"" of type '" "bool""'");
47087 }
47088 arg2 = static_cast< bool >(val2);
47089 {
47090 PyThreadState* __tstate = wxPyBeginAllowThreads();
47091 (arg1)->ShowCancelButton(arg2);
47092 wxPyEndAllowThreads(__tstate);
47093 if (PyErr_Occurred()) SWIG_fail;
47094 }
47095 resultobj = SWIG_Py_Void();
47096 return resultobj;
47097 fail:
47098 return NULL;
47099 }
47100
47101
47102 SWIGINTERN PyObject *_wrap_SearchCtrl_IsCancelButtonVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47103 PyObject *resultobj = 0;
47104 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47105 bool result;
47106 void *argp1 = 0 ;
47107 int res1 = 0 ;
47108 PyObject *swig_obj[1] ;
47109
47110 if (!args) SWIG_fail;
47111 swig_obj[0] = args;
47112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47113 if (!SWIG_IsOK(res1)) {
47114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_IsCancelButtonVisible" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
47115 }
47116 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47117 {
47118 PyThreadState* __tstate = wxPyBeginAllowThreads();
47119 result = (bool)((wxSearchCtrl const *)arg1)->IsCancelButtonVisible();
47120 wxPyEndAllowThreads(__tstate);
47121 if (PyErr_Occurred()) SWIG_fail;
47122 }
47123 {
47124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
47125 }
47126 return resultobj;
47127 fail:
47128 return NULL;
47129 }
47130
47131
47132 SWIGINTERN PyObject *_wrap_SearchCtrl_SetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47133 PyObject *resultobj = 0;
47134 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47135 wxString *arg2 = 0 ;
47136 void *argp1 = 0 ;
47137 int res1 = 0 ;
47138 bool temp2 = false ;
47139 PyObject * obj0 = 0 ;
47140 PyObject * obj1 = 0 ;
47141 char * kwnames[] = {
47142 (char *) "self",(char *) "text", NULL
47143 };
47144
47145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetDescriptiveText",kwnames,&obj0,&obj1)) SWIG_fail;
47146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47147 if (!SWIG_IsOK(res1)) {
47148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47149 }
47150 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47151 {
47152 arg2 = wxString_in_helper(obj1);
47153 if (arg2 == NULL) SWIG_fail;
47154 temp2 = true;
47155 }
47156 {
47157 PyThreadState* __tstate = wxPyBeginAllowThreads();
47158 (arg1)->SetDescriptiveText((wxString const &)*arg2);
47159 wxPyEndAllowThreads(__tstate);
47160 if (PyErr_Occurred()) SWIG_fail;
47161 }
47162 resultobj = SWIG_Py_Void();
47163 {
47164 if (temp2)
47165 delete arg2;
47166 }
47167 return resultobj;
47168 fail:
47169 {
47170 if (temp2)
47171 delete arg2;
47172 }
47173 return NULL;
47174 }
47175
47176
47177 SWIGINTERN PyObject *_wrap_SearchCtrl_GetDescriptiveText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47178 PyObject *resultobj = 0;
47179 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47180 wxString result;
47181 void *argp1 = 0 ;
47182 int res1 = 0 ;
47183 PyObject *swig_obj[1] ;
47184
47185 if (!args) SWIG_fail;
47186 swig_obj[0] = args;
47187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47188 if (!SWIG_IsOK(res1)) {
47189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_GetDescriptiveText" "', expected argument " "1"" of type '" "wxSearchCtrl const *""'");
47190 }
47191 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47192 {
47193 PyThreadState* __tstate = wxPyBeginAllowThreads();
47194 result = ((wxSearchCtrl const *)arg1)->GetDescriptiveText();
47195 wxPyEndAllowThreads(__tstate);
47196 if (PyErr_Occurred()) SWIG_fail;
47197 }
47198 {
47199 #if wxUSE_UNICODE
47200 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
47201 #else
47202 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
47203 #endif
47204 }
47205 return resultobj;
47206 fail:
47207 return NULL;
47208 }
47209
47210
47211 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47212 PyObject *resultobj = 0;
47213 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47214 wxBitmap *arg2 = 0 ;
47215 void *argp1 = 0 ;
47216 int res1 = 0 ;
47217 void *argp2 = 0 ;
47218 int res2 = 0 ;
47219 PyObject * obj0 = 0 ;
47220 PyObject * obj1 = 0 ;
47221 char * kwnames[] = {
47222 (char *) "self",(char *) "bitmap", NULL
47223 };
47224
47225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47227 if (!SWIG_IsOK(res1)) {
47228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47229 }
47230 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47231 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47232 if (!SWIG_IsOK(res2)) {
47233 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47234 }
47235 if (!argp2) {
47236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47237 }
47238 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47239 {
47240 PyThreadState* __tstate = wxPyBeginAllowThreads();
47241 (arg1)->SetSearchBitmap((wxBitmap const &)*arg2);
47242 wxPyEndAllowThreads(__tstate);
47243 if (PyErr_Occurred()) SWIG_fail;
47244 }
47245 resultobj = SWIG_Py_Void();
47246 return resultobj;
47247 fail:
47248 return NULL;
47249 }
47250
47251
47252 SWIGINTERN PyObject *_wrap_SearchCtrl_SetSearchMenuBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47253 PyObject *resultobj = 0;
47254 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47255 wxBitmap *arg2 = 0 ;
47256 void *argp1 = 0 ;
47257 int res1 = 0 ;
47258 void *argp2 = 0 ;
47259 int res2 = 0 ;
47260 PyObject * obj0 = 0 ;
47261 PyObject * obj1 = 0 ;
47262 char * kwnames[] = {
47263 (char *) "self",(char *) "bitmap", NULL
47264 };
47265
47266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetSearchMenuBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47268 if (!SWIG_IsOK(res1)) {
47269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47270 }
47271 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47273 if (!SWIG_IsOK(res2)) {
47274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47275 }
47276 if (!argp2) {
47277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetSearchMenuBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47278 }
47279 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47280 {
47281 PyThreadState* __tstate = wxPyBeginAllowThreads();
47282 (arg1)->SetSearchMenuBitmap((wxBitmap const &)*arg2);
47283 wxPyEndAllowThreads(__tstate);
47284 if (PyErr_Occurred()) SWIG_fail;
47285 }
47286 resultobj = SWIG_Py_Void();
47287 return resultobj;
47288 fail:
47289 return NULL;
47290 }
47291
47292
47293 SWIGINTERN PyObject *_wrap_SearchCtrl_SetCancelBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
47294 PyObject *resultobj = 0;
47295 wxSearchCtrl *arg1 = (wxSearchCtrl *) 0 ;
47296 wxBitmap *arg2 = 0 ;
47297 void *argp1 = 0 ;
47298 int res1 = 0 ;
47299 void *argp2 = 0 ;
47300 int res2 = 0 ;
47301 PyObject * obj0 = 0 ;
47302 PyObject * obj1 = 0 ;
47303 char * kwnames[] = {
47304 (char *) "self",(char *) "bitmap", NULL
47305 };
47306
47307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SearchCtrl_SetCancelBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
47308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSearchCtrl, 0 | 0 );
47309 if (!SWIG_IsOK(res1)) {
47310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "1"" of type '" "wxSearchCtrl *""'");
47311 }
47312 arg1 = reinterpret_cast< wxSearchCtrl * >(argp1);
47313 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
47314 if (!SWIG_IsOK(res2)) {
47315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47316 }
47317 if (!argp2) {
47318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SearchCtrl_SetCancelBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
47319 }
47320 arg2 = reinterpret_cast< wxBitmap * >(argp2);
47321 {
47322 PyThreadState* __tstate = wxPyBeginAllowThreads();
47323 (arg1)->SetCancelBitmap((wxBitmap const &)*arg2);
47324 wxPyEndAllowThreads(__tstate);
47325 if (PyErr_Occurred()) SWIG_fail;
47326 }
47327 resultobj = SWIG_Py_Void();
47328 return resultobj;
47329 fail:
47330 return NULL;
47331 }
47332
47333
47334 SWIGINTERN PyObject *SearchCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47335 PyObject *obj;
47336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
47337 SWIG_TypeNewClientData(SWIGTYPE_p_wxSearchCtrl, SWIG_NewClientData(obj));
47338 return SWIG_Py_Void();
47339 }
47340
47341 SWIGINTERN PyObject *SearchCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
47342 return SWIG_Python_InitShadowInstance(args);
47343 }
47344
47345 static PyMethodDef SwigMethods[] = {
47346 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
47347 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
47348 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47349 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
47350 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
47351 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47352 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
47353 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
47354 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
47355 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
47356 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47357 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
47358 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
47359 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
47360 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
47361 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
47362 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
47363 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
47364 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47365 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47366 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
47367 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47368 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
47369 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
47370 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
47371 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
47372 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
47373 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
47374 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47375 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
47376 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
47377 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47378 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
47379 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
47380 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
47381 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
47382 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47383 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
47384 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
47385 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
47386 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
47387 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47388 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
47389 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47390 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
47391 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
47392 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
47393 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
47394 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47395 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
47396 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47397 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
47398 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
47399 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
47400 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47401 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
47402 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
47403 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47404 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
47405 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
47406 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
47407 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47408 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47409 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
47410 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47411 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
47412 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
47413 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
47414 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
47415 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
47416 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
47417 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
47418 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
47419 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
47420 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47421 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
47422 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
47423 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
47424 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
47425 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47426 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47427 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
47428 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47429 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
47430 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
47431 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
47432 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47433 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
47434 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
47435 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
47436 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47437 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
47438 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
47439 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
47440 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
47441 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47442 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47443 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
47444 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
47445 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
47446 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
47447 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47448 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
47449 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
47450 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47451 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
47452 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
47453 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
47454 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
47455 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47456 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
47457 { (char *)"StaticText_IsEllipsized", (PyCFunction)_wrap_StaticText_IsEllipsized, METH_O, NULL},
47458 { (char *)"StaticText_RemoveMarkup", (PyCFunction) _wrap_StaticText_RemoveMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
47459 { (char *)"StaticText_EscapeMarkup", (PyCFunction) _wrap_StaticText_EscapeMarkup, METH_VARARGS | METH_KEYWORDS, NULL},
47460 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47461 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
47462 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
47463 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47464 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
47465 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47466 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
47467 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47468 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
47469 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47470 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
47471 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
47472 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47473 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
47474 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47475 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
47476 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
47477 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
47478 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
47479 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47480 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
47481 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
47482 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
47483 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47484 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
47485 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
47486 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
47487 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47488 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
47489 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
47490 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47491 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47492 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47493 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
47494 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47495 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
47496 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
47497 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
47498 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
47499 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47500 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
47501 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
47502 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
47503 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
47504 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
47505 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47506 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
47507 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
47508 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
47509 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47510 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47511 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47512 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
47513 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
47514 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47515 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
47516 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
47517 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
47518 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
47519 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
47520 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
47521 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
47522 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
47523 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
47524 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
47525 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
47526 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
47527 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
47528 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
47529 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
47530 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
47531 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
47532 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
47533 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
47534 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
47535 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
47536 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
47537 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
47538 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47539 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
47540 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47541 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
47542 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47543 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
47544 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
47545 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47546 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
47547 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
47548 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
47549 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
47550 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
47551 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
47552 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
47553 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
47554 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
47555 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
47556 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
47557 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
47558 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
47559 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
47560 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
47561 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
47562 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
47563 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
47564 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
47565 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
47566 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
47567 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47568 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47569 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
47570 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
47571 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47572 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
47573 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47574 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47575 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
47576 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
47577 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
47578 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
47579 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
47580 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
47581 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
47582 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
47583 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
47584 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
47585 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
47586 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
47587 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
47588 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
47589 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
47590 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47591 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
47592 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
47593 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
47594 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
47595 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
47596 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
47597 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
47598 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47599 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47600 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
47601 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
47602 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47603 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
47604 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
47605 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
47606 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
47607 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
47608 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
47609 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
47610 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47611 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
47612 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
47613 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
47614 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
47615 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
47616 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47617 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47618 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
47619 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
47620 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
47621 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
47622 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47623 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
47624 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
47625 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
47626 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47627 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47628 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47629 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47630 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
47631 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47632 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
47633 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
47634 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47635 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
47636 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47637 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
47638 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47639 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
47640 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47641 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
47642 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
47643 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47644 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47645 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
47646 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
47647 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47648 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
47649 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47650 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
47651 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
47652 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
47653 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
47654 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47655 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47656 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
47657 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
47658 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47659 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
47660 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
47661 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
47662 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
47663 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
47664 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
47665 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47666 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
47667 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
47668 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
47669 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
47670 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47671 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
47672 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47673 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
47674 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47675 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
47676 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
47677 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
47678 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
47679 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47680 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
47681 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47682 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47683 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
47684 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
47685 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
47686 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
47687 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47688 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
47689 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47690 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
47691 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
47692 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
47693 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
47694 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
47695 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
47696 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47697 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
47698 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
47699 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
47700 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
47701 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
47702 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
47703 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
47704 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
47705 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
47706 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
47707 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
47708 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47709 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47710 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
47711 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
47712 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
47713 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
47714 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47715 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
47716 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
47717 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47718 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
47719 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
47720 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
47721 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
47722 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
47723 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
47724 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47725 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
47726 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47727 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
47728 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
47729 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47730 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
47731 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
47732 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
47733 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
47734 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
47735 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
47736 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
47737 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
47738 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
47739 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
47740 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
47741 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
47742 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
47743 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
47744 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
47745 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
47746 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47747 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47748 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47749 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
47750 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47751 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
47752 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47753 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
47754 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47755 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
47756 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
47757 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
47758 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
47759 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
47760 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
47761 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47762 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
47763 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
47764 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
47765 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
47766 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47767 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47768 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47769 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
47770 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
47771 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47772 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
47773 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
47774 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
47775 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
47776 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47777 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
47778 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
47779 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
47780 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47781 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
47782 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
47783 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
47784 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
47785 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47786 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
47787 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
47788 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
47789 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47790 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
47791 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
47792 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
47793 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
47794 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47795 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47796 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
47797 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
47798 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
47799 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
47800 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
47801 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
47802 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
47803 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
47804 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47805 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
47806 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
47807 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
47808 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
47809 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47810 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
47811 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
47812 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
47813 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
47814 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47815 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
47816 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
47817 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
47818 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
47819 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
47820 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
47821 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
47822 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
47823 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
47824 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
47825 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
47826 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
47827 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
47828 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
47829 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
47830 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
47831 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
47832 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
47833 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
47834 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
47835 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
47836 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47837 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47838 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47839 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47840 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47841 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
47842 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
47843 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
47844 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
47845 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47846 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
47847 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
47848 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
47849 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47850 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
47851 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
47852 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
47853 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
47854 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
47855 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
47856 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
47857 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
47858 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
47859 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
47860 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
47861 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
47862 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
47863 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
47864 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47865 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
47866 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
47867 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
47868 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
47869 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47870 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47871 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47872 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
47873 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
47874 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
47875 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
47876 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
47877 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
47878 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
47879 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
47880 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
47881 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
47882 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
47883 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
47884 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
47885 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
47886 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
47887 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
47888 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
47889 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
47890 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
47891 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
47892 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
47893 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
47894 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
47895 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
47896 { (char *)"ToolBar_SetToolNormalBitmap", (PyCFunction) _wrap_ToolBar_SetToolNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47897 { (char *)"ToolBar_SetToolDisabledBitmap", (PyCFunction) _wrap_ToolBar_SetToolDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
47898 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
47899 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
47900 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
47901 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
47902 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
47903 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47904 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47905 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47906 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
47907 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
47908 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
47909 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
47910 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
47911 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
47912 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
47913 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
47914 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
47915 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
47916 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
47917 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
47918 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
47919 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
47920 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
47921 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
47922 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
47923 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
47924 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
47925 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
47926 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
47927 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
47928 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
47929 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
47930 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
47931 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
47932 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
47933 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
47934 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
47935 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
47936 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
47937 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
47938 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
47939 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
47940 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
47941 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
47942 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
47943 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
47944 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
47945 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
47946 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
47947 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
47948 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
47949 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
47950 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
47951 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
47952 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
47953 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
47954 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
47955 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
47956 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
47957 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
47958 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
47959 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
47960 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
47961 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
47962 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
47963 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
47964 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
47965 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
47966 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
47967 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
47968 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
47969 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
47970 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
47971 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
47972 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
47973 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
47974 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
47975 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
47976 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
47977 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
47978 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
47979 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
47980 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
47981 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
47982 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
47983 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
47984 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
47985 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
47986 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
47987 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
47988 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
47989 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
47990 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
47991 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
47992 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
47993 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
47994 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
47995 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
47996 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
47997 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
47998 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
47999 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48000 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
48001 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
48002 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
48003 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
48004 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
48005 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
48006 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
48007 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
48008 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
48009 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
48010 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
48011 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
48012 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
48013 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
48014 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
48015 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
48016 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
48017 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
48018 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
48019 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
48020 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
48021 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
48022 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
48023 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
48024 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
48025 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
48026 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
48027 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
48028 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
48029 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
48030 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
48031 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
48032 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
48033 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
48034 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
48035 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
48036 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
48037 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
48038 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
48039 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
48040 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
48041 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
48042 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
48043 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
48044 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
48045 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
48046 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
48047 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
48048 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
48049 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
48050 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
48051 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
48052 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
48053 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
48054 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
48055 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
48056 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
48057 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
48058 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
48059 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
48060 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
48061 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
48062 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
48063 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
48064 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
48065 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
48066 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
48067 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
48068 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
48069 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
48070 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
48071 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
48072 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
48073 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48074 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
48075 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
48076 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
48077 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
48078 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
48079 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
48080 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
48081 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
48082 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
48083 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
48084 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
48085 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
48086 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
48087 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
48088 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
48089 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
48090 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
48091 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
48092 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
48093 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
48094 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
48095 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
48096 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
48097 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
48098 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
48099 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
48100 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
48101 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
48102 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
48103 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
48104 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
48105 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
48106 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
48107 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
48108 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
48109 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
48110 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
48111 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48112 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
48113 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
48114 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
48115 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
48116 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
48117 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
48118 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
48119 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
48120 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48121 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
48122 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48123 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
48124 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
48125 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
48126 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
48127 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
48128 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
48129 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
48130 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
48131 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
48132 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
48133 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
48134 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
48135 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
48136 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
48137 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
48138 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
48139 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
48140 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
48141 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
48142 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
48143 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
48144 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
48145 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
48146 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
48147 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
48148 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
48149 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
48150 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
48151 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
48152 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
48153 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
48154 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
48155 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
48156 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
48157 { (char *)"TreeCtrl_IsEmpty", (PyCFunction)_wrap_TreeCtrl_IsEmpty, METH_O, NULL},
48158 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
48159 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
48160 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
48161 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
48162 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
48163 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
48164 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
48165 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
48166 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
48167 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
48168 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
48169 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
48170 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
48171 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
48172 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
48173 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
48174 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
48175 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
48176 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
48177 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
48178 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
48179 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
48180 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
48181 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
48182 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
48183 { (char *)"TreeCtrl_CollapseAllChildren", (PyCFunction) _wrap_TreeCtrl_CollapseAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
48184 { (char *)"TreeCtrl_CollapseAll", (PyCFunction)_wrap_TreeCtrl_CollapseAll, METH_O, NULL},
48185 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
48186 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
48187 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
48188 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
48189 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
48190 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
48191 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
48192 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
48193 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
48194 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
48195 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
48196 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
48197 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
48198 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
48199 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
48200 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
48201 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
48202 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
48203 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
48204 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
48205 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
48206 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
48207 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48208 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
48209 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48210 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
48211 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
48212 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
48213 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
48214 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
48215 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
48216 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48217 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
48218 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
48219 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
48220 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
48221 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
48222 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
48223 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
48224 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
48225 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
48226 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
48227 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
48228 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
48229 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
48230 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
48231 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48232 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
48233 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48234 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
48235 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
48236 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
48237 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
48238 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
48239 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
48240 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
48241 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
48242 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
48243 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
48244 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
48245 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
48246 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
48247 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
48248 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
48249 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
48250 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
48251 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
48252 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
48253 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
48254 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48255 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
48256 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
48257 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
48258 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
48259 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
48260 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
48261 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
48262 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
48263 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
48264 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
48265 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48266 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
48267 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48268 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
48269 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
48270 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
48271 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
48272 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
48273 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
48274 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
48275 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
48276 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
48277 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48278 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48279 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
48280 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48281 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
48282 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
48283 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
48284 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
48285 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
48286 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
48287 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
48288 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
48289 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
48290 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
48291 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
48292 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
48293 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
48294 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48295 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
48296 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
48297 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
48298 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
48299 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
48300 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
48301 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
48302 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
48303 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
48304 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
48305 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
48306 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
48307 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48308 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
48309 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48310 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
48311 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
48312 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
48313 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
48314 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
48315 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
48316 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
48317 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48318 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
48319 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48320 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
48321 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
48322 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
48323 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
48324 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
48325 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
48326 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
48327 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
48328 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
48329 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
48330 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
48331 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
48332 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48333 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
48334 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
48335 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
48336 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
48337 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
48338 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
48339 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
48340 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48341 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
48342 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
48343 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
48344 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
48345 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48346 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
48347 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
48348 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
48349 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
48350 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
48351 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
48352 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48353 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
48354 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48355 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
48356 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48357 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
48358 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
48359 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48360 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
48361 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
48362 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
48363 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
48364 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48365 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
48366 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48367 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
48368 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48369 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48370 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
48371 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
48372 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
48373 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48374 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
48375 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48376 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
48377 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48378 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
48379 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
48380 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
48381 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
48382 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48383 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
48384 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
48385 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
48386 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
48387 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48388 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
48389 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48390 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
48391 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
48392 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
48393 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
48394 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
48395 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
48396 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48397 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
48398 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
48399 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
48400 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
48401 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
48402 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
48403 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48404 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
48405 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
48406 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
48407 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
48408 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
48409 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
48410 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
48411 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
48412 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
48413 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
48414 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
48415 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
48416 { (char *)"new_SearchCtrl", (PyCFunction) _wrap_new_SearchCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
48417 { (char *)"new_PreSearchCtrl", (PyCFunction)_wrap_new_PreSearchCtrl, METH_NOARGS, NULL},
48418 { (char *)"SearchCtrl_Create", (PyCFunction) _wrap_SearchCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
48419 { (char *)"SearchCtrl_SetMenu", (PyCFunction) _wrap_SearchCtrl_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
48420 { (char *)"SearchCtrl_GetMenu", (PyCFunction)_wrap_SearchCtrl_GetMenu, METH_O, NULL},
48421 { (char *)"SearchCtrl_ShowSearchButton", (PyCFunction) _wrap_SearchCtrl_ShowSearchButton, METH_VARARGS | METH_KEYWORDS, NULL},
48422 { (char *)"SearchCtrl_IsSearchButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsSearchButtonVisible, METH_O, NULL},
48423 { (char *)"SearchCtrl_ShowCancelButton", (PyCFunction) _wrap_SearchCtrl_ShowCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
48424 { (char *)"SearchCtrl_IsCancelButtonVisible", (PyCFunction)_wrap_SearchCtrl_IsCancelButtonVisible, METH_O, NULL},
48425 { (char *)"SearchCtrl_SetDescriptiveText", (PyCFunction) _wrap_SearchCtrl_SetDescriptiveText, METH_VARARGS | METH_KEYWORDS, NULL},
48426 { (char *)"SearchCtrl_GetDescriptiveText", (PyCFunction)_wrap_SearchCtrl_GetDescriptiveText, METH_O, NULL},
48427 { (char *)"SearchCtrl_SetSearchBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48428 { (char *)"SearchCtrl_SetSearchMenuBitmap", (PyCFunction) _wrap_SearchCtrl_SetSearchMenuBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48429 { (char *)"SearchCtrl_SetCancelBitmap", (PyCFunction) _wrap_SearchCtrl_SetCancelBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
48430 { (char *)"SearchCtrl_swigregister", SearchCtrl_swigregister, METH_VARARGS, NULL},
48431 { (char *)"SearchCtrl_swiginit", SearchCtrl_swiginit, METH_VARARGS, NULL},
48432 { NULL, NULL, 0, NULL }
48433 };
48434
48435
48436 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
48437
48438 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
48439 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
48440 }
48441 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
48442 return (void *)((wxEvent *) ((wxMenuEvent *) x));
48443 }
48444 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
48445 return (void *)((wxEvent *) ((wxCloseEvent *) x));
48446 }
48447 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
48448 return (void *)((wxEvent *) ((wxMouseEvent *) x));
48449 }
48450 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
48451 return (void *)((wxEvent *) ((wxEraseEvent *) x));
48452 }
48453 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
48454 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48455 }
48456 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
48457 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
48458 }
48459 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
48460 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
48461 }
48462 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
48463 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
48464 }
48465 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
48466 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48467 }
48468 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
48469 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
48470 }
48471 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
48472 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
48473 }
48474 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
48475 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
48476 }
48477 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
48478 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
48479 }
48480 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
48481 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
48482 }
48483 static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
48484 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
48485 }
48486 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
48487 return (void *)((wxEvent *) ((wxPyEvent *) x));
48488 }
48489 static void *_p_wxListEventTo_p_wxEvent(void *x) {
48490 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
48491 }
48492 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
48493 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48494 }
48495 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
48496 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48497 }
48498 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
48499 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48500 }
48501 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
48502 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48503 }
48504 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
48505 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48506 }
48507 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
48508 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
48509 }
48510 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
48511 return (void *)((wxEvent *) ((wxIdleEvent *) x));
48512 }
48513 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
48514 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
48515 }
48516 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
48517 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
48518 }
48519 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
48520 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
48521 }
48522 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
48523 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
48524 }
48525 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
48526 return (void *)((wxEvent *) ((wxActivateEvent *) x));
48527 }
48528 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
48529 return (void *)((wxEvent *) ((wxSizeEvent *) x));
48530 }
48531 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
48532 return (void *)((wxEvent *) ((wxMoveEvent *) x));
48533 }
48534 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
48535 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
48536 }
48537 static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
48538 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48539 }
48540 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
48541 return (void *)((wxEvent *) ((wxPaintEvent *) x));
48542 }
48543 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
48544 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
48545 }
48546 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
48547 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
48548 }
48549 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
48550 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
48551 }
48552 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
48553 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
48554 }
48555 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
48556 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
48557 }
48558 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
48559 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
48560 }
48561 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
48562 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
48563 }
48564 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
48565 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
48566 }
48567 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
48568 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
48569 }
48570 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
48571 return (void *)((wxEvent *) ((wxFocusEvent *) x));
48572 }
48573 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
48574 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
48575 }
48576 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
48577 return (void *)((wxEvent *) ((wxShowEvent *) x));
48578 }
48579 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
48580 return (void *)((wxEvent *) ((wxCommandEvent *) x));
48581 }
48582 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
48583 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
48584 }
48585 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
48586 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48587 }
48588 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
48589 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
48590 }
48591 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
48592 return (void *)((wxEvent *) ((wxKeyEvent *) x));
48593 }
48594 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
48595 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
48596 }
48597 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
48598 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
48599 }
48600 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
48601 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
48602 }
48603 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
48604 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
48605 }
48606 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
48607 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
48608 }
48609 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
48610 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
48611 }
48612 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
48613 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48614 }
48615 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
48616 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48617 }
48618 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
48619 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
48620 }
48621 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
48622 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
48623 }
48624 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
48625 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
48626 }
48627 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
48628 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48629 }
48630 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
48631 return (void *)((wxPyListCtrl *) ((wxListView *) x));
48632 }
48633 static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
48634 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
48635 }
48636 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
48637 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
48638 }
48639 static void *_p_wxToolBarTo_p_wxControl(void *x) {
48640 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
48641 }
48642 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
48643 return (void *)((wxControl *) ((wxPickerBase *) x));
48644 }
48645 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
48646 return (void *)((wxControl *) ((wxToggleButton *) x));
48647 }
48648 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
48649 return (void *)((wxControl *) ((wxRadioButton *) x));
48650 }
48651 static void *_p_wxSearchCtrlTo_p_wxControl(void *x) {
48652 return (void *)((wxControl *) (wxTextCtrl *) ((wxSearchCtrl *) x));
48653 }
48654 static void *_p_wxToolbookTo_p_wxControl(void *x) {
48655 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
48656 }
48657 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
48658 return (void *)((wxControl *) ((wxToolBarBase *) x));
48659 }
48660 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
48661 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48662 }
48663 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
48664 return (void *)((wxControl *) ((wxPyListCtrl *) x));
48665 }
48666 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
48667 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48668 }
48669 static void *_p_wxPyControlTo_p_wxControl(void *x) {
48670 return (void *)((wxControl *) ((wxPyControl *) x));
48671 }
48672 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
48673 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
48674 }
48675 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
48676 return (void *)((wxControl *) ((wxScrollBar *) x));
48677 }
48678 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
48679 return (void *)((wxControl *) ((wxControlWithItems *) x));
48680 }
48681 static void *_p_wxGaugeTo_p_wxControl(void *x) {
48682 return (void *)((wxControl *) ((wxGauge *) x));
48683 }
48684 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
48685 return (void *)((wxControl *) ((wxStaticLine *) x));
48686 }
48687 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
48688 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
48689 }
48690 static void *_p_wxListbookTo_p_wxControl(void *x) {
48691 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
48692 }
48693 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
48694 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
48695 }
48696 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
48697 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
48698 }
48699 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
48700 return (void *)((wxControl *) ((wxCheckBox *) x));
48701 }
48702 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
48703 return (void *)((wxControl *) ((wxRadioBox *) x));
48704 }
48705 static void *_p_wxChoiceTo_p_wxControl(void *x) {
48706 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
48707 }
48708 static void *_p_wxListBoxTo_p_wxControl(void *x) {
48709 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
48710 }
48711 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
48712 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48713 }
48714 static void *_p_wxListViewTo_p_wxControl(void *x) {
48715 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
48716 }
48717 static void *_p_wxNotebookTo_p_wxControl(void *x) {
48718 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
48719 }
48720 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
48721 return (void *)((wxControl *) ((wxStaticBitmap *) x));
48722 }
48723 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
48724 return (void *)((wxControl *) ((wxSpinCtrl *) x));
48725 }
48726 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
48727 return (void *)((wxControl *) ((wxStaticText *) x));
48728 }
48729 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
48730 return (void *)((wxControl *) ((wxStaticBox *) x));
48731 }
48732 static void *_p_wxSliderTo_p_wxControl(void *x) {
48733 return (void *)((wxControl *) ((wxSlider *) x));
48734 }
48735 static void *_p_wxTreebookTo_p_wxControl(void *x) {
48736 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
48737 }
48738 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
48739 return (void *)((wxControl *) ((wxSpinButton *) x));
48740 }
48741 static void *_p_wxButtonTo_p_wxControl(void *x) {
48742 return (void *)((wxControl *) ((wxButton *) x));
48743 }
48744 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
48745 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
48746 }
48747 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
48748 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48749 }
48750 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
48751 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
48752 }
48753 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
48754 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
48755 }
48756 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
48757 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
48758 }
48759 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
48760 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
48761 }
48762 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
48763 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
48764 }
48765 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
48766 return (void *)((wxControl *) ((wxTextCtrl *) x));
48767 }
48768 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
48769 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
48770 }
48771 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
48772 return (void *)((wxChoice *) ((wxComboBox *) x));
48773 }
48774 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
48775 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
48776 }
48777 static void *_p_wxSearchCtrlTo_p_wxTextCtrl(void *x) {
48778 return (void *)((wxTextCtrl *) ((wxSearchCtrl *) x));
48779 }
48780 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
48781 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48782 }
48783 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
48784 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
48785 }
48786 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
48787 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
48788 }
48789 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
48790 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
48791 }
48792 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
48793 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48794 }
48795 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
48796 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48797 }
48798 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
48799 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48800 }
48801 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
48802 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48803 }
48804 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
48805 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48806 }
48807 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
48808 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
48809 }
48810 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
48811 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
48812 }
48813 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
48814 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
48815 }
48816 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
48817 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
48818 }
48819 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
48820 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
48821 }
48822 static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
48823 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
48824 }
48825 static void *_p_wxEventBlockerTo_p_wxEvtHandler(void *x) {
48826 return (void *)((wxEvtHandler *) ((wxEventBlocker *) x));
48827 }
48828 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
48829 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
48830 }
48831 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
48832 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
48833 }
48834 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
48835 return (void *)((wxEvtHandler *) ((wxValidator *) x));
48836 }
48837 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
48838 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
48839 }
48840 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
48841 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
48842 }
48843 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
48844 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
48845 }
48846 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
48847 return (void *)((wxEvtHandler *) ((wxMenu *) x));
48848 }
48849 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
48850 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
48851 }
48852 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
48853 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
48854 }
48855 static void *_p_wxSearchCtrlTo_p_wxEvtHandler(void *x) {
48856 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
48857 }
48858 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
48859 return (void *)((wxEvtHandler *) ((wxWindow *) x));
48860 }
48861 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
48862 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
48863 }
48864 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
48865 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
48866 }
48867 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
48868 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
48869 }
48870 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
48871 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
48872 }
48873 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
48874 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
48875 }
48876 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
48877 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
48878 }
48879 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
48880 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
48881 }
48882 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
48883 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
48884 }
48885 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
48886 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
48887 }
48888 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
48889 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
48890 }
48891 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
48892 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
48893 }
48894 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
48895 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
48896 }
48897 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
48898 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
48899 }
48900 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
48901 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48902 }
48903 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
48904 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48905 }
48906 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
48907 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
48908 }
48909 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
48910 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
48911 }
48912 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
48913 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
48914 }
48915 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
48916 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
48917 }
48918 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
48919 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48920 }
48921 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
48922 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48923 }
48924 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
48925 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48926 }
48927 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
48928 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48929 }
48930 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
48931 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
48932 }
48933 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
48934 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48935 }
48936 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
48937 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
48938 }
48939 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
48940 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
48941 }
48942 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
48943 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
48944 }
48945 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
48946 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
48947 }
48948 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
48949 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48950 }
48951 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
48952 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
48953 }
48954 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
48955 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
48956 }
48957 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
48958 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
48959 }
48960 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
48961 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48962 }
48963 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
48964 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
48965 }
48966 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
48967 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48968 }
48969 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
48970 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48971 }
48972 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
48973 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48974 }
48975 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
48976 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48977 }
48978 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
48979 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
48980 }
48981 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
48982 return (void *)((wxListBox *) ((wxCheckListBox *) x));
48983 }
48984 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
48985 return (void *)((wxButton *) ((wxBitmapButton *) x));
48986 }
48987 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
48988 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
48989 }
48990 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
48991 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
48992 }
48993 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
48994 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
48995 }
48996 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
48997 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
48998 }
48999 static void *_p_wxToolbookTo_p_wxObject(void *x) {
49000 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
49001 }
49002 static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
49003 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
49004 }
49005 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
49006 return (void *)((wxObject *) ((wxSizerItem *) x));
49007 }
49008 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
49009 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
49010 }
49011 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
49012 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
49013 }
49014 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
49015 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
49016 }
49017 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
49018 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
49019 }
49020 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
49021 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
49022 }
49023 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
49024 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
49025 }
49026 static void *_p_wxSizerTo_p_wxObject(void *x) {
49027 return (void *)((wxObject *) ((wxSizer *) x));
49028 }
49029 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
49030 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
49031 }
49032 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
49033 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
49034 }
49035 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
49036 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
49037 }
49038 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
49039 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
49040 }
49041 static void *_p_wxEventTo_p_wxObject(void *x) {
49042 return (void *)((wxObject *) ((wxEvent *) x));
49043 }
49044 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
49045 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
49046 }
49047 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
49048 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
49049 }
49050 static void *_p_wxSearchCtrlTo_p_wxObject(void *x) {
49051 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
49052 }
49053 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
49054 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
49055 }
49056 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
49057 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
49058 }
49059 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
49060 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
49061 }
49062 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
49063 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
49064 }
49065 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
49066 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
49067 }
49068 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
49069 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
49070 }
49071 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
49072 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
49073 }
49074 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
49075 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
49076 }
49077 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
49078 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
49079 }
49080 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
49081 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
49082 }
49083 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
49084 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
49085 }
49086 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
49087 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
49088 }
49089 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
49090 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
49091 }
49092 static void *_p_wxControlTo_p_wxObject(void *x) {
49093 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
49094 }
49095 static void *_p_wxPyControlTo_p_wxObject(void *x) {
49096 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
49097 }
49098 static void *_p_wxGaugeTo_p_wxObject(void *x) {
49099 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
49100 }
49101 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
49102 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
49103 }
49104 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
49105 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
49106 }
49107 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
49108 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
49109 }
49110 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
49111 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
49112 }
49113 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
49114 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
49115 }
49116 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
49117 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
49118 }
49119 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
49120 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
49121 }
49122 static void *_p_wxChoiceTo_p_wxObject(void *x) {
49123 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
49124 }
49125 static void *_p_wxFSFileTo_p_wxObject(void *x) {
49126 return (void *)((wxObject *) ((wxFSFile *) x));
49127 }
49128 static void *_p_wxPySizerTo_p_wxObject(void *x) {
49129 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
49130 }
49131 static void *_p_wxTreebookTo_p_wxObject(void *x) {
49132 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
49133 }
49134 static void *_p_wxListViewTo_p_wxObject(void *x) {
49135 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
49136 }
49137 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
49138 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
49139 }
49140 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
49141 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
49142 }
49143 static void *_p_wxNotebookTo_p_wxObject(void *x) {
49144 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
49145 }
49146 static void *_p_wxPyEventTo_p_wxObject(void *x) {
49147 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
49148 }
49149 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
49150 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
49151 }
49152 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
49153 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
49154 }
49155 static void *_p_wxListbookTo_p_wxObject(void *x) {
49156 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
49157 }
49158 static void *_p_wxShowEventTo_p_wxObject(void *x) {
49159 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
49160 }
49161 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
49162 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
49163 }
49164 static void *_p_wxSliderTo_p_wxObject(void *x) {
49165 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
49166 }
49167 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
49168 return (void *)((wxObject *) ((wxMenuItem *) x));
49169 }
49170 static void *_p_wxDateEventTo_p_wxObject(void *x) {
49171 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
49172 }
49173 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
49174 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
49175 }
49176 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
49177 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
49178 }
49179 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
49180 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
49181 }
49182 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
49183 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
49184 }
49185 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
49186 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
49187 }
49188 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
49189 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
49190 }
49191 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
49192 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
49193 }
49194 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
49195 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
49196 }
49197 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
49198 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
49199 }
49200 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
49201 return (void *)((wxObject *) ((wxContextHelp *) x));
49202 }
49203 static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
49204 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
49205 }
49206 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
49207 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
49208 }
49209 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
49210 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
49211 }
49212 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
49213 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
49214 }
49215 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
49216 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
49217 }
49218 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
49219 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
49220 }
49221 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
49222 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
49223 }
49224 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
49225 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
49226 }
49227 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
49228 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
49229 }
49230 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
49231 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
49232 }
49233 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
49234 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
49235 }
49236 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
49237 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
49238 }
49239 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
49240 return (void *)((wxObject *) ((wxImageHandler *) x));
49241 }
49242 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
49243 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
49244 }
49245 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
49246 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
49247 }
49248 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
49249 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
49250 }
49251 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
49252 return (void *)((wxObject *) ((wxEvtHandler *) x));
49253 }
49254 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
49255 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
49256 }
49257 static void *_p_wxListEventTo_p_wxObject(void *x) {
49258 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
49259 }
49260 static void *_p_wxListBoxTo_p_wxObject(void *x) {
49261 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
49262 }
49263 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
49264 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
49265 }
49266 static void *_p_wxButtonTo_p_wxObject(void *x) {
49267 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
49268 }
49269 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
49270 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
49271 }
49272 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
49273 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
49274 }
49275 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
49276 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
49277 }
49278 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
49279 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
49280 }
49281 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
49282 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
49283 }
49284 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
49285 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
49286 }
49287 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
49288 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
49289 }
49290 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
49291 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
49292 }
49293 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
49294 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
49295 }
49296 static void *_p_wxListItemTo_p_wxObject(void *x) {
49297 return (void *)((wxObject *) ((wxListItem *) x));
49298 }
49299 static void *_p_wxImageTo_p_wxObject(void *x) {
49300 return (void *)((wxObject *) ((wxImage *) x));
49301 }
49302 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
49303 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
49304 }
49305 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
49306 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
49307 }
49308 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
49309 return (void *)((wxObject *) ((wxGenericDragImage *) x));
49310 }
49311 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
49312 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
49313 }
49314 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
49315 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49316 }
49317 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
49318 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49319 }
49320 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
49321 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49322 }
49323 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
49324 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49325 }
49326 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
49327 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49328 }
49329 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
49330 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49331 }
49332 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
49333 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
49334 }
49335 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
49336 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
49337 }
49338 static void *_p_wxWindowTo_p_wxObject(void *x) {
49339 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
49340 }
49341 static void *_p_wxMenuTo_p_wxObject(void *x) {
49342 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
49343 }
49344 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
49345 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
49346 }
49347 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
49348 return (void *)((wxObject *) ((wxFileSystem *) x));
49349 }
49350 static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
49351 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
49352 }
49353 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
49354 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
49355 }
49356 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
49357 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
49358 }
49359 static void *_p_wxPyAppTo_p_wxObject(void *x) {
49360 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
49361 }
49362 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
49363 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
49364 }
49365 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
49366 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
49367 }
49368 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
49369 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
49370 }
49371 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
49372 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49373 }
49374 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
49375 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
49376 }
49377 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
49378 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
49379 }
49380 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
49381 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
49382 }
49383 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
49384 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
49385 }
49386 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
49387 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
49388 }
49389 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
49390 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
49391 }
49392 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
49393 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
49394 }
49395 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
49396 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
49397 }
49398 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
49399 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49400 }
49401 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
49402 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49403 }
49404 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
49405 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49406 }
49407 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
49408 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49409 }
49410 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
49411 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
49412 }
49413 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
49414 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
49415 }
49416 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
49417 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
49418 }
49419 static void *_p_wxToolBarTo_p_wxObject(void *x) {
49420 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49421 }
49422 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
49423 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
49424 }
49425 static void *_p_wxValidatorTo_p_wxObject(void *x) {
49426 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
49427 }
49428 static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
49429 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
49430 }
49431 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
49432 return (void *)((wxWindow *) ((wxMenuBar *) x));
49433 }
49434 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
49435 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
49436 }
49437 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
49438 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
49439 }
49440 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
49441 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
49442 }
49443 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
49444 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
49445 }
49446 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
49447 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
49448 }
49449 static void *_p_wxSearchCtrlTo_p_wxWindow(void *x) {
49450 return (void *)((wxWindow *) (wxControl *)(wxTextCtrl *) ((wxSearchCtrl *) x));
49451 }
49452 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
49453 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
49454 }
49455 static void *_p_wxControlTo_p_wxWindow(void *x) {
49456 return (void *)((wxWindow *) ((wxControl *) x));
49457 }
49458 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
49459 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
49460 }
49461 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
49462 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
49463 }
49464 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
49465 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
49466 }
49467 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
49468 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
49469 }
49470 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
49471 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
49472 }
49473 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
49474 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
49475 }
49476 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
49477 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
49478 }
49479 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
49480 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
49481 }
49482 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
49483 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
49484 }
49485 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
49486 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
49487 }
49488 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
49489 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
49490 }
49491 static void *_p_wxListbookTo_p_wxWindow(void *x) {
49492 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
49493 }
49494 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
49495 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
49496 }
49497 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
49498 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
49499 }
49500 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
49501 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
49502 }
49503 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
49504 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
49505 }
49506 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
49507 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
49508 }
49509 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
49510 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
49511 }
49512 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
49513 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
49514 }
49515 static void *_p_wxListViewTo_p_wxWindow(void *x) {
49516 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
49517 }
49518 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
49519 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
49520 }
49521 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
49522 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
49523 }
49524 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
49525 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
49526 }
49527 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
49528 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
49529 }
49530 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
49531 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
49532 }
49533 static void *_p_wxSliderTo_p_wxWindow(void *x) {
49534 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
49535 }
49536 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
49537 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
49538 }
49539 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
49540 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
49541 }
49542 static void *_p_wxButtonTo_p_wxWindow(void *x) {
49543 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
49544 }
49545 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
49546 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
49547 }
49548 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
49549 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
49550 }
49551 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
49552 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
49553 }
49554 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
49555 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
49556 }
49557 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
49558 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
49559 }
49560 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
49561 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
49562 }
49563 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
49564 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
49565 }
49566 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
49567 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
49568 }
49569 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49570 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49571 }
49572 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49573 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49574 }
49575 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49576 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49577 }
49578 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49579 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49580 }
49581 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
49582 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49583 }
49584 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
49585 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
49586 }
49587 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
49588 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
49589 }
49590 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
49591 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
49592 }
49593 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
49594 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
49595 }
49596 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
49597 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
49598 }
49599 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
49600 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
49601 }
49602 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
49603 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
49604 }
49605 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
49606 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
49607 }
49608 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
49609 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
49610 }
49611 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
49612 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
49613 }
49614 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
49615 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
49616 }
49617 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
49618 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
49619 }
49620 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
49621 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
49622 }
49623 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
49624 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
49625 }
49626 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
49627 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
49628 }
49629 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
49630 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
49631 }
49632 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
49633 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
49634 }
49635 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
49636 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
49637 }
49638 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
49639 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
49640 }
49641 static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
49642 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
49643 }
49644 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
49645 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
49646 }
49647 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
49648 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
49649 }
49650 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
49651 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
49652 }
49653 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
49654 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
49655 }
49656 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
49657 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
49658 }
49659 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
49660 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
49661 }
49662 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
49663 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
49664 }
49665 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
49666 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
49667 }
49668 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
49669 return (void *)((wxControlWithItems *) ((wxChoice *) x));
49670 }
49671 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
49672 return (void *)((wxControlWithItems *) ((wxListBox *) x));
49673 }
49674 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
49675 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
49676 }
49677 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
49678 return (void *)((wxValidator *) ((wxPyValidator *) x));
49679 }
49680 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
49681 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
49682 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};
49683 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
49684 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
49685 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
49686 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
49687 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
49688 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
49689 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
49690 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
49691 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
49692 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
49693 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
49694 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
49695 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
49696 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
49697 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
49698 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
49699 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
49700 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
49701 static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
49702 static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
49703 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
49704 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
49705 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
49706 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
49707 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
49708 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
49709 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
49710 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
49711 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
49712 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
49713 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
49714 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
49715 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
49716 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
49717 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
49718 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
49719 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
49720 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
49721 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
49722 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
49723 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
49724 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
49725 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
49726 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
49727 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
49728 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
49729 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
49730 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
49731 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
49732 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
49733 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
49734 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
49735 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
49736 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
49737 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
49738 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
49739 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
49740 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
49741 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
49742 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
49743 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
49744 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
49745 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
49746 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
49747 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
49748 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
49749 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
49750 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
49751 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
49752 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
49753 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
49754 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
49755 static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
49756 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
49757 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
49758 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
49759 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
49760 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
49761 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
49762 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
49763 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
49764 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
49765 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
49766 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
49767 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
49768 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
49769 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
49770 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
49771 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
49772 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
49773 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
49774 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
49775 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
49776 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
49777 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
49778 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
49779 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
49780 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
49781 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
49782 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
49783 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
49784 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
49785 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
49786 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
49787 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
49788 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
49789 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
49790 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
49791 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
49792 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
49793 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
49794 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
49795 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
49796 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
49797 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
49798 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
49799 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
49800 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
49801 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
49802 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
49803 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
49804 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
49805 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
49806 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
49807 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
49808 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
49809 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
49810 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
49811 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
49812 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
49813 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
49814 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
49815 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
49816 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
49817 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
49818 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
49819 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
49820 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
49821 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
49822 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
49823 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
49824 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
49825 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
49826 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
49827 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
49828 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
49829 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
49830 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
49831 static swig_type_info _swigt__p_wxSearchCtrl = {"_p_wxSearchCtrl", "wxSearchCtrl *", 0, 0, (void*)0, 0};
49832 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
49833 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
49834 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
49835 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
49836 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
49837 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
49838 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
49839 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
49840 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
49841 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
49842 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
49843 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
49844 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
49845 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
49846 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
49847 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
49848 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
49849 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
49850 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
49851 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
49852 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
49853 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
49854 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
49855 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
49856 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
49857 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
49858 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
49859 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
49860
49861 static swig_type_info *swig_type_initial[] = {
49862 &_swigt__p_bool,
49863 &_swigt__p_char,
49864 &_swigt__p_form_ops_t,
49865 &_swigt__p_int,
49866 &_swigt__p_long,
49867 &_swigt__p_unsigned_char,
49868 &_swigt__p_unsigned_int,
49869 &_swigt__p_unsigned_long,
49870 &_swigt__p_void,
49871 &_swigt__p_wxANIHandler,
49872 &_swigt__p_wxAcceleratorTable,
49873 &_swigt__p_wxActivateEvent,
49874 &_swigt__p_wxArrayInt,
49875 &_swigt__p_wxArrayString,
49876 &_swigt__p_wxBMPHandler,
49877 &_swigt__p_wxBitmap,
49878 &_swigt__p_wxBitmapButton,
49879 &_swigt__p_wxBookCtrlBase,
49880 &_swigt__p_wxBookCtrlBaseEvent,
49881 &_swigt__p_wxBoxSizer,
49882 &_swigt__p_wxButton,
49883 &_swigt__p_wxCURHandler,
49884 &_swigt__p_wxCheckBox,
49885 &_swigt__p_wxCheckListBox,
49886 &_swigt__p_wxChildFocusEvent,
49887 &_swigt__p_wxChoice,
49888 &_swigt__p_wxChoicebook,
49889 &_swigt__p_wxChoicebookEvent,
49890 &_swigt__p_wxClipboardTextEvent,
49891 &_swigt__p_wxCloseEvent,
49892 &_swigt__p_wxCollapsiblePane,
49893 &_swigt__p_wxCollapsiblePaneEvent,
49894 &_swigt__p_wxColour,
49895 &_swigt__p_wxColourPickerCtrl,
49896 &_swigt__p_wxColourPickerEvent,
49897 &_swigt__p_wxComboBox,
49898 &_swigt__p_wxCommandEvent,
49899 &_swigt__p_wxContextHelp,
49900 &_swigt__p_wxContextHelpButton,
49901 &_swigt__p_wxContextMenuEvent,
49902 &_swigt__p_wxControl,
49903 &_swigt__p_wxControlWithItems,
49904 &_swigt__p_wxCursor,
49905 &_swigt__p_wxDC,
49906 &_swigt__p_wxDateEvent,
49907 &_swigt__p_wxDatePickerCtrl,
49908 &_swigt__p_wxDateTime,
49909 &_swigt__p_wxDirFilterListCtrl,
49910 &_swigt__p_wxDirPickerCtrl,
49911 &_swigt__p_wxDisplayChangedEvent,
49912 &_swigt__p_wxDropFilesEvent,
49913 &_swigt__p_wxDuplexMode,
49914 &_swigt__p_wxEraseEvent,
49915 &_swigt__p_wxEvent,
49916 &_swigt__p_wxEventBlocker,
49917 &_swigt__p_wxEvtHandler,
49918 &_swigt__p_wxFSFile,
49919 &_swigt__p_wxFileDirPickerEvent,
49920 &_swigt__p_wxFilePickerCtrl,
49921 &_swigt__p_wxFileSystem,
49922 &_swigt__p_wxFlexGridSizer,
49923 &_swigt__p_wxFocusEvent,
49924 &_swigt__p_wxFont,
49925 &_swigt__p_wxFontPickerCtrl,
49926 &_swigt__p_wxFontPickerEvent,
49927 &_swigt__p_wxGBSizerItem,
49928 &_swigt__p_wxGIFHandler,
49929 &_swigt__p_wxGauge,
49930 &_swigt__p_wxGenericDirCtrl,
49931 &_swigt__p_wxGenericDragImage,
49932 &_swigt__p_wxGridBagSizer,
49933 &_swigt__p_wxGridSizer,
49934 &_swigt__p_wxHelpEvent,
49935 &_swigt__p_wxHelpProvider,
49936 &_swigt__p_wxHyperlinkCtrl,
49937 &_swigt__p_wxHyperlinkEvent,
49938 &_swigt__p_wxICOHandler,
49939 &_swigt__p_wxIcon,
49940 &_swigt__p_wxIconizeEvent,
49941 &_swigt__p_wxIdleEvent,
49942 &_swigt__p_wxImage,
49943 &_swigt__p_wxImageHandler,
49944 &_swigt__p_wxImageList,
49945 &_swigt__p_wxIndividualLayoutConstraint,
49946 &_swigt__p_wxInitDialogEvent,
49947 &_swigt__p_wxItemContainer,
49948 &_swigt__p_wxJPEGHandler,
49949 &_swigt__p_wxKeyEvent,
49950 &_swigt__p_wxLayoutConstraints,
49951 &_swigt__p_wxListBox,
49952 &_swigt__p_wxListEvent,
49953 &_swigt__p_wxListItem,
49954 &_swigt__p_wxListItemAttr,
49955 &_swigt__p_wxListView,
49956 &_swigt__p_wxListbook,
49957 &_swigt__p_wxListbookEvent,
49958 &_swigt__p_wxMaximizeEvent,
49959 &_swigt__p_wxMemoryDC,
49960 &_swigt__p_wxMenu,
49961 &_swigt__p_wxMenuBar,
49962 &_swigt__p_wxMenuEvent,
49963 &_swigt__p_wxMenuItem,
49964 &_swigt__p_wxMouseCaptureChangedEvent,
49965 &_swigt__p_wxMouseCaptureLostEvent,
49966 &_swigt__p_wxMouseEvent,
49967 &_swigt__p_wxMoveEvent,
49968 &_swigt__p_wxNavigationKeyEvent,
49969 &_swigt__p_wxNcPaintEvent,
49970 &_swigt__p_wxNotebook,
49971 &_swigt__p_wxNotebookEvent,
49972 &_swigt__p_wxNotifyEvent,
49973 &_swigt__p_wxObject,
49974 &_swigt__p_wxPCXHandler,
49975 &_swigt__p_wxPNGHandler,
49976 &_swigt__p_wxPNMHandler,
49977 &_swigt__p_wxPaintEvent,
49978 &_swigt__p_wxPaletteChangedEvent,
49979 &_swigt__p_wxPaperSize,
49980 &_swigt__p_wxPickerBase,
49981 &_swigt__p_wxPoint,
49982 &_swigt__p_wxPyApp,
49983 &_swigt__p_wxPyCommandEvent,
49984 &_swigt__p_wxPyControl,
49985 &_swigt__p_wxPyEvent,
49986 &_swigt__p_wxPyImageHandler,
49987 &_swigt__p_wxPyListCtrl,
49988 &_swigt__p_wxPySizer,
49989 &_swigt__p_wxPyTreeCtrl,
49990 &_swigt__p_wxPyTreeItemData,
49991 &_swigt__p_wxPyValidator,
49992 &_swigt__p_wxQueryNewPaletteEvent,
49993 &_swigt__p_wxRadioBox,
49994 &_swigt__p_wxRadioButton,
49995 &_swigt__p_wxRect,
49996 &_swigt__p_wxScrollBar,
49997 &_swigt__p_wxScrollEvent,
49998 &_swigt__p_wxScrollWinEvent,
49999 &_swigt__p_wxSearchCtrl,
50000 &_swigt__p_wxSetCursorEvent,
50001 &_swigt__p_wxShowEvent,
50002 &_swigt__p_wxSimpleHelpProvider,
50003 &_swigt__p_wxSize,
50004 &_swigt__p_wxSizeEvent,
50005 &_swigt__p_wxSizer,
50006 &_swigt__p_wxSizerItem,
50007 &_swigt__p_wxSlider,
50008 &_swigt__p_wxSpinButton,
50009 &_swigt__p_wxSpinCtrl,
50010 &_swigt__p_wxSpinEvent,
50011 &_swigt__p_wxStaticBitmap,
50012 &_swigt__p_wxStaticBox,
50013 &_swigt__p_wxStaticBoxSizer,
50014 &_swigt__p_wxStaticLine,
50015 &_swigt__p_wxStaticText,
50016 &_swigt__p_wxStdDialogButtonSizer,
50017 &_swigt__p_wxString,
50018 &_swigt__p_wxSysColourChangedEvent,
50019 &_swigt__p_wxTGAHandler,
50020 &_swigt__p_wxTIFFHandler,
50021 &_swigt__p_wxTextAttr,
50022 &_swigt__p_wxTextCtrl,
50023 &_swigt__p_wxTextUrlEvent,
50024 &_swigt__p_wxToggleButton,
50025 &_swigt__p_wxToolBar,
50026 &_swigt__p_wxToolBarBase,
50027 &_swigt__p_wxToolBarToolBase,
50028 &_swigt__p_wxToolbook,
50029 &_swigt__p_wxToolbookEvent,
50030 &_swigt__p_wxTreeEvent,
50031 &_swigt__p_wxTreeItemId,
50032 &_swigt__p_wxTreebook,
50033 &_swigt__p_wxTreebookEvent,
50034 &_swigt__p_wxUpdateUIEvent,
50035 &_swigt__p_wxValidator,
50036 &_swigt__p_wxVisualAttributes,
50037 &_swigt__p_wxWindow,
50038 &_swigt__p_wxWindowBase,
50039 &_swigt__p_wxWindowCreateEvent,
50040 &_swigt__p_wxWindowDestroyEvent,
50041 &_swigt__p_wxXPMHandler,
50042 };
50043
50044 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
50045 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
50046 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
50047 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
50048 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
50049 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
50050 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
50051 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
50052 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
50053 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
50054 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
50055 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
50056 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}};
50057 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}};
50058 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}};
50059 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}};
50060 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
50061 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
50062 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxChoice, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
50063 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
50064 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
50065 static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
50066 static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
50067 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
50068 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
50069 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
50070 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
50071 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
50072 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
50073 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
50074 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
50075 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
50076 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
50077 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
50078 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
50079 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
50080 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}};
50081 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
50082 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
50083 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}};
50084 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
50085 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
50086 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
50087 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
50088 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
50089 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
50090 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
50091 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
50092 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
50093 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
50094 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
50095 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
50096 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
50097 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
50098 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
50099 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
50100 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
50101 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
50102 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
50103 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
50104 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
50105 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
50106 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
50107 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
50108 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
50109 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
50110 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
50111 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
50112 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
50113 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
50114 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
50115 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
50116 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
50117 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}};
50118 static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
50119 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
50120 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
50121 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
50122 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
50123 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
50124 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
50125 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
50126 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
50127 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
50128 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
50129 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
50130 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
50131 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
50132 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}};
50133 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
50134 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
50135 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
50136 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
50137 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}};
50138 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
50139 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}};
50140 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
50141 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
50142 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
50143 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
50144 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
50145 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
50146 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
50147 static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
50148 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
50149 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
50150 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
50151 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}};
50152 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
50153 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
50154 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
50155 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
50156 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
50157 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
50158 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
50159 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
50160 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
50161 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
50162 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
50163 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
50164 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
50165 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
50166 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
50167 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
50168 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
50169 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
50170 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
50171 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
50172 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
50173 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
50174 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
50175 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
50176 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
50177 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
50178 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
50179 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
50180 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
50181 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
50182 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
50183 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSearchCtrl, _p_wxSearchCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
50184 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
50185 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}};
50186 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
50187 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
50188 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}};
50189 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
50190 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
50191 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
50192 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
50193 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
50194 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
50195 static swig_cast_info _swigc__p_wxSearchCtrl[] = { {&_swigt__p_wxSearchCtrl, 0, 0, 0},{0, 0, 0, 0}};
50196 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
50197 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
50198 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
50199 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
50200 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
50201 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
50202 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
50203 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
50204 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
50205 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
50206 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
50207 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
50208 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}};
50209 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
50210 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
50211 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
50212 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}};
50213 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
50214 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
50215 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
50216 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
50217 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
50218 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
50219 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
50220 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}};
50221 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
50222 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}};
50223 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
50224
50225 static swig_cast_info *swig_cast_initial[] = {
50226 _swigc__p_bool,
50227 _swigc__p_char,
50228 _swigc__p_form_ops_t,
50229 _swigc__p_int,
50230 _swigc__p_long,
50231 _swigc__p_unsigned_char,
50232 _swigc__p_unsigned_int,
50233 _swigc__p_unsigned_long,
50234 _swigc__p_void,
50235 _swigc__p_wxANIHandler,
50236 _swigc__p_wxAcceleratorTable,
50237 _swigc__p_wxActivateEvent,
50238 _swigc__p_wxArrayInt,
50239 _swigc__p_wxArrayString,
50240 _swigc__p_wxBMPHandler,
50241 _swigc__p_wxBitmap,
50242 _swigc__p_wxBitmapButton,
50243 _swigc__p_wxBookCtrlBase,
50244 _swigc__p_wxBookCtrlBaseEvent,
50245 _swigc__p_wxBoxSizer,
50246 _swigc__p_wxButton,
50247 _swigc__p_wxCURHandler,
50248 _swigc__p_wxCheckBox,
50249 _swigc__p_wxCheckListBox,
50250 _swigc__p_wxChildFocusEvent,
50251 _swigc__p_wxChoice,
50252 _swigc__p_wxChoicebook,
50253 _swigc__p_wxChoicebookEvent,
50254 _swigc__p_wxClipboardTextEvent,
50255 _swigc__p_wxCloseEvent,
50256 _swigc__p_wxCollapsiblePane,
50257 _swigc__p_wxCollapsiblePaneEvent,
50258 _swigc__p_wxColour,
50259 _swigc__p_wxColourPickerCtrl,
50260 _swigc__p_wxColourPickerEvent,
50261 _swigc__p_wxComboBox,
50262 _swigc__p_wxCommandEvent,
50263 _swigc__p_wxContextHelp,
50264 _swigc__p_wxContextHelpButton,
50265 _swigc__p_wxContextMenuEvent,
50266 _swigc__p_wxControl,
50267 _swigc__p_wxControlWithItems,
50268 _swigc__p_wxCursor,
50269 _swigc__p_wxDC,
50270 _swigc__p_wxDateEvent,
50271 _swigc__p_wxDatePickerCtrl,
50272 _swigc__p_wxDateTime,
50273 _swigc__p_wxDirFilterListCtrl,
50274 _swigc__p_wxDirPickerCtrl,
50275 _swigc__p_wxDisplayChangedEvent,
50276 _swigc__p_wxDropFilesEvent,
50277 _swigc__p_wxDuplexMode,
50278 _swigc__p_wxEraseEvent,
50279 _swigc__p_wxEvent,
50280 _swigc__p_wxEventBlocker,
50281 _swigc__p_wxEvtHandler,
50282 _swigc__p_wxFSFile,
50283 _swigc__p_wxFileDirPickerEvent,
50284 _swigc__p_wxFilePickerCtrl,
50285 _swigc__p_wxFileSystem,
50286 _swigc__p_wxFlexGridSizer,
50287 _swigc__p_wxFocusEvent,
50288 _swigc__p_wxFont,
50289 _swigc__p_wxFontPickerCtrl,
50290 _swigc__p_wxFontPickerEvent,
50291 _swigc__p_wxGBSizerItem,
50292 _swigc__p_wxGIFHandler,
50293 _swigc__p_wxGauge,
50294 _swigc__p_wxGenericDirCtrl,
50295 _swigc__p_wxGenericDragImage,
50296 _swigc__p_wxGridBagSizer,
50297 _swigc__p_wxGridSizer,
50298 _swigc__p_wxHelpEvent,
50299 _swigc__p_wxHelpProvider,
50300 _swigc__p_wxHyperlinkCtrl,
50301 _swigc__p_wxHyperlinkEvent,
50302 _swigc__p_wxICOHandler,
50303 _swigc__p_wxIcon,
50304 _swigc__p_wxIconizeEvent,
50305 _swigc__p_wxIdleEvent,
50306 _swigc__p_wxImage,
50307 _swigc__p_wxImageHandler,
50308 _swigc__p_wxImageList,
50309 _swigc__p_wxIndividualLayoutConstraint,
50310 _swigc__p_wxInitDialogEvent,
50311 _swigc__p_wxItemContainer,
50312 _swigc__p_wxJPEGHandler,
50313 _swigc__p_wxKeyEvent,
50314 _swigc__p_wxLayoutConstraints,
50315 _swigc__p_wxListBox,
50316 _swigc__p_wxListEvent,
50317 _swigc__p_wxListItem,
50318 _swigc__p_wxListItemAttr,
50319 _swigc__p_wxListView,
50320 _swigc__p_wxListbook,
50321 _swigc__p_wxListbookEvent,
50322 _swigc__p_wxMaximizeEvent,
50323 _swigc__p_wxMemoryDC,
50324 _swigc__p_wxMenu,
50325 _swigc__p_wxMenuBar,
50326 _swigc__p_wxMenuEvent,
50327 _swigc__p_wxMenuItem,
50328 _swigc__p_wxMouseCaptureChangedEvent,
50329 _swigc__p_wxMouseCaptureLostEvent,
50330 _swigc__p_wxMouseEvent,
50331 _swigc__p_wxMoveEvent,
50332 _swigc__p_wxNavigationKeyEvent,
50333 _swigc__p_wxNcPaintEvent,
50334 _swigc__p_wxNotebook,
50335 _swigc__p_wxNotebookEvent,
50336 _swigc__p_wxNotifyEvent,
50337 _swigc__p_wxObject,
50338 _swigc__p_wxPCXHandler,
50339 _swigc__p_wxPNGHandler,
50340 _swigc__p_wxPNMHandler,
50341 _swigc__p_wxPaintEvent,
50342 _swigc__p_wxPaletteChangedEvent,
50343 _swigc__p_wxPaperSize,
50344 _swigc__p_wxPickerBase,
50345 _swigc__p_wxPoint,
50346 _swigc__p_wxPyApp,
50347 _swigc__p_wxPyCommandEvent,
50348 _swigc__p_wxPyControl,
50349 _swigc__p_wxPyEvent,
50350 _swigc__p_wxPyImageHandler,
50351 _swigc__p_wxPyListCtrl,
50352 _swigc__p_wxPySizer,
50353 _swigc__p_wxPyTreeCtrl,
50354 _swigc__p_wxPyTreeItemData,
50355 _swigc__p_wxPyValidator,
50356 _swigc__p_wxQueryNewPaletteEvent,
50357 _swigc__p_wxRadioBox,
50358 _swigc__p_wxRadioButton,
50359 _swigc__p_wxRect,
50360 _swigc__p_wxScrollBar,
50361 _swigc__p_wxScrollEvent,
50362 _swigc__p_wxScrollWinEvent,
50363 _swigc__p_wxSearchCtrl,
50364 _swigc__p_wxSetCursorEvent,
50365 _swigc__p_wxShowEvent,
50366 _swigc__p_wxSimpleHelpProvider,
50367 _swigc__p_wxSize,
50368 _swigc__p_wxSizeEvent,
50369 _swigc__p_wxSizer,
50370 _swigc__p_wxSizerItem,
50371 _swigc__p_wxSlider,
50372 _swigc__p_wxSpinButton,
50373 _swigc__p_wxSpinCtrl,
50374 _swigc__p_wxSpinEvent,
50375 _swigc__p_wxStaticBitmap,
50376 _swigc__p_wxStaticBox,
50377 _swigc__p_wxStaticBoxSizer,
50378 _swigc__p_wxStaticLine,
50379 _swigc__p_wxStaticText,
50380 _swigc__p_wxStdDialogButtonSizer,
50381 _swigc__p_wxString,
50382 _swigc__p_wxSysColourChangedEvent,
50383 _swigc__p_wxTGAHandler,
50384 _swigc__p_wxTIFFHandler,
50385 _swigc__p_wxTextAttr,
50386 _swigc__p_wxTextCtrl,
50387 _swigc__p_wxTextUrlEvent,
50388 _swigc__p_wxToggleButton,
50389 _swigc__p_wxToolBar,
50390 _swigc__p_wxToolBarBase,
50391 _swigc__p_wxToolBarToolBase,
50392 _swigc__p_wxToolbook,
50393 _swigc__p_wxToolbookEvent,
50394 _swigc__p_wxTreeEvent,
50395 _swigc__p_wxTreeItemId,
50396 _swigc__p_wxTreebook,
50397 _swigc__p_wxTreebookEvent,
50398 _swigc__p_wxUpdateUIEvent,
50399 _swigc__p_wxValidator,
50400 _swigc__p_wxVisualAttributes,
50401 _swigc__p_wxWindow,
50402 _swigc__p_wxWindowBase,
50403 _swigc__p_wxWindowCreateEvent,
50404 _swigc__p_wxWindowDestroyEvent,
50405 _swigc__p_wxXPMHandler,
50406 };
50407
50408
50409 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
50410
50411 static swig_const_info swig_const_table[] = {
50412 {0, 0, 0, 0.0, 0, 0}};
50413
50414 #ifdef __cplusplus
50415 }
50416 #endif
50417 /* -----------------------------------------------------------------------------
50418 * Type initialization:
50419 * This problem is tough by the requirement that no dynamic
50420 * memory is used. Also, since swig_type_info structures store pointers to
50421 * swig_cast_info structures and swig_cast_info structures store pointers back
50422 * to swig_type_info structures, we need some lookup code at initialization.
50423 * The idea is that swig generates all the structures that are needed.
50424 * The runtime then collects these partially filled structures.
50425 * The SWIG_InitializeModule function takes these initial arrays out of
50426 * swig_module, and does all the lookup, filling in the swig_module.types
50427 * array with the correct data and linking the correct swig_cast_info
50428 * structures together.
50429 *
50430 * The generated swig_type_info structures are assigned staticly to an initial
50431 * array. We just loop though that array, and handle each type individually.
50432 * First we lookup if this type has been already loaded, and if so, use the
50433 * loaded structure instead of the generated one. Then we have to fill in the
50434 * cast linked list. The cast data is initially stored in something like a
50435 * two-dimensional array. Each row corresponds to a type (there are the same
50436 * number of rows as there are in the swig_type_initial array). Each entry in
50437 * a column is one of the swig_cast_info structures for that type.
50438 * The cast_initial array is actually an array of arrays, because each row has
50439 * a variable number of columns. So to actually build the cast linked list,
50440 * we find the array of casts associated with the type, and loop through it
50441 * adding the casts to the list. The one last trick we need to do is making
50442 * sure the type pointer in the swig_cast_info struct is correct.
50443 *
50444 * First off, we lookup the cast->type name to see if it is already loaded.
50445 * There are three cases to handle:
50446 * 1) If the cast->type has already been loaded AND the type we are adding
50447 * casting info to has not been loaded (it is in this module), THEN we
50448 * replace the cast->type pointer with the type pointer that has already
50449 * been loaded.
50450 * 2) If BOTH types (the one we are adding casting info to, and the
50451 * cast->type) are loaded, THEN the cast info has already been loaded by
50452 * the previous module so we just ignore it.
50453 * 3) Finally, if cast->type has not already been loaded, then we add that
50454 * swig_cast_info to the linked list (because the cast->type) pointer will
50455 * be correct.
50456 * ----------------------------------------------------------------------------- */
50457
50458 #ifdef __cplusplus
50459 extern "C" {
50460 #if 0
50461 } /* c-mode */
50462 #endif
50463 #endif
50464
50465 #if 0
50466 #define SWIGRUNTIME_DEBUG
50467 #endif
50468
50469 SWIGRUNTIME void
50470 SWIG_InitializeModule(void *clientdata) {
50471 size_t i;
50472 swig_module_info *module_head;
50473 static int init_run = 0;
50474
50475 clientdata = clientdata;
50476
50477 if (init_run) return;
50478 init_run = 1;
50479
50480 /* Initialize the swig_module */
50481 swig_module.type_initial = swig_type_initial;
50482 swig_module.cast_initial = swig_cast_initial;
50483
50484 /* Try and load any already created modules */
50485 module_head = SWIG_GetModule(clientdata);
50486 if (module_head) {
50487 swig_module.next = module_head->next;
50488 module_head->next = &swig_module;
50489 } else {
50490 /* This is the first module loaded */
50491 swig_module.next = &swig_module;
50492 SWIG_SetModule(clientdata, &swig_module);
50493 }
50494
50495 /* Now work on filling in swig_module.types */
50496 #ifdef SWIGRUNTIME_DEBUG
50497 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
50498 #endif
50499 for (i = 0; i < swig_module.size; ++i) {
50500 swig_type_info *type = 0;
50501 swig_type_info *ret;
50502 swig_cast_info *cast;
50503
50504 #ifdef SWIGRUNTIME_DEBUG
50505 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50506 #endif
50507
50508 /* if there is another module already loaded */
50509 if (swig_module.next != &swig_module) {
50510 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
50511 }
50512 if (type) {
50513 /* Overwrite clientdata field */
50514 #ifdef SWIGRUNTIME_DEBUG
50515 printf("SWIG_InitializeModule: found type %s\n", type->name);
50516 #endif
50517 if (swig_module.type_initial[i]->clientdata) {
50518 type->clientdata = swig_module.type_initial[i]->clientdata;
50519 #ifdef SWIGRUNTIME_DEBUG
50520 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
50521 #endif
50522 }
50523 } else {
50524 type = swig_module.type_initial[i];
50525 }
50526
50527 /* Insert casting types */
50528 cast = swig_module.cast_initial[i];
50529 while (cast->type) {
50530 /* Don't need to add information already in the list */
50531 ret = 0;
50532 #ifdef SWIGRUNTIME_DEBUG
50533 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
50534 #endif
50535 if (swig_module.next != &swig_module) {
50536 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
50537 #ifdef SWIGRUNTIME_DEBUG
50538 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
50539 #endif
50540 }
50541 if (ret) {
50542 if (type == swig_module.type_initial[i]) {
50543 #ifdef SWIGRUNTIME_DEBUG
50544 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
50545 #endif
50546 cast->type = ret;
50547 ret = 0;
50548 } else {
50549 /* Check for casting already in the list */
50550 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
50551 #ifdef SWIGRUNTIME_DEBUG
50552 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
50553 #endif
50554 if (!ocast) ret = 0;
50555 }
50556 }
50557
50558 if (!ret) {
50559 #ifdef SWIGRUNTIME_DEBUG
50560 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
50561 #endif
50562 if (type->cast) {
50563 type->cast->prev = cast;
50564 cast->next = type->cast;
50565 }
50566 type->cast = cast;
50567 }
50568 cast++;
50569 }
50570 /* Set entry in modules->types array equal to the type */
50571 swig_module.types[i] = type;
50572 }
50573 swig_module.types[i] = 0;
50574
50575 #ifdef SWIGRUNTIME_DEBUG
50576 printf("**** SWIG_InitializeModule: Cast List ******\n");
50577 for (i = 0; i < swig_module.size; ++i) {
50578 int j = 0;
50579 swig_cast_info *cast = swig_module.cast_initial[i];
50580 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
50581 while (cast->type) {
50582 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
50583 cast++;
50584 ++j;
50585 }
50586 printf("---- Total casts: %d\n",j);
50587 }
50588 printf("**** SWIG_InitializeModule: Cast List ******\n");
50589 #endif
50590 }
50591
50592 /* This function will propagate the clientdata field of type to
50593 * any new swig_type_info structures that have been added into the list
50594 * of equivalent types. It is like calling
50595 * SWIG_TypeClientData(type, clientdata) a second time.
50596 */
50597 SWIGRUNTIME void
50598 SWIG_PropagateClientData(void) {
50599 size_t i;
50600 swig_cast_info *equiv;
50601 static int init_run = 0;
50602
50603 if (init_run) return;
50604 init_run = 1;
50605
50606 for (i = 0; i < swig_module.size; i++) {
50607 if (swig_module.types[i]->clientdata) {
50608 equiv = swig_module.types[i]->cast;
50609 while (equiv) {
50610 if (!equiv->converter) {
50611 if (equiv->type && !equiv->type->clientdata)
50612 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
50613 }
50614 equiv = equiv->next;
50615 }
50616 }
50617 }
50618 }
50619
50620 #ifdef __cplusplus
50621 #if 0
50622 {
50623 /* c-mode */
50624 #endif
50625 }
50626 #endif
50627
50628
50629
50630 #ifdef __cplusplus
50631 extern "C" {
50632 #endif
50633
50634 /* Python-specific SWIG API */
50635 #define SWIG_newvarlink() SWIG_Python_newvarlink()
50636 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
50637 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
50638
50639 /* -----------------------------------------------------------------------------
50640 * global variable support code.
50641 * ----------------------------------------------------------------------------- */
50642
50643 typedef struct swig_globalvar {
50644 char *name; /* Name of global variable */
50645 PyObject *(*get_attr)(void); /* Return the current value */
50646 int (*set_attr)(PyObject *); /* Set the value */
50647 struct swig_globalvar *next;
50648 } swig_globalvar;
50649
50650 typedef struct swig_varlinkobject {
50651 PyObject_HEAD
50652 swig_globalvar *vars;
50653 } swig_varlinkobject;
50654
50655 SWIGINTERN PyObject *
50656 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
50657 return PyString_FromString("<Swig global variables>");
50658 }
50659
50660 SWIGINTERN PyObject *
50661 swig_varlink_str(swig_varlinkobject *v) {
50662 PyObject *str = PyString_FromString("(");
50663 swig_globalvar *var;
50664 for (var = v->vars; var; var=var->next) {
50665 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
50666 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
50667 }
50668 PyString_ConcatAndDel(&str,PyString_FromString(")"));
50669 return str;
50670 }
50671
50672 SWIGINTERN int
50673 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
50674 PyObject *str = swig_varlink_str(v);
50675 fprintf(fp,"Swig global variables ");
50676 fprintf(fp,"%s\n", PyString_AsString(str));
50677 Py_DECREF(str);
50678 return 0;
50679 }
50680
50681 SWIGINTERN void
50682 swig_varlink_dealloc(swig_varlinkobject *v) {
50683 swig_globalvar *var = v->vars;
50684 while (var) {
50685 swig_globalvar *n = var->next;
50686 free(var->name);
50687 free(var);
50688 var = n;
50689 }
50690 }
50691
50692 SWIGINTERN PyObject *
50693 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
50694 PyObject *res = NULL;
50695 swig_globalvar *var = v->vars;
50696 while (var) {
50697 if (strcmp(var->name,n) == 0) {
50698 res = (*var->get_attr)();
50699 break;
50700 }
50701 var = var->next;
50702 }
50703 if (res == NULL && !PyErr_Occurred()) {
50704 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50705 }
50706 return res;
50707 }
50708
50709 SWIGINTERN int
50710 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
50711 int res = 1;
50712 swig_globalvar *var = v->vars;
50713 while (var) {
50714 if (strcmp(var->name,n) == 0) {
50715 res = (*var->set_attr)(p);
50716 break;
50717 }
50718 var = var->next;
50719 }
50720 if (res == 1 && !PyErr_Occurred()) {
50721 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
50722 }
50723 return res;
50724 }
50725
50726 SWIGINTERN PyTypeObject*
50727 swig_varlink_type(void) {
50728 static char varlink__doc__[] = "Swig var link object";
50729 static PyTypeObject varlink_type;
50730 static int type_init = 0;
50731 if (!type_init) {
50732 const PyTypeObject tmp
50733 = {
50734 PyObject_HEAD_INIT(NULL)
50735 0, /* Number of items in variable part (ob_size) */
50736 (char *)"swigvarlink", /* Type name (tp_name) */
50737 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
50738 0, /* Itemsize (tp_itemsize) */
50739 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
50740 (printfunc) swig_varlink_print, /* Print (tp_print) */
50741 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
50742 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
50743 0, /* tp_compare */
50744 (reprfunc) swig_varlink_repr, /* tp_repr */
50745 0, /* tp_as_number */
50746 0, /* tp_as_sequence */
50747 0, /* tp_as_mapping */
50748 0, /* tp_hash */
50749 0, /* tp_call */
50750 (reprfunc)swig_varlink_str, /* tp_str */
50751 0, /* tp_getattro */
50752 0, /* tp_setattro */
50753 0, /* tp_as_buffer */
50754 0, /* tp_flags */
50755 varlink__doc__, /* tp_doc */
50756 0, /* tp_traverse */
50757 0, /* tp_clear */
50758 0, /* tp_richcompare */
50759 0, /* tp_weaklistoffset */
50760 #if PY_VERSION_HEX >= 0x02020000
50761 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
50762 #endif
50763 #if PY_VERSION_HEX >= 0x02030000
50764 0, /* tp_del */
50765 #endif
50766 #ifdef COUNT_ALLOCS
50767 0,0,0,0 /* tp_alloc -> tp_next */
50768 #endif
50769 };
50770 varlink_type = tmp;
50771 varlink_type.ob_type = &PyType_Type;
50772 type_init = 1;
50773 }
50774 return &varlink_type;
50775 }
50776
50777 /* Create a variable linking object for use later */
50778 SWIGINTERN PyObject *
50779 SWIG_Python_newvarlink(void) {
50780 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
50781 if (result) {
50782 result->vars = 0;
50783 }
50784 return ((PyObject*) result);
50785 }
50786
50787 SWIGINTERN void
50788 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
50789 swig_varlinkobject *v = (swig_varlinkobject *) p;
50790 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
50791 if (gv) {
50792 size_t size = strlen(name)+1;
50793 gv->name = (char *)malloc(size);
50794 if (gv->name) {
50795 strncpy(gv->name,name,size);
50796 gv->get_attr = get_attr;
50797 gv->set_attr = set_attr;
50798 gv->next = v->vars;
50799 }
50800 }
50801 v->vars = gv;
50802 }
50803
50804 SWIGINTERN PyObject *
50805 SWIG_globals() {
50806 static PyObject *_SWIG_globals = 0;
50807 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
50808 return _SWIG_globals;
50809 }
50810
50811 /* -----------------------------------------------------------------------------
50812 * constants/methods manipulation
50813 * ----------------------------------------------------------------------------- */
50814
50815 /* Install Constants */
50816 SWIGINTERN void
50817 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
50818 PyObject *obj = 0;
50819 size_t i;
50820 for (i = 0; constants[i].type; ++i) {
50821 switch(constants[i].type) {
50822 case SWIG_PY_POINTER:
50823 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
50824 break;
50825 case SWIG_PY_BINARY:
50826 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
50827 break;
50828 default:
50829 obj = 0;
50830 break;
50831 }
50832 if (obj) {
50833 PyDict_SetItemString(d, constants[i].name, obj);
50834 Py_DECREF(obj);
50835 }
50836 }
50837 }
50838
50839 /* -----------------------------------------------------------------------------*/
50840 /* Fix SwigMethods to carry the callback ptrs when needed */
50841 /* -----------------------------------------------------------------------------*/
50842
50843 SWIGINTERN void
50844 SWIG_Python_FixMethods(PyMethodDef *methods,
50845 swig_const_info *const_table,
50846 swig_type_info **types,
50847 swig_type_info **types_initial) {
50848 size_t i;
50849 for (i = 0; methods[i].ml_name; ++i) {
50850 const char *c = methods[i].ml_doc;
50851 if (c && (c = strstr(c, "swig_ptr: "))) {
50852 int j;
50853 swig_const_info *ci = 0;
50854 const char *name = c + 10;
50855 for (j = 0; const_table[j].type; ++j) {
50856 if (strncmp(const_table[j].name, name,
50857 strlen(const_table[j].name)) == 0) {
50858 ci = &(const_table[j]);
50859 break;
50860 }
50861 }
50862 if (ci) {
50863 size_t shift = (ci->ptype) - types;
50864 swig_type_info *ty = types_initial[shift];
50865 size_t ldoc = (c - methods[i].ml_doc);
50866 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
50867 char *ndoc = (char*)malloc(ldoc + lptr + 10);
50868 if (ndoc) {
50869 char *buff = ndoc;
50870 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
50871 if (ptr) {
50872 strncpy(buff, methods[i].ml_doc, ldoc);
50873 buff += ldoc;
50874 strncpy(buff, "swig_ptr: ", 10);
50875 buff += 10;
50876 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
50877 methods[i].ml_doc = ndoc;
50878 }
50879 }
50880 }
50881 }
50882 }
50883 }
50884
50885 #ifdef __cplusplus
50886 }
50887 #endif
50888
50889 /* -----------------------------------------------------------------------------*
50890 * Partial Init method
50891 * -----------------------------------------------------------------------------*/
50892
50893 #ifdef __cplusplus
50894 extern "C"
50895 #endif
50896 SWIGEXPORT void SWIG_init(void) {
50897 PyObject *m, *d;
50898
50899 /* Fix SwigMethods to carry the callback ptrs when needed */
50900 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
50901
50902 m = Py_InitModule((char *) SWIG_name, SwigMethods);
50903 d = PyModule_GetDict(m);
50904
50905 SWIG_InitializeModule(0);
50906 SWIG_InstallConstants(d,swig_const_table);
50907
50908
50909 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
50910 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
50911 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
50912 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
50913 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
50914 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
50915 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
50916 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
50917 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
50918 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
50919 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
50920 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
50921 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
50922 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
50923 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
50924 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
50925 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
50926 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
50927 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
50928 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
50929 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
50930 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
50931 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
50932 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
50933 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
50934 SWIG_addvarlink(SWIG_globals(),(char*)"StaticLineNameStr",StaticLineNameStr_get, StaticLineNameStr_set);
50935 SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
50936 SWIG_Python_SetConstant(d, "ST_MARKUP",SWIG_From_int(static_cast< int >(wxST_MARKUP)));
50937 SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_START",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_START)));
50938 SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_MIDDLE",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_MIDDLE)));
50939 SWIG_Python_SetConstant(d, "ST_ELLIPSIZE_END",SWIG_From_int(static_cast< int >(wxST_ELLIPSIZE_END)));
50940 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
50941 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
50942 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
50943 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
50944 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
50945 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
50946 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
50947 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
50948 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
50949 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
50950 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
50951 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
50952 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
50953 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
50954 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
50955 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
50956 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
50957 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
50958 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
50959 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
50960 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
50961 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
50962 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
50963 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
50964 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
50965 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
50966 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
50967 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
50968 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
50969 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
50970 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
50971 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
50972 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
50973 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
50974 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
50975 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
50976 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
50977 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
50978 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
50979 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
50980 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
50981 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
50982 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
50983 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
50984 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
50985 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
50986 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
50987 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
50988 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
50989 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
50990 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
50991 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
50992 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
50993 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
50994 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
50995 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
50996 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
50997 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
50998 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
50999 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
51000 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
51001 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
51002 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
51003 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
51004 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
51005 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
51006 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
51007 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
51008 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
51009 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
51010 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
51011 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
51012 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
51013 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
51014 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
51015 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
51016 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
51017 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
51018 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
51019 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
51020 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
51021 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
51022 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
51023 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
51024 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
51025 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
51026 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
51027 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
51028 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
51029 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
51030 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
51031 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
51032 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
51033 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
51034 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
51035 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
51036 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
51037 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
51038 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
51039 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
51040 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
51041 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
51042 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
51043 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
51044 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
51045 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
51046 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
51047 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
51048 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
51049 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
51050 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
51051 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
51052 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
51053 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
51054 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
51055 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
51056 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
51057 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
51058 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
51059 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
51060 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
51061 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
51062 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
51063 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
51064 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
51065 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
51066 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
51067 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
51068 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
51069 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
51070 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
51071 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
51072 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
51073 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
51074 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
51075 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
51076 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
51077 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
51078 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
51079 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
51080 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
51081 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
51082 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
51083 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
51084 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
51085 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
51086 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
51087 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
51088 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
51089 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
51090 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
51091 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
51092 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
51093 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
51094 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
51095 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
51096 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
51097 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
51098 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
51099 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
51100 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
51101 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
51102 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
51103 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
51104 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
51105 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
51106 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
51107 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
51108 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
51109 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
51110 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
51111 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
51112 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
51113 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
51114 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
51115 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
51116 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
51117 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
51118 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
51119 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
51120 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
51121 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
51122 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
51123 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
51124 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
51125 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
51126 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
51127 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
51128 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
51129 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
51130 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
51131 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
51132 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
51133 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
51134 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
51135 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
51136 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
51137 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
51138 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
51139 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
51140 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
51141 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
51142 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
51143 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
51144 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
51145 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
51146 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
51147 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
51148 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
51149 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
51150 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
51151 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
51152 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
51153 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
51154 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
51155 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
51156 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
51157 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
51158 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
51159 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
51160 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
51161 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
51162 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
51163 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
51164 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
51165 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
51166 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
51167 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
51168 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
51169 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
51170 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
51171 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
51172 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
51173 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
51174 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
51175
51176 // Map renamed classes back to their common name for OOR
51177 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
51178
51179 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
51180 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
51181 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
51182 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
51183 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
51184 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
51185 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
51186 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
51187 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
51188 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
51189 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
51190 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
51191 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
51192 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
51193 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
51194 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
51195 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
51196 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
51197 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
51198 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
51199 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
51200 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
51201 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
51202 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
51203 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
51204 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
51205 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
51206 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
51207 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
51208 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
51209 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
51210 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
51211 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
51212 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
51213 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
51214 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
51215 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
51216 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
51217 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
51218 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
51219 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
51220 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
51221 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
51222 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
51223 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
51224 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
51225 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
51226 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
51227 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
51228 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
51229 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
51230 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
51231 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
51232 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
51233 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
51234 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
51235
51236 // Map renamed classes back to their common name for OOR
51237 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
51238 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
51239
51240 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
51241 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
51242 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
51243 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
51244 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
51245 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
51246 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
51247 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
51248 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
51249 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
51250 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
51251
51252 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
51253
51254 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
51255 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
51256 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
51257 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
51258 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
51259 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
51260 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
51261 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
51262 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
51263 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
51264 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
51265 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
51266 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
51267 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
51268 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
51269 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
51270 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
51271 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
51272 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
51273 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
51274 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
51275 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
51276 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
51277 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
51278 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
51279 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
51280 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
51281 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
51282 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
51283 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
51284 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
51285 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
51286 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
51287 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
51288 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
51289 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
51290 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
51291 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
51292 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
51293 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
51294 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
51295 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
51296 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
51297 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
51298 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
51299 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
51300 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
51301 SWIG_addvarlink(SWIG_globals(),(char*)"SearchCtrlNameStr",SearchCtrlNameStr_get, SearchCtrlNameStr_set);
51302 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN));
51303 PyDict_SetItemString(d, "wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN", PyInt_FromLong(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN));
51304 }
51305