]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
b7737a4a9d318fc02933240759878aeb9c1fb9bd
[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 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_bool swig_types[0]
2463 #define SWIGTYPE_p_char swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_long swig_types[4]
2467 #define SWIGTYPE_p_unsigned_char swig_types[5]
2468 #define SWIGTYPE_p_unsigned_int swig_types[6]
2469 #define SWIGTYPE_p_unsigned_long swig_types[7]
2470 #define SWIGTYPE_p_void swig_types[8]
2471 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2472 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2473 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2474 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2475 #define SWIGTYPE_p_wxArrayString swig_types[13]
2476 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2477 #define SWIGTYPE_p_wxBitmap swig_types[15]
2478 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2479 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2480 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2482 #define SWIGTYPE_p_wxButton swig_types[20]
2483 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2484 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2485 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2486 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2487 #define SWIGTYPE_p_wxChoice swig_types[25]
2488 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2489 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2490 #define SWIGTYPE_p_wxCloseEvent swig_types[28]
2491 #define SWIGTYPE_p_wxColour swig_types[29]
2492 #define SWIGTYPE_p_wxComboBox swig_types[30]
2493 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2494 #define SWIGTYPE_p_wxContextHelp swig_types[32]
2495 #define SWIGTYPE_p_wxContextHelpButton swig_types[33]
2496 #define SWIGTYPE_p_wxContextMenuEvent swig_types[34]
2497 #define SWIGTYPE_p_wxControl swig_types[35]
2498 #define SWIGTYPE_p_wxControlWithItems swig_types[36]
2499 #define SWIGTYPE_p_wxCursor swig_types[37]
2500 #define SWIGTYPE_p_wxDC swig_types[38]
2501 #define SWIGTYPE_p_wxDateEvent swig_types[39]
2502 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[40]
2503 #define SWIGTYPE_p_wxDateTime swig_types[41]
2504 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[42]
2505 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[43]
2506 #define SWIGTYPE_p_wxDropFilesEvent swig_types[44]
2507 #define SWIGTYPE_p_wxDuplexMode swig_types[45]
2508 #define SWIGTYPE_p_wxEraseEvent swig_types[46]
2509 #define SWIGTYPE_p_wxEvent swig_types[47]
2510 #define SWIGTYPE_p_wxEvtHandler swig_types[48]
2511 #define SWIGTYPE_p_wxFSFile swig_types[49]
2512 #define SWIGTYPE_p_wxFileSystem swig_types[50]
2513 #define SWIGTYPE_p_wxFlexGridSizer swig_types[51]
2514 #define SWIGTYPE_p_wxFocusEvent swig_types[52]
2515 #define SWIGTYPE_p_wxFont swig_types[53]
2516 #define SWIGTYPE_p_wxGBSizerItem swig_types[54]
2517 #define SWIGTYPE_p_wxGIFHandler swig_types[55]
2518 #define SWIGTYPE_p_wxGauge swig_types[56]
2519 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[57]
2520 #define SWIGTYPE_p_wxGenericDragImage swig_types[58]
2521 #define SWIGTYPE_p_wxGridBagSizer swig_types[59]
2522 #define SWIGTYPE_p_wxGridSizer swig_types[60]
2523 #define SWIGTYPE_p_wxHelpEvent swig_types[61]
2524 #define SWIGTYPE_p_wxHelpProvider swig_types[62]
2525 #define SWIGTYPE_p_wxICOHandler swig_types[63]
2526 #define SWIGTYPE_p_wxIcon swig_types[64]
2527 #define SWIGTYPE_p_wxIconizeEvent swig_types[65]
2528 #define SWIGTYPE_p_wxIdleEvent swig_types[66]
2529 #define SWIGTYPE_p_wxImage swig_types[67]
2530 #define SWIGTYPE_p_wxImageHandler swig_types[68]
2531 #define SWIGTYPE_p_wxImageList swig_types[69]
2532 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[70]
2533 #define SWIGTYPE_p_wxInitDialogEvent swig_types[71]
2534 #define SWIGTYPE_p_wxItemContainer swig_types[72]
2535 #define SWIGTYPE_p_wxJPEGHandler swig_types[73]
2536 #define SWIGTYPE_p_wxKeyEvent swig_types[74]
2537 #define SWIGTYPE_p_wxLayoutConstraints swig_types[75]
2538 #define SWIGTYPE_p_wxListBox swig_types[76]
2539 #define SWIGTYPE_p_wxListEvent swig_types[77]
2540 #define SWIGTYPE_p_wxListItem swig_types[78]
2541 #define SWIGTYPE_p_wxListItemAttr swig_types[79]
2542 #define SWIGTYPE_p_wxListView swig_types[80]
2543 #define SWIGTYPE_p_wxListbook swig_types[81]
2544 #define SWIGTYPE_p_wxListbookEvent swig_types[82]
2545 #define SWIGTYPE_p_wxMaximizeEvent swig_types[83]
2546 #define SWIGTYPE_p_wxMemoryDC swig_types[84]
2547 #define SWIGTYPE_p_wxMenu swig_types[85]
2548 #define SWIGTYPE_p_wxMenuBar swig_types[86]
2549 #define SWIGTYPE_p_wxMenuEvent swig_types[87]
2550 #define SWIGTYPE_p_wxMenuItem swig_types[88]
2551 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2552 #define SWIGTYPE_p_wxMouseEvent swig_types[90]
2553 #define SWIGTYPE_p_wxMoveEvent swig_types[91]
2554 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92]
2555 #define SWIGTYPE_p_wxNcPaintEvent swig_types[93]
2556 #define SWIGTYPE_p_wxNotebook swig_types[94]
2557 #define SWIGTYPE_p_wxNotebookEvent swig_types[95]
2558 #define SWIGTYPE_p_wxNotifyEvent swig_types[96]
2559 #define SWIGTYPE_p_wxObject swig_types[97]
2560 #define SWIGTYPE_p_wxPCXHandler swig_types[98]
2561 #define SWIGTYPE_p_wxPNGHandler swig_types[99]
2562 #define SWIGTYPE_p_wxPNMHandler swig_types[100]
2563 #define SWIGTYPE_p_wxPaintEvent swig_types[101]
2564 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[102]
2565 #define SWIGTYPE_p_wxPaperSize swig_types[103]
2566 #define SWIGTYPE_p_wxPoint swig_types[104]
2567 #define SWIGTYPE_p_wxPyApp swig_types[105]
2568 #define SWIGTYPE_p_wxPyCommandEvent swig_types[106]
2569 #define SWIGTYPE_p_wxPyControl swig_types[107]
2570 #define SWIGTYPE_p_wxPyEvent swig_types[108]
2571 #define SWIGTYPE_p_wxPyImageHandler swig_types[109]
2572 #define SWIGTYPE_p_wxPyListCtrl swig_types[110]
2573 #define SWIGTYPE_p_wxPySizer swig_types[111]
2574 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[112]
2575 #define SWIGTYPE_p_wxPyTreeItemData swig_types[113]
2576 #define SWIGTYPE_p_wxPyValidator swig_types[114]
2577 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[115]
2578 #define SWIGTYPE_p_wxRadioBox swig_types[116]
2579 #define SWIGTYPE_p_wxRadioButton swig_types[117]
2580 #define SWIGTYPE_p_wxRect swig_types[118]
2581 #define SWIGTYPE_p_wxScrollBar swig_types[119]
2582 #define SWIGTYPE_p_wxScrollEvent swig_types[120]
2583 #define SWIGTYPE_p_wxScrollWinEvent swig_types[121]
2584 #define SWIGTYPE_p_wxSetCursorEvent swig_types[122]
2585 #define SWIGTYPE_p_wxShowEvent swig_types[123]
2586 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[124]
2587 #define SWIGTYPE_p_wxSize swig_types[125]
2588 #define SWIGTYPE_p_wxSizeEvent swig_types[126]
2589 #define SWIGTYPE_p_wxSizer swig_types[127]
2590 #define SWIGTYPE_p_wxSizerItem swig_types[128]
2591 #define SWIGTYPE_p_wxSlider swig_types[129]
2592 #define SWIGTYPE_p_wxSpinButton swig_types[130]
2593 #define SWIGTYPE_p_wxSpinCtrl swig_types[131]
2594 #define SWIGTYPE_p_wxSpinEvent swig_types[132]
2595 #define SWIGTYPE_p_wxStaticBitmap swig_types[133]
2596 #define SWIGTYPE_p_wxStaticBox swig_types[134]
2597 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[135]
2598 #define SWIGTYPE_p_wxStaticLine swig_types[136]
2599 #define SWIGTYPE_p_wxStaticText swig_types[137]
2600 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[138]
2601 #define SWIGTYPE_p_wxString swig_types[139]
2602 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[140]
2603 #define SWIGTYPE_p_wxTIFFHandler swig_types[141]
2604 #define SWIGTYPE_p_wxTextAttr swig_types[142]
2605 #define SWIGTYPE_p_wxTextCtrl swig_types[143]
2606 #define SWIGTYPE_p_wxTextUrlEvent swig_types[144]
2607 #define SWIGTYPE_p_wxToggleButton swig_types[145]
2608 #define SWIGTYPE_p_wxToolBar swig_types[146]
2609 #define SWIGTYPE_p_wxToolBarBase swig_types[147]
2610 #define SWIGTYPE_p_wxToolBarToolBase swig_types[148]
2611 #define SWIGTYPE_p_wxToolbook swig_types[149]
2612 #define SWIGTYPE_p_wxToolbookEvent swig_types[150]
2613 #define SWIGTYPE_p_wxTreeCtrl swig_types[151]
2614 #define SWIGTYPE_p_wxTreeEvent swig_types[152]
2615 #define SWIGTYPE_p_wxTreeItemId swig_types[153]
2616 #define SWIGTYPE_p_wxTreebook swig_types[154]
2617 #define SWIGTYPE_p_wxTreebookEvent swig_types[155]
2618 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[156]
2619 #define SWIGTYPE_p_wxValidator swig_types[157]
2620 #define SWIGTYPE_p_wxVisualAttributes swig_types[158]
2621 #define SWIGTYPE_p_wxWindow swig_types[159]
2622 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[160]
2623 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[161]
2624 #define SWIGTYPE_p_wxXPMHandler swig_types[162]
2625 static swig_type_info *swig_types[164];
2626 static swig_module_info swig_module = {swig_types, 163, 0, 0, 0, 0};
2627 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2628 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2629
2630 /* -------- TYPES TABLE (END) -------- */
2631
2632 #if (PY_VERSION_HEX <= 0x02000000)
2633 # if !defined(SWIG_PYTHON_CLASSIC)
2634 # error "This python version requires to use swig with the '-classic' option"
2635 # endif
2636 #endif
2637 #if (PY_VERSION_HEX <= 0x02020000)
2638 # error "This python version requires to use swig with the '-nomodern' option"
2639 #endif
2640 #if (PY_VERSION_HEX <= 0x02020000)
2641 # error "This python version requires to use swig with the '-nomodernargs' option"
2642 #endif
2643 #ifndef METH_O
2644 # error "This python version requires to use swig with the '-nofastunpack' option"
2645 #endif
2646
2647 /*-----------------------------------------------
2648 @(target):= _controls_.so
2649 ------------------------------------------------*/
2650 #define SWIG_init init_controls_
2651
2652 #define SWIG_name "_controls_"
2653
2654 #define SWIGVERSION 0x010329
2655
2656
2657 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2658 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2659
2660
2661 #include <stdexcept>
2662
2663
2664 namespace swig {
2665 class PyObject_ptr {
2666 protected:
2667 PyObject *_obj;
2668
2669 public:
2670 PyObject_ptr() :_obj(0)
2671 {
2672 }
2673
2674 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2675 {
2676 Py_XINCREF(_obj);
2677 }
2678
2679 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2680 {
2681 if (initial_ref) Py_XINCREF(_obj);
2682 }
2683
2684 PyObject_ptr & operator=(const PyObject_ptr& item)
2685 {
2686 Py_XINCREF(item._obj);
2687 Py_XDECREF(_obj);
2688 _obj = item._obj;
2689 return *this;
2690 }
2691
2692 ~PyObject_ptr()
2693 {
2694 Py_XDECREF(_obj);
2695 }
2696
2697 operator PyObject *() const
2698 {
2699 return _obj;
2700 }
2701
2702 PyObject *operator->() const
2703 {
2704 return _obj;
2705 }
2706 };
2707 }
2708
2709
2710 namespace swig {
2711 struct PyObject_var : PyObject_ptr {
2712 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2713
2714 PyObject_var & operator = (PyObject* obj)
2715 {
2716 Py_XDECREF(_obj);
2717 _obj = obj;
2718 return *this;
2719 }
2720 };
2721 }
2722
2723
2724 #include "wx/wxPython/wxPython.h"
2725 #include "wx/wxPython/pyclasses.h"
2726
2727 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2728 static const wxString wxPyEmptyString(wxEmptyString);
2729 static const wxString wxPyControlNameStr(wxControlNameStr);
2730
2731 const wxArrayString wxPyEmptyStringArray;
2732
2733 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2734
2735 #define SWIG_From_long PyInt_FromLong
2736
2737
2738 SWIGINTERNINLINE PyObject *
2739 SWIG_From_int (int value)
2740 {
2741 return SWIG_From_long (value);
2742 }
2743
2744
2745 #include <limits.h>
2746 #ifndef LLONG_MIN
2747 # define LLONG_MIN LONG_LONG_MIN
2748 #endif
2749 #ifndef LLONG_MAX
2750 # define LLONG_MAX LONG_LONG_MAX
2751 #endif
2752 #ifndef ULLONG_MAX
2753 # define ULLONG_MAX ULONG_LONG_MAX
2754 #endif
2755
2756
2757 SWIGINTERN int
2758 SWIG_AsVal_long (PyObject* obj, long* val)
2759 {
2760 if (PyNumber_Check(obj)) {
2761 if (val) *val = PyInt_AsLong(obj);
2762 return SWIG_OK;
2763 }
2764 return SWIG_TypeError;
2765 }
2766
2767
2768 SWIGINTERN int
2769 SWIG_AsVal_int (PyObject * obj, int *val)
2770 {
2771 long v;
2772 int res = SWIG_AsVal_long (obj, &v);
2773 if (SWIG_IsOK(res)) {
2774 if ((v < INT_MIN || v > INT_MAX)) {
2775 return SWIG_OverflowError;
2776 } else {
2777 if (val) *val = static_cast< int >(v);
2778 }
2779 }
2780 return res;
2781 }
2782
2783 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2784
2785 SWIGINTERN int
2786 SWIG_AsVal_bool (PyObject *obj, bool *val)
2787 {
2788 if (obj == Py_True) {
2789 if (val) *val = true;
2790 return SWIG_OK;
2791 } else if (obj == Py_False) {
2792 if (val) *val = false;
2793 return SWIG_OK;
2794 } else {
2795 long v = 0;
2796 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2797 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2798 return res;
2799 }
2800 }
2801
2802 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2803 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2804 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2805 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2806 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2807 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2808
2809 #include <wx/checklst.h>
2810
2811
2812 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2813 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2814 if (clientData) {
2815 wxPyClientData* data = new wxPyClientData(clientData);
2816 self->Insert(item, pos, data);
2817 } else
2818 self->Insert(item, pos);
2819 }
2820
2821 SWIGINTERN int
2822 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2823 {
2824 long v = 0;
2825 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2826 return SWIG_TypeError;
2827 }
2828 else if (val)
2829 *val = (unsigned long)v;
2830 return SWIG_OK;
2831 }
2832
2833
2834 SWIGINTERN int
2835 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2836 {
2837 unsigned long v;
2838 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2839 if (SWIG_IsOK(res)) {
2840 if ((v > UINT_MAX)) {
2841 return SWIG_OverflowError;
2842 } else {
2843 if (val) *val = static_cast< unsigned int >(v);
2844 }
2845 }
2846 return res;
2847 }
2848
2849 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2850 wxArrayInt lst;
2851 self->GetSelections(lst);
2852 PyObject *tup = PyTuple_New(lst.GetCount());
2853 for(size_t i=0; i<lst.GetCount(); i++) {
2854 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2855 }
2856 return tup;
2857 }
2858 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2859 #ifdef __WXMSW__
2860 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2861 self->GetItem(item)->SetTextColour(c);
2862 #endif
2863 }
2864 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2865 #ifdef __WXMSW__
2866 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2867 self->GetItem(item)->SetBackgroundColour(c);
2868 #endif
2869 }
2870 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2871 #ifdef __WXMSW__
2872 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2873 self->GetItem(item)->SetFont(f);
2874 #endif
2875 }
2876 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2877 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2878 self->AppendText(text);
2879 }
2880 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2881 return self->GetValue().Mid(from, to - from);
2882 }
2883 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2884 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2885 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2886 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2887 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2888
2889 SWIGINTERNINLINE PyObject*
2890 SWIG_From_unsigned_SS_long (unsigned long value)
2891 {
2892 return (value > LONG_MAX) ?
2893 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2894 }
2895
2896
2897 SWIGINTERNINLINE PyObject *
2898 SWIG_From_size_t (size_t value)
2899 {
2900 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2901 }
2902
2903
2904 SWIGINTERNINLINE PyObject *
2905 SWIG_From_unsigned_SS_int (unsigned int value)
2906 {
2907 return SWIG_From_unsigned_SS_long (value);
2908 }
2909
2910
2911 #include <wx/slider.h>
2912
2913
2914 static const wxString wxPySliderNameStr(wxSliderNameStr);
2915 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2916
2917 #if !wxUSE_TOGGLEBTN
2918 // implement dummy items for platforms that don't have this class
2919
2920 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2921
2922 class wxToggleButton : public wxControl
2923 {
2924 public:
2925 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2926 const wxPoint&, const wxSize&, long,
2927 const wxValidator&, const wxString&)
2928 { wxPyRaiseNotImplemented(); }
2929
2930 wxToggleButton()
2931 { wxPyRaiseNotImplemented(); }
2932 };
2933 #endif
2934
2935 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2936
2937 SWIGINTERNINLINE int
2938 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2939 {
2940 unsigned long v;
2941 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2942 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2943 return res;
2944 }
2945
2946 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2947 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2948 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2949 if (udata) {
2950 Py_INCREF(udata->m_obj);
2951 return udata->m_obj;
2952 } else {
2953 Py_INCREF(Py_None);
2954 return Py_None;
2955 }
2956 }
2957 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2958 self->SetClientData(new wxPyUserData(clientData));
2959 }
2960 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){
2961 wxPyUserData* udata = NULL;
2962 if (clientData && clientData != Py_None)
2963 udata = new wxPyUserData(clientData);
2964 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2965 shortHelp, longHelp, udata);
2966 }
2967 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){
2968 wxPyUserData* udata = NULL;
2969 if (clientData && clientData != Py_None)
2970 udata = new wxPyUserData(clientData);
2971 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2972 shortHelp, longHelp, udata);
2973 }
2974 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2975 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
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 wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
2985 self->SetToolClientData(id, new wxPyUserData(clientData));
2986 }
2987
2988 #include <wx/listctrl.h>
2989
2990 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
2991 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
2992 // Python aware sorting function for wxPyListCtrl
2993 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
2994 int retval = 0;
2995 PyObject* func = (PyObject*)funcPtr;
2996 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2997
2998 PyObject* args = Py_BuildValue("(ii)", item1, item2);
2999 PyObject* result = PyEval_CallObject(func, args);
3000 Py_DECREF(args);
3001 if (result) {
3002 retval = PyInt_AsLong(result);
3003 Py_DECREF(result);
3004 }
3005
3006 wxPyEndBlockThreads(blocked);
3007 return retval;
3008 }
3009
3010 // C++ Version of a Python aware class
3011 class wxPyListCtrl : public wxListCtrl {
3012 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3013 public:
3014 wxPyListCtrl() : wxListCtrl() {}
3015 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3016 const wxPoint& pos,
3017 const wxSize& size,
3018 long style,
3019 const wxValidator& validator,
3020 const wxString& name) :
3021 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3022
3023 bool Create(wxWindow* parent, wxWindowID id,
3024 const wxPoint& pos,
3025 const wxSize& size,
3026 long style,
3027 const wxValidator& validator,
3028 const wxString& name) {
3029 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3030 }
3031
3032 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3033 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3034
3035 // use the virtual version to avoid a confusing assert in the base class
3036 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3037 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3038
3039 PYPRIVATE;
3040 };
3041
3042 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3043
3044 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3045 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3046 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3047 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3048
3049
3050 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3051 wxListItem item;
3052 item.SetMask( wxLIST_MASK_STATE |
3053 wxLIST_MASK_TEXT |
3054 wxLIST_MASK_IMAGE |
3055 wxLIST_MASK_DATA |
3056 wxLIST_SET_ITEM |
3057 wxLIST_MASK_WIDTH |
3058 wxLIST_MASK_FORMAT
3059 );
3060 if (self->GetColumn(col, item))
3061 return new wxListItem(item);
3062 else
3063 return NULL;
3064 }
3065 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3066 wxListItem* info = new wxListItem;
3067 info->m_itemId = itemId;
3068 info->m_col = col;
3069 info->m_mask = 0xFFFF;
3070 self->GetItem(*info);
3071 return info;
3072 }
3073 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3074 wxPoint pos;
3075 self->GetItemPosition(item, pos);
3076 return pos;
3077 }
3078 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3079 wxRect rect;
3080 self->GetItemRect(item, rect, code);
3081 return rect;
3082 }
3083 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3084 if (!PyCallable_Check(func))
3085 return false;
3086 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3087 }
3088 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3089
3090 return self;
3091
3092
3093
3094 }
3095
3096 #include <wx/treectrl.h>
3097 #include "wx/wxPython/pytree.h"
3098
3099 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3100 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3101 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3102 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3103 // C++ version of Python aware wxTreeCtrl
3104 class wxPyTreeCtrl : public wxTreeCtrl {
3105 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3106 public:
3107 wxPyTreeCtrl() : wxTreeCtrl() {}
3108 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3109 const wxPoint& pos,
3110 const wxSize& size,
3111 long style,
3112 const wxValidator& validator,
3113 const wxString& name) :
3114 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3115
3116 bool Create(wxWindow *parent, wxWindowID id,
3117 const wxPoint& pos,
3118 const wxSize& size,
3119 long style,
3120 const wxValidator& validator,
3121 const wxString& name) {
3122 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3123 }
3124
3125
3126 int OnCompareItems(const wxTreeItemId& item1,
3127 const wxTreeItemId& item2) {
3128 int rval = 0;
3129 bool found;
3130 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3131 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3132 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3133 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3134 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3135 Py_DECREF(o1);
3136 Py_DECREF(o2);
3137 }
3138 wxPyEndBlockThreads(blocked);
3139 if (! found)
3140 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3141 return rval;
3142 }
3143 PYPRIVATE;
3144 };
3145
3146 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3147
3148
3149 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3150 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3151 if (data == NULL) {
3152 data = new wxPyTreeItemData();
3153 data->SetId(item); // set the id
3154 self->SetItemData(item, data);
3155 }
3156 return data;
3157 }
3158 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3159 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3160 if (data == NULL) {
3161 data = new wxPyTreeItemData();
3162 data->SetId(item); // set the id
3163 self->SetItemData(item, data);
3164 }
3165 return data->GetData();
3166 }
3167 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3168 data->SetId(item); // set the id
3169 self->SetItemData(item, data);
3170 }
3171 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3172 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3173 if (data == NULL) {
3174 data = new wxPyTreeItemData(obj);
3175 data->SetId(item); // set the id
3176 self->SetItemData(item, data);
3177 } else
3178 data->SetData(obj);
3179 }
3180 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3181 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3182 PyObject* rval = PyList_New(0);
3183 wxArrayTreeItemIds array;
3184 size_t num, x;
3185 num = self->GetSelections(array);
3186 for (x=0; x < num; x++) {
3187 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3188 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3189 PyList_Append(rval, item);
3190 Py_DECREF(item);
3191 }
3192 wxPyEndBlockThreads(blocked);
3193 return rval;
3194 }
3195 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3196 void* cookie = 0;
3197 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3198 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3199 PyObject* tup = PyTuple_New(2);
3200 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3201 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3202 wxPyEndBlockThreads(blocked);
3203 return tup;
3204 }
3205 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3206 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3207 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3208 PyObject* tup = PyTuple_New(2);
3209 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3210 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3211 wxPyEndBlockThreads(blocked);
3212 return tup;
3213 }
3214 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3215 wxRect rect;
3216 if (self->GetBoundingRect(item, rect, textOnly)) {
3217 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3218 wxRect* r = new wxRect(rect);
3219 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3220 wxPyEndBlockThreads(blocked);
3221 return val;
3222 }
3223 else
3224 RETURN_NONE();
3225 }
3226 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3227
3228 SWIGINTERNINLINE PyObject*
3229 SWIG_From_bool (bool value)
3230 {
3231 return PyBool_FromLong(value ? 1 : 0);
3232 }
3233
3234 // C++ version of Python aware wxControl
3235 class wxPyControl : public wxControl
3236 {
3237 DECLARE_DYNAMIC_CLASS(wxPyControl)
3238 public:
3239 wxPyControl() : wxControl() {}
3240 wxPyControl(wxWindow* parent, const wxWindowID id,
3241 const wxPoint& pos = wxDefaultPosition,
3242 const wxSize& size = wxDefaultSize,
3243 long style = 0,
3244 const wxValidator& validator=wxDefaultValidator,
3245 const wxString& name = wxPyControlNameStr)
3246 : wxControl(parent, id, pos, size, style, validator, name) {}
3247
3248 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3249
3250 bool DoEraseBackground(wxDC* dc) {
3251 #ifdef __WXMSW__
3252 return wxWindow::DoEraseBackground(dc->GetHDC());
3253 #else
3254 dc->SetBackground(wxBrush(GetBackgroundColour()));
3255 dc->Clear();
3256 return true;
3257 #endif
3258 }
3259
3260 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3261 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3262 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3263 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3264
3265 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3266 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3267 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3268
3269 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3270 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3271
3272 DEC_PYCALLBACK__(InitDialog);
3273 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3274 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3275 DEC_PYCALLBACK_BOOL_(Validate);
3276
3277 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3278 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3279 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3280
3281 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3282 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3283
3284 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3285 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3286
3287 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3288
3289 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3290
3291 PYPRIVATE;
3292 };
3293
3294 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3295
3296 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3297 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3298 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3299 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3300
3301 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3302 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3303 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3304
3305 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3306 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3307
3308 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3309 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3310 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3311 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3312
3313 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3314 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3315 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3316
3317 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3318 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3319
3320 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3321 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3322
3323 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3324
3325 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3326
3327
3328
3329 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3330
3331 #include <wx/generic/dragimgg.h>
3332
3333 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3334 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3335 wxDateTime rv;
3336 self->GetRange(&rv, NULL);
3337 return rv;
3338 }
3339 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3340 wxDateTime rv;
3341 self->GetRange(NULL, &rv);
3342 return rv;
3343 }
3344 #ifdef __cplusplus
3345 extern "C" {
3346 #endif
3347 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3348 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3349 return 1;
3350 }
3351
3352
3353 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3354 PyObject *pyobj = 0;
3355
3356 {
3357 #if wxUSE_UNICODE
3358 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3359 #else
3360 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3361 #endif
3362 }
3363 return pyobj;
3364 }
3365
3366
3367 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3368 PyObject *resultobj = 0;
3369 wxWindow *arg1 = (wxWindow *) 0 ;
3370 int arg2 = (int) -1 ;
3371 wxString const &arg3_defvalue = wxPyEmptyString ;
3372 wxString *arg3 = (wxString *) &arg3_defvalue ;
3373 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3374 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3375 wxSize const &arg5_defvalue = wxDefaultSize ;
3376 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3377 long arg6 = (long) 0 ;
3378 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3379 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3380 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3381 wxString *arg8 = (wxString *) &arg8_defvalue ;
3382 wxButton *result = 0 ;
3383 void *argp1 = 0 ;
3384 int res1 = 0 ;
3385 int val2 ;
3386 int ecode2 = 0 ;
3387 bool temp3 = false ;
3388 wxPoint temp4 ;
3389 wxSize temp5 ;
3390 long val6 ;
3391 int ecode6 = 0 ;
3392 void *argp7 = 0 ;
3393 int res7 = 0 ;
3394 bool temp8 = false ;
3395 PyObject * obj0 = 0 ;
3396 PyObject * obj1 = 0 ;
3397 PyObject * obj2 = 0 ;
3398 PyObject * obj3 = 0 ;
3399 PyObject * obj4 = 0 ;
3400 PyObject * obj5 = 0 ;
3401 PyObject * obj6 = 0 ;
3402 PyObject * obj7 = 0 ;
3403 char * kwnames[] = {
3404 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3405 };
3406
3407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3409 if (!SWIG_IsOK(res1)) {
3410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3411 }
3412 arg1 = reinterpret_cast< wxWindow * >(argp1);
3413 if (obj1) {
3414 ecode2 = SWIG_AsVal_int(obj1, &val2);
3415 if (!SWIG_IsOK(ecode2)) {
3416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3417 }
3418 arg2 = static_cast< int >(val2);
3419 }
3420 if (obj2) {
3421 {
3422 arg3 = wxString_in_helper(obj2);
3423 if (arg3 == NULL) SWIG_fail;
3424 temp3 = true;
3425 }
3426 }
3427 if (obj3) {
3428 {
3429 arg4 = &temp4;
3430 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3431 }
3432 }
3433 if (obj4) {
3434 {
3435 arg5 = &temp5;
3436 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3437 }
3438 }
3439 if (obj5) {
3440 ecode6 = SWIG_AsVal_long(obj5, &val6);
3441 if (!SWIG_IsOK(ecode6)) {
3442 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3443 }
3444 arg6 = static_cast< long >(val6);
3445 }
3446 if (obj6) {
3447 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3448 if (!SWIG_IsOK(res7)) {
3449 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3450 }
3451 if (!argp7) {
3452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3453 }
3454 arg7 = reinterpret_cast< wxValidator * >(argp7);
3455 }
3456 if (obj7) {
3457 {
3458 arg8 = wxString_in_helper(obj7);
3459 if (arg8 == NULL) SWIG_fail;
3460 temp8 = true;
3461 }
3462 }
3463 {
3464 if (!wxPyCheckForApp()) SWIG_fail;
3465 PyThreadState* __tstate = wxPyBeginAllowThreads();
3466 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3467 wxPyEndAllowThreads(__tstate);
3468 if (PyErr_Occurred()) SWIG_fail;
3469 }
3470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3471 {
3472 if (temp3)
3473 delete arg3;
3474 }
3475 {
3476 if (temp8)
3477 delete arg8;
3478 }
3479 return resultobj;
3480 fail:
3481 {
3482 if (temp3)
3483 delete arg3;
3484 }
3485 {
3486 if (temp8)
3487 delete arg8;
3488 }
3489 return NULL;
3490 }
3491
3492
3493 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3494 PyObject *resultobj = 0;
3495 wxButton *result = 0 ;
3496
3497 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3498 {
3499 if (!wxPyCheckForApp()) SWIG_fail;
3500 PyThreadState* __tstate = wxPyBeginAllowThreads();
3501 result = (wxButton *)new wxButton();
3502 wxPyEndAllowThreads(__tstate);
3503 if (PyErr_Occurred()) SWIG_fail;
3504 }
3505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3506 return resultobj;
3507 fail:
3508 return NULL;
3509 }
3510
3511
3512 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3513 PyObject *resultobj = 0;
3514 wxButton *arg1 = (wxButton *) 0 ;
3515 wxWindow *arg2 = (wxWindow *) 0 ;
3516 int arg3 = (int) -1 ;
3517 wxString const &arg4_defvalue = wxPyEmptyString ;
3518 wxString *arg4 = (wxString *) &arg4_defvalue ;
3519 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3520 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3521 wxSize const &arg6_defvalue = wxDefaultSize ;
3522 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3523 long arg7 = (long) 0 ;
3524 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3525 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3526 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3527 wxString *arg9 = (wxString *) &arg9_defvalue ;
3528 bool result;
3529 void *argp1 = 0 ;
3530 int res1 = 0 ;
3531 void *argp2 = 0 ;
3532 int res2 = 0 ;
3533 int val3 ;
3534 int ecode3 = 0 ;
3535 bool temp4 = false ;
3536 wxPoint temp5 ;
3537 wxSize temp6 ;
3538 long val7 ;
3539 int ecode7 = 0 ;
3540 void *argp8 = 0 ;
3541 int res8 = 0 ;
3542 bool temp9 = false ;
3543 PyObject * obj0 = 0 ;
3544 PyObject * obj1 = 0 ;
3545 PyObject * obj2 = 0 ;
3546 PyObject * obj3 = 0 ;
3547 PyObject * obj4 = 0 ;
3548 PyObject * obj5 = 0 ;
3549 PyObject * obj6 = 0 ;
3550 PyObject * obj7 = 0 ;
3551 PyObject * obj8 = 0 ;
3552 char * kwnames[] = {
3553 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3554 };
3555
3556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3558 if (!SWIG_IsOK(res1)) {
3559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3560 }
3561 arg1 = reinterpret_cast< wxButton * >(argp1);
3562 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3563 if (!SWIG_IsOK(res2)) {
3564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3565 }
3566 arg2 = reinterpret_cast< wxWindow * >(argp2);
3567 if (obj2) {
3568 ecode3 = SWIG_AsVal_int(obj2, &val3);
3569 if (!SWIG_IsOK(ecode3)) {
3570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3571 }
3572 arg3 = static_cast< int >(val3);
3573 }
3574 if (obj3) {
3575 {
3576 arg4 = wxString_in_helper(obj3);
3577 if (arg4 == NULL) SWIG_fail;
3578 temp4 = true;
3579 }
3580 }
3581 if (obj4) {
3582 {
3583 arg5 = &temp5;
3584 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3585 }
3586 }
3587 if (obj5) {
3588 {
3589 arg6 = &temp6;
3590 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3591 }
3592 }
3593 if (obj6) {
3594 ecode7 = SWIG_AsVal_long(obj6, &val7);
3595 if (!SWIG_IsOK(ecode7)) {
3596 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3597 }
3598 arg7 = static_cast< long >(val7);
3599 }
3600 if (obj7) {
3601 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3602 if (!SWIG_IsOK(res8)) {
3603 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3604 }
3605 if (!argp8) {
3606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3607 }
3608 arg8 = reinterpret_cast< wxValidator * >(argp8);
3609 }
3610 if (obj8) {
3611 {
3612 arg9 = wxString_in_helper(obj8);
3613 if (arg9 == NULL) SWIG_fail;
3614 temp9 = true;
3615 }
3616 }
3617 {
3618 PyThreadState* __tstate = wxPyBeginAllowThreads();
3619 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) SWIG_fail;
3622 }
3623 {
3624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3625 }
3626 {
3627 if (temp4)
3628 delete arg4;
3629 }
3630 {
3631 if (temp9)
3632 delete arg9;
3633 }
3634 return resultobj;
3635 fail:
3636 {
3637 if (temp4)
3638 delete arg4;
3639 }
3640 {
3641 if (temp9)
3642 delete arg9;
3643 }
3644 return NULL;
3645 }
3646
3647
3648 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3649 PyObject *resultobj = 0;
3650 wxButton *arg1 = (wxButton *) 0 ;
3651 void *argp1 = 0 ;
3652 int res1 = 0 ;
3653 PyObject *swig_obj[1] ;
3654
3655 if (!args) SWIG_fail;
3656 swig_obj[0] = args;
3657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3658 if (!SWIG_IsOK(res1)) {
3659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3660 }
3661 arg1 = reinterpret_cast< wxButton * >(argp1);
3662 {
3663 PyThreadState* __tstate = wxPyBeginAllowThreads();
3664 (arg1)->SetDefault();
3665 wxPyEndAllowThreads(__tstate);
3666 if (PyErr_Occurred()) SWIG_fail;
3667 }
3668 resultobj = SWIG_Py_Void();
3669 return resultobj;
3670 fail:
3671 return NULL;
3672 }
3673
3674
3675 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3676 PyObject *resultobj = 0;
3677 wxSize result;
3678
3679 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3680 {
3681 PyThreadState* __tstate = wxPyBeginAllowThreads();
3682 result = wxButton::GetDefaultSize();
3683 wxPyEndAllowThreads(__tstate);
3684 if (PyErr_Occurred()) SWIG_fail;
3685 }
3686 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3687 return resultobj;
3688 fail:
3689 return NULL;
3690 }
3691
3692
3693 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3694 PyObject *resultobj = 0;
3695 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3696 SwigValueWrapper<wxVisualAttributes > result;
3697 int val1 ;
3698 int ecode1 = 0 ;
3699 PyObject * obj0 = 0 ;
3700 char * kwnames[] = {
3701 (char *) "variant", NULL
3702 };
3703
3704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3705 if (obj0) {
3706 ecode1 = SWIG_AsVal_int(obj0, &val1);
3707 if (!SWIG_IsOK(ecode1)) {
3708 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3709 }
3710 arg1 = static_cast< wxWindowVariant >(val1);
3711 }
3712 {
3713 if (!wxPyCheckForApp()) SWIG_fail;
3714 PyThreadState* __tstate = wxPyBeginAllowThreads();
3715 result = wxButton::GetClassDefaultAttributes(arg1);
3716 wxPyEndAllowThreads(__tstate);
3717 if (PyErr_Occurred()) SWIG_fail;
3718 }
3719 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3720 return resultobj;
3721 fail:
3722 return NULL;
3723 }
3724
3725
3726 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3727 PyObject *obj;
3728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3729 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3730 return SWIG_Py_Void();
3731 }
3732
3733 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3734 return SWIG_Python_InitShadowInstance(args);
3735 }
3736
3737 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3738 PyObject *resultobj = 0;
3739 wxWindow *arg1 = (wxWindow *) 0 ;
3740 int arg2 = (int) -1 ;
3741 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3742 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3743 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3744 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3745 wxSize const &arg5_defvalue = wxDefaultSize ;
3746 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3747 long arg6 = (long) wxBU_AUTODRAW ;
3748 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3749 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3750 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3751 wxString *arg8 = (wxString *) &arg8_defvalue ;
3752 wxBitmapButton *result = 0 ;
3753 void *argp1 = 0 ;
3754 int res1 = 0 ;
3755 int val2 ;
3756 int ecode2 = 0 ;
3757 void *argp3 = 0 ;
3758 int res3 = 0 ;
3759 wxPoint temp4 ;
3760 wxSize temp5 ;
3761 long val6 ;
3762 int ecode6 = 0 ;
3763 void *argp7 = 0 ;
3764 int res7 = 0 ;
3765 bool temp8 = false ;
3766 PyObject * obj0 = 0 ;
3767 PyObject * obj1 = 0 ;
3768 PyObject * obj2 = 0 ;
3769 PyObject * obj3 = 0 ;
3770 PyObject * obj4 = 0 ;
3771 PyObject * obj5 = 0 ;
3772 PyObject * obj6 = 0 ;
3773 PyObject * obj7 = 0 ;
3774 char * kwnames[] = {
3775 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3776 };
3777
3778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3780 if (!SWIG_IsOK(res1)) {
3781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3782 }
3783 arg1 = reinterpret_cast< wxWindow * >(argp1);
3784 if (obj1) {
3785 ecode2 = SWIG_AsVal_int(obj1, &val2);
3786 if (!SWIG_IsOK(ecode2)) {
3787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3788 }
3789 arg2 = static_cast< int >(val2);
3790 }
3791 if (obj2) {
3792 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3793 if (!SWIG_IsOK(res3)) {
3794 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3795 }
3796 if (!argp3) {
3797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3798 }
3799 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3800 }
3801 if (obj3) {
3802 {
3803 arg4 = &temp4;
3804 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3805 }
3806 }
3807 if (obj4) {
3808 {
3809 arg5 = &temp5;
3810 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3811 }
3812 }
3813 if (obj5) {
3814 ecode6 = SWIG_AsVal_long(obj5, &val6);
3815 if (!SWIG_IsOK(ecode6)) {
3816 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3817 }
3818 arg6 = static_cast< long >(val6);
3819 }
3820 if (obj6) {
3821 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3822 if (!SWIG_IsOK(res7)) {
3823 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3824 }
3825 if (!argp7) {
3826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3827 }
3828 arg7 = reinterpret_cast< wxValidator * >(argp7);
3829 }
3830 if (obj7) {
3831 {
3832 arg8 = wxString_in_helper(obj7);
3833 if (arg8 == NULL) SWIG_fail;
3834 temp8 = true;
3835 }
3836 }
3837 {
3838 if (!wxPyCheckForApp()) SWIG_fail;
3839 PyThreadState* __tstate = wxPyBeginAllowThreads();
3840 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3841 wxPyEndAllowThreads(__tstate);
3842 if (PyErr_Occurred()) SWIG_fail;
3843 }
3844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3845 {
3846 if (temp8)
3847 delete arg8;
3848 }
3849 return resultobj;
3850 fail:
3851 {
3852 if (temp8)
3853 delete arg8;
3854 }
3855 return NULL;
3856 }
3857
3858
3859 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3860 PyObject *resultobj = 0;
3861 wxBitmapButton *result = 0 ;
3862
3863 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3864 {
3865 if (!wxPyCheckForApp()) SWIG_fail;
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 result = (wxBitmapButton *)new wxBitmapButton();
3868 wxPyEndAllowThreads(__tstate);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 }
3871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3872 return resultobj;
3873 fail:
3874 return NULL;
3875 }
3876
3877
3878 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3879 PyObject *resultobj = 0;
3880 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3881 wxWindow *arg2 = (wxWindow *) 0 ;
3882 int arg3 = (int) -1 ;
3883 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3884 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3885 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3886 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3887 wxSize const &arg6_defvalue = wxDefaultSize ;
3888 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3889 long arg7 = (long) wxBU_AUTODRAW ;
3890 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3891 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3892 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3893 wxString *arg9 = (wxString *) &arg9_defvalue ;
3894 bool result;
3895 void *argp1 = 0 ;
3896 int res1 = 0 ;
3897 void *argp2 = 0 ;
3898 int res2 = 0 ;
3899 int val3 ;
3900 int ecode3 = 0 ;
3901 void *argp4 = 0 ;
3902 int res4 = 0 ;
3903 wxPoint temp5 ;
3904 wxSize temp6 ;
3905 long val7 ;
3906 int ecode7 = 0 ;
3907 void *argp8 = 0 ;
3908 int res8 = 0 ;
3909 bool temp9 = false ;
3910 PyObject * obj0 = 0 ;
3911 PyObject * obj1 = 0 ;
3912 PyObject * obj2 = 0 ;
3913 PyObject * obj3 = 0 ;
3914 PyObject * obj4 = 0 ;
3915 PyObject * obj5 = 0 ;
3916 PyObject * obj6 = 0 ;
3917 PyObject * obj7 = 0 ;
3918 PyObject * obj8 = 0 ;
3919 char * kwnames[] = {
3920 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3921 };
3922
3923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3925 if (!SWIG_IsOK(res1)) {
3926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3927 }
3928 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3929 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3930 if (!SWIG_IsOK(res2)) {
3931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3932 }
3933 arg2 = reinterpret_cast< wxWindow * >(argp2);
3934 if (obj2) {
3935 ecode3 = SWIG_AsVal_int(obj2, &val3);
3936 if (!SWIG_IsOK(ecode3)) {
3937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3938 }
3939 arg3 = static_cast< int >(val3);
3940 }
3941 if (obj3) {
3942 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3943 if (!SWIG_IsOK(res4)) {
3944 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3945 }
3946 if (!argp4) {
3947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3948 }
3949 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3950 }
3951 if (obj4) {
3952 {
3953 arg5 = &temp5;
3954 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3955 }
3956 }
3957 if (obj5) {
3958 {
3959 arg6 = &temp6;
3960 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3961 }
3962 }
3963 if (obj6) {
3964 ecode7 = SWIG_AsVal_long(obj6, &val7);
3965 if (!SWIG_IsOK(ecode7)) {
3966 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3967 }
3968 arg7 = static_cast< long >(val7);
3969 }
3970 if (obj7) {
3971 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3972 if (!SWIG_IsOK(res8)) {
3973 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3974 }
3975 if (!argp8) {
3976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3977 }
3978 arg8 = reinterpret_cast< wxValidator * >(argp8);
3979 }
3980 if (obj8) {
3981 {
3982 arg9 = wxString_in_helper(obj8);
3983 if (arg9 == NULL) SWIG_fail;
3984 temp9 = true;
3985 }
3986 }
3987 {
3988 PyThreadState* __tstate = wxPyBeginAllowThreads();
3989 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3990 wxPyEndAllowThreads(__tstate);
3991 if (PyErr_Occurred()) SWIG_fail;
3992 }
3993 {
3994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3995 }
3996 {
3997 if (temp9)
3998 delete arg9;
3999 }
4000 return resultobj;
4001 fail:
4002 {
4003 if (temp9)
4004 delete arg9;
4005 }
4006 return NULL;
4007 }
4008
4009
4010 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4011 PyObject *resultobj = 0;
4012 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4013 wxBitmap result;
4014 void *argp1 = 0 ;
4015 int res1 = 0 ;
4016 PyObject *swig_obj[1] ;
4017
4018 if (!args) SWIG_fail;
4019 swig_obj[0] = args;
4020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4021 if (!SWIG_IsOK(res1)) {
4022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4023 }
4024 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4025 {
4026 PyThreadState* __tstate = wxPyBeginAllowThreads();
4027 result = (arg1)->GetBitmapLabel();
4028 wxPyEndAllowThreads(__tstate);
4029 if (PyErr_Occurred()) SWIG_fail;
4030 }
4031 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4032 return resultobj;
4033 fail:
4034 return NULL;
4035 }
4036
4037
4038 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4039 PyObject *resultobj = 0;
4040 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4041 wxBitmap result;
4042 void *argp1 = 0 ;
4043 int res1 = 0 ;
4044 PyObject *swig_obj[1] ;
4045
4046 if (!args) SWIG_fail;
4047 swig_obj[0] = args;
4048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4049 if (!SWIG_IsOK(res1)) {
4050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4051 }
4052 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4053 {
4054 PyThreadState* __tstate = wxPyBeginAllowThreads();
4055 result = (arg1)->GetBitmapDisabled();
4056 wxPyEndAllowThreads(__tstate);
4057 if (PyErr_Occurred()) SWIG_fail;
4058 }
4059 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4060 return resultobj;
4061 fail:
4062 return NULL;
4063 }
4064
4065
4066 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4067 PyObject *resultobj = 0;
4068 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4069 wxBitmap result;
4070 void *argp1 = 0 ;
4071 int res1 = 0 ;
4072 PyObject *swig_obj[1] ;
4073
4074 if (!args) SWIG_fail;
4075 swig_obj[0] = args;
4076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4077 if (!SWIG_IsOK(res1)) {
4078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4079 }
4080 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4081 {
4082 PyThreadState* __tstate = wxPyBeginAllowThreads();
4083 result = (arg1)->GetBitmapFocus();
4084 wxPyEndAllowThreads(__tstate);
4085 if (PyErr_Occurred()) SWIG_fail;
4086 }
4087 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4088 return resultobj;
4089 fail:
4090 return NULL;
4091 }
4092
4093
4094 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4095 PyObject *resultobj = 0;
4096 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4097 wxBitmap result;
4098 void *argp1 = 0 ;
4099 int res1 = 0 ;
4100 PyObject *swig_obj[1] ;
4101
4102 if (!args) SWIG_fail;
4103 swig_obj[0] = args;
4104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4105 if (!SWIG_IsOK(res1)) {
4106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4107 }
4108 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4109 {
4110 PyThreadState* __tstate = wxPyBeginAllowThreads();
4111 result = (arg1)->GetBitmapSelected();
4112 wxPyEndAllowThreads(__tstate);
4113 if (PyErr_Occurred()) SWIG_fail;
4114 }
4115 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4116 return resultobj;
4117 fail:
4118 return NULL;
4119 }
4120
4121
4122 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4123 PyObject *resultobj = 0;
4124 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4125 wxBitmap result;
4126 void *argp1 = 0 ;
4127 int res1 = 0 ;
4128 PyObject *swig_obj[1] ;
4129
4130 if (!args) SWIG_fail;
4131 swig_obj[0] = args;
4132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4133 if (!SWIG_IsOK(res1)) {
4134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4135 }
4136 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4137 {
4138 PyThreadState* __tstate = wxPyBeginAllowThreads();
4139 result = (arg1)->GetBitmapHover();
4140 wxPyEndAllowThreads(__tstate);
4141 if (PyErr_Occurred()) SWIG_fail;
4142 }
4143 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4144 return resultobj;
4145 fail:
4146 return NULL;
4147 }
4148
4149
4150 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4151 PyObject *resultobj = 0;
4152 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4153 wxBitmap *arg2 = 0 ;
4154 void *argp1 = 0 ;
4155 int res1 = 0 ;
4156 void *argp2 = 0 ;
4157 int res2 = 0 ;
4158 PyObject * obj0 = 0 ;
4159 PyObject * obj1 = 0 ;
4160 char * kwnames[] = {
4161 (char *) "self",(char *) "bitmap", NULL
4162 };
4163
4164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4166 if (!SWIG_IsOK(res1)) {
4167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4168 }
4169 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4170 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4171 if (!SWIG_IsOK(res2)) {
4172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4173 }
4174 if (!argp2) {
4175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4176 }
4177 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4178 {
4179 PyThreadState* __tstate = wxPyBeginAllowThreads();
4180 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) SWIG_fail;
4183 }
4184 resultobj = SWIG_Py_Void();
4185 return resultobj;
4186 fail:
4187 return NULL;
4188 }
4189
4190
4191 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4192 PyObject *resultobj = 0;
4193 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4194 wxBitmap *arg2 = 0 ;
4195 void *argp1 = 0 ;
4196 int res1 = 0 ;
4197 void *argp2 = 0 ;
4198 int res2 = 0 ;
4199 PyObject * obj0 = 0 ;
4200 PyObject * obj1 = 0 ;
4201 char * kwnames[] = {
4202 (char *) "self",(char *) "bitmap", NULL
4203 };
4204
4205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4207 if (!SWIG_IsOK(res1)) {
4208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4209 }
4210 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4212 if (!SWIG_IsOK(res2)) {
4213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4214 }
4215 if (!argp2) {
4216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4217 }
4218 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4219 {
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 resultobj = SWIG_Py_Void();
4226 return resultobj;
4227 fail:
4228 return NULL;
4229 }
4230
4231
4232 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4233 PyObject *resultobj = 0;
4234 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4235 wxBitmap *arg2 = 0 ;
4236 void *argp1 = 0 ;
4237 int res1 = 0 ;
4238 void *argp2 = 0 ;
4239 int res2 = 0 ;
4240 PyObject * obj0 = 0 ;
4241 PyObject * obj1 = 0 ;
4242 char * kwnames[] = {
4243 (char *) "self",(char *) "bitmap", NULL
4244 };
4245
4246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4248 if (!SWIG_IsOK(res1)) {
4249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4250 }
4251 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4253 if (!SWIG_IsOK(res2)) {
4254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4255 }
4256 if (!argp2) {
4257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4258 }
4259 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4260 {
4261 PyThreadState* __tstate = wxPyBeginAllowThreads();
4262 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4263 wxPyEndAllowThreads(__tstate);
4264 if (PyErr_Occurred()) SWIG_fail;
4265 }
4266 resultobj = SWIG_Py_Void();
4267 return resultobj;
4268 fail:
4269 return NULL;
4270 }
4271
4272
4273 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4274 PyObject *resultobj = 0;
4275 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4276 wxBitmap *arg2 = 0 ;
4277 void *argp1 = 0 ;
4278 int res1 = 0 ;
4279 void *argp2 = 0 ;
4280 int res2 = 0 ;
4281 PyObject * obj0 = 0 ;
4282 PyObject * obj1 = 0 ;
4283 char * kwnames[] = {
4284 (char *) "self",(char *) "bitmap", NULL
4285 };
4286
4287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4289 if (!SWIG_IsOK(res1)) {
4290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4291 }
4292 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4294 if (!SWIG_IsOK(res2)) {
4295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4296 }
4297 if (!argp2) {
4298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4299 }
4300 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4301 {
4302 PyThreadState* __tstate = wxPyBeginAllowThreads();
4303 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4304 wxPyEndAllowThreads(__tstate);
4305 if (PyErr_Occurred()) SWIG_fail;
4306 }
4307 resultobj = SWIG_Py_Void();
4308 return resultobj;
4309 fail:
4310 return NULL;
4311 }
4312
4313
4314 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4315 PyObject *resultobj = 0;
4316 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4317 wxBitmap *arg2 = 0 ;
4318 void *argp1 = 0 ;
4319 int res1 = 0 ;
4320 void *argp2 = 0 ;
4321 int res2 = 0 ;
4322 PyObject * obj0 = 0 ;
4323 PyObject * obj1 = 0 ;
4324 char * kwnames[] = {
4325 (char *) "self",(char *) "hover", NULL
4326 };
4327
4328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4330 if (!SWIG_IsOK(res1)) {
4331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4332 }
4333 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4335 if (!SWIG_IsOK(res2)) {
4336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4337 }
4338 if (!argp2) {
4339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4340 }
4341 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4345 wxPyEndAllowThreads(__tstate);
4346 if (PyErr_Occurred()) SWIG_fail;
4347 }
4348 resultobj = SWIG_Py_Void();
4349 return resultobj;
4350 fail:
4351 return NULL;
4352 }
4353
4354
4355 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4356 PyObject *resultobj = 0;
4357 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4358 int arg2 ;
4359 int arg3 ;
4360 void *argp1 = 0 ;
4361 int res1 = 0 ;
4362 int val2 ;
4363 int ecode2 = 0 ;
4364 int val3 ;
4365 int ecode3 = 0 ;
4366 PyObject * obj0 = 0 ;
4367 PyObject * obj1 = 0 ;
4368 PyObject * obj2 = 0 ;
4369 char * kwnames[] = {
4370 (char *) "self",(char *) "x",(char *) "y", NULL
4371 };
4372
4373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4375 if (!SWIG_IsOK(res1)) {
4376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4377 }
4378 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4379 ecode2 = SWIG_AsVal_int(obj1, &val2);
4380 if (!SWIG_IsOK(ecode2)) {
4381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4382 }
4383 arg2 = static_cast< int >(val2);
4384 ecode3 = SWIG_AsVal_int(obj2, &val3);
4385 if (!SWIG_IsOK(ecode3)) {
4386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4387 }
4388 arg3 = static_cast< int >(val3);
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 (arg1)->SetMargins(arg2,arg3);
4392 wxPyEndAllowThreads(__tstate);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 resultobj = SWIG_Py_Void();
4396 return resultobj;
4397 fail:
4398 return NULL;
4399 }
4400
4401
4402 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4403 PyObject *resultobj = 0;
4404 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4405 int result;
4406 void *argp1 = 0 ;
4407 int res1 = 0 ;
4408 PyObject *swig_obj[1] ;
4409
4410 if (!args) SWIG_fail;
4411 swig_obj[0] = args;
4412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4413 if (!SWIG_IsOK(res1)) {
4414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4415 }
4416 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
4419 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4420 wxPyEndAllowThreads(__tstate);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 resultobj = SWIG_From_int(static_cast< int >(result));
4424 return resultobj;
4425 fail:
4426 return NULL;
4427 }
4428
4429
4430 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4431 PyObject *resultobj = 0;
4432 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4433 int result;
4434 void *argp1 = 0 ;
4435 int res1 = 0 ;
4436 PyObject *swig_obj[1] ;
4437
4438 if (!args) SWIG_fail;
4439 swig_obj[0] = args;
4440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4441 if (!SWIG_IsOK(res1)) {
4442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4443 }
4444 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4445 {
4446 PyThreadState* __tstate = wxPyBeginAllowThreads();
4447 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 resultobj = SWIG_From_int(static_cast< int >(result));
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4459 PyObject *obj;
4460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4461 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4462 return SWIG_Py_Void();
4463 }
4464
4465 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4466 return SWIG_Python_InitShadowInstance(args);
4467 }
4468
4469 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4470 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4471 return 1;
4472 }
4473
4474
4475 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4476 PyObject *pyobj = 0;
4477
4478 {
4479 #if wxUSE_UNICODE
4480 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4481 #else
4482 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4483 #endif
4484 }
4485 return pyobj;
4486 }
4487
4488
4489 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4490 PyObject *resultobj = 0;
4491 wxWindow *arg1 = (wxWindow *) 0 ;
4492 int arg2 = (int) -1 ;
4493 wxString const &arg3_defvalue = wxPyEmptyString ;
4494 wxString *arg3 = (wxString *) &arg3_defvalue ;
4495 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4496 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4497 wxSize const &arg5_defvalue = wxDefaultSize ;
4498 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4499 long arg6 = (long) 0 ;
4500 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4501 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4502 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4503 wxString *arg8 = (wxString *) &arg8_defvalue ;
4504 wxCheckBox *result = 0 ;
4505 void *argp1 = 0 ;
4506 int res1 = 0 ;
4507 int val2 ;
4508 int ecode2 = 0 ;
4509 bool temp3 = false ;
4510 wxPoint temp4 ;
4511 wxSize temp5 ;
4512 long val6 ;
4513 int ecode6 = 0 ;
4514 void *argp7 = 0 ;
4515 int res7 = 0 ;
4516 bool temp8 = false ;
4517 PyObject * obj0 = 0 ;
4518 PyObject * obj1 = 0 ;
4519 PyObject * obj2 = 0 ;
4520 PyObject * obj3 = 0 ;
4521 PyObject * obj4 = 0 ;
4522 PyObject * obj5 = 0 ;
4523 PyObject * obj6 = 0 ;
4524 PyObject * obj7 = 0 ;
4525 char * kwnames[] = {
4526 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4527 };
4528
4529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4531 if (!SWIG_IsOK(res1)) {
4532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4533 }
4534 arg1 = reinterpret_cast< wxWindow * >(argp1);
4535 if (obj1) {
4536 ecode2 = SWIG_AsVal_int(obj1, &val2);
4537 if (!SWIG_IsOK(ecode2)) {
4538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4539 }
4540 arg2 = static_cast< int >(val2);
4541 }
4542 if (obj2) {
4543 {
4544 arg3 = wxString_in_helper(obj2);
4545 if (arg3 == NULL) SWIG_fail;
4546 temp3 = true;
4547 }
4548 }
4549 if (obj3) {
4550 {
4551 arg4 = &temp4;
4552 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4553 }
4554 }
4555 if (obj4) {
4556 {
4557 arg5 = &temp5;
4558 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4559 }
4560 }
4561 if (obj5) {
4562 ecode6 = SWIG_AsVal_long(obj5, &val6);
4563 if (!SWIG_IsOK(ecode6)) {
4564 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4565 }
4566 arg6 = static_cast< long >(val6);
4567 }
4568 if (obj6) {
4569 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4570 if (!SWIG_IsOK(res7)) {
4571 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4572 }
4573 if (!argp7) {
4574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4575 }
4576 arg7 = reinterpret_cast< wxValidator * >(argp7);
4577 }
4578 if (obj7) {
4579 {
4580 arg8 = wxString_in_helper(obj7);
4581 if (arg8 == NULL) SWIG_fail;
4582 temp8 = true;
4583 }
4584 }
4585 {
4586 if (!wxPyCheckForApp()) SWIG_fail;
4587 PyThreadState* __tstate = wxPyBeginAllowThreads();
4588 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4589 wxPyEndAllowThreads(__tstate);
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4593 {
4594 if (temp3)
4595 delete arg3;
4596 }
4597 {
4598 if (temp8)
4599 delete arg8;
4600 }
4601 return resultobj;
4602 fail:
4603 {
4604 if (temp3)
4605 delete arg3;
4606 }
4607 {
4608 if (temp8)
4609 delete arg8;
4610 }
4611 return NULL;
4612 }
4613
4614
4615 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4616 PyObject *resultobj = 0;
4617 wxCheckBox *result = 0 ;
4618
4619 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4620 {
4621 if (!wxPyCheckForApp()) SWIG_fail;
4622 PyThreadState* __tstate = wxPyBeginAllowThreads();
4623 result = (wxCheckBox *)new wxCheckBox();
4624 wxPyEndAllowThreads(__tstate);
4625 if (PyErr_Occurred()) SWIG_fail;
4626 }
4627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4628 return resultobj;
4629 fail:
4630 return NULL;
4631 }
4632
4633
4634 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4635 PyObject *resultobj = 0;
4636 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4637 wxWindow *arg2 = (wxWindow *) 0 ;
4638 int arg3 = (int) -1 ;
4639 wxString const &arg4_defvalue = wxPyEmptyString ;
4640 wxString *arg4 = (wxString *) &arg4_defvalue ;
4641 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4642 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4643 wxSize const &arg6_defvalue = wxDefaultSize ;
4644 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4645 long arg7 = (long) 0 ;
4646 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4647 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4648 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4649 wxString *arg9 = (wxString *) &arg9_defvalue ;
4650 bool result;
4651 void *argp1 = 0 ;
4652 int res1 = 0 ;
4653 void *argp2 = 0 ;
4654 int res2 = 0 ;
4655 int val3 ;
4656 int ecode3 = 0 ;
4657 bool temp4 = false ;
4658 wxPoint temp5 ;
4659 wxSize temp6 ;
4660 long val7 ;
4661 int ecode7 = 0 ;
4662 void *argp8 = 0 ;
4663 int res8 = 0 ;
4664 bool temp9 = false ;
4665 PyObject * obj0 = 0 ;
4666 PyObject * obj1 = 0 ;
4667 PyObject * obj2 = 0 ;
4668 PyObject * obj3 = 0 ;
4669 PyObject * obj4 = 0 ;
4670 PyObject * obj5 = 0 ;
4671 PyObject * obj6 = 0 ;
4672 PyObject * obj7 = 0 ;
4673 PyObject * obj8 = 0 ;
4674 char * kwnames[] = {
4675 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4676 };
4677
4678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4680 if (!SWIG_IsOK(res1)) {
4681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4682 }
4683 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4685 if (!SWIG_IsOK(res2)) {
4686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4687 }
4688 arg2 = reinterpret_cast< wxWindow * >(argp2);
4689 if (obj2) {
4690 ecode3 = SWIG_AsVal_int(obj2, &val3);
4691 if (!SWIG_IsOK(ecode3)) {
4692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4693 }
4694 arg3 = static_cast< int >(val3);
4695 }
4696 if (obj3) {
4697 {
4698 arg4 = wxString_in_helper(obj3);
4699 if (arg4 == NULL) SWIG_fail;
4700 temp4 = true;
4701 }
4702 }
4703 if (obj4) {
4704 {
4705 arg5 = &temp5;
4706 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4707 }
4708 }
4709 if (obj5) {
4710 {
4711 arg6 = &temp6;
4712 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4713 }
4714 }
4715 if (obj6) {
4716 ecode7 = SWIG_AsVal_long(obj6, &val7);
4717 if (!SWIG_IsOK(ecode7)) {
4718 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4719 }
4720 arg7 = static_cast< long >(val7);
4721 }
4722 if (obj7) {
4723 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4724 if (!SWIG_IsOK(res8)) {
4725 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4726 }
4727 if (!argp8) {
4728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4729 }
4730 arg8 = reinterpret_cast< wxValidator * >(argp8);
4731 }
4732 if (obj8) {
4733 {
4734 arg9 = wxString_in_helper(obj8);
4735 if (arg9 == NULL) SWIG_fail;
4736 temp9 = true;
4737 }
4738 }
4739 {
4740 PyThreadState* __tstate = wxPyBeginAllowThreads();
4741 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4742 wxPyEndAllowThreads(__tstate);
4743 if (PyErr_Occurred()) SWIG_fail;
4744 }
4745 {
4746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4747 }
4748 {
4749 if (temp4)
4750 delete arg4;
4751 }
4752 {
4753 if (temp9)
4754 delete arg9;
4755 }
4756 return resultobj;
4757 fail:
4758 {
4759 if (temp4)
4760 delete arg4;
4761 }
4762 {
4763 if (temp9)
4764 delete arg9;
4765 }
4766 return NULL;
4767 }
4768
4769
4770 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4771 PyObject *resultobj = 0;
4772 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4773 bool result;
4774 void *argp1 = 0 ;
4775 int res1 = 0 ;
4776 PyObject *swig_obj[1] ;
4777
4778 if (!args) SWIG_fail;
4779 swig_obj[0] = args;
4780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4781 if (!SWIG_IsOK(res1)) {
4782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4783 }
4784 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4785 {
4786 PyThreadState* __tstate = wxPyBeginAllowThreads();
4787 result = (bool)(arg1)->GetValue();
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 }
4791 {
4792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4793 }
4794 return resultobj;
4795 fail:
4796 return NULL;
4797 }
4798
4799
4800 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4801 PyObject *resultobj = 0;
4802 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4803 bool result;
4804 void *argp1 = 0 ;
4805 int res1 = 0 ;
4806 PyObject *swig_obj[1] ;
4807
4808 if (!args) SWIG_fail;
4809 swig_obj[0] = args;
4810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4811 if (!SWIG_IsOK(res1)) {
4812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4813 }
4814 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4815 {
4816 PyThreadState* __tstate = wxPyBeginAllowThreads();
4817 result = (bool)(arg1)->IsChecked();
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 {
4822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4823 }
4824 return resultobj;
4825 fail:
4826 return NULL;
4827 }
4828
4829
4830 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4831 PyObject *resultobj = 0;
4832 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4833 bool arg2 ;
4834 void *argp1 = 0 ;
4835 int res1 = 0 ;
4836 bool val2 ;
4837 int ecode2 = 0 ;
4838 PyObject * obj0 = 0 ;
4839 PyObject * obj1 = 0 ;
4840 char * kwnames[] = {
4841 (char *) "self",(char *) "state", NULL
4842 };
4843
4844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4846 if (!SWIG_IsOK(res1)) {
4847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4848 }
4849 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4850 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4851 if (!SWIG_IsOK(ecode2)) {
4852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4853 }
4854 arg2 = static_cast< bool >(val2);
4855 {
4856 PyThreadState* __tstate = wxPyBeginAllowThreads();
4857 (arg1)->SetValue(arg2);
4858 wxPyEndAllowThreads(__tstate);
4859 if (PyErr_Occurred()) SWIG_fail;
4860 }
4861 resultobj = SWIG_Py_Void();
4862 return resultobj;
4863 fail:
4864 return NULL;
4865 }
4866
4867
4868 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4869 PyObject *resultobj = 0;
4870 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4871 wxCheckBoxState result;
4872 void *argp1 = 0 ;
4873 int res1 = 0 ;
4874 PyObject *swig_obj[1] ;
4875
4876 if (!args) SWIG_fail;
4877 swig_obj[0] = args;
4878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4879 if (!SWIG_IsOK(res1)) {
4880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4881 }
4882 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4883 {
4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
4885 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4886 wxPyEndAllowThreads(__tstate);
4887 if (PyErr_Occurred()) SWIG_fail;
4888 }
4889 resultobj = SWIG_From_int(static_cast< int >(result));
4890 return resultobj;
4891 fail:
4892 return NULL;
4893 }
4894
4895
4896 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4897 PyObject *resultobj = 0;
4898 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4899 wxCheckBoxState arg2 ;
4900 void *argp1 = 0 ;
4901 int res1 = 0 ;
4902 int val2 ;
4903 int ecode2 = 0 ;
4904 PyObject * obj0 = 0 ;
4905 PyObject * obj1 = 0 ;
4906 char * kwnames[] = {
4907 (char *) "self",(char *) "state", NULL
4908 };
4909
4910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4912 if (!SWIG_IsOK(res1)) {
4913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4914 }
4915 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4916 ecode2 = SWIG_AsVal_int(obj1, &val2);
4917 if (!SWIG_IsOK(ecode2)) {
4918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4919 }
4920 arg2 = static_cast< wxCheckBoxState >(val2);
4921 {
4922 PyThreadState* __tstate = wxPyBeginAllowThreads();
4923 (arg1)->Set3StateValue(arg2);
4924 wxPyEndAllowThreads(__tstate);
4925 if (PyErr_Occurred()) SWIG_fail;
4926 }
4927 resultobj = SWIG_Py_Void();
4928 return resultobj;
4929 fail:
4930 return NULL;
4931 }
4932
4933
4934 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4935 PyObject *resultobj = 0;
4936 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4937 bool result;
4938 void *argp1 = 0 ;
4939 int res1 = 0 ;
4940 PyObject *swig_obj[1] ;
4941
4942 if (!args) SWIG_fail;
4943 swig_obj[0] = args;
4944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4945 if (!SWIG_IsOK(res1)) {
4946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4947 }
4948 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4949 {
4950 PyThreadState* __tstate = wxPyBeginAllowThreads();
4951 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4952 wxPyEndAllowThreads(__tstate);
4953 if (PyErr_Occurred()) SWIG_fail;
4954 }
4955 {
4956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4957 }
4958 return resultobj;
4959 fail:
4960 return NULL;
4961 }
4962
4963
4964 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4965 PyObject *resultobj = 0;
4966 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4967 bool result;
4968 void *argp1 = 0 ;
4969 int res1 = 0 ;
4970 PyObject *swig_obj[1] ;
4971
4972 if (!args) SWIG_fail;
4973 swig_obj[0] = args;
4974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4975 if (!SWIG_IsOK(res1)) {
4976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4977 }
4978 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4979 {
4980 PyThreadState* __tstate = wxPyBeginAllowThreads();
4981 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4982 wxPyEndAllowThreads(__tstate);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 }
4985 {
4986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4987 }
4988 return resultobj;
4989 fail:
4990 return NULL;
4991 }
4992
4993
4994 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4995 PyObject *resultobj = 0;
4996 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
4997 SwigValueWrapper<wxVisualAttributes > result;
4998 int val1 ;
4999 int ecode1 = 0 ;
5000 PyObject * obj0 = 0 ;
5001 char * kwnames[] = {
5002 (char *) "variant", NULL
5003 };
5004
5005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5006 if (obj0) {
5007 ecode1 = SWIG_AsVal_int(obj0, &val1);
5008 if (!SWIG_IsOK(ecode1)) {
5009 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5010 }
5011 arg1 = static_cast< wxWindowVariant >(val1);
5012 }
5013 {
5014 if (!wxPyCheckForApp()) SWIG_fail;
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5021 return resultobj;
5022 fail:
5023 return NULL;
5024 }
5025
5026
5027 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5028 PyObject *obj;
5029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5030 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5031 return SWIG_Py_Void();
5032 }
5033
5034 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5035 return SWIG_Python_InitShadowInstance(args);
5036 }
5037
5038 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5039 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5040 return 1;
5041 }
5042
5043
5044 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5045 PyObject *pyobj = 0;
5046
5047 {
5048 #if wxUSE_UNICODE
5049 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5050 #else
5051 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5052 #endif
5053 }
5054 return pyobj;
5055 }
5056
5057
5058 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj = 0;
5060 wxWindow *arg1 = (wxWindow *) 0 ;
5061 int arg2 = (int) -1 ;
5062 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5063 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5064 wxSize const &arg4_defvalue = wxDefaultSize ;
5065 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5066 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5067 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5068 long arg6 = (long) 0 ;
5069 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5070 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5071 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5072 wxString *arg8 = (wxString *) &arg8_defvalue ;
5073 wxChoice *result = 0 ;
5074 void *argp1 = 0 ;
5075 int res1 = 0 ;
5076 int val2 ;
5077 int ecode2 = 0 ;
5078 wxPoint temp3 ;
5079 wxSize temp4 ;
5080 bool temp5 = false ;
5081 long val6 ;
5082 int ecode6 = 0 ;
5083 void *argp7 = 0 ;
5084 int res7 = 0 ;
5085 bool temp8 = false ;
5086 PyObject * obj0 = 0 ;
5087 PyObject * obj1 = 0 ;
5088 PyObject * obj2 = 0 ;
5089 PyObject * obj3 = 0 ;
5090 PyObject * obj4 = 0 ;
5091 PyObject * obj5 = 0 ;
5092 PyObject * obj6 = 0 ;
5093 PyObject * obj7 = 0 ;
5094 char * kwnames[] = {
5095 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5096 };
5097
5098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5100 if (!SWIG_IsOK(res1)) {
5101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5102 }
5103 arg1 = reinterpret_cast< wxWindow * >(argp1);
5104 if (obj1) {
5105 ecode2 = SWIG_AsVal_int(obj1, &val2);
5106 if (!SWIG_IsOK(ecode2)) {
5107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5108 }
5109 arg2 = static_cast< int >(val2);
5110 }
5111 if (obj2) {
5112 {
5113 arg3 = &temp3;
5114 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5115 }
5116 }
5117 if (obj3) {
5118 {
5119 arg4 = &temp4;
5120 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5121 }
5122 }
5123 if (obj4) {
5124 {
5125 if (! PySequence_Check(obj4)) {
5126 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5127 SWIG_fail;
5128 }
5129 arg5 = new wxArrayString;
5130 temp5 = true;
5131 int i, len=PySequence_Length(obj4);
5132 for (i=0; i<len; i++) {
5133 PyObject* item = PySequence_GetItem(obj4, i);
5134 wxString* s = wxString_in_helper(item);
5135 if (PyErr_Occurred()) SWIG_fail;
5136 arg5->Add(*s);
5137 delete s;
5138 Py_DECREF(item);
5139 }
5140 }
5141 }
5142 if (obj5) {
5143 ecode6 = SWIG_AsVal_long(obj5, &val6);
5144 if (!SWIG_IsOK(ecode6)) {
5145 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5146 }
5147 arg6 = static_cast< long >(val6);
5148 }
5149 if (obj6) {
5150 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5151 if (!SWIG_IsOK(res7)) {
5152 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5153 }
5154 if (!argp7) {
5155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5156 }
5157 arg7 = reinterpret_cast< wxValidator * >(argp7);
5158 }
5159 if (obj7) {
5160 {
5161 arg8 = wxString_in_helper(obj7);
5162 if (arg8 == NULL) SWIG_fail;
5163 temp8 = true;
5164 }
5165 }
5166 {
5167 if (!wxPyCheckForApp()) SWIG_fail;
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5174 {
5175 if (temp5) delete arg5;
5176 }
5177 {
5178 if (temp8)
5179 delete arg8;
5180 }
5181 return resultobj;
5182 fail:
5183 {
5184 if (temp5) delete arg5;
5185 }
5186 {
5187 if (temp8)
5188 delete arg8;
5189 }
5190 return NULL;
5191 }
5192
5193
5194 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5195 PyObject *resultobj = 0;
5196 wxChoice *result = 0 ;
5197
5198 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5199 {
5200 if (!wxPyCheckForApp()) SWIG_fail;
5201 PyThreadState* __tstate = wxPyBeginAllowThreads();
5202 result = (wxChoice *)new wxChoice();
5203 wxPyEndAllowThreads(__tstate);
5204 if (PyErr_Occurred()) SWIG_fail;
5205 }
5206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5207 return resultobj;
5208 fail:
5209 return NULL;
5210 }
5211
5212
5213 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5214 PyObject *resultobj = 0;
5215 wxChoice *arg1 = (wxChoice *) 0 ;
5216 wxWindow *arg2 = (wxWindow *) 0 ;
5217 int arg3 = (int) -1 ;
5218 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5219 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5220 wxSize const &arg5_defvalue = wxDefaultSize ;
5221 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5222 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5223 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5224 long arg7 = (long) 0 ;
5225 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5226 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5227 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5228 wxString *arg9 = (wxString *) &arg9_defvalue ;
5229 bool result;
5230 void *argp1 = 0 ;
5231 int res1 = 0 ;
5232 void *argp2 = 0 ;
5233 int res2 = 0 ;
5234 int val3 ;
5235 int ecode3 = 0 ;
5236 wxPoint temp4 ;
5237 wxSize temp5 ;
5238 bool temp6 = false ;
5239 long val7 ;
5240 int ecode7 = 0 ;
5241 void *argp8 = 0 ;
5242 int res8 = 0 ;
5243 bool temp9 = false ;
5244 PyObject * obj0 = 0 ;
5245 PyObject * obj1 = 0 ;
5246 PyObject * obj2 = 0 ;
5247 PyObject * obj3 = 0 ;
5248 PyObject * obj4 = 0 ;
5249 PyObject * obj5 = 0 ;
5250 PyObject * obj6 = 0 ;
5251 PyObject * obj7 = 0 ;
5252 PyObject * obj8 = 0 ;
5253 char * kwnames[] = {
5254 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5255 };
5256
5257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5259 if (!SWIG_IsOK(res1)) {
5260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5261 }
5262 arg1 = reinterpret_cast< wxChoice * >(argp1);
5263 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5264 if (!SWIG_IsOK(res2)) {
5265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5266 }
5267 arg2 = reinterpret_cast< wxWindow * >(argp2);
5268 if (obj2) {
5269 ecode3 = SWIG_AsVal_int(obj2, &val3);
5270 if (!SWIG_IsOK(ecode3)) {
5271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5272 }
5273 arg3 = static_cast< int >(val3);
5274 }
5275 if (obj3) {
5276 {
5277 arg4 = &temp4;
5278 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5279 }
5280 }
5281 if (obj4) {
5282 {
5283 arg5 = &temp5;
5284 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5285 }
5286 }
5287 if (obj5) {
5288 {
5289 if (! PySequence_Check(obj5)) {
5290 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5291 SWIG_fail;
5292 }
5293 arg6 = new wxArrayString;
5294 temp6 = true;
5295 int i, len=PySequence_Length(obj5);
5296 for (i=0; i<len; i++) {
5297 PyObject* item = PySequence_GetItem(obj5, i);
5298 wxString* s = wxString_in_helper(item);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 arg6->Add(*s);
5301 delete s;
5302 Py_DECREF(item);
5303 }
5304 }
5305 }
5306 if (obj6) {
5307 ecode7 = SWIG_AsVal_long(obj6, &val7);
5308 if (!SWIG_IsOK(ecode7)) {
5309 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5310 }
5311 arg7 = static_cast< long >(val7);
5312 }
5313 if (obj7) {
5314 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5315 if (!SWIG_IsOK(res8)) {
5316 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5317 }
5318 if (!argp8) {
5319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5320 }
5321 arg8 = reinterpret_cast< wxValidator * >(argp8);
5322 }
5323 if (obj8) {
5324 {
5325 arg9 = wxString_in_helper(obj8);
5326 if (arg9 == NULL) SWIG_fail;
5327 temp9 = true;
5328 }
5329 }
5330 {
5331 PyThreadState* __tstate = wxPyBeginAllowThreads();
5332 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5333 wxPyEndAllowThreads(__tstate);
5334 if (PyErr_Occurred()) SWIG_fail;
5335 }
5336 {
5337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5338 }
5339 {
5340 if (temp6) delete arg6;
5341 }
5342 {
5343 if (temp9)
5344 delete arg9;
5345 }
5346 return resultobj;
5347 fail:
5348 {
5349 if (temp6) delete arg6;
5350 }
5351 {
5352 if (temp9)
5353 delete arg9;
5354 }
5355 return NULL;
5356 }
5357
5358
5359 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5360 PyObject *resultobj = 0;
5361 wxChoice *arg1 = (wxChoice *) 0 ;
5362 int result;
5363 void *argp1 = 0 ;
5364 int res1 = 0 ;
5365 PyObject *swig_obj[1] ;
5366
5367 if (!args) SWIG_fail;
5368 swig_obj[0] = args;
5369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5370 if (!SWIG_IsOK(res1)) {
5371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5372 }
5373 arg1 = reinterpret_cast< wxChoice * >(argp1);
5374 {
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5377 wxPyEndAllowThreads(__tstate);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 }
5380 resultobj = SWIG_From_int(static_cast< int >(result));
5381 return resultobj;
5382 fail:
5383 return NULL;
5384 }
5385
5386
5387 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5388 PyObject *resultobj = 0;
5389 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5390 SwigValueWrapper<wxVisualAttributes > result;
5391 int val1 ;
5392 int ecode1 = 0 ;
5393 PyObject * obj0 = 0 ;
5394 char * kwnames[] = {
5395 (char *) "variant", NULL
5396 };
5397
5398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5399 if (obj0) {
5400 ecode1 = SWIG_AsVal_int(obj0, &val1);
5401 if (!SWIG_IsOK(ecode1)) {
5402 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5403 }
5404 arg1 = static_cast< wxWindowVariant >(val1);
5405 }
5406 {
5407 if (!wxPyCheckForApp()) SWIG_fail;
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 result = wxChoice::GetClassDefaultAttributes(arg1);
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5414 return resultobj;
5415 fail:
5416 return NULL;
5417 }
5418
5419
5420 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5421 PyObject *obj;
5422 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5423 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5424 return SWIG_Py_Void();
5425 }
5426
5427 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5428 return SWIG_Python_InitShadowInstance(args);
5429 }
5430
5431 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5432 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5433 return 1;
5434 }
5435
5436
5437 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5438 PyObject *pyobj = 0;
5439
5440 {
5441 #if wxUSE_UNICODE
5442 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5443 #else
5444 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5445 #endif
5446 }
5447 return pyobj;
5448 }
5449
5450
5451 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5452 PyObject *resultobj = 0;
5453 wxWindow *arg1 = (wxWindow *) 0 ;
5454 int arg2 = (int) -1 ;
5455 wxString const &arg3_defvalue = wxPyEmptyString ;
5456 wxString *arg3 = (wxString *) &arg3_defvalue ;
5457 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5458 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5459 wxSize const &arg5_defvalue = wxDefaultSize ;
5460 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5461 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5462 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5463 long arg7 = (long) 0 ;
5464 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5465 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5466 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5467 wxString *arg9 = (wxString *) &arg9_defvalue ;
5468 wxComboBox *result = 0 ;
5469 void *argp1 = 0 ;
5470 int res1 = 0 ;
5471 int val2 ;
5472 int ecode2 = 0 ;
5473 bool temp3 = false ;
5474 wxPoint temp4 ;
5475 wxSize temp5 ;
5476 bool temp6 = false ;
5477 long val7 ;
5478 int ecode7 = 0 ;
5479 void *argp8 = 0 ;
5480 int res8 = 0 ;
5481 bool temp9 = false ;
5482 PyObject * obj0 = 0 ;
5483 PyObject * obj1 = 0 ;
5484 PyObject * obj2 = 0 ;
5485 PyObject * obj3 = 0 ;
5486 PyObject * obj4 = 0 ;
5487 PyObject * obj5 = 0 ;
5488 PyObject * obj6 = 0 ;
5489 PyObject * obj7 = 0 ;
5490 PyObject * obj8 = 0 ;
5491 char * kwnames[] = {
5492 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5493 };
5494
5495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5497 if (!SWIG_IsOK(res1)) {
5498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5499 }
5500 arg1 = reinterpret_cast< wxWindow * >(argp1);
5501 if (obj1) {
5502 ecode2 = SWIG_AsVal_int(obj1, &val2);
5503 if (!SWIG_IsOK(ecode2)) {
5504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5505 }
5506 arg2 = static_cast< int >(val2);
5507 }
5508 if (obj2) {
5509 {
5510 arg3 = wxString_in_helper(obj2);
5511 if (arg3 == NULL) SWIG_fail;
5512 temp3 = true;
5513 }
5514 }
5515 if (obj3) {
5516 {
5517 arg4 = &temp4;
5518 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5519 }
5520 }
5521 if (obj4) {
5522 {
5523 arg5 = &temp5;
5524 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5525 }
5526 }
5527 if (obj5) {
5528 {
5529 if (! PySequence_Check(obj5)) {
5530 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5531 SWIG_fail;
5532 }
5533 arg6 = new wxArrayString;
5534 temp6 = true;
5535 int i, len=PySequence_Length(obj5);
5536 for (i=0; i<len; i++) {
5537 PyObject* item = PySequence_GetItem(obj5, i);
5538 wxString* s = wxString_in_helper(item);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 arg6->Add(*s);
5541 delete s;
5542 Py_DECREF(item);
5543 }
5544 }
5545 }
5546 if (obj6) {
5547 ecode7 = SWIG_AsVal_long(obj6, &val7);
5548 if (!SWIG_IsOK(ecode7)) {
5549 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5550 }
5551 arg7 = static_cast< long >(val7);
5552 }
5553 if (obj7) {
5554 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5555 if (!SWIG_IsOK(res8)) {
5556 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5557 }
5558 if (!argp8) {
5559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5560 }
5561 arg8 = reinterpret_cast< wxValidator * >(argp8);
5562 }
5563 if (obj8) {
5564 {
5565 arg9 = wxString_in_helper(obj8);
5566 if (arg9 == NULL) SWIG_fail;
5567 temp9 = true;
5568 }
5569 }
5570 {
5571 if (!wxPyCheckForApp()) SWIG_fail;
5572 PyThreadState* __tstate = wxPyBeginAllowThreads();
5573 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);
5574 wxPyEndAllowThreads(__tstate);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
5577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5578 {
5579 if (temp3)
5580 delete arg3;
5581 }
5582 {
5583 if (temp6) delete arg6;
5584 }
5585 {
5586 if (temp9)
5587 delete arg9;
5588 }
5589 return resultobj;
5590 fail:
5591 {
5592 if (temp3)
5593 delete arg3;
5594 }
5595 {
5596 if (temp6) delete arg6;
5597 }
5598 {
5599 if (temp9)
5600 delete arg9;
5601 }
5602 return NULL;
5603 }
5604
5605
5606 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5607 PyObject *resultobj = 0;
5608 wxComboBox *result = 0 ;
5609
5610 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5611 {
5612 if (!wxPyCheckForApp()) SWIG_fail;
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 result = (wxComboBox *)new wxComboBox();
5615 wxPyEndAllowThreads(__tstate);
5616 if (PyErr_Occurred()) SWIG_fail;
5617 }
5618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5619 return resultobj;
5620 fail:
5621 return NULL;
5622 }
5623
5624
5625 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5626 PyObject *resultobj = 0;
5627 wxComboBox *arg1 = (wxComboBox *) 0 ;
5628 wxWindow *arg2 = (wxWindow *) 0 ;
5629 int arg3 = (int) -1 ;
5630 wxString const &arg4_defvalue = wxPyEmptyString ;
5631 wxString *arg4 = (wxString *) &arg4_defvalue ;
5632 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5633 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5634 wxSize const &arg6_defvalue = wxDefaultSize ;
5635 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5636 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5637 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5638 long arg8 = (long) 0 ;
5639 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5640 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5641 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5642 wxString *arg10 = (wxString *) &arg10_defvalue ;
5643 bool result;
5644 void *argp1 = 0 ;
5645 int res1 = 0 ;
5646 void *argp2 = 0 ;
5647 int res2 = 0 ;
5648 int val3 ;
5649 int ecode3 = 0 ;
5650 bool temp4 = false ;
5651 wxPoint temp5 ;
5652 wxSize temp6 ;
5653 bool temp7 = false ;
5654 long val8 ;
5655 int ecode8 = 0 ;
5656 void *argp9 = 0 ;
5657 int res9 = 0 ;
5658 bool temp10 = false ;
5659 PyObject * obj0 = 0 ;
5660 PyObject * obj1 = 0 ;
5661 PyObject * obj2 = 0 ;
5662 PyObject * obj3 = 0 ;
5663 PyObject * obj4 = 0 ;
5664 PyObject * obj5 = 0 ;
5665 PyObject * obj6 = 0 ;
5666 PyObject * obj7 = 0 ;
5667 PyObject * obj8 = 0 ;
5668 PyObject * obj9 = 0 ;
5669 char * kwnames[] = {
5670 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5671 };
5672
5673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5675 if (!SWIG_IsOK(res1)) {
5676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5677 }
5678 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5679 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5680 if (!SWIG_IsOK(res2)) {
5681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5682 }
5683 arg2 = reinterpret_cast< wxWindow * >(argp2);
5684 if (obj2) {
5685 ecode3 = SWIG_AsVal_int(obj2, &val3);
5686 if (!SWIG_IsOK(ecode3)) {
5687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5688 }
5689 arg3 = static_cast< int >(val3);
5690 }
5691 if (obj3) {
5692 {
5693 arg4 = wxString_in_helper(obj3);
5694 if (arg4 == NULL) SWIG_fail;
5695 temp4 = true;
5696 }
5697 }
5698 if (obj4) {
5699 {
5700 arg5 = &temp5;
5701 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5702 }
5703 }
5704 if (obj5) {
5705 {
5706 arg6 = &temp6;
5707 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5708 }
5709 }
5710 if (obj6) {
5711 {
5712 if (! PySequence_Check(obj6)) {
5713 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5714 SWIG_fail;
5715 }
5716 arg7 = new wxArrayString;
5717 temp7 = true;
5718 int i, len=PySequence_Length(obj6);
5719 for (i=0; i<len; i++) {
5720 PyObject* item = PySequence_GetItem(obj6, i);
5721 wxString* s = wxString_in_helper(item);
5722 if (PyErr_Occurred()) SWIG_fail;
5723 arg7->Add(*s);
5724 delete s;
5725 Py_DECREF(item);
5726 }
5727 }
5728 }
5729 if (obj7) {
5730 ecode8 = SWIG_AsVal_long(obj7, &val8);
5731 if (!SWIG_IsOK(ecode8)) {
5732 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5733 }
5734 arg8 = static_cast< long >(val8);
5735 }
5736 if (obj8) {
5737 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5738 if (!SWIG_IsOK(res9)) {
5739 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5740 }
5741 if (!argp9) {
5742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5743 }
5744 arg9 = reinterpret_cast< wxValidator * >(argp9);
5745 }
5746 if (obj9) {
5747 {
5748 arg10 = wxString_in_helper(obj9);
5749 if (arg10 == NULL) SWIG_fail;
5750 temp10 = true;
5751 }
5752 }
5753 {
5754 PyThreadState* __tstate = wxPyBeginAllowThreads();
5755 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);
5756 wxPyEndAllowThreads(__tstate);
5757 if (PyErr_Occurred()) SWIG_fail;
5758 }
5759 {
5760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5761 }
5762 {
5763 if (temp4)
5764 delete arg4;
5765 }
5766 {
5767 if (temp7) delete arg7;
5768 }
5769 {
5770 if (temp10)
5771 delete arg10;
5772 }
5773 return resultobj;
5774 fail:
5775 {
5776 if (temp4)
5777 delete arg4;
5778 }
5779 {
5780 if (temp7) delete arg7;
5781 }
5782 {
5783 if (temp10)
5784 delete arg10;
5785 }
5786 return NULL;
5787 }
5788
5789
5790 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5791 PyObject *resultobj = 0;
5792 wxComboBox *arg1 = (wxComboBox *) 0 ;
5793 wxString result;
5794 void *argp1 = 0 ;
5795 int res1 = 0 ;
5796 PyObject *swig_obj[1] ;
5797
5798 if (!args) SWIG_fail;
5799 swig_obj[0] = args;
5800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5801 if (!SWIG_IsOK(res1)) {
5802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5803 }
5804 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5805 {
5806 PyThreadState* __tstate = wxPyBeginAllowThreads();
5807 result = ((wxComboBox const *)arg1)->GetValue();
5808 wxPyEndAllowThreads(__tstate);
5809 if (PyErr_Occurred()) SWIG_fail;
5810 }
5811 {
5812 #if wxUSE_UNICODE
5813 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5814 #else
5815 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5816 #endif
5817 }
5818 return resultobj;
5819 fail:
5820 return NULL;
5821 }
5822
5823
5824 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5825 PyObject *resultobj = 0;
5826 wxComboBox *arg1 = (wxComboBox *) 0 ;
5827 wxString *arg2 = 0 ;
5828 void *argp1 = 0 ;
5829 int res1 = 0 ;
5830 bool temp2 = false ;
5831 PyObject * obj0 = 0 ;
5832 PyObject * obj1 = 0 ;
5833 char * kwnames[] = {
5834 (char *) "self",(char *) "value", NULL
5835 };
5836
5837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5839 if (!SWIG_IsOK(res1)) {
5840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5841 }
5842 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5843 {
5844 arg2 = wxString_in_helper(obj1);
5845 if (arg2 == NULL) SWIG_fail;
5846 temp2 = true;
5847 }
5848 {
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 (arg1)->SetValue((wxString const &)*arg2);
5851 wxPyEndAllowThreads(__tstate);
5852 if (PyErr_Occurred()) SWIG_fail;
5853 }
5854 resultobj = SWIG_Py_Void();
5855 {
5856 if (temp2)
5857 delete arg2;
5858 }
5859 return resultobj;
5860 fail:
5861 {
5862 if (temp2)
5863 delete arg2;
5864 }
5865 return NULL;
5866 }
5867
5868
5869 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5870 PyObject *resultobj = 0;
5871 wxComboBox *arg1 = (wxComboBox *) 0 ;
5872 void *argp1 = 0 ;
5873 int res1 = 0 ;
5874 PyObject *swig_obj[1] ;
5875
5876 if (!args) SWIG_fail;
5877 swig_obj[0] = args;
5878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5879 if (!SWIG_IsOK(res1)) {
5880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5881 }
5882 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5883 {
5884 PyThreadState* __tstate = wxPyBeginAllowThreads();
5885 (arg1)->Copy();
5886 wxPyEndAllowThreads(__tstate);
5887 if (PyErr_Occurred()) SWIG_fail;
5888 }
5889 resultobj = SWIG_Py_Void();
5890 return resultobj;
5891 fail:
5892 return NULL;
5893 }
5894
5895
5896 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5897 PyObject *resultobj = 0;
5898 wxComboBox *arg1 = (wxComboBox *) 0 ;
5899 void *argp1 = 0 ;
5900 int res1 = 0 ;
5901 PyObject *swig_obj[1] ;
5902
5903 if (!args) SWIG_fail;
5904 swig_obj[0] = args;
5905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5906 if (!SWIG_IsOK(res1)) {
5907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5908 }
5909 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 (arg1)->Cut();
5913 wxPyEndAllowThreads(__tstate);
5914 if (PyErr_Occurred()) SWIG_fail;
5915 }
5916 resultobj = SWIG_Py_Void();
5917 return resultobj;
5918 fail:
5919 return NULL;
5920 }
5921
5922
5923 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5924 PyObject *resultobj = 0;
5925 wxComboBox *arg1 = (wxComboBox *) 0 ;
5926 void *argp1 = 0 ;
5927 int res1 = 0 ;
5928 PyObject *swig_obj[1] ;
5929
5930 if (!args) SWIG_fail;
5931 swig_obj[0] = args;
5932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5933 if (!SWIG_IsOK(res1)) {
5934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5935 }
5936 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 (arg1)->Paste();
5940 wxPyEndAllowThreads(__tstate);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 }
5943 resultobj = SWIG_Py_Void();
5944 return resultobj;
5945 fail:
5946 return NULL;
5947 }
5948
5949
5950 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5951 PyObject *resultobj = 0;
5952 wxComboBox *arg1 = (wxComboBox *) 0 ;
5953 long arg2 ;
5954 void *argp1 = 0 ;
5955 int res1 = 0 ;
5956 long val2 ;
5957 int ecode2 = 0 ;
5958 PyObject * obj0 = 0 ;
5959 PyObject * obj1 = 0 ;
5960 char * kwnames[] = {
5961 (char *) "self",(char *) "pos", NULL
5962 };
5963
5964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5966 if (!SWIG_IsOK(res1)) {
5967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5968 }
5969 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5970 ecode2 = SWIG_AsVal_long(obj1, &val2);
5971 if (!SWIG_IsOK(ecode2)) {
5972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5973 }
5974 arg2 = static_cast< long >(val2);
5975 {
5976 PyThreadState* __tstate = wxPyBeginAllowThreads();
5977 (arg1)->SetInsertionPoint(arg2);
5978 wxPyEndAllowThreads(__tstate);
5979 if (PyErr_Occurred()) SWIG_fail;
5980 }
5981 resultobj = SWIG_Py_Void();
5982 return resultobj;
5983 fail:
5984 return NULL;
5985 }
5986
5987
5988 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5989 PyObject *resultobj = 0;
5990 wxComboBox *arg1 = (wxComboBox *) 0 ;
5991 long result;
5992 void *argp1 = 0 ;
5993 int res1 = 0 ;
5994 PyObject *swig_obj[1] ;
5995
5996 if (!args) SWIG_fail;
5997 swig_obj[0] = args;
5998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5999 if (!SWIG_IsOK(res1)) {
6000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6001 }
6002 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6003 {
6004 PyThreadState* __tstate = wxPyBeginAllowThreads();
6005 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6006 wxPyEndAllowThreads(__tstate);
6007 if (PyErr_Occurred()) SWIG_fail;
6008 }
6009 resultobj = SWIG_From_long(static_cast< long >(result));
6010 return resultobj;
6011 fail:
6012 return NULL;
6013 }
6014
6015
6016 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6017 PyObject *resultobj = 0;
6018 wxComboBox *arg1 = (wxComboBox *) 0 ;
6019 long result;
6020 void *argp1 = 0 ;
6021 int res1 = 0 ;
6022 PyObject *swig_obj[1] ;
6023
6024 if (!args) SWIG_fail;
6025 swig_obj[0] = args;
6026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6027 if (!SWIG_IsOK(res1)) {
6028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6029 }
6030 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6031 {
6032 PyThreadState* __tstate = wxPyBeginAllowThreads();
6033 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6034 wxPyEndAllowThreads(__tstate);
6035 if (PyErr_Occurred()) SWIG_fail;
6036 }
6037 resultobj = SWIG_From_long(static_cast< long >(result));
6038 return resultobj;
6039 fail:
6040 return NULL;
6041 }
6042
6043
6044 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6045 PyObject *resultobj = 0;
6046 wxComboBox *arg1 = (wxComboBox *) 0 ;
6047 long arg2 ;
6048 long arg3 ;
6049 wxString *arg4 = 0 ;
6050 void *argp1 = 0 ;
6051 int res1 = 0 ;
6052 long val2 ;
6053 int ecode2 = 0 ;
6054 long val3 ;
6055 int ecode3 = 0 ;
6056 bool temp4 = false ;
6057 PyObject * obj0 = 0 ;
6058 PyObject * obj1 = 0 ;
6059 PyObject * obj2 = 0 ;
6060 PyObject * obj3 = 0 ;
6061 char * kwnames[] = {
6062 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
6063 };
6064
6065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6067 if (!SWIG_IsOK(res1)) {
6068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6069 }
6070 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6071 ecode2 = SWIG_AsVal_long(obj1, &val2);
6072 if (!SWIG_IsOK(ecode2)) {
6073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6074 }
6075 arg2 = static_cast< long >(val2);
6076 ecode3 = SWIG_AsVal_long(obj2, &val3);
6077 if (!SWIG_IsOK(ecode3)) {
6078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6079 }
6080 arg3 = static_cast< long >(val3);
6081 {
6082 arg4 = wxString_in_helper(obj3);
6083 if (arg4 == NULL) SWIG_fail;
6084 temp4 = true;
6085 }
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6089 wxPyEndAllowThreads(__tstate);
6090 if (PyErr_Occurred()) SWIG_fail;
6091 }
6092 resultobj = SWIG_Py_Void();
6093 {
6094 if (temp4)
6095 delete arg4;
6096 }
6097 return resultobj;
6098 fail:
6099 {
6100 if (temp4)
6101 delete arg4;
6102 }
6103 return NULL;
6104 }
6105
6106
6107 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6108 PyObject *resultobj = 0;
6109 wxComboBox *arg1 = (wxComboBox *) 0 ;
6110 long arg2 ;
6111 long arg3 ;
6112 void *argp1 = 0 ;
6113 int res1 = 0 ;
6114 long val2 ;
6115 int ecode2 = 0 ;
6116 long val3 ;
6117 int ecode3 = 0 ;
6118 PyObject * obj0 = 0 ;
6119 PyObject * obj1 = 0 ;
6120 PyObject * obj2 = 0 ;
6121 char * kwnames[] = {
6122 (char *) "self",(char *) "_from",(char *) "to", NULL
6123 };
6124
6125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6127 if (!SWIG_IsOK(res1)) {
6128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6129 }
6130 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6131 ecode2 = SWIG_AsVal_long(obj1, &val2);
6132 if (!SWIG_IsOK(ecode2)) {
6133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6134 }
6135 arg2 = static_cast< long >(val2);
6136 ecode3 = SWIG_AsVal_long(obj2, &val3);
6137 if (!SWIG_IsOK(ecode3)) {
6138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6139 }
6140 arg3 = static_cast< long >(val3);
6141 {
6142 PyThreadState* __tstate = wxPyBeginAllowThreads();
6143 (arg1)->SetSelection(arg2,arg3);
6144 wxPyEndAllowThreads(__tstate);
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
6147 resultobj = SWIG_Py_Void();
6148 return resultobj;
6149 fail:
6150 return NULL;
6151 }
6152
6153
6154 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6155 PyObject *resultobj = 0;
6156 wxComboBox *arg1 = (wxComboBox *) 0 ;
6157 long *arg2 = (long *) 0 ;
6158 long *arg3 = (long *) 0 ;
6159 void *argp1 = 0 ;
6160 int res1 = 0 ;
6161 long temp2 ;
6162 int res2 = SWIG_TMPOBJ ;
6163 long temp3 ;
6164 int res3 = SWIG_TMPOBJ ;
6165 PyObject *swig_obj[1] ;
6166
6167 arg2 = &temp2;
6168 arg3 = &temp3;
6169 if (!args) SWIG_fail;
6170 swig_obj[0] = args;
6171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6172 if (!SWIG_IsOK(res1)) {
6173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6174 }
6175 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6176 {
6177 PyThreadState* __tstate = wxPyBeginAllowThreads();
6178 (arg1)->GetSelection(arg2,arg3);
6179 wxPyEndAllowThreads(__tstate);
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 resultobj = SWIG_Py_Void();
6183 if (SWIG_IsTmpObj(res2)) {
6184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6185 } else {
6186 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6188 }
6189 if (SWIG_IsTmpObj(res3)) {
6190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6191 } else {
6192 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6194 }
6195 return resultobj;
6196 fail:
6197 return NULL;
6198 }
6199
6200
6201 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6202 PyObject *resultobj = 0;
6203 wxComboBox *arg1 = (wxComboBox *) 0 ;
6204 int result;
6205 void *argp1 = 0 ;
6206 int res1 = 0 ;
6207 PyObject *swig_obj[1] ;
6208
6209 if (!args) SWIG_fail;
6210 swig_obj[0] = args;
6211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6212 if (!SWIG_IsOK(res1)) {
6213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6214 }
6215 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6216 {
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 resultobj = SWIG_From_int(static_cast< int >(result));
6223 return resultobj;
6224 fail:
6225 return NULL;
6226 }
6227
6228
6229 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6230 PyObject *resultobj = 0;
6231 wxComboBox *arg1 = (wxComboBox *) 0 ;
6232 wxString *arg2 = 0 ;
6233 bool result;
6234 void *argp1 = 0 ;
6235 int res1 = 0 ;
6236 bool temp2 = false ;
6237 PyObject * obj0 = 0 ;
6238 PyObject * obj1 = 0 ;
6239 char * kwnames[] = {
6240 (char *) "self",(char *) "string", NULL
6241 };
6242
6243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6245 if (!SWIG_IsOK(res1)) {
6246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6247 }
6248 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6249 {
6250 arg2 = wxString_in_helper(obj1);
6251 if (arg2 == NULL) SWIG_fail;
6252 temp2 = true;
6253 }
6254 {
6255 PyThreadState* __tstate = wxPyBeginAllowThreads();
6256 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6257 wxPyEndAllowThreads(__tstate);
6258 if (PyErr_Occurred()) SWIG_fail;
6259 }
6260 {
6261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6262 }
6263 {
6264 if (temp2)
6265 delete arg2;
6266 }
6267 return resultobj;
6268 fail:
6269 {
6270 if (temp2)
6271 delete arg2;
6272 }
6273 return NULL;
6274 }
6275
6276
6277 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6278 PyObject *resultobj = 0;
6279 wxComboBox *arg1 = (wxComboBox *) 0 ;
6280 int arg2 ;
6281 wxString *arg3 = 0 ;
6282 void *argp1 = 0 ;
6283 int res1 = 0 ;
6284 int val2 ;
6285 int ecode2 = 0 ;
6286 bool temp3 = false ;
6287 PyObject * obj0 = 0 ;
6288 PyObject * obj1 = 0 ;
6289 PyObject * obj2 = 0 ;
6290 char * kwnames[] = {
6291 (char *) "self",(char *) "n",(char *) "string", NULL
6292 };
6293
6294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6296 if (!SWIG_IsOK(res1)) {
6297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6298 }
6299 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6300 ecode2 = SWIG_AsVal_int(obj1, &val2);
6301 if (!SWIG_IsOK(ecode2)) {
6302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6303 }
6304 arg2 = static_cast< int >(val2);
6305 {
6306 arg3 = wxString_in_helper(obj2);
6307 if (arg3 == NULL) SWIG_fail;
6308 temp3 = true;
6309 }
6310 {
6311 PyThreadState* __tstate = wxPyBeginAllowThreads();
6312 (arg1)->SetString(arg2,(wxString const &)*arg3);
6313 wxPyEndAllowThreads(__tstate);
6314 if (PyErr_Occurred()) SWIG_fail;
6315 }
6316 resultobj = SWIG_Py_Void();
6317 {
6318 if (temp3)
6319 delete arg3;
6320 }
6321 return resultobj;
6322 fail:
6323 {
6324 if (temp3)
6325 delete arg3;
6326 }
6327 return NULL;
6328 }
6329
6330
6331 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj = 0;
6333 wxComboBox *arg1 = (wxComboBox *) 0 ;
6334 bool arg2 ;
6335 void *argp1 = 0 ;
6336 int res1 = 0 ;
6337 bool val2 ;
6338 int ecode2 = 0 ;
6339 PyObject * obj0 = 0 ;
6340 PyObject * obj1 = 0 ;
6341 char * kwnames[] = {
6342 (char *) "self",(char *) "editable", NULL
6343 };
6344
6345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6347 if (!SWIG_IsOK(res1)) {
6348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6349 }
6350 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6351 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6352 if (!SWIG_IsOK(ecode2)) {
6353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6354 }
6355 arg2 = static_cast< bool >(val2);
6356 {
6357 PyThreadState* __tstate = wxPyBeginAllowThreads();
6358 (arg1)->SetEditable(arg2);
6359 wxPyEndAllowThreads(__tstate);
6360 if (PyErr_Occurred()) SWIG_fail;
6361 }
6362 resultobj = SWIG_Py_Void();
6363 return resultobj;
6364 fail:
6365 return NULL;
6366 }
6367
6368
6369 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6370 PyObject *resultobj = 0;
6371 wxComboBox *arg1 = (wxComboBox *) 0 ;
6372 void *argp1 = 0 ;
6373 int res1 = 0 ;
6374 PyObject *swig_obj[1] ;
6375
6376 if (!args) SWIG_fail;
6377 swig_obj[0] = args;
6378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6379 if (!SWIG_IsOK(res1)) {
6380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6381 }
6382 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6383 {
6384 PyThreadState* __tstate = wxPyBeginAllowThreads();
6385 (arg1)->SetInsertionPointEnd();
6386 wxPyEndAllowThreads(__tstate);
6387 if (PyErr_Occurred()) SWIG_fail;
6388 }
6389 resultobj = SWIG_Py_Void();
6390 return resultobj;
6391 fail:
6392 return NULL;
6393 }
6394
6395
6396 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6397 PyObject *resultobj = 0;
6398 wxComboBox *arg1 = (wxComboBox *) 0 ;
6399 long arg2 ;
6400 long arg3 ;
6401 void *argp1 = 0 ;
6402 int res1 = 0 ;
6403 long val2 ;
6404 int ecode2 = 0 ;
6405 long val3 ;
6406 int ecode3 = 0 ;
6407 PyObject * obj0 = 0 ;
6408 PyObject * obj1 = 0 ;
6409 PyObject * obj2 = 0 ;
6410 char * kwnames[] = {
6411 (char *) "self",(char *) "_from",(char *) "to", NULL
6412 };
6413
6414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6416 if (!SWIG_IsOK(res1)) {
6417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6418 }
6419 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6420 ecode2 = SWIG_AsVal_long(obj1, &val2);
6421 if (!SWIG_IsOK(ecode2)) {
6422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6423 }
6424 arg2 = static_cast< long >(val2);
6425 ecode3 = SWIG_AsVal_long(obj2, &val3);
6426 if (!SWIG_IsOK(ecode3)) {
6427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6428 }
6429 arg3 = static_cast< long >(val3);
6430 {
6431 PyThreadState* __tstate = wxPyBeginAllowThreads();
6432 (arg1)->Remove(arg2,arg3);
6433 wxPyEndAllowThreads(__tstate);
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 resultobj = SWIG_Py_Void();
6437 return resultobj;
6438 fail:
6439 return NULL;
6440 }
6441
6442
6443 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6444 PyObject *resultobj = 0;
6445 wxComboBox *arg1 = (wxComboBox *) 0 ;
6446 bool result;
6447 void *argp1 = 0 ;
6448 int res1 = 0 ;
6449 PyObject *swig_obj[1] ;
6450
6451 if (!args) SWIG_fail;
6452 swig_obj[0] = args;
6453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6454 if (!SWIG_IsOK(res1)) {
6455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6456 }
6457 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6458 {
6459 PyThreadState* __tstate = wxPyBeginAllowThreads();
6460 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6461 wxPyEndAllowThreads(__tstate);
6462 if (PyErr_Occurred()) SWIG_fail;
6463 }
6464 {
6465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6466 }
6467 return resultobj;
6468 fail:
6469 return NULL;
6470 }
6471
6472
6473 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6474 PyObject *resultobj = 0;
6475 wxComboBox *arg1 = (wxComboBox *) 0 ;
6476 void *argp1 = 0 ;
6477 int res1 = 0 ;
6478 PyObject *swig_obj[1] ;
6479
6480 if (!args) SWIG_fail;
6481 swig_obj[0] = args;
6482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6483 if (!SWIG_IsOK(res1)) {
6484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6485 }
6486 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6487 {
6488 PyThreadState* __tstate = wxPyBeginAllowThreads();
6489 (arg1)->Undo();
6490 wxPyEndAllowThreads(__tstate);
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 resultobj = SWIG_Py_Void();
6494 return resultobj;
6495 fail:
6496 return NULL;
6497 }
6498
6499
6500 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6501 PyObject *resultobj = 0;
6502 wxComboBox *arg1 = (wxComboBox *) 0 ;
6503 void *argp1 = 0 ;
6504 int res1 = 0 ;
6505 PyObject *swig_obj[1] ;
6506
6507 if (!args) SWIG_fail;
6508 swig_obj[0] = args;
6509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6510 if (!SWIG_IsOK(res1)) {
6511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6512 }
6513 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6514 {
6515 PyThreadState* __tstate = wxPyBeginAllowThreads();
6516 (arg1)->Redo();
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 resultobj = SWIG_Py_Void();
6521 return resultobj;
6522 fail:
6523 return NULL;
6524 }
6525
6526
6527 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6528 PyObject *resultobj = 0;
6529 wxComboBox *arg1 = (wxComboBox *) 0 ;
6530 void *argp1 = 0 ;
6531 int res1 = 0 ;
6532 PyObject *swig_obj[1] ;
6533
6534 if (!args) SWIG_fail;
6535 swig_obj[0] = args;
6536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6539 }
6540 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 (arg1)->SelectAll();
6544 wxPyEndAllowThreads(__tstate);
6545 if (PyErr_Occurred()) SWIG_fail;
6546 }
6547 resultobj = SWIG_Py_Void();
6548 return resultobj;
6549 fail:
6550 return NULL;
6551 }
6552
6553
6554 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6555 PyObject *resultobj = 0;
6556 wxComboBox *arg1 = (wxComboBox *) 0 ;
6557 bool result;
6558 void *argp1 = 0 ;
6559 int res1 = 0 ;
6560 PyObject *swig_obj[1] ;
6561
6562 if (!args) SWIG_fail;
6563 swig_obj[0] = args;
6564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6565 if (!SWIG_IsOK(res1)) {
6566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6567 }
6568 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6569 {
6570 PyThreadState* __tstate = wxPyBeginAllowThreads();
6571 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6572 wxPyEndAllowThreads(__tstate);
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 {
6576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6577 }
6578 return resultobj;
6579 fail:
6580 return NULL;
6581 }
6582
6583
6584 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6585 PyObject *resultobj = 0;
6586 wxComboBox *arg1 = (wxComboBox *) 0 ;
6587 bool result;
6588 void *argp1 = 0 ;
6589 int res1 = 0 ;
6590 PyObject *swig_obj[1] ;
6591
6592 if (!args) SWIG_fail;
6593 swig_obj[0] = args;
6594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6595 if (!SWIG_IsOK(res1)) {
6596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6597 }
6598 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6599 {
6600 PyThreadState* __tstate = wxPyBeginAllowThreads();
6601 result = (bool)((wxComboBox const *)arg1)->CanCut();
6602 wxPyEndAllowThreads(__tstate);
6603 if (PyErr_Occurred()) SWIG_fail;
6604 }
6605 {
6606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6607 }
6608 return resultobj;
6609 fail:
6610 return NULL;
6611 }
6612
6613
6614 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6615 PyObject *resultobj = 0;
6616 wxComboBox *arg1 = (wxComboBox *) 0 ;
6617 bool result;
6618 void *argp1 = 0 ;
6619 int res1 = 0 ;
6620 PyObject *swig_obj[1] ;
6621
6622 if (!args) SWIG_fail;
6623 swig_obj[0] = args;
6624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6625 if (!SWIG_IsOK(res1)) {
6626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6627 }
6628 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6629 {
6630 PyThreadState* __tstate = wxPyBeginAllowThreads();
6631 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6632 wxPyEndAllowThreads(__tstate);
6633 if (PyErr_Occurred()) SWIG_fail;
6634 }
6635 {
6636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6637 }
6638 return resultobj;
6639 fail:
6640 return NULL;
6641 }
6642
6643
6644 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6645 PyObject *resultobj = 0;
6646 wxComboBox *arg1 = (wxComboBox *) 0 ;
6647 bool result;
6648 void *argp1 = 0 ;
6649 int res1 = 0 ;
6650 PyObject *swig_obj[1] ;
6651
6652 if (!args) SWIG_fail;
6653 swig_obj[0] = args;
6654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6655 if (!SWIG_IsOK(res1)) {
6656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6657 }
6658 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6659 {
6660 PyThreadState* __tstate = wxPyBeginAllowThreads();
6661 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6662 wxPyEndAllowThreads(__tstate);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 {
6666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6667 }
6668 return resultobj;
6669 fail:
6670 return NULL;
6671 }
6672
6673
6674 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6675 PyObject *resultobj = 0;
6676 wxComboBox *arg1 = (wxComboBox *) 0 ;
6677 bool result;
6678 void *argp1 = 0 ;
6679 int res1 = 0 ;
6680 PyObject *swig_obj[1] ;
6681
6682 if (!args) SWIG_fail;
6683 swig_obj[0] = args;
6684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6685 if (!SWIG_IsOK(res1)) {
6686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6687 }
6688 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6689 {
6690 PyThreadState* __tstate = wxPyBeginAllowThreads();
6691 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6692 wxPyEndAllowThreads(__tstate);
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 {
6696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6697 }
6698 return resultobj;
6699 fail:
6700 return NULL;
6701 }
6702
6703
6704 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6705 PyObject *resultobj = 0;
6706 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6707 SwigValueWrapper<wxVisualAttributes > result;
6708 int val1 ;
6709 int ecode1 = 0 ;
6710 PyObject * obj0 = 0 ;
6711 char * kwnames[] = {
6712 (char *) "variant", NULL
6713 };
6714
6715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6716 if (obj0) {
6717 ecode1 = SWIG_AsVal_int(obj0, &val1);
6718 if (!SWIG_IsOK(ecode1)) {
6719 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6720 }
6721 arg1 = static_cast< wxWindowVariant >(val1);
6722 }
6723 {
6724 if (!wxPyCheckForApp()) SWIG_fail;
6725 PyThreadState* __tstate = wxPyBeginAllowThreads();
6726 result = wxComboBox::GetClassDefaultAttributes(arg1);
6727 wxPyEndAllowThreads(__tstate);
6728 if (PyErr_Occurred()) SWIG_fail;
6729 }
6730 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6731 return resultobj;
6732 fail:
6733 return NULL;
6734 }
6735
6736
6737 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6738 PyObject *obj;
6739 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6740 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6741 return SWIG_Py_Void();
6742 }
6743
6744 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6745 return SWIG_Python_InitShadowInstance(args);
6746 }
6747
6748 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6749 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6750 return 1;
6751 }
6752
6753
6754 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6755 PyObject *pyobj = 0;
6756
6757 {
6758 #if wxUSE_UNICODE
6759 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6760 #else
6761 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6762 #endif
6763 }
6764 return pyobj;
6765 }
6766
6767
6768 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6769 PyObject *resultobj = 0;
6770 wxWindow *arg1 = (wxWindow *) 0 ;
6771 int arg2 = (int) -1 ;
6772 int arg3 = (int) 100 ;
6773 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6774 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6775 wxSize const &arg5_defvalue = wxDefaultSize ;
6776 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6777 long arg6 = (long) wxGA_HORIZONTAL ;
6778 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6779 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6780 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6781 wxString *arg8 = (wxString *) &arg8_defvalue ;
6782 wxGauge *result = 0 ;
6783 void *argp1 = 0 ;
6784 int res1 = 0 ;
6785 int val2 ;
6786 int ecode2 = 0 ;
6787 int val3 ;
6788 int ecode3 = 0 ;
6789 wxPoint temp4 ;
6790 wxSize temp5 ;
6791 long val6 ;
6792 int ecode6 = 0 ;
6793 void *argp7 = 0 ;
6794 int res7 = 0 ;
6795 bool temp8 = false ;
6796 PyObject * obj0 = 0 ;
6797 PyObject * obj1 = 0 ;
6798 PyObject * obj2 = 0 ;
6799 PyObject * obj3 = 0 ;
6800 PyObject * obj4 = 0 ;
6801 PyObject * obj5 = 0 ;
6802 PyObject * obj6 = 0 ;
6803 PyObject * obj7 = 0 ;
6804 char * kwnames[] = {
6805 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6806 };
6807
6808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6810 if (!SWIG_IsOK(res1)) {
6811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6812 }
6813 arg1 = reinterpret_cast< wxWindow * >(argp1);
6814 if (obj1) {
6815 ecode2 = SWIG_AsVal_int(obj1, &val2);
6816 if (!SWIG_IsOK(ecode2)) {
6817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6818 }
6819 arg2 = static_cast< int >(val2);
6820 }
6821 if (obj2) {
6822 ecode3 = SWIG_AsVal_int(obj2, &val3);
6823 if (!SWIG_IsOK(ecode3)) {
6824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6825 }
6826 arg3 = static_cast< int >(val3);
6827 }
6828 if (obj3) {
6829 {
6830 arg4 = &temp4;
6831 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6832 }
6833 }
6834 if (obj4) {
6835 {
6836 arg5 = &temp5;
6837 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6838 }
6839 }
6840 if (obj5) {
6841 ecode6 = SWIG_AsVal_long(obj5, &val6);
6842 if (!SWIG_IsOK(ecode6)) {
6843 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6844 }
6845 arg6 = static_cast< long >(val6);
6846 }
6847 if (obj6) {
6848 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6849 if (!SWIG_IsOK(res7)) {
6850 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6851 }
6852 if (!argp7) {
6853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6854 }
6855 arg7 = reinterpret_cast< wxValidator * >(argp7);
6856 }
6857 if (obj7) {
6858 {
6859 arg8 = wxString_in_helper(obj7);
6860 if (arg8 == NULL) SWIG_fail;
6861 temp8 = true;
6862 }
6863 }
6864 {
6865 if (!wxPyCheckForApp()) SWIG_fail;
6866 PyThreadState* __tstate = wxPyBeginAllowThreads();
6867 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6868 wxPyEndAllowThreads(__tstate);
6869 if (PyErr_Occurred()) SWIG_fail;
6870 }
6871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6872 {
6873 if (temp8)
6874 delete arg8;
6875 }
6876 return resultobj;
6877 fail:
6878 {
6879 if (temp8)
6880 delete arg8;
6881 }
6882 return NULL;
6883 }
6884
6885
6886 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6887 PyObject *resultobj = 0;
6888 wxGauge *result = 0 ;
6889
6890 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6891 {
6892 if (!wxPyCheckForApp()) SWIG_fail;
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 result = (wxGauge *)new wxGauge();
6895 wxPyEndAllowThreads(__tstate);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6899 return resultobj;
6900 fail:
6901 return NULL;
6902 }
6903
6904
6905 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6906 PyObject *resultobj = 0;
6907 wxGauge *arg1 = (wxGauge *) 0 ;
6908 wxWindow *arg2 = (wxWindow *) 0 ;
6909 int arg3 = (int) -1 ;
6910 int arg4 = (int) 100 ;
6911 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6912 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6913 wxSize const &arg6_defvalue = wxDefaultSize ;
6914 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6915 long arg7 = (long) wxGA_HORIZONTAL ;
6916 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6917 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6918 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6919 wxString *arg9 = (wxString *) &arg9_defvalue ;
6920 bool result;
6921 void *argp1 = 0 ;
6922 int res1 = 0 ;
6923 void *argp2 = 0 ;
6924 int res2 = 0 ;
6925 int val3 ;
6926 int ecode3 = 0 ;
6927 int val4 ;
6928 int ecode4 = 0 ;
6929 wxPoint temp5 ;
6930 wxSize temp6 ;
6931 long val7 ;
6932 int ecode7 = 0 ;
6933 void *argp8 = 0 ;
6934 int res8 = 0 ;
6935 bool temp9 = false ;
6936 PyObject * obj0 = 0 ;
6937 PyObject * obj1 = 0 ;
6938 PyObject * obj2 = 0 ;
6939 PyObject * obj3 = 0 ;
6940 PyObject * obj4 = 0 ;
6941 PyObject * obj5 = 0 ;
6942 PyObject * obj6 = 0 ;
6943 PyObject * obj7 = 0 ;
6944 PyObject * obj8 = 0 ;
6945 char * kwnames[] = {
6946 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6947 };
6948
6949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6951 if (!SWIG_IsOK(res1)) {
6952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6953 }
6954 arg1 = reinterpret_cast< wxGauge * >(argp1);
6955 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6956 if (!SWIG_IsOK(res2)) {
6957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6958 }
6959 arg2 = reinterpret_cast< wxWindow * >(argp2);
6960 if (obj2) {
6961 ecode3 = SWIG_AsVal_int(obj2, &val3);
6962 if (!SWIG_IsOK(ecode3)) {
6963 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6964 }
6965 arg3 = static_cast< int >(val3);
6966 }
6967 if (obj3) {
6968 ecode4 = SWIG_AsVal_int(obj3, &val4);
6969 if (!SWIG_IsOK(ecode4)) {
6970 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6971 }
6972 arg4 = static_cast< int >(val4);
6973 }
6974 if (obj4) {
6975 {
6976 arg5 = &temp5;
6977 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6978 }
6979 }
6980 if (obj5) {
6981 {
6982 arg6 = &temp6;
6983 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6984 }
6985 }
6986 if (obj6) {
6987 ecode7 = SWIG_AsVal_long(obj6, &val7);
6988 if (!SWIG_IsOK(ecode7)) {
6989 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6990 }
6991 arg7 = static_cast< long >(val7);
6992 }
6993 if (obj7) {
6994 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6995 if (!SWIG_IsOK(res8)) {
6996 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6997 }
6998 if (!argp8) {
6999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7000 }
7001 arg8 = reinterpret_cast< wxValidator * >(argp8);
7002 }
7003 if (obj8) {
7004 {
7005 arg9 = wxString_in_helper(obj8);
7006 if (arg9 == NULL) SWIG_fail;
7007 temp9 = true;
7008 }
7009 }
7010 {
7011 PyThreadState* __tstate = wxPyBeginAllowThreads();
7012 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7013 wxPyEndAllowThreads(__tstate);
7014 if (PyErr_Occurred()) SWIG_fail;
7015 }
7016 {
7017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7018 }
7019 {
7020 if (temp9)
7021 delete arg9;
7022 }
7023 return resultobj;
7024 fail:
7025 {
7026 if (temp9)
7027 delete arg9;
7028 }
7029 return NULL;
7030 }
7031
7032
7033 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7034 PyObject *resultobj = 0;
7035 wxGauge *arg1 = (wxGauge *) 0 ;
7036 int arg2 ;
7037 void *argp1 = 0 ;
7038 int res1 = 0 ;
7039 int val2 ;
7040 int ecode2 = 0 ;
7041 PyObject * obj0 = 0 ;
7042 PyObject * obj1 = 0 ;
7043 char * kwnames[] = {
7044 (char *) "self",(char *) "range", NULL
7045 };
7046
7047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7049 if (!SWIG_IsOK(res1)) {
7050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7051 }
7052 arg1 = reinterpret_cast< wxGauge * >(argp1);
7053 ecode2 = SWIG_AsVal_int(obj1, &val2);
7054 if (!SWIG_IsOK(ecode2)) {
7055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7056 }
7057 arg2 = static_cast< int >(val2);
7058 {
7059 PyThreadState* __tstate = wxPyBeginAllowThreads();
7060 (arg1)->SetRange(arg2);
7061 wxPyEndAllowThreads(__tstate);
7062 if (PyErr_Occurred()) SWIG_fail;
7063 }
7064 resultobj = SWIG_Py_Void();
7065 return resultobj;
7066 fail:
7067 return NULL;
7068 }
7069
7070
7071 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7072 PyObject *resultobj = 0;
7073 wxGauge *arg1 = (wxGauge *) 0 ;
7074 int result;
7075 void *argp1 = 0 ;
7076 int res1 = 0 ;
7077 PyObject *swig_obj[1] ;
7078
7079 if (!args) SWIG_fail;
7080 swig_obj[0] = args;
7081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7082 if (!SWIG_IsOK(res1)) {
7083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7084 }
7085 arg1 = reinterpret_cast< wxGauge * >(argp1);
7086 {
7087 PyThreadState* __tstate = wxPyBeginAllowThreads();
7088 result = (int)((wxGauge const *)arg1)->GetRange();
7089 wxPyEndAllowThreads(__tstate);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 resultobj = SWIG_From_int(static_cast< int >(result));
7093 return resultobj;
7094 fail:
7095 return NULL;
7096 }
7097
7098
7099 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7100 PyObject *resultobj = 0;
7101 wxGauge *arg1 = (wxGauge *) 0 ;
7102 int arg2 ;
7103 void *argp1 = 0 ;
7104 int res1 = 0 ;
7105 int val2 ;
7106 int ecode2 = 0 ;
7107 PyObject * obj0 = 0 ;
7108 PyObject * obj1 = 0 ;
7109 char * kwnames[] = {
7110 (char *) "self",(char *) "pos", NULL
7111 };
7112
7113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7115 if (!SWIG_IsOK(res1)) {
7116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7117 }
7118 arg1 = reinterpret_cast< wxGauge * >(argp1);
7119 ecode2 = SWIG_AsVal_int(obj1, &val2);
7120 if (!SWIG_IsOK(ecode2)) {
7121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7122 }
7123 arg2 = static_cast< int >(val2);
7124 {
7125 PyThreadState* __tstate = wxPyBeginAllowThreads();
7126 (arg1)->SetValue(arg2);
7127 wxPyEndAllowThreads(__tstate);
7128 if (PyErr_Occurred()) SWIG_fail;
7129 }
7130 resultobj = SWIG_Py_Void();
7131 return resultobj;
7132 fail:
7133 return NULL;
7134 }
7135
7136
7137 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7138 PyObject *resultobj = 0;
7139 wxGauge *arg1 = (wxGauge *) 0 ;
7140 int result;
7141 void *argp1 = 0 ;
7142 int res1 = 0 ;
7143 PyObject *swig_obj[1] ;
7144
7145 if (!args) SWIG_fail;
7146 swig_obj[0] = args;
7147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7148 if (!SWIG_IsOK(res1)) {
7149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7150 }
7151 arg1 = reinterpret_cast< wxGauge * >(argp1);
7152 {
7153 PyThreadState* __tstate = wxPyBeginAllowThreads();
7154 result = (int)((wxGauge const *)arg1)->GetValue();
7155 wxPyEndAllowThreads(__tstate);
7156 if (PyErr_Occurred()) SWIG_fail;
7157 }
7158 resultobj = SWIG_From_int(static_cast< int >(result));
7159 return resultobj;
7160 fail:
7161 return NULL;
7162 }
7163
7164
7165 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7166 PyObject *resultobj = 0;
7167 wxGauge *arg1 = (wxGauge *) 0 ;
7168 bool result;
7169 void *argp1 = 0 ;
7170 int res1 = 0 ;
7171 PyObject *swig_obj[1] ;
7172
7173 if (!args) SWIG_fail;
7174 swig_obj[0] = args;
7175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7176 if (!SWIG_IsOK(res1)) {
7177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7178 }
7179 arg1 = reinterpret_cast< wxGauge * >(argp1);
7180 {
7181 PyThreadState* __tstate = wxPyBeginAllowThreads();
7182 result = (bool)((wxGauge const *)arg1)->IsVertical();
7183 wxPyEndAllowThreads(__tstate);
7184 if (PyErr_Occurred()) SWIG_fail;
7185 }
7186 {
7187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7188 }
7189 return resultobj;
7190 fail:
7191 return NULL;
7192 }
7193
7194
7195 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7196 PyObject *resultobj = 0;
7197 wxGauge *arg1 = (wxGauge *) 0 ;
7198 int arg2 ;
7199 void *argp1 = 0 ;
7200 int res1 = 0 ;
7201 int val2 ;
7202 int ecode2 = 0 ;
7203 PyObject * obj0 = 0 ;
7204 PyObject * obj1 = 0 ;
7205 char * kwnames[] = {
7206 (char *) "self",(char *) "w", NULL
7207 };
7208
7209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7211 if (!SWIG_IsOK(res1)) {
7212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7213 }
7214 arg1 = reinterpret_cast< wxGauge * >(argp1);
7215 ecode2 = SWIG_AsVal_int(obj1, &val2);
7216 if (!SWIG_IsOK(ecode2)) {
7217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7218 }
7219 arg2 = static_cast< int >(val2);
7220 {
7221 PyThreadState* __tstate = wxPyBeginAllowThreads();
7222 (arg1)->SetShadowWidth(arg2);
7223 wxPyEndAllowThreads(__tstate);
7224 if (PyErr_Occurred()) SWIG_fail;
7225 }
7226 resultobj = SWIG_Py_Void();
7227 return resultobj;
7228 fail:
7229 return NULL;
7230 }
7231
7232
7233 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7234 PyObject *resultobj = 0;
7235 wxGauge *arg1 = (wxGauge *) 0 ;
7236 int result;
7237 void *argp1 = 0 ;
7238 int res1 = 0 ;
7239 PyObject *swig_obj[1] ;
7240
7241 if (!args) SWIG_fail;
7242 swig_obj[0] = args;
7243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7244 if (!SWIG_IsOK(res1)) {
7245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7246 }
7247 arg1 = reinterpret_cast< wxGauge * >(argp1);
7248 {
7249 PyThreadState* __tstate = wxPyBeginAllowThreads();
7250 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7251 wxPyEndAllowThreads(__tstate);
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 resultobj = SWIG_From_int(static_cast< int >(result));
7255 return resultobj;
7256 fail:
7257 return NULL;
7258 }
7259
7260
7261 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7262 PyObject *resultobj = 0;
7263 wxGauge *arg1 = (wxGauge *) 0 ;
7264 int arg2 ;
7265 void *argp1 = 0 ;
7266 int res1 = 0 ;
7267 int val2 ;
7268 int ecode2 = 0 ;
7269 PyObject * obj0 = 0 ;
7270 PyObject * obj1 = 0 ;
7271 char * kwnames[] = {
7272 (char *) "self",(char *) "w", NULL
7273 };
7274
7275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7277 if (!SWIG_IsOK(res1)) {
7278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7279 }
7280 arg1 = reinterpret_cast< wxGauge * >(argp1);
7281 ecode2 = SWIG_AsVal_int(obj1, &val2);
7282 if (!SWIG_IsOK(ecode2)) {
7283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7284 }
7285 arg2 = static_cast< int >(val2);
7286 {
7287 PyThreadState* __tstate = wxPyBeginAllowThreads();
7288 (arg1)->SetBezelFace(arg2);
7289 wxPyEndAllowThreads(__tstate);
7290 if (PyErr_Occurred()) SWIG_fail;
7291 }
7292 resultobj = SWIG_Py_Void();
7293 return resultobj;
7294 fail:
7295 return NULL;
7296 }
7297
7298
7299 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7300 PyObject *resultobj = 0;
7301 wxGauge *arg1 = (wxGauge *) 0 ;
7302 int result;
7303 void *argp1 = 0 ;
7304 int res1 = 0 ;
7305 PyObject *swig_obj[1] ;
7306
7307 if (!args) SWIG_fail;
7308 swig_obj[0] = args;
7309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7310 if (!SWIG_IsOK(res1)) {
7311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7312 }
7313 arg1 = reinterpret_cast< wxGauge * >(argp1);
7314 {
7315 PyThreadState* __tstate = wxPyBeginAllowThreads();
7316 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7317 wxPyEndAllowThreads(__tstate);
7318 if (PyErr_Occurred()) SWIG_fail;
7319 }
7320 resultobj = SWIG_From_int(static_cast< int >(result));
7321 return resultobj;
7322 fail:
7323 return NULL;
7324 }
7325
7326
7327 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7328 PyObject *resultobj = 0;
7329 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7330 SwigValueWrapper<wxVisualAttributes > result;
7331 int val1 ;
7332 int ecode1 = 0 ;
7333 PyObject * obj0 = 0 ;
7334 char * kwnames[] = {
7335 (char *) "variant", NULL
7336 };
7337
7338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7339 if (obj0) {
7340 ecode1 = SWIG_AsVal_int(obj0, &val1);
7341 if (!SWIG_IsOK(ecode1)) {
7342 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7343 }
7344 arg1 = static_cast< wxWindowVariant >(val1);
7345 }
7346 {
7347 if (!wxPyCheckForApp()) SWIG_fail;
7348 PyThreadState* __tstate = wxPyBeginAllowThreads();
7349 result = wxGauge::GetClassDefaultAttributes(arg1);
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7354 return resultobj;
7355 fail:
7356 return NULL;
7357 }
7358
7359
7360 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7361 PyObject *obj;
7362 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7363 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7364 return SWIG_Py_Void();
7365 }
7366
7367 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7368 return SWIG_Python_InitShadowInstance(args);
7369 }
7370
7371 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7372 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7373 return 1;
7374 }
7375
7376
7377 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7378 PyObject *pyobj = 0;
7379
7380 {
7381 #if wxUSE_UNICODE
7382 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7383 #else
7384 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7385 #endif
7386 }
7387 return pyobj;
7388 }
7389
7390
7391 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7392 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7393 return 1;
7394 }
7395
7396
7397 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7398 PyObject *pyobj = 0;
7399
7400 {
7401 #if wxUSE_UNICODE
7402 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7403 #else
7404 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7405 #endif
7406 }
7407 return pyobj;
7408 }
7409
7410
7411 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7412 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7413 return 1;
7414 }
7415
7416
7417 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7418 PyObject *pyobj = 0;
7419
7420 {
7421 #if wxUSE_UNICODE
7422 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7423 #else
7424 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7425 #endif
7426 }
7427 return pyobj;
7428 }
7429
7430
7431 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7432 PyObject *resultobj = 0;
7433 wxWindow *arg1 = (wxWindow *) 0 ;
7434 int arg2 = (int) -1 ;
7435 wxString const &arg3_defvalue = wxPyEmptyString ;
7436 wxString *arg3 = (wxString *) &arg3_defvalue ;
7437 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7438 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7439 wxSize const &arg5_defvalue = wxDefaultSize ;
7440 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7441 long arg6 = (long) 0 ;
7442 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7443 wxString *arg7 = (wxString *) &arg7_defvalue ;
7444 wxStaticBox *result = 0 ;
7445 void *argp1 = 0 ;
7446 int res1 = 0 ;
7447 int val2 ;
7448 int ecode2 = 0 ;
7449 bool temp3 = false ;
7450 wxPoint temp4 ;
7451 wxSize temp5 ;
7452 long val6 ;
7453 int ecode6 = 0 ;
7454 bool temp7 = false ;
7455 PyObject * obj0 = 0 ;
7456 PyObject * obj1 = 0 ;
7457 PyObject * obj2 = 0 ;
7458 PyObject * obj3 = 0 ;
7459 PyObject * obj4 = 0 ;
7460 PyObject * obj5 = 0 ;
7461 PyObject * obj6 = 0 ;
7462 char * kwnames[] = {
7463 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7464 };
7465
7466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7468 if (!SWIG_IsOK(res1)) {
7469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7470 }
7471 arg1 = reinterpret_cast< wxWindow * >(argp1);
7472 if (obj1) {
7473 ecode2 = SWIG_AsVal_int(obj1, &val2);
7474 if (!SWIG_IsOK(ecode2)) {
7475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7476 }
7477 arg2 = static_cast< int >(val2);
7478 }
7479 if (obj2) {
7480 {
7481 arg3 = wxString_in_helper(obj2);
7482 if (arg3 == NULL) SWIG_fail;
7483 temp3 = true;
7484 }
7485 }
7486 if (obj3) {
7487 {
7488 arg4 = &temp4;
7489 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7490 }
7491 }
7492 if (obj4) {
7493 {
7494 arg5 = &temp5;
7495 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7496 }
7497 }
7498 if (obj5) {
7499 ecode6 = SWIG_AsVal_long(obj5, &val6);
7500 if (!SWIG_IsOK(ecode6)) {
7501 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7502 }
7503 arg6 = static_cast< long >(val6);
7504 }
7505 if (obj6) {
7506 {
7507 arg7 = wxString_in_helper(obj6);
7508 if (arg7 == NULL) SWIG_fail;
7509 temp7 = true;
7510 }
7511 }
7512 {
7513 if (!wxPyCheckForApp()) SWIG_fail;
7514 PyThreadState* __tstate = wxPyBeginAllowThreads();
7515 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7516 wxPyEndAllowThreads(__tstate);
7517 if (PyErr_Occurred()) SWIG_fail;
7518 }
7519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7520 {
7521 if (temp3)
7522 delete arg3;
7523 }
7524 {
7525 if (temp7)
7526 delete arg7;
7527 }
7528 return resultobj;
7529 fail:
7530 {
7531 if (temp3)
7532 delete arg3;
7533 }
7534 {
7535 if (temp7)
7536 delete arg7;
7537 }
7538 return NULL;
7539 }
7540
7541
7542 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7543 PyObject *resultobj = 0;
7544 wxStaticBox *result = 0 ;
7545
7546 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7547 {
7548 if (!wxPyCheckForApp()) SWIG_fail;
7549 PyThreadState* __tstate = wxPyBeginAllowThreads();
7550 result = (wxStaticBox *)new wxStaticBox();
7551 wxPyEndAllowThreads(__tstate);
7552 if (PyErr_Occurred()) SWIG_fail;
7553 }
7554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7555 return resultobj;
7556 fail:
7557 return NULL;
7558 }
7559
7560
7561 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7562 PyObject *resultobj = 0;
7563 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7564 wxWindow *arg2 = (wxWindow *) 0 ;
7565 int arg3 = (int) -1 ;
7566 wxString const &arg4_defvalue = wxPyEmptyString ;
7567 wxString *arg4 = (wxString *) &arg4_defvalue ;
7568 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7569 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7570 wxSize const &arg6_defvalue = wxDefaultSize ;
7571 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7572 long arg7 = (long) 0 ;
7573 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7574 wxString *arg8 = (wxString *) &arg8_defvalue ;
7575 bool result;
7576 void *argp1 = 0 ;
7577 int res1 = 0 ;
7578 void *argp2 = 0 ;
7579 int res2 = 0 ;
7580 int val3 ;
7581 int ecode3 = 0 ;
7582 bool temp4 = false ;
7583 wxPoint temp5 ;
7584 wxSize temp6 ;
7585 long val7 ;
7586 int ecode7 = 0 ;
7587 bool temp8 = false ;
7588 PyObject * obj0 = 0 ;
7589 PyObject * obj1 = 0 ;
7590 PyObject * obj2 = 0 ;
7591 PyObject * obj3 = 0 ;
7592 PyObject * obj4 = 0 ;
7593 PyObject * obj5 = 0 ;
7594 PyObject * obj6 = 0 ;
7595 PyObject * obj7 = 0 ;
7596 char * kwnames[] = {
7597 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7598 };
7599
7600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7602 if (!SWIG_IsOK(res1)) {
7603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7604 }
7605 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7606 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7607 if (!SWIG_IsOK(res2)) {
7608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7609 }
7610 arg2 = reinterpret_cast< wxWindow * >(argp2);
7611 if (obj2) {
7612 ecode3 = SWIG_AsVal_int(obj2, &val3);
7613 if (!SWIG_IsOK(ecode3)) {
7614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7615 }
7616 arg3 = static_cast< int >(val3);
7617 }
7618 if (obj3) {
7619 {
7620 arg4 = wxString_in_helper(obj3);
7621 if (arg4 == NULL) SWIG_fail;
7622 temp4 = true;
7623 }
7624 }
7625 if (obj4) {
7626 {
7627 arg5 = &temp5;
7628 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7629 }
7630 }
7631 if (obj5) {
7632 {
7633 arg6 = &temp6;
7634 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7635 }
7636 }
7637 if (obj6) {
7638 ecode7 = SWIG_AsVal_long(obj6, &val7);
7639 if (!SWIG_IsOK(ecode7)) {
7640 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7641 }
7642 arg7 = static_cast< long >(val7);
7643 }
7644 if (obj7) {
7645 {
7646 arg8 = wxString_in_helper(obj7);
7647 if (arg8 == NULL) SWIG_fail;
7648 temp8 = true;
7649 }
7650 }
7651 {
7652 PyThreadState* __tstate = wxPyBeginAllowThreads();
7653 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7654 wxPyEndAllowThreads(__tstate);
7655 if (PyErr_Occurred()) SWIG_fail;
7656 }
7657 {
7658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7659 }
7660 {
7661 if (temp4)
7662 delete arg4;
7663 }
7664 {
7665 if (temp8)
7666 delete arg8;
7667 }
7668 return resultobj;
7669 fail:
7670 {
7671 if (temp4)
7672 delete arg4;
7673 }
7674 {
7675 if (temp8)
7676 delete arg8;
7677 }
7678 return NULL;
7679 }
7680
7681
7682 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7683 PyObject *resultobj = 0;
7684 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7685 SwigValueWrapper<wxVisualAttributes > result;
7686 int val1 ;
7687 int ecode1 = 0 ;
7688 PyObject * obj0 = 0 ;
7689 char * kwnames[] = {
7690 (char *) "variant", NULL
7691 };
7692
7693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7694 if (obj0) {
7695 ecode1 = SWIG_AsVal_int(obj0, &val1);
7696 if (!SWIG_IsOK(ecode1)) {
7697 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7698 }
7699 arg1 = static_cast< wxWindowVariant >(val1);
7700 }
7701 {
7702 if (!wxPyCheckForApp()) SWIG_fail;
7703 PyThreadState* __tstate = wxPyBeginAllowThreads();
7704 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7705 wxPyEndAllowThreads(__tstate);
7706 if (PyErr_Occurred()) SWIG_fail;
7707 }
7708 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7709 return resultobj;
7710 fail:
7711 return NULL;
7712 }
7713
7714
7715 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7716 PyObject *obj;
7717 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7718 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7719 return SWIG_Py_Void();
7720 }
7721
7722 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7723 return SWIG_Python_InitShadowInstance(args);
7724 }
7725
7726 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7727 PyObject *resultobj = 0;
7728 wxWindow *arg1 = (wxWindow *) 0 ;
7729 int arg2 = (int) -1 ;
7730 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7731 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7732 wxSize const &arg4_defvalue = wxDefaultSize ;
7733 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7734 long arg5 = (long) wxLI_HORIZONTAL ;
7735 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7736 wxString *arg6 = (wxString *) &arg6_defvalue ;
7737 wxStaticLine *result = 0 ;
7738 void *argp1 = 0 ;
7739 int res1 = 0 ;
7740 int val2 ;
7741 int ecode2 = 0 ;
7742 wxPoint temp3 ;
7743 wxSize temp4 ;
7744 long val5 ;
7745 int ecode5 = 0 ;
7746 bool temp6 = false ;
7747 PyObject * obj0 = 0 ;
7748 PyObject * obj1 = 0 ;
7749 PyObject * obj2 = 0 ;
7750 PyObject * obj3 = 0 ;
7751 PyObject * obj4 = 0 ;
7752 PyObject * obj5 = 0 ;
7753 char * kwnames[] = {
7754 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7755 };
7756
7757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7759 if (!SWIG_IsOK(res1)) {
7760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7761 }
7762 arg1 = reinterpret_cast< wxWindow * >(argp1);
7763 if (obj1) {
7764 ecode2 = SWIG_AsVal_int(obj1, &val2);
7765 if (!SWIG_IsOK(ecode2)) {
7766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7767 }
7768 arg2 = static_cast< int >(val2);
7769 }
7770 if (obj2) {
7771 {
7772 arg3 = &temp3;
7773 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7774 }
7775 }
7776 if (obj3) {
7777 {
7778 arg4 = &temp4;
7779 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7780 }
7781 }
7782 if (obj4) {
7783 ecode5 = SWIG_AsVal_long(obj4, &val5);
7784 if (!SWIG_IsOK(ecode5)) {
7785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7786 }
7787 arg5 = static_cast< long >(val5);
7788 }
7789 if (obj5) {
7790 {
7791 arg6 = wxString_in_helper(obj5);
7792 if (arg6 == NULL) SWIG_fail;
7793 temp6 = true;
7794 }
7795 }
7796 {
7797 if (!wxPyCheckForApp()) SWIG_fail;
7798 PyThreadState* __tstate = wxPyBeginAllowThreads();
7799 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7800 wxPyEndAllowThreads(__tstate);
7801 if (PyErr_Occurred()) SWIG_fail;
7802 }
7803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7804 {
7805 if (temp6)
7806 delete arg6;
7807 }
7808 return resultobj;
7809 fail:
7810 {
7811 if (temp6)
7812 delete arg6;
7813 }
7814 return NULL;
7815 }
7816
7817
7818 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7819 PyObject *resultobj = 0;
7820 wxStaticLine *result = 0 ;
7821
7822 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7823 {
7824 if (!wxPyCheckForApp()) SWIG_fail;
7825 PyThreadState* __tstate = wxPyBeginAllowThreads();
7826 result = (wxStaticLine *)new wxStaticLine();
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
7830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7831 return resultobj;
7832 fail:
7833 return NULL;
7834 }
7835
7836
7837 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7838 PyObject *resultobj = 0;
7839 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7840 wxWindow *arg2 = (wxWindow *) 0 ;
7841 int arg3 = (int) -1 ;
7842 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7843 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7844 wxSize const &arg5_defvalue = wxDefaultSize ;
7845 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7846 long arg6 = (long) wxLI_HORIZONTAL ;
7847 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7848 wxString *arg7 = (wxString *) &arg7_defvalue ;
7849 bool result;
7850 void *argp1 = 0 ;
7851 int res1 = 0 ;
7852 void *argp2 = 0 ;
7853 int res2 = 0 ;
7854 int val3 ;
7855 int ecode3 = 0 ;
7856 wxPoint temp4 ;
7857 wxSize temp5 ;
7858 long val6 ;
7859 int ecode6 = 0 ;
7860 bool temp7 = false ;
7861 PyObject * obj0 = 0 ;
7862 PyObject * obj1 = 0 ;
7863 PyObject * obj2 = 0 ;
7864 PyObject * obj3 = 0 ;
7865 PyObject * obj4 = 0 ;
7866 PyObject * obj5 = 0 ;
7867 PyObject * obj6 = 0 ;
7868 char * kwnames[] = {
7869 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7870 };
7871
7872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7874 if (!SWIG_IsOK(res1)) {
7875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7876 }
7877 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7878 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7879 if (!SWIG_IsOK(res2)) {
7880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7881 }
7882 arg2 = reinterpret_cast< wxWindow * >(argp2);
7883 if (obj2) {
7884 ecode3 = SWIG_AsVal_int(obj2, &val3);
7885 if (!SWIG_IsOK(ecode3)) {
7886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7887 }
7888 arg3 = static_cast< int >(val3);
7889 }
7890 if (obj3) {
7891 {
7892 arg4 = &temp4;
7893 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7894 }
7895 }
7896 if (obj4) {
7897 {
7898 arg5 = &temp5;
7899 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7900 }
7901 }
7902 if (obj5) {
7903 ecode6 = SWIG_AsVal_long(obj5, &val6);
7904 if (!SWIG_IsOK(ecode6)) {
7905 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7906 }
7907 arg6 = static_cast< long >(val6);
7908 }
7909 if (obj6) {
7910 {
7911 arg7 = wxString_in_helper(obj6);
7912 if (arg7 == NULL) SWIG_fail;
7913 temp7 = true;
7914 }
7915 }
7916 {
7917 PyThreadState* __tstate = wxPyBeginAllowThreads();
7918 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7919 wxPyEndAllowThreads(__tstate);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 {
7923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7924 }
7925 {
7926 if (temp7)
7927 delete arg7;
7928 }
7929 return resultobj;
7930 fail:
7931 {
7932 if (temp7)
7933 delete arg7;
7934 }
7935 return NULL;
7936 }
7937
7938
7939 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7940 PyObject *resultobj = 0;
7941 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7942 bool result;
7943 void *argp1 = 0 ;
7944 int res1 = 0 ;
7945 PyObject *swig_obj[1] ;
7946
7947 if (!args) SWIG_fail;
7948 swig_obj[0] = args;
7949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7950 if (!SWIG_IsOK(res1)) {
7951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7952 }
7953 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7954 {
7955 PyThreadState* __tstate = wxPyBeginAllowThreads();
7956 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7957 wxPyEndAllowThreads(__tstate);
7958 if (PyErr_Occurred()) SWIG_fail;
7959 }
7960 {
7961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7962 }
7963 return resultobj;
7964 fail:
7965 return NULL;
7966 }
7967
7968
7969 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7970 PyObject *resultobj = 0;
7971 int result;
7972
7973 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7974 {
7975 PyThreadState* __tstate = wxPyBeginAllowThreads();
7976 result = (int)wxStaticLine::GetDefaultSize();
7977 wxPyEndAllowThreads(__tstate);
7978 if (PyErr_Occurred()) SWIG_fail;
7979 }
7980 resultobj = SWIG_From_int(static_cast< int >(result));
7981 return resultobj;
7982 fail:
7983 return NULL;
7984 }
7985
7986
7987 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7988 PyObject *resultobj = 0;
7989 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7990 SwigValueWrapper<wxVisualAttributes > result;
7991 int val1 ;
7992 int ecode1 = 0 ;
7993 PyObject * obj0 = 0 ;
7994 char * kwnames[] = {
7995 (char *) "variant", NULL
7996 };
7997
7998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7999 if (obj0) {
8000 ecode1 = SWIG_AsVal_int(obj0, &val1);
8001 if (!SWIG_IsOK(ecode1)) {
8002 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8003 }
8004 arg1 = static_cast< wxWindowVariant >(val1);
8005 }
8006 {
8007 if (!wxPyCheckForApp()) SWIG_fail;
8008 PyThreadState* __tstate = wxPyBeginAllowThreads();
8009 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8010 wxPyEndAllowThreads(__tstate);
8011 if (PyErr_Occurred()) SWIG_fail;
8012 }
8013 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8014 return resultobj;
8015 fail:
8016 return NULL;
8017 }
8018
8019
8020 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8021 PyObject *obj;
8022 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8023 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8024 return SWIG_Py_Void();
8025 }
8026
8027 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8028 return SWIG_Python_InitShadowInstance(args);
8029 }
8030
8031 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8032 PyObject *resultobj = 0;
8033 wxWindow *arg1 = (wxWindow *) 0 ;
8034 int arg2 = (int) -1 ;
8035 wxString const &arg3_defvalue = wxPyEmptyString ;
8036 wxString *arg3 = (wxString *) &arg3_defvalue ;
8037 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8038 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8039 wxSize const &arg5_defvalue = wxDefaultSize ;
8040 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8041 long arg6 = (long) 0 ;
8042 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8043 wxString *arg7 = (wxString *) &arg7_defvalue ;
8044 wxStaticText *result = 0 ;
8045 void *argp1 = 0 ;
8046 int res1 = 0 ;
8047 int val2 ;
8048 int ecode2 = 0 ;
8049 bool temp3 = false ;
8050 wxPoint temp4 ;
8051 wxSize temp5 ;
8052 long val6 ;
8053 int ecode6 = 0 ;
8054 bool temp7 = false ;
8055 PyObject * obj0 = 0 ;
8056 PyObject * obj1 = 0 ;
8057 PyObject * obj2 = 0 ;
8058 PyObject * obj3 = 0 ;
8059 PyObject * obj4 = 0 ;
8060 PyObject * obj5 = 0 ;
8061 PyObject * obj6 = 0 ;
8062 char * kwnames[] = {
8063 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8064 };
8065
8066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8068 if (!SWIG_IsOK(res1)) {
8069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8070 }
8071 arg1 = reinterpret_cast< wxWindow * >(argp1);
8072 if (obj1) {
8073 ecode2 = SWIG_AsVal_int(obj1, &val2);
8074 if (!SWIG_IsOK(ecode2)) {
8075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8076 }
8077 arg2 = static_cast< int >(val2);
8078 }
8079 if (obj2) {
8080 {
8081 arg3 = wxString_in_helper(obj2);
8082 if (arg3 == NULL) SWIG_fail;
8083 temp3 = true;
8084 }
8085 }
8086 if (obj3) {
8087 {
8088 arg4 = &temp4;
8089 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8090 }
8091 }
8092 if (obj4) {
8093 {
8094 arg5 = &temp5;
8095 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8096 }
8097 }
8098 if (obj5) {
8099 ecode6 = SWIG_AsVal_long(obj5, &val6);
8100 if (!SWIG_IsOK(ecode6)) {
8101 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8102 }
8103 arg6 = static_cast< long >(val6);
8104 }
8105 if (obj6) {
8106 {
8107 arg7 = wxString_in_helper(obj6);
8108 if (arg7 == NULL) SWIG_fail;
8109 temp7 = true;
8110 }
8111 }
8112 {
8113 if (!wxPyCheckForApp()) SWIG_fail;
8114 PyThreadState* __tstate = wxPyBeginAllowThreads();
8115 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8116 wxPyEndAllowThreads(__tstate);
8117 if (PyErr_Occurred()) SWIG_fail;
8118 }
8119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8120 {
8121 if (temp3)
8122 delete arg3;
8123 }
8124 {
8125 if (temp7)
8126 delete arg7;
8127 }
8128 return resultobj;
8129 fail:
8130 {
8131 if (temp3)
8132 delete arg3;
8133 }
8134 {
8135 if (temp7)
8136 delete arg7;
8137 }
8138 return NULL;
8139 }
8140
8141
8142 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8143 PyObject *resultobj = 0;
8144 wxStaticText *result = 0 ;
8145
8146 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8147 {
8148 if (!wxPyCheckForApp()) SWIG_fail;
8149 PyThreadState* __tstate = wxPyBeginAllowThreads();
8150 result = (wxStaticText *)new wxStaticText();
8151 wxPyEndAllowThreads(__tstate);
8152 if (PyErr_Occurred()) SWIG_fail;
8153 }
8154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8155 return resultobj;
8156 fail:
8157 return NULL;
8158 }
8159
8160
8161 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8162 PyObject *resultobj = 0;
8163 wxStaticText *arg1 = (wxStaticText *) 0 ;
8164 wxWindow *arg2 = (wxWindow *) 0 ;
8165 int arg3 = (int) -1 ;
8166 wxString const &arg4_defvalue = wxPyEmptyString ;
8167 wxString *arg4 = (wxString *) &arg4_defvalue ;
8168 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8169 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8170 wxSize const &arg6_defvalue = wxDefaultSize ;
8171 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8172 long arg7 = (long) 0 ;
8173 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8174 wxString *arg8 = (wxString *) &arg8_defvalue ;
8175 bool result;
8176 void *argp1 = 0 ;
8177 int res1 = 0 ;
8178 void *argp2 = 0 ;
8179 int res2 = 0 ;
8180 int val3 ;
8181 int ecode3 = 0 ;
8182 bool temp4 = false ;
8183 wxPoint temp5 ;
8184 wxSize temp6 ;
8185 long val7 ;
8186 int ecode7 = 0 ;
8187 bool temp8 = false ;
8188 PyObject * obj0 = 0 ;
8189 PyObject * obj1 = 0 ;
8190 PyObject * obj2 = 0 ;
8191 PyObject * obj3 = 0 ;
8192 PyObject * obj4 = 0 ;
8193 PyObject * obj5 = 0 ;
8194 PyObject * obj6 = 0 ;
8195 PyObject * obj7 = 0 ;
8196 char * kwnames[] = {
8197 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8198 };
8199
8200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8202 if (!SWIG_IsOK(res1)) {
8203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8204 }
8205 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8207 if (!SWIG_IsOK(res2)) {
8208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8209 }
8210 arg2 = reinterpret_cast< wxWindow * >(argp2);
8211 if (obj2) {
8212 ecode3 = SWIG_AsVal_int(obj2, &val3);
8213 if (!SWIG_IsOK(ecode3)) {
8214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8215 }
8216 arg3 = static_cast< int >(val3);
8217 }
8218 if (obj3) {
8219 {
8220 arg4 = wxString_in_helper(obj3);
8221 if (arg4 == NULL) SWIG_fail;
8222 temp4 = true;
8223 }
8224 }
8225 if (obj4) {
8226 {
8227 arg5 = &temp5;
8228 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8229 }
8230 }
8231 if (obj5) {
8232 {
8233 arg6 = &temp6;
8234 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8235 }
8236 }
8237 if (obj6) {
8238 ecode7 = SWIG_AsVal_long(obj6, &val7);
8239 if (!SWIG_IsOK(ecode7)) {
8240 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8241 }
8242 arg7 = static_cast< long >(val7);
8243 }
8244 if (obj7) {
8245 {
8246 arg8 = wxString_in_helper(obj7);
8247 if (arg8 == NULL) SWIG_fail;
8248 temp8 = true;
8249 }
8250 }
8251 {
8252 PyThreadState* __tstate = wxPyBeginAllowThreads();
8253 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8254 wxPyEndAllowThreads(__tstate);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 {
8258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8259 }
8260 {
8261 if (temp4)
8262 delete arg4;
8263 }
8264 {
8265 if (temp8)
8266 delete arg8;
8267 }
8268 return resultobj;
8269 fail:
8270 {
8271 if (temp4)
8272 delete arg4;
8273 }
8274 {
8275 if (temp8)
8276 delete arg8;
8277 }
8278 return NULL;
8279 }
8280
8281
8282 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8283 PyObject *resultobj = 0;
8284 wxStaticText *arg1 = (wxStaticText *) 0 ;
8285 int arg2 ;
8286 void *argp1 = 0 ;
8287 int res1 = 0 ;
8288 int val2 ;
8289 int ecode2 = 0 ;
8290 PyObject * obj0 = 0 ;
8291 PyObject * obj1 = 0 ;
8292 char * kwnames[] = {
8293 (char *) "self",(char *) "width", NULL
8294 };
8295
8296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8298 if (!SWIG_IsOK(res1)) {
8299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8300 }
8301 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8302 ecode2 = SWIG_AsVal_int(obj1, &val2);
8303 if (!SWIG_IsOK(ecode2)) {
8304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8305 }
8306 arg2 = static_cast< int >(val2);
8307 {
8308 PyThreadState* __tstate = wxPyBeginAllowThreads();
8309 (arg1)->Wrap(arg2);
8310 wxPyEndAllowThreads(__tstate);
8311 if (PyErr_Occurred()) SWIG_fail;
8312 }
8313 resultobj = SWIG_Py_Void();
8314 return resultobj;
8315 fail:
8316 return NULL;
8317 }
8318
8319
8320 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8321 PyObject *resultobj = 0;
8322 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8323 SwigValueWrapper<wxVisualAttributes > result;
8324 int val1 ;
8325 int ecode1 = 0 ;
8326 PyObject * obj0 = 0 ;
8327 char * kwnames[] = {
8328 (char *) "variant", NULL
8329 };
8330
8331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8332 if (obj0) {
8333 ecode1 = SWIG_AsVal_int(obj0, &val1);
8334 if (!SWIG_IsOK(ecode1)) {
8335 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8336 }
8337 arg1 = static_cast< wxWindowVariant >(val1);
8338 }
8339 {
8340 if (!wxPyCheckForApp()) SWIG_fail;
8341 PyThreadState* __tstate = wxPyBeginAllowThreads();
8342 result = wxStaticText::GetClassDefaultAttributes(arg1);
8343 wxPyEndAllowThreads(__tstate);
8344 if (PyErr_Occurred()) SWIG_fail;
8345 }
8346 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8347 return resultobj;
8348 fail:
8349 return NULL;
8350 }
8351
8352
8353 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8354 PyObject *obj;
8355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8356 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8357 return SWIG_Py_Void();
8358 }
8359
8360 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8361 return SWIG_Python_InitShadowInstance(args);
8362 }
8363
8364 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8365 PyObject *resultobj = 0;
8366 wxWindow *arg1 = (wxWindow *) 0 ;
8367 int arg2 = (int) -1 ;
8368 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8369 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8370 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8371 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8372 wxSize const &arg5_defvalue = wxDefaultSize ;
8373 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8374 long arg6 = (long) 0 ;
8375 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8376 wxString *arg7 = (wxString *) &arg7_defvalue ;
8377 wxStaticBitmap *result = 0 ;
8378 void *argp1 = 0 ;
8379 int res1 = 0 ;
8380 int val2 ;
8381 int ecode2 = 0 ;
8382 void *argp3 = 0 ;
8383 int res3 = 0 ;
8384 wxPoint temp4 ;
8385 wxSize temp5 ;
8386 long val6 ;
8387 int ecode6 = 0 ;
8388 bool temp7 = false ;
8389 PyObject * obj0 = 0 ;
8390 PyObject * obj1 = 0 ;
8391 PyObject * obj2 = 0 ;
8392 PyObject * obj3 = 0 ;
8393 PyObject * obj4 = 0 ;
8394 PyObject * obj5 = 0 ;
8395 PyObject * obj6 = 0 ;
8396 char * kwnames[] = {
8397 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8398 };
8399
8400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8402 if (!SWIG_IsOK(res1)) {
8403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8404 }
8405 arg1 = reinterpret_cast< wxWindow * >(argp1);
8406 if (obj1) {
8407 ecode2 = SWIG_AsVal_int(obj1, &val2);
8408 if (!SWIG_IsOK(ecode2)) {
8409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8410 }
8411 arg2 = static_cast< int >(val2);
8412 }
8413 if (obj2) {
8414 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8415 if (!SWIG_IsOK(res3)) {
8416 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8417 }
8418 if (!argp3) {
8419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8420 }
8421 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8422 }
8423 if (obj3) {
8424 {
8425 arg4 = &temp4;
8426 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8427 }
8428 }
8429 if (obj4) {
8430 {
8431 arg5 = &temp5;
8432 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8433 }
8434 }
8435 if (obj5) {
8436 ecode6 = SWIG_AsVal_long(obj5, &val6);
8437 if (!SWIG_IsOK(ecode6)) {
8438 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8439 }
8440 arg6 = static_cast< long >(val6);
8441 }
8442 if (obj6) {
8443 {
8444 arg7 = wxString_in_helper(obj6);
8445 if (arg7 == NULL) SWIG_fail;
8446 temp7 = true;
8447 }
8448 }
8449 {
8450 if (!wxPyCheckForApp()) SWIG_fail;
8451 PyThreadState* __tstate = wxPyBeginAllowThreads();
8452 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8453 wxPyEndAllowThreads(__tstate);
8454 if (PyErr_Occurred()) SWIG_fail;
8455 }
8456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8457 {
8458 if (temp7)
8459 delete arg7;
8460 }
8461 return resultobj;
8462 fail:
8463 {
8464 if (temp7)
8465 delete arg7;
8466 }
8467 return NULL;
8468 }
8469
8470
8471 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8472 PyObject *resultobj = 0;
8473 wxStaticBitmap *result = 0 ;
8474
8475 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8476 {
8477 if (!wxPyCheckForApp()) SWIG_fail;
8478 PyThreadState* __tstate = wxPyBeginAllowThreads();
8479 result = (wxStaticBitmap *)new wxStaticBitmap();
8480 wxPyEndAllowThreads(__tstate);
8481 if (PyErr_Occurred()) SWIG_fail;
8482 }
8483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8484 return resultobj;
8485 fail:
8486 return NULL;
8487 }
8488
8489
8490 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8491 PyObject *resultobj = 0;
8492 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8493 wxWindow *arg2 = (wxWindow *) 0 ;
8494 int arg3 = (int) -1 ;
8495 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8496 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8497 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8498 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8499 wxSize const &arg6_defvalue = wxDefaultSize ;
8500 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8501 long arg7 = (long) 0 ;
8502 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8503 wxString *arg8 = (wxString *) &arg8_defvalue ;
8504 bool result;
8505 void *argp1 = 0 ;
8506 int res1 = 0 ;
8507 void *argp2 = 0 ;
8508 int res2 = 0 ;
8509 int val3 ;
8510 int ecode3 = 0 ;
8511 void *argp4 = 0 ;
8512 int res4 = 0 ;
8513 wxPoint temp5 ;
8514 wxSize temp6 ;
8515 long val7 ;
8516 int ecode7 = 0 ;
8517 bool temp8 = false ;
8518 PyObject * obj0 = 0 ;
8519 PyObject * obj1 = 0 ;
8520 PyObject * obj2 = 0 ;
8521 PyObject * obj3 = 0 ;
8522 PyObject * obj4 = 0 ;
8523 PyObject * obj5 = 0 ;
8524 PyObject * obj6 = 0 ;
8525 PyObject * obj7 = 0 ;
8526 char * kwnames[] = {
8527 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8528 };
8529
8530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8532 if (!SWIG_IsOK(res1)) {
8533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8534 }
8535 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8536 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8537 if (!SWIG_IsOK(res2)) {
8538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8539 }
8540 arg2 = reinterpret_cast< wxWindow * >(argp2);
8541 if (obj2) {
8542 ecode3 = SWIG_AsVal_int(obj2, &val3);
8543 if (!SWIG_IsOK(ecode3)) {
8544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8545 }
8546 arg3 = static_cast< int >(val3);
8547 }
8548 if (obj3) {
8549 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8550 if (!SWIG_IsOK(res4)) {
8551 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8552 }
8553 if (!argp4) {
8554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8555 }
8556 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8557 }
8558 if (obj4) {
8559 {
8560 arg5 = &temp5;
8561 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8562 }
8563 }
8564 if (obj5) {
8565 {
8566 arg6 = &temp6;
8567 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8568 }
8569 }
8570 if (obj6) {
8571 ecode7 = SWIG_AsVal_long(obj6, &val7);
8572 if (!SWIG_IsOK(ecode7)) {
8573 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8574 }
8575 arg7 = static_cast< long >(val7);
8576 }
8577 if (obj7) {
8578 {
8579 arg8 = wxString_in_helper(obj7);
8580 if (arg8 == NULL) SWIG_fail;
8581 temp8 = true;
8582 }
8583 }
8584 {
8585 PyThreadState* __tstate = wxPyBeginAllowThreads();
8586 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8587 wxPyEndAllowThreads(__tstate);
8588 if (PyErr_Occurred()) SWIG_fail;
8589 }
8590 {
8591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8592 }
8593 {
8594 if (temp8)
8595 delete arg8;
8596 }
8597 return resultobj;
8598 fail:
8599 {
8600 if (temp8)
8601 delete arg8;
8602 }
8603 return NULL;
8604 }
8605
8606
8607 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8608 PyObject *resultobj = 0;
8609 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8610 wxBitmap result;
8611 void *argp1 = 0 ;
8612 int res1 = 0 ;
8613 PyObject *swig_obj[1] ;
8614
8615 if (!args) SWIG_fail;
8616 swig_obj[0] = args;
8617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8618 if (!SWIG_IsOK(res1)) {
8619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8620 }
8621 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8622 {
8623 PyThreadState* __tstate = wxPyBeginAllowThreads();
8624 result = (arg1)->GetBitmap();
8625 wxPyEndAllowThreads(__tstate);
8626 if (PyErr_Occurred()) SWIG_fail;
8627 }
8628 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8629 return resultobj;
8630 fail:
8631 return NULL;
8632 }
8633
8634
8635 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8636 PyObject *resultobj = 0;
8637 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8638 wxBitmap *arg2 = 0 ;
8639 void *argp1 = 0 ;
8640 int res1 = 0 ;
8641 void *argp2 = 0 ;
8642 int res2 = 0 ;
8643 PyObject * obj0 = 0 ;
8644 PyObject * obj1 = 0 ;
8645 char * kwnames[] = {
8646 (char *) "self",(char *) "bitmap", NULL
8647 };
8648
8649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8651 if (!SWIG_IsOK(res1)) {
8652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8653 }
8654 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8656 if (!SWIG_IsOK(res2)) {
8657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8658 }
8659 if (!argp2) {
8660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8661 }
8662 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8663 {
8664 PyThreadState* __tstate = wxPyBeginAllowThreads();
8665 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8666 wxPyEndAllowThreads(__tstate);
8667 if (PyErr_Occurred()) SWIG_fail;
8668 }
8669 resultobj = SWIG_Py_Void();
8670 return resultobj;
8671 fail:
8672 return NULL;
8673 }
8674
8675
8676 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8677 PyObject *resultobj = 0;
8678 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8679 wxIcon *arg2 = 0 ;
8680 void *argp1 = 0 ;
8681 int res1 = 0 ;
8682 void *argp2 = 0 ;
8683 int res2 = 0 ;
8684 PyObject * obj0 = 0 ;
8685 PyObject * obj1 = 0 ;
8686 char * kwnames[] = {
8687 (char *) "self",(char *) "icon", NULL
8688 };
8689
8690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8692 if (!SWIG_IsOK(res1)) {
8693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8694 }
8695 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8696 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8697 if (!SWIG_IsOK(res2)) {
8698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8699 }
8700 if (!argp2) {
8701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8702 }
8703 arg2 = reinterpret_cast< wxIcon * >(argp2);
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 (arg1)->SetIcon((wxIcon const &)*arg2);
8707 wxPyEndAllowThreads(__tstate);
8708 if (PyErr_Occurred()) SWIG_fail;
8709 }
8710 resultobj = SWIG_Py_Void();
8711 return resultobj;
8712 fail:
8713 return NULL;
8714 }
8715
8716
8717 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8718 PyObject *resultobj = 0;
8719 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8720 SwigValueWrapper<wxVisualAttributes > result;
8721 int val1 ;
8722 int ecode1 = 0 ;
8723 PyObject * obj0 = 0 ;
8724 char * kwnames[] = {
8725 (char *) "variant", NULL
8726 };
8727
8728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8729 if (obj0) {
8730 ecode1 = SWIG_AsVal_int(obj0, &val1);
8731 if (!SWIG_IsOK(ecode1)) {
8732 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8733 }
8734 arg1 = static_cast< wxWindowVariant >(val1);
8735 }
8736 {
8737 if (!wxPyCheckForApp()) SWIG_fail;
8738 PyThreadState* __tstate = wxPyBeginAllowThreads();
8739 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8740 wxPyEndAllowThreads(__tstate);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 }
8743 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8744 return resultobj;
8745 fail:
8746 return NULL;
8747 }
8748
8749
8750 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8751 PyObject *obj;
8752 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8753 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8754 return SWIG_Py_Void();
8755 }
8756
8757 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8758 return SWIG_Python_InitShadowInstance(args);
8759 }
8760
8761 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8762 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8763 return 1;
8764 }
8765
8766
8767 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8768 PyObject *pyobj = 0;
8769
8770 {
8771 #if wxUSE_UNICODE
8772 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8773 #else
8774 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8775 #endif
8776 }
8777 return pyobj;
8778 }
8779
8780
8781 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8782 PyObject *resultobj = 0;
8783 wxWindow *arg1 = (wxWindow *) 0 ;
8784 int arg2 = (int) -1 ;
8785 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8786 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8787 wxSize const &arg4_defvalue = wxDefaultSize ;
8788 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8789 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8790 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8791 long arg6 = (long) 0 ;
8792 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8793 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8794 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8795 wxString *arg8 = (wxString *) &arg8_defvalue ;
8796 wxListBox *result = 0 ;
8797 void *argp1 = 0 ;
8798 int res1 = 0 ;
8799 int val2 ;
8800 int ecode2 = 0 ;
8801 wxPoint temp3 ;
8802 wxSize temp4 ;
8803 bool temp5 = false ;
8804 long val6 ;
8805 int ecode6 = 0 ;
8806 void *argp7 = 0 ;
8807 int res7 = 0 ;
8808 bool temp8 = false ;
8809 PyObject * obj0 = 0 ;
8810 PyObject * obj1 = 0 ;
8811 PyObject * obj2 = 0 ;
8812 PyObject * obj3 = 0 ;
8813 PyObject * obj4 = 0 ;
8814 PyObject * obj5 = 0 ;
8815 PyObject * obj6 = 0 ;
8816 PyObject * obj7 = 0 ;
8817 char * kwnames[] = {
8818 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8819 };
8820
8821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8823 if (!SWIG_IsOK(res1)) {
8824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8825 }
8826 arg1 = reinterpret_cast< wxWindow * >(argp1);
8827 if (obj1) {
8828 ecode2 = SWIG_AsVal_int(obj1, &val2);
8829 if (!SWIG_IsOK(ecode2)) {
8830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8831 }
8832 arg2 = static_cast< int >(val2);
8833 }
8834 if (obj2) {
8835 {
8836 arg3 = &temp3;
8837 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8838 }
8839 }
8840 if (obj3) {
8841 {
8842 arg4 = &temp4;
8843 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8844 }
8845 }
8846 if (obj4) {
8847 {
8848 if (! PySequence_Check(obj4)) {
8849 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8850 SWIG_fail;
8851 }
8852 arg5 = new wxArrayString;
8853 temp5 = true;
8854 int i, len=PySequence_Length(obj4);
8855 for (i=0; i<len; i++) {
8856 PyObject* item = PySequence_GetItem(obj4, i);
8857 wxString* s = wxString_in_helper(item);
8858 if (PyErr_Occurred()) SWIG_fail;
8859 arg5->Add(*s);
8860 delete s;
8861 Py_DECREF(item);
8862 }
8863 }
8864 }
8865 if (obj5) {
8866 ecode6 = SWIG_AsVal_long(obj5, &val6);
8867 if (!SWIG_IsOK(ecode6)) {
8868 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8869 }
8870 arg6 = static_cast< long >(val6);
8871 }
8872 if (obj6) {
8873 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8874 if (!SWIG_IsOK(res7)) {
8875 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8876 }
8877 if (!argp7) {
8878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8879 }
8880 arg7 = reinterpret_cast< wxValidator * >(argp7);
8881 }
8882 if (obj7) {
8883 {
8884 arg8 = wxString_in_helper(obj7);
8885 if (arg8 == NULL) SWIG_fail;
8886 temp8 = true;
8887 }
8888 }
8889 {
8890 if (!wxPyCheckForApp()) SWIG_fail;
8891 PyThreadState* __tstate = wxPyBeginAllowThreads();
8892 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8893 wxPyEndAllowThreads(__tstate);
8894 if (PyErr_Occurred()) SWIG_fail;
8895 }
8896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8897 {
8898 if (temp5) delete arg5;
8899 }
8900 {
8901 if (temp8)
8902 delete arg8;
8903 }
8904 return resultobj;
8905 fail:
8906 {
8907 if (temp5) delete arg5;
8908 }
8909 {
8910 if (temp8)
8911 delete arg8;
8912 }
8913 return NULL;
8914 }
8915
8916
8917 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8918 PyObject *resultobj = 0;
8919 wxListBox *result = 0 ;
8920
8921 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8922 {
8923 if (!wxPyCheckForApp()) SWIG_fail;
8924 PyThreadState* __tstate = wxPyBeginAllowThreads();
8925 result = (wxListBox *)new wxListBox();
8926 wxPyEndAllowThreads(__tstate);
8927 if (PyErr_Occurred()) SWIG_fail;
8928 }
8929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8930 return resultobj;
8931 fail:
8932 return NULL;
8933 }
8934
8935
8936 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8937 PyObject *resultobj = 0;
8938 wxListBox *arg1 = (wxListBox *) 0 ;
8939 wxWindow *arg2 = (wxWindow *) 0 ;
8940 int arg3 = (int) -1 ;
8941 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8942 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8943 wxSize const &arg5_defvalue = wxDefaultSize ;
8944 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8945 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8946 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8947 long arg7 = (long) 0 ;
8948 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8949 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8950 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8951 wxString *arg9 = (wxString *) &arg9_defvalue ;
8952 bool result;
8953 void *argp1 = 0 ;
8954 int res1 = 0 ;
8955 void *argp2 = 0 ;
8956 int res2 = 0 ;
8957 int val3 ;
8958 int ecode3 = 0 ;
8959 wxPoint temp4 ;
8960 wxSize temp5 ;
8961 bool temp6 = false ;
8962 long val7 ;
8963 int ecode7 = 0 ;
8964 void *argp8 = 0 ;
8965 int res8 = 0 ;
8966 bool temp9 = false ;
8967 PyObject * obj0 = 0 ;
8968 PyObject * obj1 = 0 ;
8969 PyObject * obj2 = 0 ;
8970 PyObject * obj3 = 0 ;
8971 PyObject * obj4 = 0 ;
8972 PyObject * obj5 = 0 ;
8973 PyObject * obj6 = 0 ;
8974 PyObject * obj7 = 0 ;
8975 PyObject * obj8 = 0 ;
8976 char * kwnames[] = {
8977 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8978 };
8979
8980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8982 if (!SWIG_IsOK(res1)) {
8983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8984 }
8985 arg1 = reinterpret_cast< wxListBox * >(argp1);
8986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8987 if (!SWIG_IsOK(res2)) {
8988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8989 }
8990 arg2 = reinterpret_cast< wxWindow * >(argp2);
8991 if (obj2) {
8992 ecode3 = SWIG_AsVal_int(obj2, &val3);
8993 if (!SWIG_IsOK(ecode3)) {
8994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8995 }
8996 arg3 = static_cast< int >(val3);
8997 }
8998 if (obj3) {
8999 {
9000 arg4 = &temp4;
9001 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9002 }
9003 }
9004 if (obj4) {
9005 {
9006 arg5 = &temp5;
9007 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9008 }
9009 }
9010 if (obj5) {
9011 {
9012 if (! PySequence_Check(obj5)) {
9013 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9014 SWIG_fail;
9015 }
9016 arg6 = new wxArrayString;
9017 temp6 = true;
9018 int i, len=PySequence_Length(obj5);
9019 for (i=0; i<len; i++) {
9020 PyObject* item = PySequence_GetItem(obj5, i);
9021 wxString* s = wxString_in_helper(item);
9022 if (PyErr_Occurred()) SWIG_fail;
9023 arg6->Add(*s);
9024 delete s;
9025 Py_DECREF(item);
9026 }
9027 }
9028 }
9029 if (obj6) {
9030 ecode7 = SWIG_AsVal_long(obj6, &val7);
9031 if (!SWIG_IsOK(ecode7)) {
9032 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9033 }
9034 arg7 = static_cast< long >(val7);
9035 }
9036 if (obj7) {
9037 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9038 if (!SWIG_IsOK(res8)) {
9039 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9040 }
9041 if (!argp8) {
9042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9043 }
9044 arg8 = reinterpret_cast< wxValidator * >(argp8);
9045 }
9046 if (obj8) {
9047 {
9048 arg9 = wxString_in_helper(obj8);
9049 if (arg9 == NULL) SWIG_fail;
9050 temp9 = true;
9051 }
9052 }
9053 {
9054 PyThreadState* __tstate = wxPyBeginAllowThreads();
9055 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9056 wxPyEndAllowThreads(__tstate);
9057 if (PyErr_Occurred()) SWIG_fail;
9058 }
9059 {
9060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9061 }
9062 {
9063 if (temp6) delete arg6;
9064 }
9065 {
9066 if (temp9)
9067 delete arg9;
9068 }
9069 return resultobj;
9070 fail:
9071 {
9072 if (temp6) delete arg6;
9073 }
9074 {
9075 if (temp9)
9076 delete arg9;
9077 }
9078 return NULL;
9079 }
9080
9081
9082 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9083 PyObject *resultobj = 0;
9084 wxListBox *arg1 = (wxListBox *) 0 ;
9085 wxString *arg2 = 0 ;
9086 int arg3 ;
9087 PyObject *arg4 = (PyObject *) NULL ;
9088 void *argp1 = 0 ;
9089 int res1 = 0 ;
9090 bool temp2 = false ;
9091 int val3 ;
9092 int ecode3 = 0 ;
9093 PyObject * obj0 = 0 ;
9094 PyObject * obj1 = 0 ;
9095 PyObject * obj2 = 0 ;
9096 PyObject * obj3 = 0 ;
9097 char * kwnames[] = {
9098 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9099 };
9100
9101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9103 if (!SWIG_IsOK(res1)) {
9104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9105 }
9106 arg1 = reinterpret_cast< wxListBox * >(argp1);
9107 {
9108 arg2 = wxString_in_helper(obj1);
9109 if (arg2 == NULL) SWIG_fail;
9110 temp2 = true;
9111 }
9112 ecode3 = SWIG_AsVal_int(obj2, &val3);
9113 if (!SWIG_IsOK(ecode3)) {
9114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9115 }
9116 arg3 = static_cast< int >(val3);
9117 if (obj3) {
9118 arg4 = obj3;
9119 }
9120 {
9121 PyThreadState* __tstate = wxPyBeginAllowThreads();
9122 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9123 wxPyEndAllowThreads(__tstate);
9124 if (PyErr_Occurred()) SWIG_fail;
9125 }
9126 resultobj = SWIG_Py_Void();
9127 {
9128 if (temp2)
9129 delete arg2;
9130 }
9131 return resultobj;
9132 fail:
9133 {
9134 if (temp2)
9135 delete arg2;
9136 }
9137 return NULL;
9138 }
9139
9140
9141 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9142 PyObject *resultobj = 0;
9143 wxListBox *arg1 = (wxListBox *) 0 ;
9144 wxArrayString *arg2 = 0 ;
9145 unsigned int arg3 ;
9146 void *argp1 = 0 ;
9147 int res1 = 0 ;
9148 bool temp2 = false ;
9149 unsigned int val3 ;
9150 int ecode3 = 0 ;
9151 PyObject * obj0 = 0 ;
9152 PyObject * obj1 = 0 ;
9153 PyObject * obj2 = 0 ;
9154 char * kwnames[] = {
9155 (char *) "self",(char *) "items",(char *) "pos", NULL
9156 };
9157
9158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9160 if (!SWIG_IsOK(res1)) {
9161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9162 }
9163 arg1 = reinterpret_cast< wxListBox * >(argp1);
9164 {
9165 if (! PySequence_Check(obj1)) {
9166 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9167 SWIG_fail;
9168 }
9169 arg2 = new wxArrayString;
9170 temp2 = true;
9171 int i, len=PySequence_Length(obj1);
9172 for (i=0; i<len; i++) {
9173 PyObject* item = PySequence_GetItem(obj1, i);
9174 wxString* s = wxString_in_helper(item);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 arg2->Add(*s);
9177 delete s;
9178 Py_DECREF(item);
9179 }
9180 }
9181 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9182 if (!SWIG_IsOK(ecode3)) {
9183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9184 }
9185 arg3 = static_cast< unsigned int >(val3);
9186 {
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 resultobj = SWIG_Py_Void();
9193 {
9194 if (temp2) delete arg2;
9195 }
9196 return resultobj;
9197 fail:
9198 {
9199 if (temp2) delete arg2;
9200 }
9201 return NULL;
9202 }
9203
9204
9205 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9206 PyObject *resultobj = 0;
9207 wxListBox *arg1 = (wxListBox *) 0 ;
9208 wxArrayString *arg2 = 0 ;
9209 void *argp1 = 0 ;
9210 int res1 = 0 ;
9211 bool temp2 = false ;
9212 PyObject * obj0 = 0 ;
9213 PyObject * obj1 = 0 ;
9214 char * kwnames[] = {
9215 (char *) "self",(char *) "items", NULL
9216 };
9217
9218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9220 if (!SWIG_IsOK(res1)) {
9221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9222 }
9223 arg1 = reinterpret_cast< wxListBox * >(argp1);
9224 {
9225 if (! PySequence_Check(obj1)) {
9226 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9227 SWIG_fail;
9228 }
9229 arg2 = new wxArrayString;
9230 temp2 = true;
9231 int i, len=PySequence_Length(obj1);
9232 for (i=0; i<len; i++) {
9233 PyObject* item = PySequence_GetItem(obj1, i);
9234 wxString* s = wxString_in_helper(item);
9235 if (PyErr_Occurred()) SWIG_fail;
9236 arg2->Add(*s);
9237 delete s;
9238 Py_DECREF(item);
9239 }
9240 }
9241 {
9242 PyThreadState* __tstate = wxPyBeginAllowThreads();
9243 (arg1)->Set((wxArrayString const &)*arg2);
9244 wxPyEndAllowThreads(__tstate);
9245 if (PyErr_Occurred()) SWIG_fail;
9246 }
9247 resultobj = SWIG_Py_Void();
9248 {
9249 if (temp2) delete arg2;
9250 }
9251 return resultobj;
9252 fail:
9253 {
9254 if (temp2) delete arg2;
9255 }
9256 return NULL;
9257 }
9258
9259
9260 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9261 PyObject *resultobj = 0;
9262 wxListBox *arg1 = (wxListBox *) 0 ;
9263 int arg2 ;
9264 bool result;
9265 void *argp1 = 0 ;
9266 int res1 = 0 ;
9267 int val2 ;
9268 int ecode2 = 0 ;
9269 PyObject * obj0 = 0 ;
9270 PyObject * obj1 = 0 ;
9271 char * kwnames[] = {
9272 (char *) "self",(char *) "n", NULL
9273 };
9274
9275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9277 if (!SWIG_IsOK(res1)) {
9278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9279 }
9280 arg1 = reinterpret_cast< wxListBox * >(argp1);
9281 ecode2 = SWIG_AsVal_int(obj1, &val2);
9282 if (!SWIG_IsOK(ecode2)) {
9283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9284 }
9285 arg2 = static_cast< int >(val2);
9286 {
9287 PyThreadState* __tstate = wxPyBeginAllowThreads();
9288 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9289 wxPyEndAllowThreads(__tstate);
9290 if (PyErr_Occurred()) SWIG_fail;
9291 }
9292 {
9293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9294 }
9295 return resultobj;
9296 fail:
9297 return NULL;
9298 }
9299
9300
9301 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9302 PyObject *resultobj = 0;
9303 wxListBox *arg1 = (wxListBox *) 0 ;
9304 int arg2 ;
9305 bool arg3 = (bool) true ;
9306 void *argp1 = 0 ;
9307 int res1 = 0 ;
9308 int val2 ;
9309 int ecode2 = 0 ;
9310 bool val3 ;
9311 int ecode3 = 0 ;
9312 PyObject * obj0 = 0 ;
9313 PyObject * obj1 = 0 ;
9314 PyObject * obj2 = 0 ;
9315 char * kwnames[] = {
9316 (char *) "self",(char *) "n",(char *) "select", NULL
9317 };
9318
9319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9321 if (!SWIG_IsOK(res1)) {
9322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9323 }
9324 arg1 = reinterpret_cast< wxListBox * >(argp1);
9325 ecode2 = SWIG_AsVal_int(obj1, &val2);
9326 if (!SWIG_IsOK(ecode2)) {
9327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9328 }
9329 arg2 = static_cast< int >(val2);
9330 if (obj2) {
9331 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9332 if (!SWIG_IsOK(ecode3)) {
9333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9334 }
9335 arg3 = static_cast< bool >(val3);
9336 }
9337 {
9338 PyThreadState* __tstate = wxPyBeginAllowThreads();
9339 (arg1)->SetSelection(arg2,arg3);
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
9343 resultobj = SWIG_Py_Void();
9344 return resultobj;
9345 fail:
9346 return NULL;
9347 }
9348
9349
9350 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9351 PyObject *resultobj = 0;
9352 wxListBox *arg1 = (wxListBox *) 0 ;
9353 int arg2 ;
9354 void *argp1 = 0 ;
9355 int res1 = 0 ;
9356 int val2 ;
9357 int ecode2 = 0 ;
9358 PyObject * obj0 = 0 ;
9359 PyObject * obj1 = 0 ;
9360 char * kwnames[] = {
9361 (char *) "self",(char *) "n", NULL
9362 };
9363
9364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9366 if (!SWIG_IsOK(res1)) {
9367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9368 }
9369 arg1 = reinterpret_cast< wxListBox * >(argp1);
9370 ecode2 = SWIG_AsVal_int(obj1, &val2);
9371 if (!SWIG_IsOK(ecode2)) {
9372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9373 }
9374 arg2 = static_cast< int >(val2);
9375 {
9376 PyThreadState* __tstate = wxPyBeginAllowThreads();
9377 (arg1)->Select(arg2);
9378 wxPyEndAllowThreads(__tstate);
9379 if (PyErr_Occurred()) SWIG_fail;
9380 }
9381 resultobj = SWIG_Py_Void();
9382 return resultobj;
9383 fail:
9384 return NULL;
9385 }
9386
9387
9388 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9389 PyObject *resultobj = 0;
9390 wxListBox *arg1 = (wxListBox *) 0 ;
9391 int arg2 ;
9392 void *argp1 = 0 ;
9393 int res1 = 0 ;
9394 int val2 ;
9395 int ecode2 = 0 ;
9396 PyObject * obj0 = 0 ;
9397 PyObject * obj1 = 0 ;
9398 char * kwnames[] = {
9399 (char *) "self",(char *) "n", NULL
9400 };
9401
9402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9404 if (!SWIG_IsOK(res1)) {
9405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9406 }
9407 arg1 = reinterpret_cast< wxListBox * >(argp1);
9408 ecode2 = SWIG_AsVal_int(obj1, &val2);
9409 if (!SWIG_IsOK(ecode2)) {
9410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9411 }
9412 arg2 = static_cast< int >(val2);
9413 {
9414 PyThreadState* __tstate = wxPyBeginAllowThreads();
9415 (arg1)->Deselect(arg2);
9416 wxPyEndAllowThreads(__tstate);
9417 if (PyErr_Occurred()) SWIG_fail;
9418 }
9419 resultobj = SWIG_Py_Void();
9420 return resultobj;
9421 fail:
9422 return NULL;
9423 }
9424
9425
9426 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9427 PyObject *resultobj = 0;
9428 wxListBox *arg1 = (wxListBox *) 0 ;
9429 int arg2 = (int) -1 ;
9430 void *argp1 = 0 ;
9431 int res1 = 0 ;
9432 int val2 ;
9433 int ecode2 = 0 ;
9434 PyObject * obj0 = 0 ;
9435 PyObject * obj1 = 0 ;
9436 char * kwnames[] = {
9437 (char *) "self",(char *) "itemToLeaveSelected", NULL
9438 };
9439
9440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9442 if (!SWIG_IsOK(res1)) {
9443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9444 }
9445 arg1 = reinterpret_cast< wxListBox * >(argp1);
9446 if (obj1) {
9447 ecode2 = SWIG_AsVal_int(obj1, &val2);
9448 if (!SWIG_IsOK(ecode2)) {
9449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9450 }
9451 arg2 = static_cast< int >(val2);
9452 }
9453 {
9454 PyThreadState* __tstate = wxPyBeginAllowThreads();
9455 (arg1)->DeselectAll(arg2);
9456 wxPyEndAllowThreads(__tstate);
9457 if (PyErr_Occurred()) SWIG_fail;
9458 }
9459 resultobj = SWIG_Py_Void();
9460 return resultobj;
9461 fail:
9462 return NULL;
9463 }
9464
9465
9466 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9467 PyObject *resultobj = 0;
9468 wxListBox *arg1 = (wxListBox *) 0 ;
9469 wxString *arg2 = 0 ;
9470 bool arg3 = (bool) true ;
9471 bool result;
9472 void *argp1 = 0 ;
9473 int res1 = 0 ;
9474 bool temp2 = false ;
9475 bool val3 ;
9476 int ecode3 = 0 ;
9477 PyObject * obj0 = 0 ;
9478 PyObject * obj1 = 0 ;
9479 PyObject * obj2 = 0 ;
9480 char * kwnames[] = {
9481 (char *) "self",(char *) "s",(char *) "select", NULL
9482 };
9483
9484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9486 if (!SWIG_IsOK(res1)) {
9487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9488 }
9489 arg1 = reinterpret_cast< wxListBox * >(argp1);
9490 {
9491 arg2 = wxString_in_helper(obj1);
9492 if (arg2 == NULL) SWIG_fail;
9493 temp2 = true;
9494 }
9495 if (obj2) {
9496 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9497 if (!SWIG_IsOK(ecode3)) {
9498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9499 }
9500 arg3 = static_cast< bool >(val3);
9501 }
9502 {
9503 PyThreadState* __tstate = wxPyBeginAllowThreads();
9504 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9505 wxPyEndAllowThreads(__tstate);
9506 if (PyErr_Occurred()) SWIG_fail;
9507 }
9508 {
9509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9510 }
9511 {
9512 if (temp2)
9513 delete arg2;
9514 }
9515 return resultobj;
9516 fail:
9517 {
9518 if (temp2)
9519 delete arg2;
9520 }
9521 return NULL;
9522 }
9523
9524
9525 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9526 PyObject *resultobj = 0;
9527 wxListBox *arg1 = (wxListBox *) 0 ;
9528 PyObject *result = 0 ;
9529 void *argp1 = 0 ;
9530 int res1 = 0 ;
9531 PyObject *swig_obj[1] ;
9532
9533 if (!args) SWIG_fail;
9534 swig_obj[0] = args;
9535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9536 if (!SWIG_IsOK(res1)) {
9537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9538 }
9539 arg1 = reinterpret_cast< wxListBox * >(argp1);
9540 {
9541 PyThreadState* __tstate = wxPyBeginAllowThreads();
9542 result = (PyObject *)wxListBox_GetSelections(arg1);
9543 wxPyEndAllowThreads(__tstate);
9544 if (PyErr_Occurred()) SWIG_fail;
9545 }
9546 resultobj = result;
9547 return resultobj;
9548 fail:
9549 return NULL;
9550 }
9551
9552
9553 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9554 PyObject *resultobj = 0;
9555 wxListBox *arg1 = (wxListBox *) 0 ;
9556 int arg2 ;
9557 void *argp1 = 0 ;
9558 int res1 = 0 ;
9559 int val2 ;
9560 int ecode2 = 0 ;
9561 PyObject * obj0 = 0 ;
9562 PyObject * obj1 = 0 ;
9563 char * kwnames[] = {
9564 (char *) "self",(char *) "n", NULL
9565 };
9566
9567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9569 if (!SWIG_IsOK(res1)) {
9570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9571 }
9572 arg1 = reinterpret_cast< wxListBox * >(argp1);
9573 ecode2 = SWIG_AsVal_int(obj1, &val2);
9574 if (!SWIG_IsOK(ecode2)) {
9575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9576 }
9577 arg2 = static_cast< int >(val2);
9578 {
9579 PyThreadState* __tstate = wxPyBeginAllowThreads();
9580 (arg1)->SetFirstItem(arg2);
9581 wxPyEndAllowThreads(__tstate);
9582 if (PyErr_Occurred()) SWIG_fail;
9583 }
9584 resultobj = SWIG_Py_Void();
9585 return resultobj;
9586 fail:
9587 return NULL;
9588 }
9589
9590
9591 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9592 PyObject *resultobj = 0;
9593 wxListBox *arg1 = (wxListBox *) 0 ;
9594 wxString *arg2 = 0 ;
9595 void *argp1 = 0 ;
9596 int res1 = 0 ;
9597 bool temp2 = false ;
9598 PyObject * obj0 = 0 ;
9599 PyObject * obj1 = 0 ;
9600 char * kwnames[] = {
9601 (char *) "self",(char *) "s", NULL
9602 };
9603
9604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9606 if (!SWIG_IsOK(res1)) {
9607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9608 }
9609 arg1 = reinterpret_cast< wxListBox * >(argp1);
9610 {
9611 arg2 = wxString_in_helper(obj1);
9612 if (arg2 == NULL) SWIG_fail;
9613 temp2 = true;
9614 }
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
9617 (arg1)->SetFirstItem((wxString const &)*arg2);
9618 wxPyEndAllowThreads(__tstate);
9619 if (PyErr_Occurred()) SWIG_fail;
9620 }
9621 resultobj = SWIG_Py_Void();
9622 {
9623 if (temp2)
9624 delete arg2;
9625 }
9626 return resultobj;
9627 fail:
9628 {
9629 if (temp2)
9630 delete arg2;
9631 }
9632 return NULL;
9633 }
9634
9635
9636 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9637 PyObject *resultobj = 0;
9638 wxListBox *arg1 = (wxListBox *) 0 ;
9639 int arg2 ;
9640 void *argp1 = 0 ;
9641 int res1 = 0 ;
9642 int val2 ;
9643 int ecode2 = 0 ;
9644 PyObject * obj0 = 0 ;
9645 PyObject * obj1 = 0 ;
9646 char * kwnames[] = {
9647 (char *) "self",(char *) "n", NULL
9648 };
9649
9650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9652 if (!SWIG_IsOK(res1)) {
9653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9654 }
9655 arg1 = reinterpret_cast< wxListBox * >(argp1);
9656 ecode2 = SWIG_AsVal_int(obj1, &val2);
9657 if (!SWIG_IsOK(ecode2)) {
9658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9659 }
9660 arg2 = static_cast< int >(val2);
9661 {
9662 PyThreadState* __tstate = wxPyBeginAllowThreads();
9663 (arg1)->EnsureVisible(arg2);
9664 wxPyEndAllowThreads(__tstate);
9665 if (PyErr_Occurred()) SWIG_fail;
9666 }
9667 resultobj = SWIG_Py_Void();
9668 return resultobj;
9669 fail:
9670 return NULL;
9671 }
9672
9673
9674 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9675 PyObject *resultobj = 0;
9676 wxListBox *arg1 = (wxListBox *) 0 ;
9677 wxString *arg2 = 0 ;
9678 void *argp1 = 0 ;
9679 int res1 = 0 ;
9680 bool temp2 = false ;
9681 PyObject * obj0 = 0 ;
9682 PyObject * obj1 = 0 ;
9683 char * kwnames[] = {
9684 (char *) "self",(char *) "s", NULL
9685 };
9686
9687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9689 if (!SWIG_IsOK(res1)) {
9690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9691 }
9692 arg1 = reinterpret_cast< wxListBox * >(argp1);
9693 {
9694 arg2 = wxString_in_helper(obj1);
9695 if (arg2 == NULL) SWIG_fail;
9696 temp2 = true;
9697 }
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9701 wxPyEndAllowThreads(__tstate);
9702 if (PyErr_Occurred()) SWIG_fail;
9703 }
9704 resultobj = SWIG_Py_Void();
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_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9720 PyObject *resultobj = 0;
9721 wxListBox *arg1 = (wxListBox *) 0 ;
9722 bool result;
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_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9732 }
9733 arg1 = reinterpret_cast< wxListBox * >(argp1);
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (bool)((wxListBox const *)arg1)->IsSorted();
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 {
9741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9742 }
9743 return resultobj;
9744 fail:
9745 return NULL;
9746 }
9747
9748
9749 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9750 PyObject *resultobj = 0;
9751 wxListBox *arg1 = (wxListBox *) 0 ;
9752 wxPoint *arg2 = 0 ;
9753 int result;
9754 void *argp1 = 0 ;
9755 int res1 = 0 ;
9756 wxPoint temp2 ;
9757 PyObject * obj0 = 0 ;
9758 PyObject * obj1 = 0 ;
9759 char * kwnames[] = {
9760 (char *) "self",(char *) "pt", NULL
9761 };
9762
9763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9765 if (!SWIG_IsOK(res1)) {
9766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9767 }
9768 arg1 = reinterpret_cast< wxListBox * >(argp1);
9769 {
9770 arg2 = &temp2;
9771 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9772 }
9773 {
9774 PyThreadState* __tstate = wxPyBeginAllowThreads();
9775 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9776 wxPyEndAllowThreads(__tstate);
9777 if (PyErr_Occurred()) SWIG_fail;
9778 }
9779 resultobj = SWIG_From_int(static_cast< int >(result));
9780 return resultobj;
9781 fail:
9782 return NULL;
9783 }
9784
9785
9786 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9787 PyObject *resultobj = 0;
9788 wxListBox *arg1 = (wxListBox *) 0 ;
9789 int arg2 ;
9790 wxColour *arg3 = 0 ;
9791 void *argp1 = 0 ;
9792 int res1 = 0 ;
9793 int val2 ;
9794 int ecode2 = 0 ;
9795 wxColour temp3 ;
9796 PyObject * obj0 = 0 ;
9797 PyObject * obj1 = 0 ;
9798 PyObject * obj2 = 0 ;
9799 char * kwnames[] = {
9800 (char *) "self",(char *) "item",(char *) "c", NULL
9801 };
9802
9803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9805 if (!SWIG_IsOK(res1)) {
9806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9807 }
9808 arg1 = reinterpret_cast< wxListBox * >(argp1);
9809 ecode2 = SWIG_AsVal_int(obj1, &val2);
9810 if (!SWIG_IsOK(ecode2)) {
9811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9812 }
9813 arg2 = static_cast< int >(val2);
9814 {
9815 arg3 = &temp3;
9816 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9817 }
9818 {
9819 PyThreadState* __tstate = wxPyBeginAllowThreads();
9820 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9821 wxPyEndAllowThreads(__tstate);
9822 if (PyErr_Occurred()) SWIG_fail;
9823 }
9824 resultobj = SWIG_Py_Void();
9825 return resultobj;
9826 fail:
9827 return NULL;
9828 }
9829
9830
9831 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9832 PyObject *resultobj = 0;
9833 wxListBox *arg1 = (wxListBox *) 0 ;
9834 int arg2 ;
9835 wxColour *arg3 = 0 ;
9836 void *argp1 = 0 ;
9837 int res1 = 0 ;
9838 int val2 ;
9839 int ecode2 = 0 ;
9840 wxColour temp3 ;
9841 PyObject * obj0 = 0 ;
9842 PyObject * obj1 = 0 ;
9843 PyObject * obj2 = 0 ;
9844 char * kwnames[] = {
9845 (char *) "self",(char *) "item",(char *) "c", NULL
9846 };
9847
9848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9850 if (!SWIG_IsOK(res1)) {
9851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9852 }
9853 arg1 = reinterpret_cast< wxListBox * >(argp1);
9854 ecode2 = SWIG_AsVal_int(obj1, &val2);
9855 if (!SWIG_IsOK(ecode2)) {
9856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9857 }
9858 arg2 = static_cast< int >(val2);
9859 {
9860 arg3 = &temp3;
9861 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9862 }
9863 {
9864 PyThreadState* __tstate = wxPyBeginAllowThreads();
9865 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 resultobj = SWIG_Py_Void();
9870 return resultobj;
9871 fail:
9872 return NULL;
9873 }
9874
9875
9876 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9877 PyObject *resultobj = 0;
9878 wxListBox *arg1 = (wxListBox *) 0 ;
9879 int arg2 ;
9880 wxFont *arg3 = 0 ;
9881 void *argp1 = 0 ;
9882 int res1 = 0 ;
9883 int val2 ;
9884 int ecode2 = 0 ;
9885 void *argp3 = 0 ;
9886 int res3 = 0 ;
9887 PyObject * obj0 = 0 ;
9888 PyObject * obj1 = 0 ;
9889 PyObject * obj2 = 0 ;
9890 char * kwnames[] = {
9891 (char *) "self",(char *) "item",(char *) "f", NULL
9892 };
9893
9894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9896 if (!SWIG_IsOK(res1)) {
9897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9898 }
9899 arg1 = reinterpret_cast< wxListBox * >(argp1);
9900 ecode2 = SWIG_AsVal_int(obj1, &val2);
9901 if (!SWIG_IsOK(ecode2)) {
9902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9903 }
9904 arg2 = static_cast< int >(val2);
9905 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9906 if (!SWIG_IsOK(res3)) {
9907 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9908 }
9909 if (!argp3) {
9910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9911 }
9912 arg3 = reinterpret_cast< wxFont * >(argp3);
9913 {
9914 PyThreadState* __tstate = wxPyBeginAllowThreads();
9915 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9916 wxPyEndAllowThreads(__tstate);
9917 if (PyErr_Occurred()) SWIG_fail;
9918 }
9919 resultobj = SWIG_Py_Void();
9920 return resultobj;
9921 fail:
9922 return NULL;
9923 }
9924
9925
9926 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9927 PyObject *resultobj = 0;
9928 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9929 SwigValueWrapper<wxVisualAttributes > result;
9930 int val1 ;
9931 int ecode1 = 0 ;
9932 PyObject * obj0 = 0 ;
9933 char * kwnames[] = {
9934 (char *) "variant", NULL
9935 };
9936
9937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9938 if (obj0) {
9939 ecode1 = SWIG_AsVal_int(obj0, &val1);
9940 if (!SWIG_IsOK(ecode1)) {
9941 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9942 }
9943 arg1 = static_cast< wxWindowVariant >(val1);
9944 }
9945 {
9946 if (!wxPyCheckForApp()) SWIG_fail;
9947 PyThreadState* __tstate = wxPyBeginAllowThreads();
9948 result = wxListBox::GetClassDefaultAttributes(arg1);
9949 wxPyEndAllowThreads(__tstate);
9950 if (PyErr_Occurred()) SWIG_fail;
9951 }
9952 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9953 return resultobj;
9954 fail:
9955 return NULL;
9956 }
9957
9958
9959 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9960 PyObject *obj;
9961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9962 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9963 return SWIG_Py_Void();
9964 }
9965
9966 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9967 return SWIG_Python_InitShadowInstance(args);
9968 }
9969
9970 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9971 PyObject *resultobj = 0;
9972 wxWindow *arg1 = (wxWindow *) 0 ;
9973 int arg2 = (int) -1 ;
9974 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9975 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9976 wxSize const &arg4_defvalue = wxDefaultSize ;
9977 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9978 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9979 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9980 long arg6 = (long) 0 ;
9981 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9982 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9983 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9984 wxString *arg8 = (wxString *) &arg8_defvalue ;
9985 wxCheckListBox *result = 0 ;
9986 void *argp1 = 0 ;
9987 int res1 = 0 ;
9988 int val2 ;
9989 int ecode2 = 0 ;
9990 wxPoint temp3 ;
9991 wxSize temp4 ;
9992 bool temp5 = false ;
9993 long val6 ;
9994 int ecode6 = 0 ;
9995 void *argp7 = 0 ;
9996 int res7 = 0 ;
9997 bool temp8 = false ;
9998 PyObject * obj0 = 0 ;
9999 PyObject * obj1 = 0 ;
10000 PyObject * obj2 = 0 ;
10001 PyObject * obj3 = 0 ;
10002 PyObject * obj4 = 0 ;
10003 PyObject * obj5 = 0 ;
10004 PyObject * obj6 = 0 ;
10005 PyObject * obj7 = 0 ;
10006 char * kwnames[] = {
10007 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10008 };
10009
10010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10012 if (!SWIG_IsOK(res1)) {
10013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10014 }
10015 arg1 = reinterpret_cast< wxWindow * >(argp1);
10016 if (obj1) {
10017 ecode2 = SWIG_AsVal_int(obj1, &val2);
10018 if (!SWIG_IsOK(ecode2)) {
10019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10020 }
10021 arg2 = static_cast< int >(val2);
10022 }
10023 if (obj2) {
10024 {
10025 arg3 = &temp3;
10026 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10027 }
10028 }
10029 if (obj3) {
10030 {
10031 arg4 = &temp4;
10032 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10033 }
10034 }
10035 if (obj4) {
10036 {
10037 if (! PySequence_Check(obj4)) {
10038 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10039 SWIG_fail;
10040 }
10041 arg5 = new wxArrayString;
10042 temp5 = true;
10043 int i, len=PySequence_Length(obj4);
10044 for (i=0; i<len; i++) {
10045 PyObject* item = PySequence_GetItem(obj4, i);
10046 wxString* s = wxString_in_helper(item);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 arg5->Add(*s);
10049 delete s;
10050 Py_DECREF(item);
10051 }
10052 }
10053 }
10054 if (obj5) {
10055 ecode6 = SWIG_AsVal_long(obj5, &val6);
10056 if (!SWIG_IsOK(ecode6)) {
10057 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10058 }
10059 arg6 = static_cast< long >(val6);
10060 }
10061 if (obj6) {
10062 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10063 if (!SWIG_IsOK(res7)) {
10064 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10065 }
10066 if (!argp7) {
10067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10068 }
10069 arg7 = reinterpret_cast< wxValidator * >(argp7);
10070 }
10071 if (obj7) {
10072 {
10073 arg8 = wxString_in_helper(obj7);
10074 if (arg8 == NULL) SWIG_fail;
10075 temp8 = true;
10076 }
10077 }
10078 {
10079 if (!wxPyCheckForApp()) SWIG_fail;
10080 PyThreadState* __tstate = wxPyBeginAllowThreads();
10081 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10082 wxPyEndAllowThreads(__tstate);
10083 if (PyErr_Occurred()) SWIG_fail;
10084 }
10085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10086 {
10087 if (temp5) delete arg5;
10088 }
10089 {
10090 if (temp8)
10091 delete arg8;
10092 }
10093 return resultobj;
10094 fail:
10095 {
10096 if (temp5) delete arg5;
10097 }
10098 {
10099 if (temp8)
10100 delete arg8;
10101 }
10102 return NULL;
10103 }
10104
10105
10106 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10107 PyObject *resultobj = 0;
10108 wxCheckListBox *result = 0 ;
10109
10110 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10111 {
10112 if (!wxPyCheckForApp()) SWIG_fail;
10113 PyThreadState* __tstate = wxPyBeginAllowThreads();
10114 result = (wxCheckListBox *)new wxCheckListBox();
10115 wxPyEndAllowThreads(__tstate);
10116 if (PyErr_Occurred()) SWIG_fail;
10117 }
10118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10119 return resultobj;
10120 fail:
10121 return NULL;
10122 }
10123
10124
10125 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10126 PyObject *resultobj = 0;
10127 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10128 wxWindow *arg2 = (wxWindow *) 0 ;
10129 int arg3 = (int) -1 ;
10130 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10131 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10132 wxSize const &arg5_defvalue = wxDefaultSize ;
10133 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10134 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10135 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10136 long arg7 = (long) 0 ;
10137 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10138 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10139 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10140 wxString *arg9 = (wxString *) &arg9_defvalue ;
10141 bool result;
10142 void *argp1 = 0 ;
10143 int res1 = 0 ;
10144 void *argp2 = 0 ;
10145 int res2 = 0 ;
10146 int val3 ;
10147 int ecode3 = 0 ;
10148 wxPoint temp4 ;
10149 wxSize temp5 ;
10150 bool temp6 = false ;
10151 long val7 ;
10152 int ecode7 = 0 ;
10153 void *argp8 = 0 ;
10154 int res8 = 0 ;
10155 bool temp9 = false ;
10156 PyObject * obj0 = 0 ;
10157 PyObject * obj1 = 0 ;
10158 PyObject * obj2 = 0 ;
10159 PyObject * obj3 = 0 ;
10160 PyObject * obj4 = 0 ;
10161 PyObject * obj5 = 0 ;
10162 PyObject * obj6 = 0 ;
10163 PyObject * obj7 = 0 ;
10164 PyObject * obj8 = 0 ;
10165 char * kwnames[] = {
10166 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10167 };
10168
10169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10171 if (!SWIG_IsOK(res1)) {
10172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10173 }
10174 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10175 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10176 if (!SWIG_IsOK(res2)) {
10177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10178 }
10179 arg2 = reinterpret_cast< wxWindow * >(argp2);
10180 if (obj2) {
10181 ecode3 = SWIG_AsVal_int(obj2, &val3);
10182 if (!SWIG_IsOK(ecode3)) {
10183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10184 }
10185 arg3 = static_cast< int >(val3);
10186 }
10187 if (obj3) {
10188 {
10189 arg4 = &temp4;
10190 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10191 }
10192 }
10193 if (obj4) {
10194 {
10195 arg5 = &temp5;
10196 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10197 }
10198 }
10199 if (obj5) {
10200 {
10201 if (! PySequence_Check(obj5)) {
10202 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10203 SWIG_fail;
10204 }
10205 arg6 = new wxArrayString;
10206 temp6 = true;
10207 int i, len=PySequence_Length(obj5);
10208 for (i=0; i<len; i++) {
10209 PyObject* item = PySequence_GetItem(obj5, i);
10210 wxString* s = wxString_in_helper(item);
10211 if (PyErr_Occurred()) SWIG_fail;
10212 arg6->Add(*s);
10213 delete s;
10214 Py_DECREF(item);
10215 }
10216 }
10217 }
10218 if (obj6) {
10219 ecode7 = SWIG_AsVal_long(obj6, &val7);
10220 if (!SWIG_IsOK(ecode7)) {
10221 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10222 }
10223 arg7 = static_cast< long >(val7);
10224 }
10225 if (obj7) {
10226 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10227 if (!SWIG_IsOK(res8)) {
10228 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10229 }
10230 if (!argp8) {
10231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10232 }
10233 arg8 = reinterpret_cast< wxValidator * >(argp8);
10234 }
10235 if (obj8) {
10236 {
10237 arg9 = wxString_in_helper(obj8);
10238 if (arg9 == NULL) SWIG_fail;
10239 temp9 = true;
10240 }
10241 }
10242 {
10243 PyThreadState* __tstate = wxPyBeginAllowThreads();
10244 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10245 wxPyEndAllowThreads(__tstate);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 }
10248 {
10249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10250 }
10251 {
10252 if (temp6) delete arg6;
10253 }
10254 {
10255 if (temp9)
10256 delete arg9;
10257 }
10258 return resultobj;
10259 fail:
10260 {
10261 if (temp6) delete arg6;
10262 }
10263 {
10264 if (temp9)
10265 delete arg9;
10266 }
10267 return NULL;
10268 }
10269
10270
10271 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10272 PyObject *resultobj = 0;
10273 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10274 unsigned int arg2 ;
10275 bool result;
10276 void *argp1 = 0 ;
10277 int res1 = 0 ;
10278 unsigned int val2 ;
10279 int ecode2 = 0 ;
10280 PyObject * obj0 = 0 ;
10281 PyObject * obj1 = 0 ;
10282 char * kwnames[] = {
10283 (char *) "self",(char *) "index", NULL
10284 };
10285
10286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10288 if (!SWIG_IsOK(res1)) {
10289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10290 }
10291 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10292 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10293 if (!SWIG_IsOK(ecode2)) {
10294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10295 }
10296 arg2 = static_cast< unsigned int >(val2);
10297 {
10298 PyThreadState* __tstate = wxPyBeginAllowThreads();
10299 result = (bool)(arg1)->IsChecked(arg2);
10300 wxPyEndAllowThreads(__tstate);
10301 if (PyErr_Occurred()) SWIG_fail;
10302 }
10303 {
10304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10305 }
10306 return resultobj;
10307 fail:
10308 return NULL;
10309 }
10310
10311
10312 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10313 PyObject *resultobj = 0;
10314 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10315 unsigned int arg2 ;
10316 int arg3 = (int) true ;
10317 void *argp1 = 0 ;
10318 int res1 = 0 ;
10319 unsigned int val2 ;
10320 int ecode2 = 0 ;
10321 int val3 ;
10322 int ecode3 = 0 ;
10323 PyObject * obj0 = 0 ;
10324 PyObject * obj1 = 0 ;
10325 PyObject * obj2 = 0 ;
10326 char * kwnames[] = {
10327 (char *) "self",(char *) "index",(char *) "check", NULL
10328 };
10329
10330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10332 if (!SWIG_IsOK(res1)) {
10333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10334 }
10335 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10336 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10337 if (!SWIG_IsOK(ecode2)) {
10338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10339 }
10340 arg2 = static_cast< unsigned int >(val2);
10341 if (obj2) {
10342 ecode3 = SWIG_AsVal_int(obj2, &val3);
10343 if (!SWIG_IsOK(ecode3)) {
10344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10345 }
10346 arg3 = static_cast< int >(val3);
10347 }
10348 {
10349 PyThreadState* __tstate = wxPyBeginAllowThreads();
10350 (arg1)->Check(arg2,arg3);
10351 wxPyEndAllowThreads(__tstate);
10352 if (PyErr_Occurred()) SWIG_fail;
10353 }
10354 resultobj = SWIG_Py_Void();
10355 return resultobj;
10356 fail:
10357 return NULL;
10358 }
10359
10360
10361 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10362 PyObject *resultobj = 0;
10363 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10364 int result;
10365 void *argp1 = 0 ;
10366 int res1 = 0 ;
10367 PyObject *swig_obj[1] ;
10368
10369 if (!args) SWIG_fail;
10370 swig_obj[0] = args;
10371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10372 if (!SWIG_IsOK(res1)) {
10373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10374 }
10375 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10376 {
10377 PyThreadState* __tstate = wxPyBeginAllowThreads();
10378 result = (int)(arg1)->GetItemHeight();
10379 wxPyEndAllowThreads(__tstate);
10380 if (PyErr_Occurred()) SWIG_fail;
10381 }
10382 resultobj = SWIG_From_int(static_cast< int >(result));
10383 return resultobj;
10384 fail:
10385 return NULL;
10386 }
10387
10388
10389 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10390 PyObject *obj;
10391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10392 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10393 return SWIG_Py_Void();
10394 }
10395
10396 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10397 return SWIG_Python_InitShadowInstance(args);
10398 }
10399
10400 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10401 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10402 return 1;
10403 }
10404
10405
10406 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10407 PyObject *pyobj = 0;
10408
10409 {
10410 #if wxUSE_UNICODE
10411 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10412 #else
10413 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10414 #endif
10415 }
10416 return pyobj;
10417 }
10418
10419
10420 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj = 0;
10422 wxColour const &arg1_defvalue = wxNullColour ;
10423 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10424 wxColour const &arg2_defvalue = wxNullColour ;
10425 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10426 wxFont const &arg3_defvalue = wxNullFont ;
10427 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10428 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10429 wxTextAttr *result = 0 ;
10430 wxColour temp1 ;
10431 wxColour temp2 ;
10432 void *argp3 = 0 ;
10433 int res3 = 0 ;
10434 int val4 ;
10435 int ecode4 = 0 ;
10436 PyObject * obj0 = 0 ;
10437 PyObject * obj1 = 0 ;
10438 PyObject * obj2 = 0 ;
10439 PyObject * obj3 = 0 ;
10440 char * kwnames[] = {
10441 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10442 };
10443
10444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10445 if (obj0) {
10446 {
10447 arg1 = &temp1;
10448 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10449 }
10450 }
10451 if (obj1) {
10452 {
10453 arg2 = &temp2;
10454 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10455 }
10456 }
10457 if (obj2) {
10458 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10459 if (!SWIG_IsOK(res3)) {
10460 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10461 }
10462 if (!argp3) {
10463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10464 }
10465 arg3 = reinterpret_cast< wxFont * >(argp3);
10466 }
10467 if (obj3) {
10468 ecode4 = SWIG_AsVal_int(obj3, &val4);
10469 if (!SWIG_IsOK(ecode4)) {
10470 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10471 }
10472 arg4 = static_cast< wxTextAttrAlignment >(val4);
10473 }
10474 {
10475 PyThreadState* __tstate = wxPyBeginAllowThreads();
10476 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10477 wxPyEndAllowThreads(__tstate);
10478 if (PyErr_Occurred()) SWIG_fail;
10479 }
10480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10481 return resultobj;
10482 fail:
10483 return NULL;
10484 }
10485
10486
10487 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10488 PyObject *resultobj = 0;
10489 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10490 void *argp1 = 0 ;
10491 int res1 = 0 ;
10492 PyObject *swig_obj[1] ;
10493
10494 if (!args) SWIG_fail;
10495 swig_obj[0] = args;
10496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10497 if (!SWIG_IsOK(res1)) {
10498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10499 }
10500 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 delete arg1;
10504
10505 wxPyEndAllowThreads(__tstate);
10506 if (PyErr_Occurred()) SWIG_fail;
10507 }
10508 resultobj = SWIG_Py_Void();
10509 return resultobj;
10510 fail:
10511 return NULL;
10512 }
10513
10514
10515 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10516 PyObject *resultobj = 0;
10517 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10518 void *argp1 = 0 ;
10519 int res1 = 0 ;
10520 PyObject *swig_obj[1] ;
10521
10522 if (!args) SWIG_fail;
10523 swig_obj[0] = args;
10524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10525 if (!SWIG_IsOK(res1)) {
10526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10527 }
10528 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10529 {
10530 PyThreadState* __tstate = wxPyBeginAllowThreads();
10531 (arg1)->Init();
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = SWIG_Py_Void();
10536 return resultobj;
10537 fail:
10538 return NULL;
10539 }
10540
10541
10542 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10543 PyObject *resultobj = 0;
10544 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10545 wxColour *arg2 = 0 ;
10546 void *argp1 = 0 ;
10547 int res1 = 0 ;
10548 wxColour temp2 ;
10549 PyObject * obj0 = 0 ;
10550 PyObject * obj1 = 0 ;
10551 char * kwnames[] = {
10552 (char *) "self",(char *) "colText", NULL
10553 };
10554
10555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10557 if (!SWIG_IsOK(res1)) {
10558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10559 }
10560 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10561 {
10562 arg2 = &temp2;
10563 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10564 }
10565 {
10566 PyThreadState* __tstate = wxPyBeginAllowThreads();
10567 (arg1)->SetTextColour((wxColour const &)*arg2);
10568 wxPyEndAllowThreads(__tstate);
10569 if (PyErr_Occurred()) SWIG_fail;
10570 }
10571 resultobj = SWIG_Py_Void();
10572 return resultobj;
10573 fail:
10574 return NULL;
10575 }
10576
10577
10578 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10579 PyObject *resultobj = 0;
10580 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10581 wxColour *arg2 = 0 ;
10582 void *argp1 = 0 ;
10583 int res1 = 0 ;
10584 wxColour temp2 ;
10585 PyObject * obj0 = 0 ;
10586 PyObject * obj1 = 0 ;
10587 char * kwnames[] = {
10588 (char *) "self",(char *) "colBack", NULL
10589 };
10590
10591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10593 if (!SWIG_IsOK(res1)) {
10594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10595 }
10596 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10597 {
10598 arg2 = &temp2;
10599 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10600 }
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10604 wxPyEndAllowThreads(__tstate);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 }
10607 resultobj = SWIG_Py_Void();
10608 return resultobj;
10609 fail:
10610 return NULL;
10611 }
10612
10613
10614 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj = 0;
10616 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10617 wxFont *arg2 = 0 ;
10618 long arg3 = (long) wxTEXT_ATTR_FONT ;
10619 void *argp1 = 0 ;
10620 int res1 = 0 ;
10621 void *argp2 = 0 ;
10622 int res2 = 0 ;
10623 long val3 ;
10624 int ecode3 = 0 ;
10625 PyObject * obj0 = 0 ;
10626 PyObject * obj1 = 0 ;
10627 PyObject * obj2 = 0 ;
10628 char * kwnames[] = {
10629 (char *) "self",(char *) "font",(char *) "flags", NULL
10630 };
10631
10632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10634 if (!SWIG_IsOK(res1)) {
10635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10636 }
10637 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10638 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10639 if (!SWIG_IsOK(res2)) {
10640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10641 }
10642 if (!argp2) {
10643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10644 }
10645 arg2 = reinterpret_cast< wxFont * >(argp2);
10646 if (obj2) {
10647 ecode3 = SWIG_AsVal_long(obj2, &val3);
10648 if (!SWIG_IsOK(ecode3)) {
10649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10650 }
10651 arg3 = static_cast< long >(val3);
10652 }
10653 {
10654 PyThreadState* __tstate = wxPyBeginAllowThreads();
10655 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10656 wxPyEndAllowThreads(__tstate);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 resultobj = SWIG_Py_Void();
10660 return resultobj;
10661 fail:
10662 return NULL;
10663 }
10664
10665
10666 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10667 PyObject *resultobj = 0;
10668 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10669 wxTextAttrAlignment arg2 ;
10670 void *argp1 = 0 ;
10671 int res1 = 0 ;
10672 int val2 ;
10673 int ecode2 = 0 ;
10674 PyObject * obj0 = 0 ;
10675 PyObject * obj1 = 0 ;
10676 char * kwnames[] = {
10677 (char *) "self",(char *) "alignment", NULL
10678 };
10679
10680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10682 if (!SWIG_IsOK(res1)) {
10683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10684 }
10685 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10686 ecode2 = SWIG_AsVal_int(obj1, &val2);
10687 if (!SWIG_IsOK(ecode2)) {
10688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10689 }
10690 arg2 = static_cast< wxTextAttrAlignment >(val2);
10691 {
10692 PyThreadState* __tstate = wxPyBeginAllowThreads();
10693 (arg1)->SetAlignment(arg2);
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 resultobj = SWIG_Py_Void();
10698 return resultobj;
10699 fail:
10700 return NULL;
10701 }
10702
10703
10704 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10705 PyObject *resultobj = 0;
10706 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10707 wxArrayInt *arg2 = 0 ;
10708 void *argp1 = 0 ;
10709 int res1 = 0 ;
10710 bool temp2 = false ;
10711 PyObject * obj0 = 0 ;
10712 PyObject * obj1 = 0 ;
10713 char * kwnames[] = {
10714 (char *) "self",(char *) "tabs", NULL
10715 };
10716
10717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10719 if (!SWIG_IsOK(res1)) {
10720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10721 }
10722 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10723 {
10724 if (! PySequence_Check(obj1)) {
10725 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10726 SWIG_fail;
10727 }
10728 arg2 = new wxArrayInt;
10729 temp2 = true;
10730 int i, len=PySequence_Length(obj1);
10731 for (i=0; i<len; i++) {
10732 PyObject* item = PySequence_GetItem(obj1, i);
10733 PyObject* number = PyNumber_Int(item);
10734 arg2->Add(PyInt_AS_LONG(number));
10735 Py_DECREF(item);
10736 Py_DECREF(number);
10737 }
10738 }
10739 {
10740 PyThreadState* __tstate = wxPyBeginAllowThreads();
10741 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10742 wxPyEndAllowThreads(__tstate);
10743 if (PyErr_Occurred()) SWIG_fail;
10744 }
10745 resultobj = SWIG_Py_Void();
10746 {
10747 if (temp2) delete arg2;
10748 }
10749 return resultobj;
10750 fail:
10751 {
10752 if (temp2) delete arg2;
10753 }
10754 return NULL;
10755 }
10756
10757
10758 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10759 PyObject *resultobj = 0;
10760 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10761 int arg2 ;
10762 int arg3 = (int) 0 ;
10763 void *argp1 = 0 ;
10764 int res1 = 0 ;
10765 int val2 ;
10766 int ecode2 = 0 ;
10767 int val3 ;
10768 int ecode3 = 0 ;
10769 PyObject * obj0 = 0 ;
10770 PyObject * obj1 = 0 ;
10771 PyObject * obj2 = 0 ;
10772 char * kwnames[] = {
10773 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10774 };
10775
10776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10778 if (!SWIG_IsOK(res1)) {
10779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10780 }
10781 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10782 ecode2 = SWIG_AsVal_int(obj1, &val2);
10783 if (!SWIG_IsOK(ecode2)) {
10784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10785 }
10786 arg2 = static_cast< int >(val2);
10787 if (obj2) {
10788 ecode3 = SWIG_AsVal_int(obj2, &val3);
10789 if (!SWIG_IsOK(ecode3)) {
10790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10791 }
10792 arg3 = static_cast< int >(val3);
10793 }
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 (arg1)->SetLeftIndent(arg2,arg3);
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 resultobj = SWIG_Py_Void();
10801 return resultobj;
10802 fail:
10803 return NULL;
10804 }
10805
10806
10807 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10808 PyObject *resultobj = 0;
10809 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10810 int arg2 ;
10811 void *argp1 = 0 ;
10812 int res1 = 0 ;
10813 int val2 ;
10814 int ecode2 = 0 ;
10815 PyObject * obj0 = 0 ;
10816 PyObject * obj1 = 0 ;
10817 char * kwnames[] = {
10818 (char *) "self",(char *) "indent", NULL
10819 };
10820
10821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10823 if (!SWIG_IsOK(res1)) {
10824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10825 }
10826 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10827 ecode2 = SWIG_AsVal_int(obj1, &val2);
10828 if (!SWIG_IsOK(ecode2)) {
10829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10830 }
10831 arg2 = static_cast< int >(val2);
10832 {
10833 PyThreadState* __tstate = wxPyBeginAllowThreads();
10834 (arg1)->SetRightIndent(arg2);
10835 wxPyEndAllowThreads(__tstate);
10836 if (PyErr_Occurred()) SWIG_fail;
10837 }
10838 resultobj = SWIG_Py_Void();
10839 return resultobj;
10840 fail:
10841 return NULL;
10842 }
10843
10844
10845 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10846 PyObject *resultobj = 0;
10847 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10848 long arg2 ;
10849 void *argp1 = 0 ;
10850 int res1 = 0 ;
10851 long val2 ;
10852 int ecode2 = 0 ;
10853 PyObject * obj0 = 0 ;
10854 PyObject * obj1 = 0 ;
10855 char * kwnames[] = {
10856 (char *) "self",(char *) "flags", NULL
10857 };
10858
10859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10861 if (!SWIG_IsOK(res1)) {
10862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10863 }
10864 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10865 ecode2 = SWIG_AsVal_long(obj1, &val2);
10866 if (!SWIG_IsOK(ecode2)) {
10867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10868 }
10869 arg2 = static_cast< long >(val2);
10870 {
10871 PyThreadState* __tstate = wxPyBeginAllowThreads();
10872 (arg1)->SetFlags(arg2);
10873 wxPyEndAllowThreads(__tstate);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 }
10876 resultobj = SWIG_Py_Void();
10877 return resultobj;
10878 fail:
10879 return NULL;
10880 }
10881
10882
10883 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10884 PyObject *resultobj = 0;
10885 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10886 bool result;
10887 void *argp1 = 0 ;
10888 int res1 = 0 ;
10889 PyObject *swig_obj[1] ;
10890
10891 if (!args) SWIG_fail;
10892 swig_obj[0] = args;
10893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10894 if (!SWIG_IsOK(res1)) {
10895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10896 }
10897 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10898 {
10899 PyThreadState* __tstate = wxPyBeginAllowThreads();
10900 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
10904 {
10905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10906 }
10907 return resultobj;
10908 fail:
10909 return NULL;
10910 }
10911
10912
10913 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10914 PyObject *resultobj = 0;
10915 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10916 bool result;
10917 void *argp1 = 0 ;
10918 int res1 = 0 ;
10919 PyObject *swig_obj[1] ;
10920
10921 if (!args) SWIG_fail;
10922 swig_obj[0] = args;
10923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10924 if (!SWIG_IsOK(res1)) {
10925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10926 }
10927 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10928 {
10929 PyThreadState* __tstate = wxPyBeginAllowThreads();
10930 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10931 wxPyEndAllowThreads(__tstate);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 {
10935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10936 }
10937 return resultobj;
10938 fail:
10939 return NULL;
10940 }
10941
10942
10943 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10944 PyObject *resultobj = 0;
10945 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10946 bool result;
10947 void *argp1 = 0 ;
10948 int res1 = 0 ;
10949 PyObject *swig_obj[1] ;
10950
10951 if (!args) SWIG_fail;
10952 swig_obj[0] = args;
10953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10954 if (!SWIG_IsOK(res1)) {
10955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10956 }
10957 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10961 wxPyEndAllowThreads(__tstate);
10962 if (PyErr_Occurred()) SWIG_fail;
10963 }
10964 {
10965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10966 }
10967 return resultobj;
10968 fail:
10969 return NULL;
10970 }
10971
10972
10973 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10974 PyObject *resultobj = 0;
10975 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10976 bool result;
10977 void *argp1 = 0 ;
10978 int res1 = 0 ;
10979 PyObject *swig_obj[1] ;
10980
10981 if (!args) SWIG_fail;
10982 swig_obj[0] = args;
10983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10984 if (!SWIG_IsOK(res1)) {
10985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10986 }
10987 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10988 {
10989 PyThreadState* __tstate = wxPyBeginAllowThreads();
10990 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10991 wxPyEndAllowThreads(__tstate);
10992 if (PyErr_Occurred()) SWIG_fail;
10993 }
10994 {
10995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10996 }
10997 return resultobj;
10998 fail:
10999 return NULL;
11000 }
11001
11002
11003 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11004 PyObject *resultobj = 0;
11005 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11006 bool result;
11007 void *argp1 = 0 ;
11008 int res1 = 0 ;
11009 PyObject *swig_obj[1] ;
11010
11011 if (!args) SWIG_fail;
11012 swig_obj[0] = args;
11013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11014 if (!SWIG_IsOK(res1)) {
11015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11016 }
11017 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11018 {
11019 PyThreadState* __tstate = wxPyBeginAllowThreads();
11020 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11021 wxPyEndAllowThreads(__tstate);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 }
11024 {
11025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11026 }
11027 return resultobj;
11028 fail:
11029 return NULL;
11030 }
11031
11032
11033 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11034 PyObject *resultobj = 0;
11035 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11036 bool result;
11037 void *argp1 = 0 ;
11038 int res1 = 0 ;
11039 PyObject *swig_obj[1] ;
11040
11041 if (!args) SWIG_fail;
11042 swig_obj[0] = args;
11043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11044 if (!SWIG_IsOK(res1)) {
11045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11046 }
11047 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11048 {
11049 PyThreadState* __tstate = wxPyBeginAllowThreads();
11050 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11051 wxPyEndAllowThreads(__tstate);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 {
11055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11056 }
11057 return resultobj;
11058 fail:
11059 return NULL;
11060 }
11061
11062
11063 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11064 PyObject *resultobj = 0;
11065 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11066 bool result;
11067 void *argp1 = 0 ;
11068 int res1 = 0 ;
11069 PyObject *swig_obj[1] ;
11070
11071 if (!args) SWIG_fail;
11072 swig_obj[0] = args;
11073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11074 if (!SWIG_IsOK(res1)) {
11075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11076 }
11077 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11078 {
11079 PyThreadState* __tstate = wxPyBeginAllowThreads();
11080 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11081 wxPyEndAllowThreads(__tstate);
11082 if (PyErr_Occurred()) SWIG_fail;
11083 }
11084 {
11085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11086 }
11087 return resultobj;
11088 fail:
11089 return NULL;
11090 }
11091
11092
11093 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11094 PyObject *resultobj = 0;
11095 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11096 long arg2 ;
11097 bool result;
11098 void *argp1 = 0 ;
11099 int res1 = 0 ;
11100 long val2 ;
11101 int ecode2 = 0 ;
11102 PyObject * obj0 = 0 ;
11103 PyObject * obj1 = 0 ;
11104 char * kwnames[] = {
11105 (char *) "self",(char *) "flag", NULL
11106 };
11107
11108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11110 if (!SWIG_IsOK(res1)) {
11111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11112 }
11113 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11114 ecode2 = SWIG_AsVal_long(obj1, &val2);
11115 if (!SWIG_IsOK(ecode2)) {
11116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11117 }
11118 arg2 = static_cast< long >(val2);
11119 {
11120 PyThreadState* __tstate = wxPyBeginAllowThreads();
11121 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11122 wxPyEndAllowThreads(__tstate);
11123 if (PyErr_Occurred()) SWIG_fail;
11124 }
11125 {
11126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11127 }
11128 return resultobj;
11129 fail:
11130 return NULL;
11131 }
11132
11133
11134 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11135 PyObject *resultobj = 0;
11136 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11137 wxColour *result = 0 ;
11138 void *argp1 = 0 ;
11139 int res1 = 0 ;
11140 PyObject *swig_obj[1] ;
11141
11142 if (!args) SWIG_fail;
11143 swig_obj[0] = args;
11144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11145 if (!SWIG_IsOK(res1)) {
11146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11147 }
11148 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11149 {
11150 PyThreadState* __tstate = wxPyBeginAllowThreads();
11151 {
11152 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11153 result = (wxColour *) &_result_ref;
11154 }
11155 wxPyEndAllowThreads(__tstate);
11156 if (PyErr_Occurred()) SWIG_fail;
11157 }
11158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11159 return resultobj;
11160 fail:
11161 return NULL;
11162 }
11163
11164
11165 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11166 PyObject *resultobj = 0;
11167 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11168 wxColour *result = 0 ;
11169 void *argp1 = 0 ;
11170 int res1 = 0 ;
11171 PyObject *swig_obj[1] ;
11172
11173 if (!args) SWIG_fail;
11174 swig_obj[0] = args;
11175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11176 if (!SWIG_IsOK(res1)) {
11177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11178 }
11179 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11180 {
11181 PyThreadState* __tstate = wxPyBeginAllowThreads();
11182 {
11183 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11184 result = (wxColour *) &_result_ref;
11185 }
11186 wxPyEndAllowThreads(__tstate);
11187 if (PyErr_Occurred()) SWIG_fail;
11188 }
11189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11190 return resultobj;
11191 fail:
11192 return NULL;
11193 }
11194
11195
11196 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11197 PyObject *resultobj = 0;
11198 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11199 wxFont *result = 0 ;
11200 void *argp1 = 0 ;
11201 int res1 = 0 ;
11202 PyObject *swig_obj[1] ;
11203
11204 if (!args) SWIG_fail;
11205 swig_obj[0] = args;
11206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11207 if (!SWIG_IsOK(res1)) {
11208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11209 }
11210 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
11213 {
11214 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11215 result = (wxFont *) &_result_ref;
11216 }
11217 wxPyEndAllowThreads(__tstate);
11218 if (PyErr_Occurred()) SWIG_fail;
11219 }
11220 {
11221 wxFont* resultptr = new wxFont(*result);
11222 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11223 }
11224 return resultobj;
11225 fail:
11226 return NULL;
11227 }
11228
11229
11230 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11231 PyObject *resultobj = 0;
11232 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11233 wxTextAttrAlignment result;
11234 void *argp1 = 0 ;
11235 int res1 = 0 ;
11236 PyObject *swig_obj[1] ;
11237
11238 if (!args) SWIG_fail;
11239 swig_obj[0] = args;
11240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11241 if (!SWIG_IsOK(res1)) {
11242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11243 }
11244 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11245 {
11246 PyThreadState* __tstate = wxPyBeginAllowThreads();
11247 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11248 wxPyEndAllowThreads(__tstate);
11249 if (PyErr_Occurred()) SWIG_fail;
11250 }
11251 resultobj = SWIG_From_int(static_cast< int >(result));
11252 return resultobj;
11253 fail:
11254 return NULL;
11255 }
11256
11257
11258 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11259 PyObject *resultobj = 0;
11260 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11261 wxArrayInt *result = 0 ;
11262 void *argp1 = 0 ;
11263 int res1 = 0 ;
11264 PyObject *swig_obj[1] ;
11265
11266 if (!args) SWIG_fail;
11267 swig_obj[0] = args;
11268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11269 if (!SWIG_IsOK(res1)) {
11270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11271 }
11272 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11273 {
11274 PyThreadState* __tstate = wxPyBeginAllowThreads();
11275 {
11276 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11277 result = (wxArrayInt *) &_result_ref;
11278 }
11279 wxPyEndAllowThreads(__tstate);
11280 if (PyErr_Occurred()) SWIG_fail;
11281 }
11282 {
11283 resultobj = PyList_New(0);
11284 size_t idx;
11285 for (idx = 0; idx < result->GetCount(); idx += 1) {
11286 PyObject* val = PyInt_FromLong( result->Item(idx) );
11287 PyList_Append(resultobj, val);
11288 Py_DECREF(val);
11289 }
11290 }
11291 return resultobj;
11292 fail:
11293 return NULL;
11294 }
11295
11296
11297 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11298 PyObject *resultobj = 0;
11299 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11300 long result;
11301 void *argp1 = 0 ;
11302 int res1 = 0 ;
11303 PyObject *swig_obj[1] ;
11304
11305 if (!args) SWIG_fail;
11306 swig_obj[0] = args;
11307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11308 if (!SWIG_IsOK(res1)) {
11309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11310 }
11311 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11312 {
11313 PyThreadState* __tstate = wxPyBeginAllowThreads();
11314 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11315 wxPyEndAllowThreads(__tstate);
11316 if (PyErr_Occurred()) SWIG_fail;
11317 }
11318 resultobj = SWIG_From_long(static_cast< long >(result));
11319 return resultobj;
11320 fail:
11321 return NULL;
11322 }
11323
11324
11325 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11326 PyObject *resultobj = 0;
11327 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11328 long result;
11329 void *argp1 = 0 ;
11330 int res1 = 0 ;
11331 PyObject *swig_obj[1] ;
11332
11333 if (!args) SWIG_fail;
11334 swig_obj[0] = args;
11335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11336 if (!SWIG_IsOK(res1)) {
11337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11338 }
11339 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11340 {
11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
11342 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 resultobj = SWIG_From_long(static_cast< long >(result));
11347 return resultobj;
11348 fail:
11349 return NULL;
11350 }
11351
11352
11353 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11354 PyObject *resultobj = 0;
11355 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11356 long result;
11357 void *argp1 = 0 ;
11358 int res1 = 0 ;
11359 PyObject *swig_obj[1] ;
11360
11361 if (!args) SWIG_fail;
11362 swig_obj[0] = args;
11363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11364 if (!SWIG_IsOK(res1)) {
11365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11366 }
11367 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 resultobj = SWIG_From_long(static_cast< long >(result));
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11382 PyObject *resultobj = 0;
11383 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11384 long result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 PyObject *swig_obj[1] ;
11388
11389 if (!args) SWIG_fail;
11390 swig_obj[0] = args;
11391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11392 if (!SWIG_IsOK(res1)) {
11393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11394 }
11395 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 resultobj = SWIG_From_long(static_cast< long >(result));
11403 return resultobj;
11404 fail:
11405 return NULL;
11406 }
11407
11408
11409 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11410 PyObject *resultobj = 0;
11411 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11412 bool result;
11413 void *argp1 = 0 ;
11414 int res1 = 0 ;
11415 PyObject *swig_obj[1] ;
11416
11417 if (!args) SWIG_fail;
11418 swig_obj[0] = args;
11419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11420 if (!SWIG_IsOK(res1)) {
11421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11422 }
11423 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11424 {
11425 PyThreadState* __tstate = wxPyBeginAllowThreads();
11426 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11427 wxPyEndAllowThreads(__tstate);
11428 if (PyErr_Occurred()) SWIG_fail;
11429 }
11430 {
11431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11432 }
11433 return resultobj;
11434 fail:
11435 return NULL;
11436 }
11437
11438
11439 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11440 PyObject *resultobj = 0;
11441 wxTextAttr *arg1 = 0 ;
11442 wxTextAttr *arg2 = 0 ;
11443 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11444 wxTextAttr result;
11445 void *argp1 = 0 ;
11446 int res1 = 0 ;
11447 void *argp2 = 0 ;
11448 int res2 = 0 ;
11449 void *argp3 = 0 ;
11450 int res3 = 0 ;
11451 PyObject * obj0 = 0 ;
11452 PyObject * obj1 = 0 ;
11453 PyObject * obj2 = 0 ;
11454 char * kwnames[] = {
11455 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11456 };
11457
11458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11459 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11460 if (!SWIG_IsOK(res1)) {
11461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11462 }
11463 if (!argp1) {
11464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11465 }
11466 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11467 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11468 if (!SWIG_IsOK(res2)) {
11469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11470 }
11471 if (!argp2) {
11472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11473 }
11474 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11475 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11476 if (!SWIG_IsOK(res3)) {
11477 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11478 }
11479 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11480 {
11481 PyThreadState* __tstate = wxPyBeginAllowThreads();
11482 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11483 wxPyEndAllowThreads(__tstate);
11484 if (PyErr_Occurred()) SWIG_fail;
11485 }
11486 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11487 return resultobj;
11488 fail:
11489 return NULL;
11490 }
11491
11492
11493 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11494 PyObject *obj;
11495 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11496 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11497 return SWIG_Py_Void();
11498 }
11499
11500 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11501 return SWIG_Python_InitShadowInstance(args);
11502 }
11503
11504 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11505 PyObject *resultobj = 0;
11506 wxWindow *arg1 = (wxWindow *) 0 ;
11507 int arg2 = (int) -1 ;
11508 wxString const &arg3_defvalue = wxPyEmptyString ;
11509 wxString *arg3 = (wxString *) &arg3_defvalue ;
11510 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11511 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11512 wxSize const &arg5_defvalue = wxDefaultSize ;
11513 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11514 long arg6 = (long) 0 ;
11515 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11516 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11517 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11518 wxString *arg8 = (wxString *) &arg8_defvalue ;
11519 wxTextCtrl *result = 0 ;
11520 void *argp1 = 0 ;
11521 int res1 = 0 ;
11522 int val2 ;
11523 int ecode2 = 0 ;
11524 bool temp3 = false ;
11525 wxPoint temp4 ;
11526 wxSize temp5 ;
11527 long val6 ;
11528 int ecode6 = 0 ;
11529 void *argp7 = 0 ;
11530 int res7 = 0 ;
11531 bool temp8 = false ;
11532 PyObject * obj0 = 0 ;
11533 PyObject * obj1 = 0 ;
11534 PyObject * obj2 = 0 ;
11535 PyObject * obj3 = 0 ;
11536 PyObject * obj4 = 0 ;
11537 PyObject * obj5 = 0 ;
11538 PyObject * obj6 = 0 ;
11539 PyObject * obj7 = 0 ;
11540 char * kwnames[] = {
11541 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11542 };
11543
11544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11546 if (!SWIG_IsOK(res1)) {
11547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11548 }
11549 arg1 = reinterpret_cast< wxWindow * >(argp1);
11550 if (obj1) {
11551 ecode2 = SWIG_AsVal_int(obj1, &val2);
11552 if (!SWIG_IsOK(ecode2)) {
11553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11554 }
11555 arg2 = static_cast< int >(val2);
11556 }
11557 if (obj2) {
11558 {
11559 arg3 = wxString_in_helper(obj2);
11560 if (arg3 == NULL) SWIG_fail;
11561 temp3 = true;
11562 }
11563 }
11564 if (obj3) {
11565 {
11566 arg4 = &temp4;
11567 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11568 }
11569 }
11570 if (obj4) {
11571 {
11572 arg5 = &temp5;
11573 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11574 }
11575 }
11576 if (obj5) {
11577 ecode6 = SWIG_AsVal_long(obj5, &val6);
11578 if (!SWIG_IsOK(ecode6)) {
11579 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11580 }
11581 arg6 = static_cast< long >(val6);
11582 }
11583 if (obj6) {
11584 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11585 if (!SWIG_IsOK(res7)) {
11586 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11587 }
11588 if (!argp7) {
11589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11590 }
11591 arg7 = reinterpret_cast< wxValidator * >(argp7);
11592 }
11593 if (obj7) {
11594 {
11595 arg8 = wxString_in_helper(obj7);
11596 if (arg8 == NULL) SWIG_fail;
11597 temp8 = true;
11598 }
11599 }
11600 {
11601 if (!wxPyCheckForApp()) SWIG_fail;
11602 PyThreadState* __tstate = wxPyBeginAllowThreads();
11603 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11604 wxPyEndAllowThreads(__tstate);
11605 if (PyErr_Occurred()) SWIG_fail;
11606 }
11607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11608 {
11609 if (temp3)
11610 delete arg3;
11611 }
11612 {
11613 if (temp8)
11614 delete arg8;
11615 }
11616 return resultobj;
11617 fail:
11618 {
11619 if (temp3)
11620 delete arg3;
11621 }
11622 {
11623 if (temp8)
11624 delete arg8;
11625 }
11626 return NULL;
11627 }
11628
11629
11630 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11631 PyObject *resultobj = 0;
11632 wxTextCtrl *result = 0 ;
11633
11634 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11635 {
11636 if (!wxPyCheckForApp()) SWIG_fail;
11637 PyThreadState* __tstate = wxPyBeginAllowThreads();
11638 result = (wxTextCtrl *)new wxTextCtrl();
11639 wxPyEndAllowThreads(__tstate);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 }
11642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11643 return resultobj;
11644 fail:
11645 return NULL;
11646 }
11647
11648
11649 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11650 PyObject *resultobj = 0;
11651 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11652 wxWindow *arg2 = (wxWindow *) 0 ;
11653 int arg3 = (int) -1 ;
11654 wxString const &arg4_defvalue = wxPyEmptyString ;
11655 wxString *arg4 = (wxString *) &arg4_defvalue ;
11656 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11657 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11658 wxSize const &arg6_defvalue = wxDefaultSize ;
11659 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11660 long arg7 = (long) 0 ;
11661 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11662 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11663 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11664 wxString *arg9 = (wxString *) &arg9_defvalue ;
11665 bool result;
11666 void *argp1 = 0 ;
11667 int res1 = 0 ;
11668 void *argp2 = 0 ;
11669 int res2 = 0 ;
11670 int val3 ;
11671 int ecode3 = 0 ;
11672 bool temp4 = false ;
11673 wxPoint temp5 ;
11674 wxSize temp6 ;
11675 long val7 ;
11676 int ecode7 = 0 ;
11677 void *argp8 = 0 ;
11678 int res8 = 0 ;
11679 bool temp9 = false ;
11680 PyObject * obj0 = 0 ;
11681 PyObject * obj1 = 0 ;
11682 PyObject * obj2 = 0 ;
11683 PyObject * obj3 = 0 ;
11684 PyObject * obj4 = 0 ;
11685 PyObject * obj5 = 0 ;
11686 PyObject * obj6 = 0 ;
11687 PyObject * obj7 = 0 ;
11688 PyObject * obj8 = 0 ;
11689 char * kwnames[] = {
11690 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11691 };
11692
11693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11695 if (!SWIG_IsOK(res1)) {
11696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11697 }
11698 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11699 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11700 if (!SWIG_IsOK(res2)) {
11701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11702 }
11703 arg2 = reinterpret_cast< wxWindow * >(argp2);
11704 if (obj2) {
11705 ecode3 = SWIG_AsVal_int(obj2, &val3);
11706 if (!SWIG_IsOK(ecode3)) {
11707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11708 }
11709 arg3 = static_cast< int >(val3);
11710 }
11711 if (obj3) {
11712 {
11713 arg4 = wxString_in_helper(obj3);
11714 if (arg4 == NULL) SWIG_fail;
11715 temp4 = true;
11716 }
11717 }
11718 if (obj4) {
11719 {
11720 arg5 = &temp5;
11721 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11722 }
11723 }
11724 if (obj5) {
11725 {
11726 arg6 = &temp6;
11727 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11728 }
11729 }
11730 if (obj6) {
11731 ecode7 = SWIG_AsVal_long(obj6, &val7);
11732 if (!SWIG_IsOK(ecode7)) {
11733 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11734 }
11735 arg7 = static_cast< long >(val7);
11736 }
11737 if (obj7) {
11738 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11739 if (!SWIG_IsOK(res8)) {
11740 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11741 }
11742 if (!argp8) {
11743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11744 }
11745 arg8 = reinterpret_cast< wxValidator * >(argp8);
11746 }
11747 if (obj8) {
11748 {
11749 arg9 = wxString_in_helper(obj8);
11750 if (arg9 == NULL) SWIG_fail;
11751 temp9 = true;
11752 }
11753 }
11754 {
11755 PyThreadState* __tstate = wxPyBeginAllowThreads();
11756 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11757 wxPyEndAllowThreads(__tstate);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 {
11761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11762 }
11763 {
11764 if (temp4)
11765 delete arg4;
11766 }
11767 {
11768 if (temp9)
11769 delete arg9;
11770 }
11771 return resultobj;
11772 fail:
11773 {
11774 if (temp4)
11775 delete arg4;
11776 }
11777 {
11778 if (temp9)
11779 delete arg9;
11780 }
11781 return NULL;
11782 }
11783
11784
11785 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11786 PyObject *resultobj = 0;
11787 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11788 wxString result;
11789 void *argp1 = 0 ;
11790 int res1 = 0 ;
11791 PyObject *swig_obj[1] ;
11792
11793 if (!args) SWIG_fail;
11794 swig_obj[0] = args;
11795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11796 if (!SWIG_IsOK(res1)) {
11797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11798 }
11799 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11800 {
11801 PyThreadState* __tstate = wxPyBeginAllowThreads();
11802 result = ((wxTextCtrl const *)arg1)->GetValue();
11803 wxPyEndAllowThreads(__tstate);
11804 if (PyErr_Occurred()) SWIG_fail;
11805 }
11806 {
11807 #if wxUSE_UNICODE
11808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11809 #else
11810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11811 #endif
11812 }
11813 return resultobj;
11814 fail:
11815 return NULL;
11816 }
11817
11818
11819 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11820 PyObject *resultobj = 0;
11821 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11822 wxString *arg2 = 0 ;
11823 void *argp1 = 0 ;
11824 int res1 = 0 ;
11825 bool temp2 = false ;
11826 PyObject * obj0 = 0 ;
11827 PyObject * obj1 = 0 ;
11828 char * kwnames[] = {
11829 (char *) "self",(char *) "value", NULL
11830 };
11831
11832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11834 if (!SWIG_IsOK(res1)) {
11835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11836 }
11837 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11838 {
11839 arg2 = wxString_in_helper(obj1);
11840 if (arg2 == NULL) SWIG_fail;
11841 temp2 = true;
11842 }
11843 {
11844 PyThreadState* __tstate = wxPyBeginAllowThreads();
11845 (arg1)->SetValue((wxString const &)*arg2);
11846 wxPyEndAllowThreads(__tstate);
11847 if (PyErr_Occurred()) SWIG_fail;
11848 }
11849 resultobj = SWIG_Py_Void();
11850 {
11851 if (temp2)
11852 delete arg2;
11853 }
11854 return resultobj;
11855 fail:
11856 {
11857 if (temp2)
11858 delete arg2;
11859 }
11860 return NULL;
11861 }
11862
11863
11864 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11865 PyObject *resultobj = 0;
11866 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11867 long arg2 ;
11868 long arg3 ;
11869 wxString result;
11870 void *argp1 = 0 ;
11871 int res1 = 0 ;
11872 long val2 ;
11873 int ecode2 = 0 ;
11874 long val3 ;
11875 int ecode3 = 0 ;
11876 PyObject * obj0 = 0 ;
11877 PyObject * obj1 = 0 ;
11878 PyObject * obj2 = 0 ;
11879 char * kwnames[] = {
11880 (char *) "self",(char *) "_from",(char *) "to", NULL
11881 };
11882
11883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11885 if (!SWIG_IsOK(res1)) {
11886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11887 }
11888 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11889 ecode2 = SWIG_AsVal_long(obj1, &val2);
11890 if (!SWIG_IsOK(ecode2)) {
11891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11892 }
11893 arg2 = static_cast< long >(val2);
11894 ecode3 = SWIG_AsVal_long(obj2, &val3);
11895 if (!SWIG_IsOK(ecode3)) {
11896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11897 }
11898 arg3 = static_cast< long >(val3);
11899 {
11900 PyThreadState* __tstate = wxPyBeginAllowThreads();
11901 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 {
11906 #if wxUSE_UNICODE
11907 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11908 #else
11909 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11910 #endif
11911 }
11912 return resultobj;
11913 fail:
11914 return NULL;
11915 }
11916
11917
11918 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11919 PyObject *resultobj = 0;
11920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11921 long arg2 ;
11922 int result;
11923 void *argp1 = 0 ;
11924 int res1 = 0 ;
11925 long val2 ;
11926 int ecode2 = 0 ;
11927 PyObject * obj0 = 0 ;
11928 PyObject * obj1 = 0 ;
11929 char * kwnames[] = {
11930 (char *) "self",(char *) "lineNo", NULL
11931 };
11932
11933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11935 if (!SWIG_IsOK(res1)) {
11936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11937 }
11938 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11939 ecode2 = SWIG_AsVal_long(obj1, &val2);
11940 if (!SWIG_IsOK(ecode2)) {
11941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11942 }
11943 arg2 = static_cast< long >(val2);
11944 {
11945 PyThreadState* __tstate = wxPyBeginAllowThreads();
11946 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11947 wxPyEndAllowThreads(__tstate);
11948 if (PyErr_Occurred()) SWIG_fail;
11949 }
11950 resultobj = SWIG_From_int(static_cast< int >(result));
11951 return resultobj;
11952 fail:
11953 return NULL;
11954 }
11955
11956
11957 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11958 PyObject *resultobj = 0;
11959 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11960 long arg2 ;
11961 wxString result;
11962 void *argp1 = 0 ;
11963 int res1 = 0 ;
11964 long val2 ;
11965 int ecode2 = 0 ;
11966 PyObject * obj0 = 0 ;
11967 PyObject * obj1 = 0 ;
11968 char * kwnames[] = {
11969 (char *) "self",(char *) "lineNo", NULL
11970 };
11971
11972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11974 if (!SWIG_IsOK(res1)) {
11975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11976 }
11977 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11978 ecode2 = SWIG_AsVal_long(obj1, &val2);
11979 if (!SWIG_IsOK(ecode2)) {
11980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11981 }
11982 arg2 = static_cast< long >(val2);
11983 {
11984 PyThreadState* __tstate = wxPyBeginAllowThreads();
11985 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11986 wxPyEndAllowThreads(__tstate);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 }
11989 {
11990 #if wxUSE_UNICODE
11991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11992 #else
11993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11994 #endif
11995 }
11996 return resultobj;
11997 fail:
11998 return NULL;
11999 }
12000
12001
12002 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12003 PyObject *resultobj = 0;
12004 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12005 int result;
12006 void *argp1 = 0 ;
12007 int res1 = 0 ;
12008 PyObject *swig_obj[1] ;
12009
12010 if (!args) SWIG_fail;
12011 swig_obj[0] = args;
12012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12013 if (!SWIG_IsOK(res1)) {
12014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12015 }
12016 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12017 {
12018 PyThreadState* __tstate = wxPyBeginAllowThreads();
12019 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12020 wxPyEndAllowThreads(__tstate);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 resultobj = SWIG_From_int(static_cast< int >(result));
12024 return resultobj;
12025 fail:
12026 return NULL;
12027 }
12028
12029
12030 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12031 PyObject *resultobj = 0;
12032 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12033 bool result;
12034 void *argp1 = 0 ;
12035 int res1 = 0 ;
12036 PyObject *swig_obj[1] ;
12037
12038 if (!args) SWIG_fail;
12039 swig_obj[0] = args;
12040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12041 if (!SWIG_IsOK(res1)) {
12042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12043 }
12044 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 {
12052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12053 }
12054 return resultobj;
12055 fail:
12056 return NULL;
12057 }
12058
12059
12060 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12061 PyObject *resultobj = 0;
12062 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12063 bool result;
12064 void *argp1 = 0 ;
12065 int res1 = 0 ;
12066 PyObject *swig_obj[1] ;
12067
12068 if (!args) SWIG_fail;
12069 swig_obj[0] = args;
12070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12071 if (!SWIG_IsOK(res1)) {
12072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12073 }
12074 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12075 {
12076 PyThreadState* __tstate = wxPyBeginAllowThreads();
12077 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12078 wxPyEndAllowThreads(__tstate);
12079 if (PyErr_Occurred()) SWIG_fail;
12080 }
12081 {
12082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12083 }
12084 return resultobj;
12085 fail:
12086 return NULL;
12087 }
12088
12089
12090 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12091 PyObject *resultobj = 0;
12092 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12093 bool result;
12094 void *argp1 = 0 ;
12095 int res1 = 0 ;
12096 PyObject *swig_obj[1] ;
12097
12098 if (!args) SWIG_fail;
12099 swig_obj[0] = args;
12100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12101 if (!SWIG_IsOK(res1)) {
12102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12103 }
12104 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 {
12112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12113 }
12114 return resultobj;
12115 fail:
12116 return NULL;
12117 }
12118
12119
12120 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12121 PyObject *resultobj = 0;
12122 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12123 bool result;
12124 void *argp1 = 0 ;
12125 int res1 = 0 ;
12126 PyObject *swig_obj[1] ;
12127
12128 if (!args) SWIG_fail;
12129 swig_obj[0] = args;
12130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12131 if (!SWIG_IsOK(res1)) {
12132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12133 }
12134 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12135 {
12136 PyThreadState* __tstate = wxPyBeginAllowThreads();
12137 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12138 wxPyEndAllowThreads(__tstate);
12139 if (PyErr_Occurred()) SWIG_fail;
12140 }
12141 {
12142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12143 }
12144 return resultobj;
12145 fail:
12146 return NULL;
12147 }
12148
12149
12150 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12151 PyObject *resultobj = 0;
12152 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12153 long *arg2 = (long *) 0 ;
12154 long *arg3 = (long *) 0 ;
12155 void *argp1 = 0 ;
12156 int res1 = 0 ;
12157 long temp2 ;
12158 int res2 = SWIG_TMPOBJ ;
12159 long temp3 ;
12160 int res3 = SWIG_TMPOBJ ;
12161 PyObject *swig_obj[1] ;
12162
12163 arg2 = &temp2;
12164 arg3 = &temp3;
12165 if (!args) SWIG_fail;
12166 swig_obj[0] = args;
12167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12168 if (!SWIG_IsOK(res1)) {
12169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12170 }
12171 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12172 {
12173 PyThreadState* __tstate = wxPyBeginAllowThreads();
12174 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12175 wxPyEndAllowThreads(__tstate);
12176 if (PyErr_Occurred()) SWIG_fail;
12177 }
12178 resultobj = SWIG_Py_Void();
12179 if (SWIG_IsTmpObj(res2)) {
12180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12181 } else {
12182 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12184 }
12185 if (SWIG_IsTmpObj(res3)) {
12186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12187 } else {
12188 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12190 }
12191 return resultobj;
12192 fail:
12193 return NULL;
12194 }
12195
12196
12197 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12198 PyObject *resultobj = 0;
12199 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12200 wxString result;
12201 void *argp1 = 0 ;
12202 int res1 = 0 ;
12203 PyObject *swig_obj[1] ;
12204
12205 if (!args) SWIG_fail;
12206 swig_obj[0] = args;
12207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12208 if (!SWIG_IsOK(res1)) {
12209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12210 }
12211 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12212 {
12213 PyThreadState* __tstate = wxPyBeginAllowThreads();
12214 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 {
12219 #if wxUSE_UNICODE
12220 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12221 #else
12222 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12223 #endif
12224 }
12225 return resultobj;
12226 fail:
12227 return NULL;
12228 }
12229
12230
12231 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12232 PyObject *resultobj = 0;
12233 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12234 void *argp1 = 0 ;
12235 int res1 = 0 ;
12236 PyObject *swig_obj[1] ;
12237
12238 if (!args) SWIG_fail;
12239 swig_obj[0] = args;
12240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12241 if (!SWIG_IsOK(res1)) {
12242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12243 }
12244 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12245 {
12246 PyThreadState* __tstate = wxPyBeginAllowThreads();
12247 (arg1)->Clear();
12248 wxPyEndAllowThreads(__tstate);
12249 if (PyErr_Occurred()) SWIG_fail;
12250 }
12251 resultobj = SWIG_Py_Void();
12252 return resultobj;
12253 fail:
12254 return NULL;
12255 }
12256
12257
12258 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12259 PyObject *resultobj = 0;
12260 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12261 long arg2 ;
12262 long arg3 ;
12263 wxString *arg4 = 0 ;
12264 void *argp1 = 0 ;
12265 int res1 = 0 ;
12266 long val2 ;
12267 int ecode2 = 0 ;
12268 long val3 ;
12269 int ecode3 = 0 ;
12270 bool temp4 = false ;
12271 PyObject * obj0 = 0 ;
12272 PyObject * obj1 = 0 ;
12273 PyObject * obj2 = 0 ;
12274 PyObject * obj3 = 0 ;
12275 char * kwnames[] = {
12276 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
12277 };
12278
12279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12281 if (!SWIG_IsOK(res1)) {
12282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12283 }
12284 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12285 ecode2 = SWIG_AsVal_long(obj1, &val2);
12286 if (!SWIG_IsOK(ecode2)) {
12287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12288 }
12289 arg2 = static_cast< long >(val2);
12290 ecode3 = SWIG_AsVal_long(obj2, &val3);
12291 if (!SWIG_IsOK(ecode3)) {
12292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12293 }
12294 arg3 = static_cast< long >(val3);
12295 {
12296 arg4 = wxString_in_helper(obj3);
12297 if (arg4 == NULL) SWIG_fail;
12298 temp4 = true;
12299 }
12300 {
12301 PyThreadState* __tstate = wxPyBeginAllowThreads();
12302 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12303 wxPyEndAllowThreads(__tstate);
12304 if (PyErr_Occurred()) SWIG_fail;
12305 }
12306 resultobj = SWIG_Py_Void();
12307 {
12308 if (temp4)
12309 delete arg4;
12310 }
12311 return resultobj;
12312 fail:
12313 {
12314 if (temp4)
12315 delete arg4;
12316 }
12317 return NULL;
12318 }
12319
12320
12321 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12322 PyObject *resultobj = 0;
12323 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12324 long arg2 ;
12325 long arg3 ;
12326 void *argp1 = 0 ;
12327 int res1 = 0 ;
12328 long val2 ;
12329 int ecode2 = 0 ;
12330 long val3 ;
12331 int ecode3 = 0 ;
12332 PyObject * obj0 = 0 ;
12333 PyObject * obj1 = 0 ;
12334 PyObject * obj2 = 0 ;
12335 char * kwnames[] = {
12336 (char *) "self",(char *) "_from",(char *) "to", NULL
12337 };
12338
12339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12341 if (!SWIG_IsOK(res1)) {
12342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12343 }
12344 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12345 ecode2 = SWIG_AsVal_long(obj1, &val2);
12346 if (!SWIG_IsOK(ecode2)) {
12347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12348 }
12349 arg2 = static_cast< long >(val2);
12350 ecode3 = SWIG_AsVal_long(obj2, &val3);
12351 if (!SWIG_IsOK(ecode3)) {
12352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12353 }
12354 arg3 = static_cast< long >(val3);
12355 {
12356 PyThreadState* __tstate = wxPyBeginAllowThreads();
12357 (arg1)->Remove(arg2,arg3);
12358 wxPyEndAllowThreads(__tstate);
12359 if (PyErr_Occurred()) SWIG_fail;
12360 }
12361 resultobj = SWIG_Py_Void();
12362 return resultobj;
12363 fail:
12364 return NULL;
12365 }
12366
12367
12368 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12369 PyObject *resultobj = 0;
12370 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12371 wxString *arg2 = 0 ;
12372 bool result;
12373 void *argp1 = 0 ;
12374 int res1 = 0 ;
12375 bool temp2 = false ;
12376 PyObject * obj0 = 0 ;
12377 PyObject * obj1 = 0 ;
12378 char * kwnames[] = {
12379 (char *) "self",(char *) "file", NULL
12380 };
12381
12382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12384 if (!SWIG_IsOK(res1)) {
12385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12386 }
12387 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12388 {
12389 arg2 = wxString_in_helper(obj1);
12390 if (arg2 == NULL) SWIG_fail;
12391 temp2 = true;
12392 }
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12396 wxPyEndAllowThreads(__tstate);
12397 if (PyErr_Occurred()) SWIG_fail;
12398 }
12399 {
12400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12401 }
12402 {
12403 if (temp2)
12404 delete arg2;
12405 }
12406 return resultobj;
12407 fail:
12408 {
12409 if (temp2)
12410 delete arg2;
12411 }
12412 return NULL;
12413 }
12414
12415
12416 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12417 PyObject *resultobj = 0;
12418 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12419 wxString const &arg2_defvalue = wxPyEmptyString ;
12420 wxString *arg2 = (wxString *) &arg2_defvalue ;
12421 bool result;
12422 void *argp1 = 0 ;
12423 int res1 = 0 ;
12424 bool temp2 = false ;
12425 PyObject * obj0 = 0 ;
12426 PyObject * obj1 = 0 ;
12427 char * kwnames[] = {
12428 (char *) "self",(char *) "file", NULL
12429 };
12430
12431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12433 if (!SWIG_IsOK(res1)) {
12434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12435 }
12436 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12437 if (obj1) {
12438 {
12439 arg2 = wxString_in_helper(obj1);
12440 if (arg2 == NULL) SWIG_fail;
12441 temp2 = true;
12442 }
12443 }
12444 {
12445 PyThreadState* __tstate = wxPyBeginAllowThreads();
12446 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12447 wxPyEndAllowThreads(__tstate);
12448 if (PyErr_Occurred()) SWIG_fail;
12449 }
12450 {
12451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12452 }
12453 {
12454 if (temp2)
12455 delete arg2;
12456 }
12457 return resultobj;
12458 fail:
12459 {
12460 if (temp2)
12461 delete arg2;
12462 }
12463 return NULL;
12464 }
12465
12466
12467 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12468 PyObject *resultobj = 0;
12469 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12470 void *argp1 = 0 ;
12471 int res1 = 0 ;
12472 PyObject *swig_obj[1] ;
12473
12474 if (!args) SWIG_fail;
12475 swig_obj[0] = args;
12476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12477 if (!SWIG_IsOK(res1)) {
12478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12479 }
12480 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 (arg1)->MarkDirty();
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
12487 resultobj = SWIG_Py_Void();
12488 return resultobj;
12489 fail:
12490 return NULL;
12491 }
12492
12493
12494 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12495 PyObject *resultobj = 0;
12496 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12497 void *argp1 = 0 ;
12498 int res1 = 0 ;
12499 PyObject *swig_obj[1] ;
12500
12501 if (!args) SWIG_fail;
12502 swig_obj[0] = args;
12503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12504 if (!SWIG_IsOK(res1)) {
12505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12506 }
12507 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12508 {
12509 PyThreadState* __tstate = wxPyBeginAllowThreads();
12510 (arg1)->DiscardEdits();
12511 wxPyEndAllowThreads(__tstate);
12512 if (PyErr_Occurred()) SWIG_fail;
12513 }
12514 resultobj = SWIG_Py_Void();
12515 return resultobj;
12516 fail:
12517 return NULL;
12518 }
12519
12520
12521 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12522 PyObject *resultobj = 0;
12523 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12524 unsigned long arg2 ;
12525 void *argp1 = 0 ;
12526 int res1 = 0 ;
12527 unsigned long val2 ;
12528 int ecode2 = 0 ;
12529 PyObject * obj0 = 0 ;
12530 PyObject * obj1 = 0 ;
12531 char * kwnames[] = {
12532 (char *) "self",(char *) "len", NULL
12533 };
12534
12535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12537 if (!SWIG_IsOK(res1)) {
12538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12539 }
12540 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12541 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12542 if (!SWIG_IsOK(ecode2)) {
12543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12544 }
12545 arg2 = static_cast< unsigned long >(val2);
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 (arg1)->SetMaxLength(arg2);
12549 wxPyEndAllowThreads(__tstate);
12550 if (PyErr_Occurred()) SWIG_fail;
12551 }
12552 resultobj = SWIG_Py_Void();
12553 return resultobj;
12554 fail:
12555 return NULL;
12556 }
12557
12558
12559 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12560 PyObject *resultobj = 0;
12561 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12562 wxString *arg2 = 0 ;
12563 void *argp1 = 0 ;
12564 int res1 = 0 ;
12565 bool temp2 = false ;
12566 PyObject * obj0 = 0 ;
12567 PyObject * obj1 = 0 ;
12568 char * kwnames[] = {
12569 (char *) "self",(char *) "text", NULL
12570 };
12571
12572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12574 if (!SWIG_IsOK(res1)) {
12575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12576 }
12577 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12578 {
12579 arg2 = wxString_in_helper(obj1);
12580 if (arg2 == NULL) SWIG_fail;
12581 temp2 = true;
12582 }
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
12585 (arg1)->WriteText((wxString const &)*arg2);
12586 wxPyEndAllowThreads(__tstate);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 }
12589 resultobj = SWIG_Py_Void();
12590 {
12591 if (temp2)
12592 delete arg2;
12593 }
12594 return resultobj;
12595 fail:
12596 {
12597 if (temp2)
12598 delete arg2;
12599 }
12600 return NULL;
12601 }
12602
12603
12604 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12605 PyObject *resultobj = 0;
12606 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12607 wxString *arg2 = 0 ;
12608 void *argp1 = 0 ;
12609 int res1 = 0 ;
12610 bool temp2 = false ;
12611 PyObject * obj0 = 0 ;
12612 PyObject * obj1 = 0 ;
12613 char * kwnames[] = {
12614 (char *) "self",(char *) "text", NULL
12615 };
12616
12617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12619 if (!SWIG_IsOK(res1)) {
12620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12621 }
12622 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12623 {
12624 arg2 = wxString_in_helper(obj1);
12625 if (arg2 == NULL) SWIG_fail;
12626 temp2 = true;
12627 }
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 (arg1)->AppendText((wxString const &)*arg2);
12631 wxPyEndAllowThreads(__tstate);
12632 if (PyErr_Occurred()) SWIG_fail;
12633 }
12634 resultobj = SWIG_Py_Void();
12635 {
12636 if (temp2)
12637 delete arg2;
12638 }
12639 return resultobj;
12640 fail:
12641 {
12642 if (temp2)
12643 delete arg2;
12644 }
12645 return NULL;
12646 }
12647
12648
12649 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12650 PyObject *resultobj = 0;
12651 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12652 wxKeyEvent *arg2 = 0 ;
12653 bool result;
12654 void *argp1 = 0 ;
12655 int res1 = 0 ;
12656 void *argp2 = 0 ;
12657 int res2 = 0 ;
12658 PyObject * obj0 = 0 ;
12659 PyObject * obj1 = 0 ;
12660 char * kwnames[] = {
12661 (char *) "self",(char *) "event", NULL
12662 };
12663
12664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12666 if (!SWIG_IsOK(res1)) {
12667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12668 }
12669 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12670 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12671 if (!SWIG_IsOK(res2)) {
12672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12673 }
12674 if (!argp2) {
12675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12676 }
12677 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12678 {
12679 PyThreadState* __tstate = wxPyBeginAllowThreads();
12680 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12681 wxPyEndAllowThreads(__tstate);
12682 if (PyErr_Occurred()) SWIG_fail;
12683 }
12684 {
12685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12686 }
12687 return resultobj;
12688 fail:
12689 return NULL;
12690 }
12691
12692
12693 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12694 PyObject *resultobj = 0;
12695 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12696 long arg2 ;
12697 long arg3 ;
12698 wxTextAttr *arg4 = 0 ;
12699 bool result;
12700 void *argp1 = 0 ;
12701 int res1 = 0 ;
12702 long val2 ;
12703 int ecode2 = 0 ;
12704 long val3 ;
12705 int ecode3 = 0 ;
12706 void *argp4 = 0 ;
12707 int res4 = 0 ;
12708 PyObject * obj0 = 0 ;
12709 PyObject * obj1 = 0 ;
12710 PyObject * obj2 = 0 ;
12711 PyObject * obj3 = 0 ;
12712 char * kwnames[] = {
12713 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12714 };
12715
12716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12718 if (!SWIG_IsOK(res1)) {
12719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12720 }
12721 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12722 ecode2 = SWIG_AsVal_long(obj1, &val2);
12723 if (!SWIG_IsOK(ecode2)) {
12724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12725 }
12726 arg2 = static_cast< long >(val2);
12727 ecode3 = SWIG_AsVal_long(obj2, &val3);
12728 if (!SWIG_IsOK(ecode3)) {
12729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12730 }
12731 arg3 = static_cast< long >(val3);
12732 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12733 if (!SWIG_IsOK(res4)) {
12734 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12735 }
12736 if (!argp4) {
12737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12738 }
12739 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12740 {
12741 PyThreadState* __tstate = wxPyBeginAllowThreads();
12742 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 {
12747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12748 }
12749 return resultobj;
12750 fail:
12751 return NULL;
12752 }
12753
12754
12755 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12756 PyObject *resultobj = 0;
12757 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12758 long arg2 ;
12759 wxTextAttr *arg3 = 0 ;
12760 bool result;
12761 void *argp1 = 0 ;
12762 int res1 = 0 ;
12763 long val2 ;
12764 int ecode2 = 0 ;
12765 void *argp3 = 0 ;
12766 int res3 = 0 ;
12767 PyObject * obj0 = 0 ;
12768 PyObject * obj1 = 0 ;
12769 PyObject * obj2 = 0 ;
12770 char * kwnames[] = {
12771 (char *) "self",(char *) "position",(char *) "style", NULL
12772 };
12773
12774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12776 if (!SWIG_IsOK(res1)) {
12777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12778 }
12779 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12780 ecode2 = SWIG_AsVal_long(obj1, &val2);
12781 if (!SWIG_IsOK(ecode2)) {
12782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12783 }
12784 arg2 = static_cast< long >(val2);
12785 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12786 if (!SWIG_IsOK(res3)) {
12787 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12788 }
12789 if (!argp3) {
12790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12791 }
12792 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12793 {
12794 PyThreadState* __tstate = wxPyBeginAllowThreads();
12795 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12796 wxPyEndAllowThreads(__tstate);
12797 if (PyErr_Occurred()) SWIG_fail;
12798 }
12799 {
12800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12801 }
12802 return resultobj;
12803 fail:
12804 return NULL;
12805 }
12806
12807
12808 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12809 PyObject *resultobj = 0;
12810 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12811 wxTextAttr *arg2 = 0 ;
12812 bool result;
12813 void *argp1 = 0 ;
12814 int res1 = 0 ;
12815 void *argp2 = 0 ;
12816 int res2 = 0 ;
12817 PyObject * obj0 = 0 ;
12818 PyObject * obj1 = 0 ;
12819 char * kwnames[] = {
12820 (char *) "self",(char *) "style", NULL
12821 };
12822
12823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12825 if (!SWIG_IsOK(res1)) {
12826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12827 }
12828 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12830 if (!SWIG_IsOK(res2)) {
12831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12832 }
12833 if (!argp2) {
12834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12835 }
12836 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12837 {
12838 PyThreadState* __tstate = wxPyBeginAllowThreads();
12839 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12840 wxPyEndAllowThreads(__tstate);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 {
12844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12845 }
12846 return resultobj;
12847 fail:
12848 return NULL;
12849 }
12850
12851
12852 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12853 PyObject *resultobj = 0;
12854 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12855 wxTextAttr *result = 0 ;
12856 void *argp1 = 0 ;
12857 int res1 = 0 ;
12858 PyObject *swig_obj[1] ;
12859
12860 if (!args) SWIG_fail;
12861 swig_obj[0] = args;
12862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12863 if (!SWIG_IsOK(res1)) {
12864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12865 }
12866 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 {
12870 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12871 result = (wxTextAttr *) &_result_ref;
12872 }
12873 wxPyEndAllowThreads(__tstate);
12874 if (PyErr_Occurred()) SWIG_fail;
12875 }
12876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12877 return resultobj;
12878 fail:
12879 return NULL;
12880 }
12881
12882
12883 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12884 PyObject *resultobj = 0;
12885 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12886 long arg2 ;
12887 long arg3 ;
12888 long result;
12889 void *argp1 = 0 ;
12890 int res1 = 0 ;
12891 long val2 ;
12892 int ecode2 = 0 ;
12893 long val3 ;
12894 int ecode3 = 0 ;
12895 PyObject * obj0 = 0 ;
12896 PyObject * obj1 = 0 ;
12897 PyObject * obj2 = 0 ;
12898 char * kwnames[] = {
12899 (char *) "self",(char *) "x",(char *) "y", NULL
12900 };
12901
12902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12904 if (!SWIG_IsOK(res1)) {
12905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12906 }
12907 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12908 ecode2 = SWIG_AsVal_long(obj1, &val2);
12909 if (!SWIG_IsOK(ecode2)) {
12910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12911 }
12912 arg2 = static_cast< long >(val2);
12913 ecode3 = SWIG_AsVal_long(obj2, &val3);
12914 if (!SWIG_IsOK(ecode3)) {
12915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12916 }
12917 arg3 = static_cast< long >(val3);
12918 {
12919 PyThreadState* __tstate = wxPyBeginAllowThreads();
12920 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12921 wxPyEndAllowThreads(__tstate);
12922 if (PyErr_Occurred()) SWIG_fail;
12923 }
12924 resultobj = SWIG_From_long(static_cast< long >(result));
12925 return resultobj;
12926 fail:
12927 return NULL;
12928 }
12929
12930
12931 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12932 PyObject *resultobj = 0;
12933 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12934 long arg2 ;
12935 long *arg3 = (long *) 0 ;
12936 long *arg4 = (long *) 0 ;
12937 void *argp1 = 0 ;
12938 int res1 = 0 ;
12939 long val2 ;
12940 int ecode2 = 0 ;
12941 long temp3 ;
12942 int res3 = SWIG_TMPOBJ ;
12943 long temp4 ;
12944 int res4 = SWIG_TMPOBJ ;
12945 PyObject * obj0 = 0 ;
12946 PyObject * obj1 = 0 ;
12947 char * kwnames[] = {
12948 (char *) "self",(char *) "pos", NULL
12949 };
12950
12951 arg3 = &temp3;
12952 arg4 = &temp4;
12953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
12954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12955 if (!SWIG_IsOK(res1)) {
12956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12957 }
12958 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12959 ecode2 = SWIG_AsVal_long(obj1, &val2);
12960 if (!SWIG_IsOK(ecode2)) {
12961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
12962 }
12963 arg2 = static_cast< long >(val2);
12964 {
12965 PyThreadState* __tstate = wxPyBeginAllowThreads();
12966 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
12967 wxPyEndAllowThreads(__tstate);
12968 if (PyErr_Occurred()) SWIG_fail;
12969 }
12970 resultobj = SWIG_Py_Void();
12971 if (SWIG_IsTmpObj(res3)) {
12972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12973 } else {
12974 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12976 }
12977 if (SWIG_IsTmpObj(res4)) {
12978 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
12979 } else {
12980 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12981 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
12982 }
12983 return resultobj;
12984 fail:
12985 return NULL;
12986 }
12987
12988
12989 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12990 PyObject *resultobj = 0;
12991 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12992 long arg2 ;
12993 void *argp1 = 0 ;
12994 int res1 = 0 ;
12995 long val2 ;
12996 int ecode2 = 0 ;
12997 PyObject * obj0 = 0 ;
12998 PyObject * obj1 = 0 ;
12999 char * kwnames[] = {
13000 (char *) "self",(char *) "pos", NULL
13001 };
13002
13003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13005 if (!SWIG_IsOK(res1)) {
13006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13007 }
13008 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13009 ecode2 = SWIG_AsVal_long(obj1, &val2);
13010 if (!SWIG_IsOK(ecode2)) {
13011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13012 }
13013 arg2 = static_cast< long >(val2);
13014 {
13015 PyThreadState* __tstate = wxPyBeginAllowThreads();
13016 (arg1)->ShowPosition(arg2);
13017 wxPyEndAllowThreads(__tstate);
13018 if (PyErr_Occurred()) SWIG_fail;
13019 }
13020 resultobj = SWIG_Py_Void();
13021 return resultobj;
13022 fail:
13023 return NULL;
13024 }
13025
13026
13027 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13028 PyObject *resultobj = 0;
13029 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13030 wxPoint *arg2 = 0 ;
13031 long *arg3 = (long *) 0 ;
13032 long *arg4 = (long *) 0 ;
13033 wxTextCtrlHitTestResult result;
13034 void *argp1 = 0 ;
13035 int res1 = 0 ;
13036 wxPoint temp2 ;
13037 long temp3 ;
13038 int res3 = SWIG_TMPOBJ ;
13039 long temp4 ;
13040 int res4 = SWIG_TMPOBJ ;
13041 PyObject * obj0 = 0 ;
13042 PyObject * obj1 = 0 ;
13043 char * kwnames[] = {
13044 (char *) "self",(char *) "pt", NULL
13045 };
13046
13047 arg3 = &temp3;
13048 arg4 = &temp4;
13049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13051 if (!SWIG_IsOK(res1)) {
13052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13053 }
13054 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13055 {
13056 arg2 = &temp2;
13057 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13058 }
13059 {
13060 PyThreadState* __tstate = wxPyBeginAllowThreads();
13061 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13062 wxPyEndAllowThreads(__tstate);
13063 if (PyErr_Occurred()) SWIG_fail;
13064 }
13065 resultobj = SWIG_From_int(static_cast< int >(result));
13066 if (SWIG_IsTmpObj(res3)) {
13067 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13068 } else {
13069 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13070 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13071 }
13072 if (SWIG_IsTmpObj(res4)) {
13073 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13074 } else {
13075 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13076 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13077 }
13078 return resultobj;
13079 fail:
13080 return NULL;
13081 }
13082
13083
13084 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13085 PyObject *resultobj = 0;
13086 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13087 wxPoint *arg2 = 0 ;
13088 long *arg3 = (long *) 0 ;
13089 wxTextCtrlHitTestResult result;
13090 void *argp1 = 0 ;
13091 int res1 = 0 ;
13092 wxPoint temp2 ;
13093 long temp3 ;
13094 int res3 = SWIG_TMPOBJ ;
13095 PyObject * obj0 = 0 ;
13096 PyObject * obj1 = 0 ;
13097 char * kwnames[] = {
13098 (char *) "self",(char *) "pt", NULL
13099 };
13100
13101 arg3 = &temp3;
13102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13104 if (!SWIG_IsOK(res1)) {
13105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13106 }
13107 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13108 {
13109 arg2 = &temp2;
13110 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13111 }
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13115 wxPyEndAllowThreads(__tstate);
13116 if (PyErr_Occurred()) SWIG_fail;
13117 }
13118 resultobj = SWIG_From_int(static_cast< int >(result));
13119 if (SWIG_IsTmpObj(res3)) {
13120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13121 } else {
13122 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13124 }
13125 return resultobj;
13126 fail:
13127 return NULL;
13128 }
13129
13130
13131 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13132 PyObject *resultobj = 0;
13133 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13134 void *argp1 = 0 ;
13135 int res1 = 0 ;
13136 PyObject *swig_obj[1] ;
13137
13138 if (!args) SWIG_fail;
13139 swig_obj[0] = args;
13140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13141 if (!SWIG_IsOK(res1)) {
13142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13143 }
13144 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13145 {
13146 PyThreadState* __tstate = wxPyBeginAllowThreads();
13147 (arg1)->Copy();
13148 wxPyEndAllowThreads(__tstate);
13149 if (PyErr_Occurred()) SWIG_fail;
13150 }
13151 resultobj = SWIG_Py_Void();
13152 return resultobj;
13153 fail:
13154 return NULL;
13155 }
13156
13157
13158 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13159 PyObject *resultobj = 0;
13160 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13161 void *argp1 = 0 ;
13162 int res1 = 0 ;
13163 PyObject *swig_obj[1] ;
13164
13165 if (!args) SWIG_fail;
13166 swig_obj[0] = args;
13167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13168 if (!SWIG_IsOK(res1)) {
13169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13170 }
13171 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13172 {
13173 PyThreadState* __tstate = wxPyBeginAllowThreads();
13174 (arg1)->Cut();
13175 wxPyEndAllowThreads(__tstate);
13176 if (PyErr_Occurred()) SWIG_fail;
13177 }
13178 resultobj = SWIG_Py_Void();
13179 return resultobj;
13180 fail:
13181 return NULL;
13182 }
13183
13184
13185 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13186 PyObject *resultobj = 0;
13187 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13188 void *argp1 = 0 ;
13189 int res1 = 0 ;
13190 PyObject *swig_obj[1] ;
13191
13192 if (!args) SWIG_fail;
13193 swig_obj[0] = args;
13194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13195 if (!SWIG_IsOK(res1)) {
13196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13197 }
13198 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13199 {
13200 PyThreadState* __tstate = wxPyBeginAllowThreads();
13201 (arg1)->Paste();
13202 wxPyEndAllowThreads(__tstate);
13203 if (PyErr_Occurred()) SWIG_fail;
13204 }
13205 resultobj = SWIG_Py_Void();
13206 return resultobj;
13207 fail:
13208 return NULL;
13209 }
13210
13211
13212 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13213 PyObject *resultobj = 0;
13214 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13215 bool result;
13216 void *argp1 = 0 ;
13217 int res1 = 0 ;
13218 PyObject *swig_obj[1] ;
13219
13220 if (!args) SWIG_fail;
13221 swig_obj[0] = args;
13222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13223 if (!SWIG_IsOK(res1)) {
13224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13225 }
13226 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13227 {
13228 PyThreadState* __tstate = wxPyBeginAllowThreads();
13229 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13230 wxPyEndAllowThreads(__tstate);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 }
13233 {
13234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13235 }
13236 return resultobj;
13237 fail:
13238 return NULL;
13239 }
13240
13241
13242 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13243 PyObject *resultobj = 0;
13244 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13245 bool result;
13246 void *argp1 = 0 ;
13247 int res1 = 0 ;
13248 PyObject *swig_obj[1] ;
13249
13250 if (!args) SWIG_fail;
13251 swig_obj[0] = args;
13252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13253 if (!SWIG_IsOK(res1)) {
13254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13255 }
13256 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13257 {
13258 PyThreadState* __tstate = wxPyBeginAllowThreads();
13259 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13260 wxPyEndAllowThreads(__tstate);
13261 if (PyErr_Occurred()) SWIG_fail;
13262 }
13263 {
13264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13265 }
13266 return resultobj;
13267 fail:
13268 return NULL;
13269 }
13270
13271
13272 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13273 PyObject *resultobj = 0;
13274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13275 bool result;
13276 void *argp1 = 0 ;
13277 int res1 = 0 ;
13278 PyObject *swig_obj[1] ;
13279
13280 if (!args) SWIG_fail;
13281 swig_obj[0] = args;
13282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13283 if (!SWIG_IsOK(res1)) {
13284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13285 }
13286 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13287 {
13288 PyThreadState* __tstate = wxPyBeginAllowThreads();
13289 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13290 wxPyEndAllowThreads(__tstate);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 {
13294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13295 }
13296 return resultobj;
13297 fail:
13298 return NULL;
13299 }
13300
13301
13302 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13303 PyObject *resultobj = 0;
13304 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13305 void *argp1 = 0 ;
13306 int res1 = 0 ;
13307 PyObject *swig_obj[1] ;
13308
13309 if (!args) SWIG_fail;
13310 swig_obj[0] = args;
13311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13312 if (!SWIG_IsOK(res1)) {
13313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13314 }
13315 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13316 {
13317 PyThreadState* __tstate = wxPyBeginAllowThreads();
13318 (arg1)->Undo();
13319 wxPyEndAllowThreads(__tstate);
13320 if (PyErr_Occurred()) SWIG_fail;
13321 }
13322 resultobj = SWIG_Py_Void();
13323 return resultobj;
13324 fail:
13325 return NULL;
13326 }
13327
13328
13329 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13330 PyObject *resultobj = 0;
13331 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13332 void *argp1 = 0 ;
13333 int res1 = 0 ;
13334 PyObject *swig_obj[1] ;
13335
13336 if (!args) SWIG_fail;
13337 swig_obj[0] = args;
13338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13339 if (!SWIG_IsOK(res1)) {
13340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13341 }
13342 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13343 {
13344 PyThreadState* __tstate = wxPyBeginAllowThreads();
13345 (arg1)->Redo();
13346 wxPyEndAllowThreads(__tstate);
13347 if (PyErr_Occurred()) SWIG_fail;
13348 }
13349 resultobj = SWIG_Py_Void();
13350 return resultobj;
13351 fail:
13352 return NULL;
13353 }
13354
13355
13356 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13357 PyObject *resultobj = 0;
13358 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13359 bool result;
13360 void *argp1 = 0 ;
13361 int res1 = 0 ;
13362 PyObject *swig_obj[1] ;
13363
13364 if (!args) SWIG_fail;
13365 swig_obj[0] = args;
13366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13367 if (!SWIG_IsOK(res1)) {
13368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13369 }
13370 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 {
13378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13379 }
13380 return resultobj;
13381 fail:
13382 return NULL;
13383 }
13384
13385
13386 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13387 PyObject *resultobj = 0;
13388 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13389 bool result;
13390 void *argp1 = 0 ;
13391 int res1 = 0 ;
13392 PyObject *swig_obj[1] ;
13393
13394 if (!args) SWIG_fail;
13395 swig_obj[0] = args;
13396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13397 if (!SWIG_IsOK(res1)) {
13398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13399 }
13400 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13401 {
13402 PyThreadState* __tstate = wxPyBeginAllowThreads();
13403 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13404 wxPyEndAllowThreads(__tstate);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 }
13407 {
13408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13409 }
13410 return resultobj;
13411 fail:
13412 return NULL;
13413 }
13414
13415
13416 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13417 PyObject *resultobj = 0;
13418 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13419 long arg2 ;
13420 void *argp1 = 0 ;
13421 int res1 = 0 ;
13422 long val2 ;
13423 int ecode2 = 0 ;
13424 PyObject * obj0 = 0 ;
13425 PyObject * obj1 = 0 ;
13426 char * kwnames[] = {
13427 (char *) "self",(char *) "pos", NULL
13428 };
13429
13430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13432 if (!SWIG_IsOK(res1)) {
13433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13434 }
13435 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13436 ecode2 = SWIG_AsVal_long(obj1, &val2);
13437 if (!SWIG_IsOK(ecode2)) {
13438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13439 }
13440 arg2 = static_cast< long >(val2);
13441 {
13442 PyThreadState* __tstate = wxPyBeginAllowThreads();
13443 (arg1)->SetInsertionPoint(arg2);
13444 wxPyEndAllowThreads(__tstate);
13445 if (PyErr_Occurred()) SWIG_fail;
13446 }
13447 resultobj = SWIG_Py_Void();
13448 return resultobj;
13449 fail:
13450 return NULL;
13451 }
13452
13453
13454 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13455 PyObject *resultobj = 0;
13456 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13457 void *argp1 = 0 ;
13458 int res1 = 0 ;
13459 PyObject *swig_obj[1] ;
13460
13461 if (!args) SWIG_fail;
13462 swig_obj[0] = args;
13463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13464 if (!SWIG_IsOK(res1)) {
13465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13466 }
13467 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13468 {
13469 PyThreadState* __tstate = wxPyBeginAllowThreads();
13470 (arg1)->SetInsertionPointEnd();
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
13474 resultobj = SWIG_Py_Void();
13475 return resultobj;
13476 fail:
13477 return NULL;
13478 }
13479
13480
13481 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13482 PyObject *resultobj = 0;
13483 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13484 long result;
13485 void *argp1 = 0 ;
13486 int res1 = 0 ;
13487 PyObject *swig_obj[1] ;
13488
13489 if (!args) SWIG_fail;
13490 swig_obj[0] = args;
13491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13492 if (!SWIG_IsOK(res1)) {
13493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13494 }
13495 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13496 {
13497 PyThreadState* __tstate = wxPyBeginAllowThreads();
13498 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13499 wxPyEndAllowThreads(__tstate);
13500 if (PyErr_Occurred()) SWIG_fail;
13501 }
13502 resultobj = SWIG_From_long(static_cast< long >(result));
13503 return resultobj;
13504 fail:
13505 return NULL;
13506 }
13507
13508
13509 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13510 PyObject *resultobj = 0;
13511 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13512 long result;
13513 void *argp1 = 0 ;
13514 int res1 = 0 ;
13515 PyObject *swig_obj[1] ;
13516
13517 if (!args) SWIG_fail;
13518 swig_obj[0] = args;
13519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13520 if (!SWIG_IsOK(res1)) {
13521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13522 }
13523 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13524 {
13525 PyThreadState* __tstate = wxPyBeginAllowThreads();
13526 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13527 wxPyEndAllowThreads(__tstate);
13528 if (PyErr_Occurred()) SWIG_fail;
13529 }
13530 resultobj = SWIG_From_long(static_cast< long >(result));
13531 return resultobj;
13532 fail:
13533 return NULL;
13534 }
13535
13536
13537 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13538 PyObject *resultobj = 0;
13539 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13540 long arg2 ;
13541 long arg3 ;
13542 void *argp1 = 0 ;
13543 int res1 = 0 ;
13544 long val2 ;
13545 int ecode2 = 0 ;
13546 long val3 ;
13547 int ecode3 = 0 ;
13548 PyObject * obj0 = 0 ;
13549 PyObject * obj1 = 0 ;
13550 PyObject * obj2 = 0 ;
13551 char * kwnames[] = {
13552 (char *) "self",(char *) "_from",(char *) "to", NULL
13553 };
13554
13555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13557 if (!SWIG_IsOK(res1)) {
13558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13559 }
13560 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13561 ecode2 = SWIG_AsVal_long(obj1, &val2);
13562 if (!SWIG_IsOK(ecode2)) {
13563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13564 }
13565 arg2 = static_cast< long >(val2);
13566 ecode3 = SWIG_AsVal_long(obj2, &val3);
13567 if (!SWIG_IsOK(ecode3)) {
13568 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13569 }
13570 arg3 = static_cast< long >(val3);
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 (arg1)->SetSelection(arg2,arg3);
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_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13585 PyObject *resultobj = 0;
13586 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13587 void *argp1 = 0 ;
13588 int res1 = 0 ;
13589 PyObject *swig_obj[1] ;
13590
13591 if (!args) SWIG_fail;
13592 swig_obj[0] = args;
13593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13594 if (!SWIG_IsOK(res1)) {
13595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13596 }
13597 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13598 {
13599 PyThreadState* __tstate = wxPyBeginAllowThreads();
13600 (arg1)->SelectAll();
13601 wxPyEndAllowThreads(__tstate);
13602 if (PyErr_Occurred()) SWIG_fail;
13603 }
13604 resultobj = SWIG_Py_Void();
13605 return resultobj;
13606 fail:
13607 return NULL;
13608 }
13609
13610
13611 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13612 PyObject *resultobj = 0;
13613 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13614 bool arg2 ;
13615 void *argp1 = 0 ;
13616 int res1 = 0 ;
13617 bool val2 ;
13618 int ecode2 = 0 ;
13619 PyObject * obj0 = 0 ;
13620 PyObject * obj1 = 0 ;
13621 char * kwnames[] = {
13622 (char *) "self",(char *) "editable", NULL
13623 };
13624
13625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13627 if (!SWIG_IsOK(res1)) {
13628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13629 }
13630 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13631 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13632 if (!SWIG_IsOK(ecode2)) {
13633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13634 }
13635 arg2 = static_cast< bool >(val2);
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 (arg1)->SetEditable(arg2);
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 resultobj = SWIG_Py_Void();
13643 return resultobj;
13644 fail:
13645 return NULL;
13646 }
13647
13648
13649 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13650 PyObject *resultobj = 0;
13651 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13652 bool arg2 = (bool) true ;
13653 bool result;
13654 void *argp1 = 0 ;
13655 int res1 = 0 ;
13656 bool val2 ;
13657 int ecode2 = 0 ;
13658 PyObject * obj0 = 0 ;
13659 PyObject * obj1 = 0 ;
13660 char * kwnames[] = {
13661 (char *) "self",(char *) "show", NULL
13662 };
13663
13664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13666 if (!SWIG_IsOK(res1)) {
13667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13668 }
13669 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13670 if (obj1) {
13671 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13672 if (!SWIG_IsOK(ecode2)) {
13673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13674 }
13675 arg2 = static_cast< bool >(val2);
13676 }
13677 {
13678 PyThreadState* __tstate = wxPyBeginAllowThreads();
13679 result = (bool)(arg1)->ShowNativeCaret(arg2);
13680 wxPyEndAllowThreads(__tstate);
13681 if (PyErr_Occurred()) SWIG_fail;
13682 }
13683 {
13684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13685 }
13686 return resultobj;
13687 fail:
13688 return NULL;
13689 }
13690
13691
13692 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13693 PyObject *resultobj = 0;
13694 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13695 bool result;
13696 void *argp1 = 0 ;
13697 int res1 = 0 ;
13698 PyObject *swig_obj[1] ;
13699
13700 if (!args) SWIG_fail;
13701 swig_obj[0] = args;
13702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13703 if (!SWIG_IsOK(res1)) {
13704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13705 }
13706 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13707 {
13708 PyThreadState* __tstate = wxPyBeginAllowThreads();
13709 result = (bool)(arg1)->HideNativeCaret();
13710 wxPyEndAllowThreads(__tstate);
13711 if (PyErr_Occurred()) SWIG_fail;
13712 }
13713 {
13714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13715 }
13716 return resultobj;
13717 fail:
13718 return NULL;
13719 }
13720
13721
13722 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13723 PyObject *resultobj = 0;
13724 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13725 wxString *arg2 = 0 ;
13726 void *argp1 = 0 ;
13727 int res1 = 0 ;
13728 bool temp2 = false ;
13729 PyObject * obj0 = 0 ;
13730 PyObject * obj1 = 0 ;
13731 char * kwnames[] = {
13732 (char *) "self",(char *) "text", NULL
13733 };
13734
13735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13737 if (!SWIG_IsOK(res1)) {
13738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13739 }
13740 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13741 {
13742 arg2 = wxString_in_helper(obj1);
13743 if (arg2 == NULL) SWIG_fail;
13744 temp2 = true;
13745 }
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
13752 resultobj = SWIG_Py_Void();
13753 {
13754 if (temp2)
13755 delete arg2;
13756 }
13757 return resultobj;
13758 fail:
13759 {
13760 if (temp2)
13761 delete arg2;
13762 }
13763 return NULL;
13764 }
13765
13766
13767 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13768 PyObject *resultobj = 0;
13769 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13770 long arg2 ;
13771 long arg3 ;
13772 wxString result;
13773 void *argp1 = 0 ;
13774 int res1 = 0 ;
13775 long val2 ;
13776 int ecode2 = 0 ;
13777 long val3 ;
13778 int ecode3 = 0 ;
13779 PyObject * obj0 = 0 ;
13780 PyObject * obj1 = 0 ;
13781 PyObject * obj2 = 0 ;
13782 char * kwnames[] = {
13783 (char *) "self",(char *) "_from",(char *) "to", NULL
13784 };
13785
13786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13788 if (!SWIG_IsOK(res1)) {
13789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13790 }
13791 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13792 ecode2 = SWIG_AsVal_long(obj1, &val2);
13793 if (!SWIG_IsOK(ecode2)) {
13794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13795 }
13796 arg2 = static_cast< long >(val2);
13797 ecode3 = SWIG_AsVal_long(obj2, &val3);
13798 if (!SWIG_IsOK(ecode3)) {
13799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13800 }
13801 arg3 = static_cast< long >(val3);
13802 {
13803 PyThreadState* __tstate = wxPyBeginAllowThreads();
13804 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13805 wxPyEndAllowThreads(__tstate);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 }
13808 {
13809 #if wxUSE_UNICODE
13810 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13811 #else
13812 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13813 #endif
13814 }
13815 return resultobj;
13816 fail:
13817 return NULL;
13818 }
13819
13820
13821 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13822 PyObject *resultobj = 0;
13823 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13824 SwigValueWrapper<wxVisualAttributes > result;
13825 int val1 ;
13826 int ecode1 = 0 ;
13827 PyObject * obj0 = 0 ;
13828 char * kwnames[] = {
13829 (char *) "variant", NULL
13830 };
13831
13832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13833 if (obj0) {
13834 ecode1 = SWIG_AsVal_int(obj0, &val1);
13835 if (!SWIG_IsOK(ecode1)) {
13836 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13837 }
13838 arg1 = static_cast< wxWindowVariant >(val1);
13839 }
13840 {
13841 if (!wxPyCheckForApp()) SWIG_fail;
13842 PyThreadState* __tstate = wxPyBeginAllowThreads();
13843 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13844 wxPyEndAllowThreads(__tstate);
13845 if (PyErr_Occurred()) SWIG_fail;
13846 }
13847 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13848 return resultobj;
13849 fail:
13850 return NULL;
13851 }
13852
13853
13854 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13855 PyObject *obj;
13856 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13857 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13858 return SWIG_Py_Void();
13859 }
13860
13861 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13862 return SWIG_Python_InitShadowInstance(args);
13863 }
13864
13865 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13866 PyObject *resultobj = 0;
13867 int arg1 ;
13868 wxMouseEvent *arg2 = 0 ;
13869 long arg3 ;
13870 long arg4 ;
13871 wxTextUrlEvent *result = 0 ;
13872 int val1 ;
13873 int ecode1 = 0 ;
13874 void *argp2 = 0 ;
13875 int res2 = 0 ;
13876 long val3 ;
13877 int ecode3 = 0 ;
13878 long val4 ;
13879 int ecode4 = 0 ;
13880 PyObject * obj0 = 0 ;
13881 PyObject * obj1 = 0 ;
13882 PyObject * obj2 = 0 ;
13883 PyObject * obj3 = 0 ;
13884 char * kwnames[] = {
13885 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13886 };
13887
13888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13889 ecode1 = SWIG_AsVal_int(obj0, &val1);
13890 if (!SWIG_IsOK(ecode1)) {
13891 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13892 }
13893 arg1 = static_cast< int >(val1);
13894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13895 if (!SWIG_IsOK(res2)) {
13896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13897 }
13898 if (!argp2) {
13899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13900 }
13901 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13902 ecode3 = SWIG_AsVal_long(obj2, &val3);
13903 if (!SWIG_IsOK(ecode3)) {
13904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13905 }
13906 arg3 = static_cast< long >(val3);
13907 ecode4 = SWIG_AsVal_long(obj3, &val4);
13908 if (!SWIG_IsOK(ecode4)) {
13909 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13910 }
13911 arg4 = static_cast< long >(val4);
13912 {
13913 PyThreadState* __tstate = wxPyBeginAllowThreads();
13914 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13915 wxPyEndAllowThreads(__tstate);
13916 if (PyErr_Occurred()) SWIG_fail;
13917 }
13918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13919 return resultobj;
13920 fail:
13921 return NULL;
13922 }
13923
13924
13925 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13926 PyObject *resultobj = 0;
13927 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13928 wxMouseEvent *result = 0 ;
13929 void *argp1 = 0 ;
13930 int res1 = 0 ;
13931 PyObject *swig_obj[1] ;
13932
13933 if (!args) SWIG_fail;
13934 swig_obj[0] = args;
13935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13936 if (!SWIG_IsOK(res1)) {
13937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13938 }
13939 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13940 {
13941 PyThreadState* __tstate = wxPyBeginAllowThreads();
13942 {
13943 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13944 result = (wxMouseEvent *) &_result_ref;
13945 }
13946 wxPyEndAllowThreads(__tstate);
13947 if (PyErr_Occurred()) SWIG_fail;
13948 }
13949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13950 return resultobj;
13951 fail:
13952 return NULL;
13953 }
13954
13955
13956 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13957 PyObject *resultobj = 0;
13958 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13959 long result;
13960 void *argp1 = 0 ;
13961 int res1 = 0 ;
13962 PyObject *swig_obj[1] ;
13963
13964 if (!args) SWIG_fail;
13965 swig_obj[0] = args;
13966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13967 if (!SWIG_IsOK(res1)) {
13968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13969 }
13970 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13971 {
13972 PyThreadState* __tstate = wxPyBeginAllowThreads();
13973 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13974 wxPyEndAllowThreads(__tstate);
13975 if (PyErr_Occurred()) SWIG_fail;
13976 }
13977 resultobj = SWIG_From_long(static_cast< long >(result));
13978 return resultobj;
13979 fail:
13980 return NULL;
13981 }
13982
13983
13984 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13985 PyObject *resultobj = 0;
13986 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13987 long result;
13988 void *argp1 = 0 ;
13989 int res1 = 0 ;
13990 PyObject *swig_obj[1] ;
13991
13992 if (!args) SWIG_fail;
13993 swig_obj[0] = args;
13994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13995 if (!SWIG_IsOK(res1)) {
13996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13997 }
13998 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13999 {
14000 PyThreadState* __tstate = wxPyBeginAllowThreads();
14001 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14002 wxPyEndAllowThreads(__tstate);
14003 if (PyErr_Occurred()) SWIG_fail;
14004 }
14005 resultobj = SWIG_From_long(static_cast< long >(result));
14006 return resultobj;
14007 fail:
14008 return NULL;
14009 }
14010
14011
14012 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14013 PyObject *obj;
14014 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14015 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14016 return SWIG_Py_Void();
14017 }
14018
14019 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14020 return SWIG_Python_InitShadowInstance(args);
14021 }
14022
14023 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14024 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14025 return 1;
14026 }
14027
14028
14029 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14030 PyObject *pyobj = 0;
14031
14032 {
14033 #if wxUSE_UNICODE
14034 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14035 #else
14036 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14037 #endif
14038 }
14039 return pyobj;
14040 }
14041
14042
14043 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj = 0;
14045 wxWindow *arg1 = (wxWindow *) 0 ;
14046 int arg2 = (int) -1 ;
14047 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14048 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14049 wxSize const &arg4_defvalue = wxDefaultSize ;
14050 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14051 long arg5 = (long) wxSB_HORIZONTAL ;
14052 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14053 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14054 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14055 wxString *arg7 = (wxString *) &arg7_defvalue ;
14056 wxScrollBar *result = 0 ;
14057 void *argp1 = 0 ;
14058 int res1 = 0 ;
14059 int val2 ;
14060 int ecode2 = 0 ;
14061 wxPoint temp3 ;
14062 wxSize temp4 ;
14063 long val5 ;
14064 int ecode5 = 0 ;
14065 void *argp6 = 0 ;
14066 int res6 = 0 ;
14067 bool temp7 = false ;
14068 PyObject * obj0 = 0 ;
14069 PyObject * obj1 = 0 ;
14070 PyObject * obj2 = 0 ;
14071 PyObject * obj3 = 0 ;
14072 PyObject * obj4 = 0 ;
14073 PyObject * obj5 = 0 ;
14074 PyObject * obj6 = 0 ;
14075 char * kwnames[] = {
14076 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14077 };
14078
14079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14081 if (!SWIG_IsOK(res1)) {
14082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14083 }
14084 arg1 = reinterpret_cast< wxWindow * >(argp1);
14085 if (obj1) {
14086 ecode2 = SWIG_AsVal_int(obj1, &val2);
14087 if (!SWIG_IsOK(ecode2)) {
14088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14089 }
14090 arg2 = static_cast< int >(val2);
14091 }
14092 if (obj2) {
14093 {
14094 arg3 = &temp3;
14095 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14096 }
14097 }
14098 if (obj3) {
14099 {
14100 arg4 = &temp4;
14101 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14102 }
14103 }
14104 if (obj4) {
14105 ecode5 = SWIG_AsVal_long(obj4, &val5);
14106 if (!SWIG_IsOK(ecode5)) {
14107 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14108 }
14109 arg5 = static_cast< long >(val5);
14110 }
14111 if (obj5) {
14112 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14113 if (!SWIG_IsOK(res6)) {
14114 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14115 }
14116 if (!argp6) {
14117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14118 }
14119 arg6 = reinterpret_cast< wxValidator * >(argp6);
14120 }
14121 if (obj6) {
14122 {
14123 arg7 = wxString_in_helper(obj6);
14124 if (arg7 == NULL) SWIG_fail;
14125 temp7 = true;
14126 }
14127 }
14128 {
14129 if (!wxPyCheckForApp()) SWIG_fail;
14130 PyThreadState* __tstate = wxPyBeginAllowThreads();
14131 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14132 wxPyEndAllowThreads(__tstate);
14133 if (PyErr_Occurred()) SWIG_fail;
14134 }
14135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14136 {
14137 if (temp7)
14138 delete arg7;
14139 }
14140 return resultobj;
14141 fail:
14142 {
14143 if (temp7)
14144 delete arg7;
14145 }
14146 return NULL;
14147 }
14148
14149
14150 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14151 PyObject *resultobj = 0;
14152 wxScrollBar *result = 0 ;
14153
14154 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14155 {
14156 if (!wxPyCheckForApp()) SWIG_fail;
14157 PyThreadState* __tstate = wxPyBeginAllowThreads();
14158 result = (wxScrollBar *)new wxScrollBar();
14159 wxPyEndAllowThreads(__tstate);
14160 if (PyErr_Occurred()) SWIG_fail;
14161 }
14162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14163 return resultobj;
14164 fail:
14165 return NULL;
14166 }
14167
14168
14169 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14170 PyObject *resultobj = 0;
14171 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14172 wxWindow *arg2 = (wxWindow *) 0 ;
14173 int arg3 = (int) -1 ;
14174 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14175 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14176 wxSize const &arg5_defvalue = wxDefaultSize ;
14177 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14178 long arg6 = (long) wxSB_HORIZONTAL ;
14179 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14180 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14181 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14182 wxString *arg8 = (wxString *) &arg8_defvalue ;
14183 bool result;
14184 void *argp1 = 0 ;
14185 int res1 = 0 ;
14186 void *argp2 = 0 ;
14187 int res2 = 0 ;
14188 int val3 ;
14189 int ecode3 = 0 ;
14190 wxPoint temp4 ;
14191 wxSize temp5 ;
14192 long val6 ;
14193 int ecode6 = 0 ;
14194 void *argp7 = 0 ;
14195 int res7 = 0 ;
14196 bool temp8 = false ;
14197 PyObject * obj0 = 0 ;
14198 PyObject * obj1 = 0 ;
14199 PyObject * obj2 = 0 ;
14200 PyObject * obj3 = 0 ;
14201 PyObject * obj4 = 0 ;
14202 PyObject * obj5 = 0 ;
14203 PyObject * obj6 = 0 ;
14204 PyObject * obj7 = 0 ;
14205 char * kwnames[] = {
14206 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14207 };
14208
14209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14211 if (!SWIG_IsOK(res1)) {
14212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14213 }
14214 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14215 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14216 if (!SWIG_IsOK(res2)) {
14217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14218 }
14219 arg2 = reinterpret_cast< wxWindow * >(argp2);
14220 if (obj2) {
14221 ecode3 = SWIG_AsVal_int(obj2, &val3);
14222 if (!SWIG_IsOK(ecode3)) {
14223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14224 }
14225 arg3 = static_cast< int >(val3);
14226 }
14227 if (obj3) {
14228 {
14229 arg4 = &temp4;
14230 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14231 }
14232 }
14233 if (obj4) {
14234 {
14235 arg5 = &temp5;
14236 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14237 }
14238 }
14239 if (obj5) {
14240 ecode6 = SWIG_AsVal_long(obj5, &val6);
14241 if (!SWIG_IsOK(ecode6)) {
14242 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14243 }
14244 arg6 = static_cast< long >(val6);
14245 }
14246 if (obj6) {
14247 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14248 if (!SWIG_IsOK(res7)) {
14249 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14250 }
14251 if (!argp7) {
14252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14253 }
14254 arg7 = reinterpret_cast< wxValidator * >(argp7);
14255 }
14256 if (obj7) {
14257 {
14258 arg8 = wxString_in_helper(obj7);
14259 if (arg8 == NULL) SWIG_fail;
14260 temp8 = true;
14261 }
14262 }
14263 {
14264 PyThreadState* __tstate = wxPyBeginAllowThreads();
14265 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14266 wxPyEndAllowThreads(__tstate);
14267 if (PyErr_Occurred()) SWIG_fail;
14268 }
14269 {
14270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14271 }
14272 {
14273 if (temp8)
14274 delete arg8;
14275 }
14276 return resultobj;
14277 fail:
14278 {
14279 if (temp8)
14280 delete arg8;
14281 }
14282 return NULL;
14283 }
14284
14285
14286 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14287 PyObject *resultobj = 0;
14288 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14289 int result;
14290 void *argp1 = 0 ;
14291 int res1 = 0 ;
14292 PyObject *swig_obj[1] ;
14293
14294 if (!args) SWIG_fail;
14295 swig_obj[0] = args;
14296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14297 if (!SWIG_IsOK(res1)) {
14298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14299 }
14300 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14301 {
14302 PyThreadState* __tstate = wxPyBeginAllowThreads();
14303 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14304 wxPyEndAllowThreads(__tstate);
14305 if (PyErr_Occurred()) SWIG_fail;
14306 }
14307 resultobj = SWIG_From_int(static_cast< int >(result));
14308 return resultobj;
14309 fail:
14310 return NULL;
14311 }
14312
14313
14314 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14315 PyObject *resultobj = 0;
14316 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14317 int result;
14318 void *argp1 = 0 ;
14319 int res1 = 0 ;
14320 PyObject *swig_obj[1] ;
14321
14322 if (!args) SWIG_fail;
14323 swig_obj[0] = args;
14324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14325 if (!SWIG_IsOK(res1)) {
14326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14327 }
14328 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14329 {
14330 PyThreadState* __tstate = wxPyBeginAllowThreads();
14331 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14332 wxPyEndAllowThreads(__tstate);
14333 if (PyErr_Occurred()) SWIG_fail;
14334 }
14335 resultobj = SWIG_From_int(static_cast< int >(result));
14336 return resultobj;
14337 fail:
14338 return NULL;
14339 }
14340
14341
14342 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14343 PyObject *resultobj = 0;
14344 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14345 int result;
14346 void *argp1 = 0 ;
14347 int res1 = 0 ;
14348 PyObject *swig_obj[1] ;
14349
14350 if (!args) SWIG_fail;
14351 swig_obj[0] = args;
14352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14353 if (!SWIG_IsOK(res1)) {
14354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14355 }
14356 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14357 {
14358 PyThreadState* __tstate = wxPyBeginAllowThreads();
14359 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14360 wxPyEndAllowThreads(__tstate);
14361 if (PyErr_Occurred()) SWIG_fail;
14362 }
14363 resultobj = SWIG_From_int(static_cast< int >(result));
14364 return resultobj;
14365 fail:
14366 return NULL;
14367 }
14368
14369
14370 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14371 PyObject *resultobj = 0;
14372 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14373 int result;
14374 void *argp1 = 0 ;
14375 int res1 = 0 ;
14376 PyObject *swig_obj[1] ;
14377
14378 if (!args) SWIG_fail;
14379 swig_obj[0] = args;
14380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14381 if (!SWIG_IsOK(res1)) {
14382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14383 }
14384 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14385 {
14386 PyThreadState* __tstate = wxPyBeginAllowThreads();
14387 result = (int)((wxScrollBar const *)arg1)->GetRange();
14388 wxPyEndAllowThreads(__tstate);
14389 if (PyErr_Occurred()) SWIG_fail;
14390 }
14391 resultobj = SWIG_From_int(static_cast< int >(result));
14392 return resultobj;
14393 fail:
14394 return NULL;
14395 }
14396
14397
14398 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14399 PyObject *resultobj = 0;
14400 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14401 bool result;
14402 void *argp1 = 0 ;
14403 int res1 = 0 ;
14404 PyObject *swig_obj[1] ;
14405
14406 if (!args) SWIG_fail;
14407 swig_obj[0] = args;
14408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14409 if (!SWIG_IsOK(res1)) {
14410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14411 }
14412 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14413 {
14414 PyThreadState* __tstate = wxPyBeginAllowThreads();
14415 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14416 wxPyEndAllowThreads(__tstate);
14417 if (PyErr_Occurred()) SWIG_fail;
14418 }
14419 {
14420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14421 }
14422 return resultobj;
14423 fail:
14424 return NULL;
14425 }
14426
14427
14428 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14429 PyObject *resultobj = 0;
14430 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14431 int arg2 ;
14432 void *argp1 = 0 ;
14433 int res1 = 0 ;
14434 int val2 ;
14435 int ecode2 = 0 ;
14436 PyObject * obj0 = 0 ;
14437 PyObject * obj1 = 0 ;
14438 char * kwnames[] = {
14439 (char *) "self",(char *) "viewStart", NULL
14440 };
14441
14442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14444 if (!SWIG_IsOK(res1)) {
14445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14446 }
14447 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14448 ecode2 = SWIG_AsVal_int(obj1, &val2);
14449 if (!SWIG_IsOK(ecode2)) {
14450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14451 }
14452 arg2 = static_cast< int >(val2);
14453 {
14454 PyThreadState* __tstate = wxPyBeginAllowThreads();
14455 (arg1)->SetThumbPosition(arg2);
14456 wxPyEndAllowThreads(__tstate);
14457 if (PyErr_Occurred()) SWIG_fail;
14458 }
14459 resultobj = SWIG_Py_Void();
14460 return resultobj;
14461 fail:
14462 return NULL;
14463 }
14464
14465
14466 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14467 PyObject *resultobj = 0;
14468 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14469 SwigValueWrapper<wxVisualAttributes > result;
14470 int val1 ;
14471 int ecode1 = 0 ;
14472 PyObject * obj0 = 0 ;
14473 char * kwnames[] = {
14474 (char *) "variant", NULL
14475 };
14476
14477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14478 if (obj0) {
14479 ecode1 = SWIG_AsVal_int(obj0, &val1);
14480 if (!SWIG_IsOK(ecode1)) {
14481 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14482 }
14483 arg1 = static_cast< wxWindowVariant >(val1);
14484 }
14485 {
14486 if (!wxPyCheckForApp()) SWIG_fail;
14487 PyThreadState* __tstate = wxPyBeginAllowThreads();
14488 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14489 wxPyEndAllowThreads(__tstate);
14490 if (PyErr_Occurred()) SWIG_fail;
14491 }
14492 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14493 return resultobj;
14494 fail:
14495 return NULL;
14496 }
14497
14498
14499 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14500 PyObject *obj;
14501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14502 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14503 return SWIG_Py_Void();
14504 }
14505
14506 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14507 return SWIG_Python_InitShadowInstance(args);
14508 }
14509
14510 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14511 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14512 return 1;
14513 }
14514
14515
14516 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14517 PyObject *pyobj = 0;
14518
14519 {
14520 #if wxUSE_UNICODE
14521 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14522 #else
14523 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14524 #endif
14525 }
14526 return pyobj;
14527 }
14528
14529
14530 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14531 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14532 return 1;
14533 }
14534
14535
14536 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14537 PyObject *pyobj = 0;
14538
14539 {
14540 #if wxUSE_UNICODE
14541 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14542 #else
14543 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14544 #endif
14545 }
14546 return pyobj;
14547 }
14548
14549
14550 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14551 PyObject *resultobj = 0;
14552 wxWindow *arg1 = (wxWindow *) 0 ;
14553 int arg2 = (int) -1 ;
14554 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14555 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14556 wxSize const &arg4_defvalue = wxDefaultSize ;
14557 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14558 long arg5 = (long) wxSP_HORIZONTAL ;
14559 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14560 wxString *arg6 = (wxString *) &arg6_defvalue ;
14561 wxSpinButton *result = 0 ;
14562 void *argp1 = 0 ;
14563 int res1 = 0 ;
14564 int val2 ;
14565 int ecode2 = 0 ;
14566 wxPoint temp3 ;
14567 wxSize temp4 ;
14568 long val5 ;
14569 int ecode5 = 0 ;
14570 bool temp6 = false ;
14571 PyObject * obj0 = 0 ;
14572 PyObject * obj1 = 0 ;
14573 PyObject * obj2 = 0 ;
14574 PyObject * obj3 = 0 ;
14575 PyObject * obj4 = 0 ;
14576 PyObject * obj5 = 0 ;
14577 char * kwnames[] = {
14578 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14579 };
14580
14581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14583 if (!SWIG_IsOK(res1)) {
14584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14585 }
14586 arg1 = reinterpret_cast< wxWindow * >(argp1);
14587 if (obj1) {
14588 ecode2 = SWIG_AsVal_int(obj1, &val2);
14589 if (!SWIG_IsOK(ecode2)) {
14590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14591 }
14592 arg2 = static_cast< int >(val2);
14593 }
14594 if (obj2) {
14595 {
14596 arg3 = &temp3;
14597 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14598 }
14599 }
14600 if (obj3) {
14601 {
14602 arg4 = &temp4;
14603 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14604 }
14605 }
14606 if (obj4) {
14607 ecode5 = SWIG_AsVal_long(obj4, &val5);
14608 if (!SWIG_IsOK(ecode5)) {
14609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14610 }
14611 arg5 = static_cast< long >(val5);
14612 }
14613 if (obj5) {
14614 {
14615 arg6 = wxString_in_helper(obj5);
14616 if (arg6 == NULL) SWIG_fail;
14617 temp6 = true;
14618 }
14619 }
14620 {
14621 if (!wxPyCheckForApp()) SWIG_fail;
14622 PyThreadState* __tstate = wxPyBeginAllowThreads();
14623 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14624 wxPyEndAllowThreads(__tstate);
14625 if (PyErr_Occurred()) SWIG_fail;
14626 }
14627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14628 {
14629 if (temp6)
14630 delete arg6;
14631 }
14632 return resultobj;
14633 fail:
14634 {
14635 if (temp6)
14636 delete arg6;
14637 }
14638 return NULL;
14639 }
14640
14641
14642 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14643 PyObject *resultobj = 0;
14644 wxSpinButton *result = 0 ;
14645
14646 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14647 {
14648 if (!wxPyCheckForApp()) SWIG_fail;
14649 PyThreadState* __tstate = wxPyBeginAllowThreads();
14650 result = (wxSpinButton *)new wxSpinButton();
14651 wxPyEndAllowThreads(__tstate);
14652 if (PyErr_Occurred()) SWIG_fail;
14653 }
14654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14655 return resultobj;
14656 fail:
14657 return NULL;
14658 }
14659
14660
14661 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14662 PyObject *resultobj = 0;
14663 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14664 wxWindow *arg2 = (wxWindow *) 0 ;
14665 int arg3 = (int) -1 ;
14666 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14667 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14668 wxSize const &arg5_defvalue = wxDefaultSize ;
14669 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14670 long arg6 = (long) wxSP_HORIZONTAL ;
14671 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14672 wxString *arg7 = (wxString *) &arg7_defvalue ;
14673 bool result;
14674 void *argp1 = 0 ;
14675 int res1 = 0 ;
14676 void *argp2 = 0 ;
14677 int res2 = 0 ;
14678 int val3 ;
14679 int ecode3 = 0 ;
14680 wxPoint temp4 ;
14681 wxSize temp5 ;
14682 long val6 ;
14683 int ecode6 = 0 ;
14684 bool temp7 = false ;
14685 PyObject * obj0 = 0 ;
14686 PyObject * obj1 = 0 ;
14687 PyObject * obj2 = 0 ;
14688 PyObject * obj3 = 0 ;
14689 PyObject * obj4 = 0 ;
14690 PyObject * obj5 = 0 ;
14691 PyObject * obj6 = 0 ;
14692 char * kwnames[] = {
14693 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14694 };
14695
14696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14698 if (!SWIG_IsOK(res1)) {
14699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14700 }
14701 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14702 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14703 if (!SWIG_IsOK(res2)) {
14704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14705 }
14706 arg2 = reinterpret_cast< wxWindow * >(argp2);
14707 if (obj2) {
14708 ecode3 = SWIG_AsVal_int(obj2, &val3);
14709 if (!SWIG_IsOK(ecode3)) {
14710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14711 }
14712 arg3 = static_cast< int >(val3);
14713 }
14714 if (obj3) {
14715 {
14716 arg4 = &temp4;
14717 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14718 }
14719 }
14720 if (obj4) {
14721 {
14722 arg5 = &temp5;
14723 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14724 }
14725 }
14726 if (obj5) {
14727 ecode6 = SWIG_AsVal_long(obj5, &val6);
14728 if (!SWIG_IsOK(ecode6)) {
14729 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14730 }
14731 arg6 = static_cast< long >(val6);
14732 }
14733 if (obj6) {
14734 {
14735 arg7 = wxString_in_helper(obj6);
14736 if (arg7 == NULL) SWIG_fail;
14737 temp7 = true;
14738 }
14739 }
14740 {
14741 PyThreadState* __tstate = wxPyBeginAllowThreads();
14742 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14743 wxPyEndAllowThreads(__tstate);
14744 if (PyErr_Occurred()) SWIG_fail;
14745 }
14746 {
14747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14748 }
14749 {
14750 if (temp7)
14751 delete arg7;
14752 }
14753 return resultobj;
14754 fail:
14755 {
14756 if (temp7)
14757 delete arg7;
14758 }
14759 return NULL;
14760 }
14761
14762
14763 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14764 PyObject *resultobj = 0;
14765 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14766 int result;
14767 void *argp1 = 0 ;
14768 int res1 = 0 ;
14769 PyObject *swig_obj[1] ;
14770
14771 if (!args) SWIG_fail;
14772 swig_obj[0] = args;
14773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14774 if (!SWIG_IsOK(res1)) {
14775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14776 }
14777 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14778 {
14779 PyThreadState* __tstate = wxPyBeginAllowThreads();
14780 result = (int)((wxSpinButton const *)arg1)->GetValue();
14781 wxPyEndAllowThreads(__tstate);
14782 if (PyErr_Occurred()) SWIG_fail;
14783 }
14784 resultobj = SWIG_From_int(static_cast< int >(result));
14785 return resultobj;
14786 fail:
14787 return NULL;
14788 }
14789
14790
14791 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14792 PyObject *resultobj = 0;
14793 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14794 int result;
14795 void *argp1 = 0 ;
14796 int res1 = 0 ;
14797 PyObject *swig_obj[1] ;
14798
14799 if (!args) SWIG_fail;
14800 swig_obj[0] = args;
14801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14802 if (!SWIG_IsOK(res1)) {
14803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14804 }
14805 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14806 {
14807 PyThreadState* __tstate = wxPyBeginAllowThreads();
14808 result = (int)((wxSpinButton const *)arg1)->GetMin();
14809 wxPyEndAllowThreads(__tstate);
14810 if (PyErr_Occurred()) SWIG_fail;
14811 }
14812 resultobj = SWIG_From_int(static_cast< int >(result));
14813 return resultobj;
14814 fail:
14815 return NULL;
14816 }
14817
14818
14819 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14820 PyObject *resultobj = 0;
14821 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14822 int result;
14823 void *argp1 = 0 ;
14824 int res1 = 0 ;
14825 PyObject *swig_obj[1] ;
14826
14827 if (!args) SWIG_fail;
14828 swig_obj[0] = args;
14829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14830 if (!SWIG_IsOK(res1)) {
14831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14832 }
14833 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14834 {
14835 PyThreadState* __tstate = wxPyBeginAllowThreads();
14836 result = (int)((wxSpinButton const *)arg1)->GetMax();
14837 wxPyEndAllowThreads(__tstate);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 }
14840 resultobj = SWIG_From_int(static_cast< int >(result));
14841 return resultobj;
14842 fail:
14843 return NULL;
14844 }
14845
14846
14847 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14848 PyObject *resultobj = 0;
14849 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14850 int arg2 ;
14851 void *argp1 = 0 ;
14852 int res1 = 0 ;
14853 int val2 ;
14854 int ecode2 = 0 ;
14855 PyObject * obj0 = 0 ;
14856 PyObject * obj1 = 0 ;
14857 char * kwnames[] = {
14858 (char *) "self",(char *) "val", NULL
14859 };
14860
14861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14863 if (!SWIG_IsOK(res1)) {
14864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14865 }
14866 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14867 ecode2 = SWIG_AsVal_int(obj1, &val2);
14868 if (!SWIG_IsOK(ecode2)) {
14869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14870 }
14871 arg2 = static_cast< int >(val2);
14872 {
14873 PyThreadState* __tstate = wxPyBeginAllowThreads();
14874 (arg1)->SetValue(arg2);
14875 wxPyEndAllowThreads(__tstate);
14876 if (PyErr_Occurred()) SWIG_fail;
14877 }
14878 resultobj = SWIG_Py_Void();
14879 return resultobj;
14880 fail:
14881 return NULL;
14882 }
14883
14884
14885 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14886 PyObject *resultobj = 0;
14887 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14888 int arg2 ;
14889 void *argp1 = 0 ;
14890 int res1 = 0 ;
14891 int val2 ;
14892 int ecode2 = 0 ;
14893 PyObject * obj0 = 0 ;
14894 PyObject * obj1 = 0 ;
14895 char * kwnames[] = {
14896 (char *) "self",(char *) "minVal", NULL
14897 };
14898
14899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14901 if (!SWIG_IsOK(res1)) {
14902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14903 }
14904 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14905 ecode2 = SWIG_AsVal_int(obj1, &val2);
14906 if (!SWIG_IsOK(ecode2)) {
14907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14908 }
14909 arg2 = static_cast< int >(val2);
14910 {
14911 PyThreadState* __tstate = wxPyBeginAllowThreads();
14912 (arg1)->SetMin(arg2);
14913 wxPyEndAllowThreads(__tstate);
14914 if (PyErr_Occurred()) SWIG_fail;
14915 }
14916 resultobj = SWIG_Py_Void();
14917 return resultobj;
14918 fail:
14919 return NULL;
14920 }
14921
14922
14923 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14924 PyObject *resultobj = 0;
14925 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14926 int arg2 ;
14927 void *argp1 = 0 ;
14928 int res1 = 0 ;
14929 int val2 ;
14930 int ecode2 = 0 ;
14931 PyObject * obj0 = 0 ;
14932 PyObject * obj1 = 0 ;
14933 char * kwnames[] = {
14934 (char *) "self",(char *) "maxVal", NULL
14935 };
14936
14937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14939 if (!SWIG_IsOK(res1)) {
14940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14941 }
14942 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14943 ecode2 = SWIG_AsVal_int(obj1, &val2);
14944 if (!SWIG_IsOK(ecode2)) {
14945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14946 }
14947 arg2 = static_cast< int >(val2);
14948 {
14949 PyThreadState* __tstate = wxPyBeginAllowThreads();
14950 (arg1)->SetMax(arg2);
14951 wxPyEndAllowThreads(__tstate);
14952 if (PyErr_Occurred()) SWIG_fail;
14953 }
14954 resultobj = SWIG_Py_Void();
14955 return resultobj;
14956 fail:
14957 return NULL;
14958 }
14959
14960
14961 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14962 PyObject *resultobj = 0;
14963 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14964 int arg2 ;
14965 int arg3 ;
14966 void *argp1 = 0 ;
14967 int res1 = 0 ;
14968 int val2 ;
14969 int ecode2 = 0 ;
14970 int val3 ;
14971 int ecode3 = 0 ;
14972 PyObject * obj0 = 0 ;
14973 PyObject * obj1 = 0 ;
14974 PyObject * obj2 = 0 ;
14975 char * kwnames[] = {
14976 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14977 };
14978
14979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14981 if (!SWIG_IsOK(res1)) {
14982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14983 }
14984 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14985 ecode2 = SWIG_AsVal_int(obj1, &val2);
14986 if (!SWIG_IsOK(ecode2)) {
14987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14988 }
14989 arg2 = static_cast< int >(val2);
14990 ecode3 = SWIG_AsVal_int(obj2, &val3);
14991 if (!SWIG_IsOK(ecode3)) {
14992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14993 }
14994 arg3 = static_cast< int >(val3);
14995 {
14996 PyThreadState* __tstate = wxPyBeginAllowThreads();
14997 (arg1)->SetRange(arg2,arg3);
14998 wxPyEndAllowThreads(__tstate);
14999 if (PyErr_Occurred()) SWIG_fail;
15000 }
15001 resultobj = SWIG_Py_Void();
15002 return resultobj;
15003 fail:
15004 return NULL;
15005 }
15006
15007
15008 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15009 PyObject *resultobj = 0;
15010 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15011 bool result;
15012 void *argp1 = 0 ;
15013 int res1 = 0 ;
15014 PyObject *swig_obj[1] ;
15015
15016 if (!args) SWIG_fail;
15017 swig_obj[0] = args;
15018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15019 if (!SWIG_IsOK(res1)) {
15020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15021 }
15022 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15023 {
15024 PyThreadState* __tstate = wxPyBeginAllowThreads();
15025 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15026 wxPyEndAllowThreads(__tstate);
15027 if (PyErr_Occurred()) SWIG_fail;
15028 }
15029 {
15030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15031 }
15032 return resultobj;
15033 fail:
15034 return NULL;
15035 }
15036
15037
15038 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15039 PyObject *resultobj = 0;
15040 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15041 SwigValueWrapper<wxVisualAttributes > result;
15042 int val1 ;
15043 int ecode1 = 0 ;
15044 PyObject * obj0 = 0 ;
15045 char * kwnames[] = {
15046 (char *) "variant", NULL
15047 };
15048
15049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15050 if (obj0) {
15051 ecode1 = SWIG_AsVal_int(obj0, &val1);
15052 if (!SWIG_IsOK(ecode1)) {
15053 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15054 }
15055 arg1 = static_cast< wxWindowVariant >(val1);
15056 }
15057 {
15058 if (!wxPyCheckForApp()) SWIG_fail;
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15065 return resultobj;
15066 fail:
15067 return NULL;
15068 }
15069
15070
15071 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15072 PyObject *obj;
15073 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15074 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15075 return SWIG_Py_Void();
15076 }
15077
15078 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15079 return SWIG_Python_InitShadowInstance(args);
15080 }
15081
15082 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15083 PyObject *resultobj = 0;
15084 wxWindow *arg1 = (wxWindow *) 0 ;
15085 int arg2 = (int) -1 ;
15086 wxString const &arg3_defvalue = wxPyEmptyString ;
15087 wxString *arg3 = (wxString *) &arg3_defvalue ;
15088 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15089 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15090 wxSize const &arg5_defvalue = wxDefaultSize ;
15091 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15092 long arg6 = (long) wxSP_ARROW_KEYS ;
15093 int arg7 = (int) 0 ;
15094 int arg8 = (int) 100 ;
15095 int arg9 = (int) 0 ;
15096 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15097 wxString *arg10 = (wxString *) &arg10_defvalue ;
15098 wxSpinCtrl *result = 0 ;
15099 void *argp1 = 0 ;
15100 int res1 = 0 ;
15101 int val2 ;
15102 int ecode2 = 0 ;
15103 bool temp3 = false ;
15104 wxPoint temp4 ;
15105 wxSize temp5 ;
15106 long val6 ;
15107 int ecode6 = 0 ;
15108 int val7 ;
15109 int ecode7 = 0 ;
15110 int val8 ;
15111 int ecode8 = 0 ;
15112 int val9 ;
15113 int ecode9 = 0 ;
15114 bool temp10 = false ;
15115 PyObject * obj0 = 0 ;
15116 PyObject * obj1 = 0 ;
15117 PyObject * obj2 = 0 ;
15118 PyObject * obj3 = 0 ;
15119 PyObject * obj4 = 0 ;
15120 PyObject * obj5 = 0 ;
15121 PyObject * obj6 = 0 ;
15122 PyObject * obj7 = 0 ;
15123 PyObject * obj8 = 0 ;
15124 PyObject * obj9 = 0 ;
15125 char * kwnames[] = {
15126 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15127 };
15128
15129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15131 if (!SWIG_IsOK(res1)) {
15132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15133 }
15134 arg1 = reinterpret_cast< wxWindow * >(argp1);
15135 if (obj1) {
15136 ecode2 = SWIG_AsVal_int(obj1, &val2);
15137 if (!SWIG_IsOK(ecode2)) {
15138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15139 }
15140 arg2 = static_cast< int >(val2);
15141 }
15142 if (obj2) {
15143 {
15144 arg3 = wxString_in_helper(obj2);
15145 if (arg3 == NULL) SWIG_fail;
15146 temp3 = true;
15147 }
15148 }
15149 if (obj3) {
15150 {
15151 arg4 = &temp4;
15152 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15153 }
15154 }
15155 if (obj4) {
15156 {
15157 arg5 = &temp5;
15158 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15159 }
15160 }
15161 if (obj5) {
15162 ecode6 = SWIG_AsVal_long(obj5, &val6);
15163 if (!SWIG_IsOK(ecode6)) {
15164 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15165 }
15166 arg6 = static_cast< long >(val6);
15167 }
15168 if (obj6) {
15169 ecode7 = SWIG_AsVal_int(obj6, &val7);
15170 if (!SWIG_IsOK(ecode7)) {
15171 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15172 }
15173 arg7 = static_cast< int >(val7);
15174 }
15175 if (obj7) {
15176 ecode8 = SWIG_AsVal_int(obj7, &val8);
15177 if (!SWIG_IsOK(ecode8)) {
15178 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15179 }
15180 arg8 = static_cast< int >(val8);
15181 }
15182 if (obj8) {
15183 ecode9 = SWIG_AsVal_int(obj8, &val9);
15184 if (!SWIG_IsOK(ecode9)) {
15185 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15186 }
15187 arg9 = static_cast< int >(val9);
15188 }
15189 if (obj9) {
15190 {
15191 arg10 = wxString_in_helper(obj9);
15192 if (arg10 == NULL) SWIG_fail;
15193 temp10 = true;
15194 }
15195 }
15196 {
15197 if (!wxPyCheckForApp()) SWIG_fail;
15198 PyThreadState* __tstate = wxPyBeginAllowThreads();
15199 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15200 wxPyEndAllowThreads(__tstate);
15201 if (PyErr_Occurred()) SWIG_fail;
15202 }
15203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15204 {
15205 if (temp3)
15206 delete arg3;
15207 }
15208 {
15209 if (temp10)
15210 delete arg10;
15211 }
15212 return resultobj;
15213 fail:
15214 {
15215 if (temp3)
15216 delete arg3;
15217 }
15218 {
15219 if (temp10)
15220 delete arg10;
15221 }
15222 return NULL;
15223 }
15224
15225
15226 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15227 PyObject *resultobj = 0;
15228 wxSpinCtrl *result = 0 ;
15229
15230 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15231 {
15232 if (!wxPyCheckForApp()) SWIG_fail;
15233 PyThreadState* __tstate = wxPyBeginAllowThreads();
15234 result = (wxSpinCtrl *)new wxSpinCtrl();
15235 wxPyEndAllowThreads(__tstate);
15236 if (PyErr_Occurred()) SWIG_fail;
15237 }
15238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15239 return resultobj;
15240 fail:
15241 return NULL;
15242 }
15243
15244
15245 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15246 PyObject *resultobj = 0;
15247 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15248 wxWindow *arg2 = (wxWindow *) 0 ;
15249 int arg3 = (int) -1 ;
15250 wxString const &arg4_defvalue = wxPyEmptyString ;
15251 wxString *arg4 = (wxString *) &arg4_defvalue ;
15252 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15253 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15254 wxSize const &arg6_defvalue = wxDefaultSize ;
15255 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15256 long arg7 = (long) wxSP_ARROW_KEYS ;
15257 int arg8 = (int) 0 ;
15258 int arg9 = (int) 100 ;
15259 int arg10 = (int) 0 ;
15260 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15261 wxString *arg11 = (wxString *) &arg11_defvalue ;
15262 bool result;
15263 void *argp1 = 0 ;
15264 int res1 = 0 ;
15265 void *argp2 = 0 ;
15266 int res2 = 0 ;
15267 int val3 ;
15268 int ecode3 = 0 ;
15269 bool temp4 = false ;
15270 wxPoint temp5 ;
15271 wxSize temp6 ;
15272 long val7 ;
15273 int ecode7 = 0 ;
15274 int val8 ;
15275 int ecode8 = 0 ;
15276 int val9 ;
15277 int ecode9 = 0 ;
15278 int val10 ;
15279 int ecode10 = 0 ;
15280 bool temp11 = false ;
15281 PyObject * obj0 = 0 ;
15282 PyObject * obj1 = 0 ;
15283 PyObject * obj2 = 0 ;
15284 PyObject * obj3 = 0 ;
15285 PyObject * obj4 = 0 ;
15286 PyObject * obj5 = 0 ;
15287 PyObject * obj6 = 0 ;
15288 PyObject * obj7 = 0 ;
15289 PyObject * obj8 = 0 ;
15290 PyObject * obj9 = 0 ;
15291 PyObject * obj10 = 0 ;
15292 char * kwnames[] = {
15293 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15294 };
15295
15296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15298 if (!SWIG_IsOK(res1)) {
15299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15300 }
15301 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15302 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15303 if (!SWIG_IsOK(res2)) {
15304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15305 }
15306 arg2 = reinterpret_cast< wxWindow * >(argp2);
15307 if (obj2) {
15308 ecode3 = SWIG_AsVal_int(obj2, &val3);
15309 if (!SWIG_IsOK(ecode3)) {
15310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15311 }
15312 arg3 = static_cast< int >(val3);
15313 }
15314 if (obj3) {
15315 {
15316 arg4 = wxString_in_helper(obj3);
15317 if (arg4 == NULL) SWIG_fail;
15318 temp4 = true;
15319 }
15320 }
15321 if (obj4) {
15322 {
15323 arg5 = &temp5;
15324 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15325 }
15326 }
15327 if (obj5) {
15328 {
15329 arg6 = &temp6;
15330 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15331 }
15332 }
15333 if (obj6) {
15334 ecode7 = SWIG_AsVal_long(obj6, &val7);
15335 if (!SWIG_IsOK(ecode7)) {
15336 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15337 }
15338 arg7 = static_cast< long >(val7);
15339 }
15340 if (obj7) {
15341 ecode8 = SWIG_AsVal_int(obj7, &val8);
15342 if (!SWIG_IsOK(ecode8)) {
15343 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15344 }
15345 arg8 = static_cast< int >(val8);
15346 }
15347 if (obj8) {
15348 ecode9 = SWIG_AsVal_int(obj8, &val9);
15349 if (!SWIG_IsOK(ecode9)) {
15350 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15351 }
15352 arg9 = static_cast< int >(val9);
15353 }
15354 if (obj9) {
15355 ecode10 = SWIG_AsVal_int(obj9, &val10);
15356 if (!SWIG_IsOK(ecode10)) {
15357 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15358 }
15359 arg10 = static_cast< int >(val10);
15360 }
15361 if (obj10) {
15362 {
15363 arg11 = wxString_in_helper(obj10);
15364 if (arg11 == NULL) SWIG_fail;
15365 temp11 = true;
15366 }
15367 }
15368 {
15369 PyThreadState* __tstate = wxPyBeginAllowThreads();
15370 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15371 wxPyEndAllowThreads(__tstate);
15372 if (PyErr_Occurred()) SWIG_fail;
15373 }
15374 {
15375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15376 }
15377 {
15378 if (temp4)
15379 delete arg4;
15380 }
15381 {
15382 if (temp11)
15383 delete arg11;
15384 }
15385 return resultobj;
15386 fail:
15387 {
15388 if (temp4)
15389 delete arg4;
15390 }
15391 {
15392 if (temp11)
15393 delete arg11;
15394 }
15395 return NULL;
15396 }
15397
15398
15399 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15400 PyObject *resultobj = 0;
15401 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15402 int result;
15403 void *argp1 = 0 ;
15404 int res1 = 0 ;
15405 PyObject *swig_obj[1] ;
15406
15407 if (!args) SWIG_fail;
15408 swig_obj[0] = args;
15409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15410 if (!SWIG_IsOK(res1)) {
15411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15412 }
15413 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15414 {
15415 PyThreadState* __tstate = wxPyBeginAllowThreads();
15416 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15417 wxPyEndAllowThreads(__tstate);
15418 if (PyErr_Occurred()) SWIG_fail;
15419 }
15420 resultobj = SWIG_From_int(static_cast< int >(result));
15421 return resultobj;
15422 fail:
15423 return NULL;
15424 }
15425
15426
15427 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15428 PyObject *resultobj = 0;
15429 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15430 int arg2 ;
15431 void *argp1 = 0 ;
15432 int res1 = 0 ;
15433 int val2 ;
15434 int ecode2 = 0 ;
15435 PyObject * obj0 = 0 ;
15436 PyObject * obj1 = 0 ;
15437 char * kwnames[] = {
15438 (char *) "self",(char *) "value", NULL
15439 };
15440
15441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15443 if (!SWIG_IsOK(res1)) {
15444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15445 }
15446 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15447 ecode2 = SWIG_AsVal_int(obj1, &val2);
15448 if (!SWIG_IsOK(ecode2)) {
15449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15450 }
15451 arg2 = static_cast< int >(val2);
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 (arg1)->SetValue(arg2);
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_Py_Void();
15459 return resultobj;
15460 fail:
15461 return NULL;
15462 }
15463
15464
15465 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15466 PyObject *resultobj = 0;
15467 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15468 wxString *arg2 = 0 ;
15469 void *argp1 = 0 ;
15470 int res1 = 0 ;
15471 bool temp2 = false ;
15472 PyObject * obj0 = 0 ;
15473 PyObject * obj1 = 0 ;
15474 char * kwnames[] = {
15475 (char *) "self",(char *) "text", NULL
15476 };
15477
15478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15480 if (!SWIG_IsOK(res1)) {
15481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15482 }
15483 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15484 {
15485 arg2 = wxString_in_helper(obj1);
15486 if (arg2 == NULL) SWIG_fail;
15487 temp2 = true;
15488 }
15489 {
15490 PyThreadState* __tstate = wxPyBeginAllowThreads();
15491 (arg1)->SetValue((wxString const &)*arg2);
15492 wxPyEndAllowThreads(__tstate);
15493 if (PyErr_Occurred()) SWIG_fail;
15494 }
15495 resultobj = SWIG_Py_Void();
15496 {
15497 if (temp2)
15498 delete arg2;
15499 }
15500 return resultobj;
15501 fail:
15502 {
15503 if (temp2)
15504 delete arg2;
15505 }
15506 return NULL;
15507 }
15508
15509
15510 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15511 PyObject *resultobj = 0;
15512 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15513 int arg2 ;
15514 int arg3 ;
15515 void *argp1 = 0 ;
15516 int res1 = 0 ;
15517 int val2 ;
15518 int ecode2 = 0 ;
15519 int val3 ;
15520 int ecode3 = 0 ;
15521 PyObject * obj0 = 0 ;
15522 PyObject * obj1 = 0 ;
15523 PyObject * obj2 = 0 ;
15524 char * kwnames[] = {
15525 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15526 };
15527
15528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15530 if (!SWIG_IsOK(res1)) {
15531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15532 }
15533 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15534 ecode2 = SWIG_AsVal_int(obj1, &val2);
15535 if (!SWIG_IsOK(ecode2)) {
15536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15537 }
15538 arg2 = static_cast< int >(val2);
15539 ecode3 = SWIG_AsVal_int(obj2, &val3);
15540 if (!SWIG_IsOK(ecode3)) {
15541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15542 }
15543 arg3 = static_cast< int >(val3);
15544 {
15545 PyThreadState* __tstate = wxPyBeginAllowThreads();
15546 (arg1)->SetRange(arg2,arg3);
15547 wxPyEndAllowThreads(__tstate);
15548 if (PyErr_Occurred()) SWIG_fail;
15549 }
15550 resultobj = SWIG_Py_Void();
15551 return resultobj;
15552 fail:
15553 return NULL;
15554 }
15555
15556
15557 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15558 PyObject *resultobj = 0;
15559 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15560 int result;
15561 void *argp1 = 0 ;
15562 int res1 = 0 ;
15563 PyObject *swig_obj[1] ;
15564
15565 if (!args) SWIG_fail;
15566 swig_obj[0] = args;
15567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15568 if (!SWIG_IsOK(res1)) {
15569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15570 }
15571 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15572 {
15573 PyThreadState* __tstate = wxPyBeginAllowThreads();
15574 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15575 wxPyEndAllowThreads(__tstate);
15576 if (PyErr_Occurred()) SWIG_fail;
15577 }
15578 resultobj = SWIG_From_int(static_cast< int >(result));
15579 return resultobj;
15580 fail:
15581 return NULL;
15582 }
15583
15584
15585 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15586 PyObject *resultobj = 0;
15587 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15588 int result;
15589 void *argp1 = 0 ;
15590 int res1 = 0 ;
15591 PyObject *swig_obj[1] ;
15592
15593 if (!args) SWIG_fail;
15594 swig_obj[0] = args;
15595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15596 if (!SWIG_IsOK(res1)) {
15597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15598 }
15599 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15600 {
15601 PyThreadState* __tstate = wxPyBeginAllowThreads();
15602 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15603 wxPyEndAllowThreads(__tstate);
15604 if (PyErr_Occurred()) SWIG_fail;
15605 }
15606 resultobj = SWIG_From_int(static_cast< int >(result));
15607 return resultobj;
15608 fail:
15609 return NULL;
15610 }
15611
15612
15613 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15614 PyObject *resultobj = 0;
15615 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15616 long arg2 ;
15617 long arg3 ;
15618 void *argp1 = 0 ;
15619 int res1 = 0 ;
15620 long val2 ;
15621 int ecode2 = 0 ;
15622 long val3 ;
15623 int ecode3 = 0 ;
15624 PyObject * obj0 = 0 ;
15625 PyObject * obj1 = 0 ;
15626 PyObject * obj2 = 0 ;
15627 char * kwnames[] = {
15628 (char *) "self",(char *) "_from",(char *) "to", NULL
15629 };
15630
15631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15633 if (!SWIG_IsOK(res1)) {
15634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15635 }
15636 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15637 ecode2 = SWIG_AsVal_long(obj1, &val2);
15638 if (!SWIG_IsOK(ecode2)) {
15639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15640 }
15641 arg2 = static_cast< long >(val2);
15642 ecode3 = SWIG_AsVal_long(obj2, &val3);
15643 if (!SWIG_IsOK(ecode3)) {
15644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15645 }
15646 arg3 = static_cast< long >(val3);
15647 {
15648 PyThreadState* __tstate = wxPyBeginAllowThreads();
15649 (arg1)->SetSelection(arg2,arg3);
15650 wxPyEndAllowThreads(__tstate);
15651 if (PyErr_Occurred()) SWIG_fail;
15652 }
15653 resultobj = SWIG_Py_Void();
15654 return resultobj;
15655 fail:
15656 return NULL;
15657 }
15658
15659
15660 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15661 PyObject *resultobj = 0;
15662 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15663 SwigValueWrapper<wxVisualAttributes > result;
15664 int val1 ;
15665 int ecode1 = 0 ;
15666 PyObject * obj0 = 0 ;
15667 char * kwnames[] = {
15668 (char *) "variant", NULL
15669 };
15670
15671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15672 if (obj0) {
15673 ecode1 = SWIG_AsVal_int(obj0, &val1);
15674 if (!SWIG_IsOK(ecode1)) {
15675 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15676 }
15677 arg1 = static_cast< wxWindowVariant >(val1);
15678 }
15679 {
15680 if (!wxPyCheckForApp()) SWIG_fail;
15681 PyThreadState* __tstate = wxPyBeginAllowThreads();
15682 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15683 wxPyEndAllowThreads(__tstate);
15684 if (PyErr_Occurred()) SWIG_fail;
15685 }
15686 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15687 return resultobj;
15688 fail:
15689 return NULL;
15690 }
15691
15692
15693 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15694 PyObject *obj;
15695 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15696 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15697 return SWIG_Py_Void();
15698 }
15699
15700 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15701 return SWIG_Python_InitShadowInstance(args);
15702 }
15703
15704 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15705 PyObject *resultobj = 0;
15706 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15707 int arg2 = (int) 0 ;
15708 wxSpinEvent *result = 0 ;
15709 int val1 ;
15710 int ecode1 = 0 ;
15711 int val2 ;
15712 int ecode2 = 0 ;
15713 PyObject * obj0 = 0 ;
15714 PyObject * obj1 = 0 ;
15715 char * kwnames[] = {
15716 (char *) "commandType",(char *) "winid", NULL
15717 };
15718
15719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15720 if (obj0) {
15721 ecode1 = SWIG_AsVal_int(obj0, &val1);
15722 if (!SWIG_IsOK(ecode1)) {
15723 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15724 }
15725 arg1 = static_cast< wxEventType >(val1);
15726 }
15727 if (obj1) {
15728 ecode2 = SWIG_AsVal_int(obj1, &val2);
15729 if (!SWIG_IsOK(ecode2)) {
15730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15731 }
15732 arg2 = static_cast< int >(val2);
15733 }
15734 {
15735 PyThreadState* __tstate = wxPyBeginAllowThreads();
15736 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15737 wxPyEndAllowThreads(__tstate);
15738 if (PyErr_Occurred()) SWIG_fail;
15739 }
15740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15741 return resultobj;
15742 fail:
15743 return NULL;
15744 }
15745
15746
15747 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15748 PyObject *resultobj = 0;
15749 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15750 int result;
15751 void *argp1 = 0 ;
15752 int res1 = 0 ;
15753 PyObject *swig_obj[1] ;
15754
15755 if (!args) SWIG_fail;
15756 swig_obj[0] = args;
15757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15758 if (!SWIG_IsOK(res1)) {
15759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15760 }
15761 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15762 {
15763 PyThreadState* __tstate = wxPyBeginAllowThreads();
15764 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15765 wxPyEndAllowThreads(__tstate);
15766 if (PyErr_Occurred()) SWIG_fail;
15767 }
15768 resultobj = SWIG_From_int(static_cast< int >(result));
15769 return resultobj;
15770 fail:
15771 return NULL;
15772 }
15773
15774
15775 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15776 PyObject *resultobj = 0;
15777 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15778 int arg2 ;
15779 void *argp1 = 0 ;
15780 int res1 = 0 ;
15781 int val2 ;
15782 int ecode2 = 0 ;
15783 PyObject * obj0 = 0 ;
15784 PyObject * obj1 = 0 ;
15785 char * kwnames[] = {
15786 (char *) "self",(char *) "pos", NULL
15787 };
15788
15789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15791 if (!SWIG_IsOK(res1)) {
15792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15793 }
15794 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15795 ecode2 = SWIG_AsVal_int(obj1, &val2);
15796 if (!SWIG_IsOK(ecode2)) {
15797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15798 }
15799 arg2 = static_cast< int >(val2);
15800 {
15801 PyThreadState* __tstate = wxPyBeginAllowThreads();
15802 (arg1)->SetPosition(arg2);
15803 wxPyEndAllowThreads(__tstate);
15804 if (PyErr_Occurred()) SWIG_fail;
15805 }
15806 resultobj = SWIG_Py_Void();
15807 return resultobj;
15808 fail:
15809 return NULL;
15810 }
15811
15812
15813 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15814 PyObject *obj;
15815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15816 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15817 return SWIG_Py_Void();
15818 }
15819
15820 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15821 return SWIG_Python_InitShadowInstance(args);
15822 }
15823
15824 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15825 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15826 return 1;
15827 }
15828
15829
15830 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15831 PyObject *pyobj = 0;
15832
15833 {
15834 #if wxUSE_UNICODE
15835 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15836 #else
15837 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15838 #endif
15839 }
15840 return pyobj;
15841 }
15842
15843
15844 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15845 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15846 return 1;
15847 }
15848
15849
15850 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15851 PyObject *pyobj = 0;
15852
15853 {
15854 #if wxUSE_UNICODE
15855 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15856 #else
15857 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15858 #endif
15859 }
15860 return pyobj;
15861 }
15862
15863
15864 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15865 PyObject *resultobj = 0;
15866 wxWindow *arg1 = (wxWindow *) 0 ;
15867 int arg2 = (int) -1 ;
15868 wxString const &arg3_defvalue = wxPyEmptyString ;
15869 wxString *arg3 = (wxString *) &arg3_defvalue ;
15870 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15871 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15872 wxSize const &arg5_defvalue = wxDefaultSize ;
15873 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15874 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15875 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15876 int arg7 = (int) 0 ;
15877 long arg8 = (long) wxRA_HORIZONTAL ;
15878 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15879 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15880 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15881 wxString *arg10 = (wxString *) &arg10_defvalue ;
15882 wxRadioBox *result = 0 ;
15883 void *argp1 = 0 ;
15884 int res1 = 0 ;
15885 int val2 ;
15886 int ecode2 = 0 ;
15887 bool temp3 = false ;
15888 wxPoint temp4 ;
15889 wxSize temp5 ;
15890 bool temp6 = false ;
15891 int val7 ;
15892 int ecode7 = 0 ;
15893 long val8 ;
15894 int ecode8 = 0 ;
15895 void *argp9 = 0 ;
15896 int res9 = 0 ;
15897 bool temp10 = false ;
15898 PyObject * obj0 = 0 ;
15899 PyObject * obj1 = 0 ;
15900 PyObject * obj2 = 0 ;
15901 PyObject * obj3 = 0 ;
15902 PyObject * obj4 = 0 ;
15903 PyObject * obj5 = 0 ;
15904 PyObject * obj6 = 0 ;
15905 PyObject * obj7 = 0 ;
15906 PyObject * obj8 = 0 ;
15907 PyObject * obj9 = 0 ;
15908 char * kwnames[] = {
15909 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15910 };
15911
15912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15914 if (!SWIG_IsOK(res1)) {
15915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15916 }
15917 arg1 = reinterpret_cast< wxWindow * >(argp1);
15918 if (obj1) {
15919 ecode2 = SWIG_AsVal_int(obj1, &val2);
15920 if (!SWIG_IsOK(ecode2)) {
15921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15922 }
15923 arg2 = static_cast< int >(val2);
15924 }
15925 if (obj2) {
15926 {
15927 arg3 = wxString_in_helper(obj2);
15928 if (arg3 == NULL) SWIG_fail;
15929 temp3 = true;
15930 }
15931 }
15932 if (obj3) {
15933 {
15934 arg4 = &temp4;
15935 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15936 }
15937 }
15938 if (obj4) {
15939 {
15940 arg5 = &temp5;
15941 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15942 }
15943 }
15944 if (obj5) {
15945 {
15946 if (! PySequence_Check(obj5)) {
15947 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15948 SWIG_fail;
15949 }
15950 arg6 = new wxArrayString;
15951 temp6 = true;
15952 int i, len=PySequence_Length(obj5);
15953 for (i=0; i<len; i++) {
15954 PyObject* item = PySequence_GetItem(obj5, i);
15955 wxString* s = wxString_in_helper(item);
15956 if (PyErr_Occurred()) SWIG_fail;
15957 arg6->Add(*s);
15958 delete s;
15959 Py_DECREF(item);
15960 }
15961 }
15962 }
15963 if (obj6) {
15964 ecode7 = SWIG_AsVal_int(obj6, &val7);
15965 if (!SWIG_IsOK(ecode7)) {
15966 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15967 }
15968 arg7 = static_cast< int >(val7);
15969 }
15970 if (obj7) {
15971 ecode8 = SWIG_AsVal_long(obj7, &val8);
15972 if (!SWIG_IsOK(ecode8)) {
15973 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15974 }
15975 arg8 = static_cast< long >(val8);
15976 }
15977 if (obj8) {
15978 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15979 if (!SWIG_IsOK(res9)) {
15980 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15981 }
15982 if (!argp9) {
15983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15984 }
15985 arg9 = reinterpret_cast< wxValidator * >(argp9);
15986 }
15987 if (obj9) {
15988 {
15989 arg10 = wxString_in_helper(obj9);
15990 if (arg10 == NULL) SWIG_fail;
15991 temp10 = true;
15992 }
15993 }
15994 {
15995 if (!wxPyCheckForApp()) SWIG_fail;
15996 PyThreadState* __tstate = wxPyBeginAllowThreads();
15997 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);
15998 wxPyEndAllowThreads(__tstate);
15999 if (PyErr_Occurred()) SWIG_fail;
16000 }
16001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16002 {
16003 if (temp3)
16004 delete arg3;
16005 }
16006 {
16007 if (temp6) delete arg6;
16008 }
16009 {
16010 if (temp10)
16011 delete arg10;
16012 }
16013 return resultobj;
16014 fail:
16015 {
16016 if (temp3)
16017 delete arg3;
16018 }
16019 {
16020 if (temp6) delete arg6;
16021 }
16022 {
16023 if (temp10)
16024 delete arg10;
16025 }
16026 return NULL;
16027 }
16028
16029
16030 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16031 PyObject *resultobj = 0;
16032 wxRadioBox *result = 0 ;
16033
16034 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16035 {
16036 if (!wxPyCheckForApp()) SWIG_fail;
16037 PyThreadState* __tstate = wxPyBeginAllowThreads();
16038 result = (wxRadioBox *)new wxRadioBox();
16039 wxPyEndAllowThreads(__tstate);
16040 if (PyErr_Occurred()) SWIG_fail;
16041 }
16042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16043 return resultobj;
16044 fail:
16045 return NULL;
16046 }
16047
16048
16049 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16050 PyObject *resultobj = 0;
16051 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16052 wxWindow *arg2 = (wxWindow *) 0 ;
16053 int arg3 = (int) -1 ;
16054 wxString const &arg4_defvalue = wxPyEmptyString ;
16055 wxString *arg4 = (wxString *) &arg4_defvalue ;
16056 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16057 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16058 wxSize const &arg6_defvalue = wxDefaultSize ;
16059 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16060 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16061 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16062 int arg8 = (int) 0 ;
16063 long arg9 = (long) wxRA_HORIZONTAL ;
16064 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16065 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16066 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16067 wxString *arg11 = (wxString *) &arg11_defvalue ;
16068 bool result;
16069 void *argp1 = 0 ;
16070 int res1 = 0 ;
16071 void *argp2 = 0 ;
16072 int res2 = 0 ;
16073 int val3 ;
16074 int ecode3 = 0 ;
16075 bool temp4 = false ;
16076 wxPoint temp5 ;
16077 wxSize temp6 ;
16078 bool temp7 = false ;
16079 int val8 ;
16080 int ecode8 = 0 ;
16081 long val9 ;
16082 int ecode9 = 0 ;
16083 void *argp10 = 0 ;
16084 int res10 = 0 ;
16085 bool temp11 = false ;
16086 PyObject * obj0 = 0 ;
16087 PyObject * obj1 = 0 ;
16088 PyObject * obj2 = 0 ;
16089 PyObject * obj3 = 0 ;
16090 PyObject * obj4 = 0 ;
16091 PyObject * obj5 = 0 ;
16092 PyObject * obj6 = 0 ;
16093 PyObject * obj7 = 0 ;
16094 PyObject * obj8 = 0 ;
16095 PyObject * obj9 = 0 ;
16096 PyObject * obj10 = 0 ;
16097 char * kwnames[] = {
16098 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16099 };
16100
16101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16103 if (!SWIG_IsOK(res1)) {
16104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16105 }
16106 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16107 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16108 if (!SWIG_IsOK(res2)) {
16109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16110 }
16111 arg2 = reinterpret_cast< wxWindow * >(argp2);
16112 if (obj2) {
16113 ecode3 = SWIG_AsVal_int(obj2, &val3);
16114 if (!SWIG_IsOK(ecode3)) {
16115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16116 }
16117 arg3 = static_cast< int >(val3);
16118 }
16119 if (obj3) {
16120 {
16121 arg4 = wxString_in_helper(obj3);
16122 if (arg4 == NULL) SWIG_fail;
16123 temp4 = true;
16124 }
16125 }
16126 if (obj4) {
16127 {
16128 arg5 = &temp5;
16129 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16130 }
16131 }
16132 if (obj5) {
16133 {
16134 arg6 = &temp6;
16135 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16136 }
16137 }
16138 if (obj6) {
16139 {
16140 if (! PySequence_Check(obj6)) {
16141 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16142 SWIG_fail;
16143 }
16144 arg7 = new wxArrayString;
16145 temp7 = true;
16146 int i, len=PySequence_Length(obj6);
16147 for (i=0; i<len; i++) {
16148 PyObject* item = PySequence_GetItem(obj6, i);
16149 wxString* s = wxString_in_helper(item);
16150 if (PyErr_Occurred()) SWIG_fail;
16151 arg7->Add(*s);
16152 delete s;
16153 Py_DECREF(item);
16154 }
16155 }
16156 }
16157 if (obj7) {
16158 ecode8 = SWIG_AsVal_int(obj7, &val8);
16159 if (!SWIG_IsOK(ecode8)) {
16160 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16161 }
16162 arg8 = static_cast< int >(val8);
16163 }
16164 if (obj8) {
16165 ecode9 = SWIG_AsVal_long(obj8, &val9);
16166 if (!SWIG_IsOK(ecode9)) {
16167 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16168 }
16169 arg9 = static_cast< long >(val9);
16170 }
16171 if (obj9) {
16172 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16173 if (!SWIG_IsOK(res10)) {
16174 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16175 }
16176 if (!argp10) {
16177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16178 }
16179 arg10 = reinterpret_cast< wxValidator * >(argp10);
16180 }
16181 if (obj10) {
16182 {
16183 arg11 = wxString_in_helper(obj10);
16184 if (arg11 == NULL) SWIG_fail;
16185 temp11 = true;
16186 }
16187 }
16188 {
16189 PyThreadState* __tstate = wxPyBeginAllowThreads();
16190 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);
16191 wxPyEndAllowThreads(__tstate);
16192 if (PyErr_Occurred()) SWIG_fail;
16193 }
16194 {
16195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16196 }
16197 {
16198 if (temp4)
16199 delete arg4;
16200 }
16201 {
16202 if (temp7) delete arg7;
16203 }
16204 {
16205 if (temp11)
16206 delete arg11;
16207 }
16208 return resultobj;
16209 fail:
16210 {
16211 if (temp4)
16212 delete arg4;
16213 }
16214 {
16215 if (temp7) delete arg7;
16216 }
16217 {
16218 if (temp11)
16219 delete arg11;
16220 }
16221 return NULL;
16222 }
16223
16224
16225 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16226 PyObject *resultobj = 0;
16227 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16228 int arg2 ;
16229 void *argp1 = 0 ;
16230 int res1 = 0 ;
16231 int val2 ;
16232 int ecode2 = 0 ;
16233 PyObject * obj0 = 0 ;
16234 PyObject * obj1 = 0 ;
16235 char * kwnames[] = {
16236 (char *) "self",(char *) "n", NULL
16237 };
16238
16239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16241 if (!SWIG_IsOK(res1)) {
16242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16243 }
16244 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16245 ecode2 = SWIG_AsVal_int(obj1, &val2);
16246 if (!SWIG_IsOK(ecode2)) {
16247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16248 }
16249 arg2 = static_cast< int >(val2);
16250 {
16251 PyThreadState* __tstate = wxPyBeginAllowThreads();
16252 (arg1)->SetSelection(arg2);
16253 wxPyEndAllowThreads(__tstate);
16254 if (PyErr_Occurred()) SWIG_fail;
16255 }
16256 resultobj = SWIG_Py_Void();
16257 return resultobj;
16258 fail:
16259 return NULL;
16260 }
16261
16262
16263 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16264 PyObject *resultobj = 0;
16265 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16266 int result;
16267 void *argp1 = 0 ;
16268 int res1 = 0 ;
16269 PyObject *swig_obj[1] ;
16270
16271 if (!args) SWIG_fail;
16272 swig_obj[0] = args;
16273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16274 if (!SWIG_IsOK(res1)) {
16275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16276 }
16277 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
16280 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16281 wxPyEndAllowThreads(__tstate);
16282 if (PyErr_Occurred()) SWIG_fail;
16283 }
16284 resultobj = SWIG_From_int(static_cast< int >(result));
16285 return resultobj;
16286 fail:
16287 return NULL;
16288 }
16289
16290
16291 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16292 PyObject *resultobj = 0;
16293 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16294 wxString result;
16295 void *argp1 = 0 ;
16296 int res1 = 0 ;
16297 PyObject *swig_obj[1] ;
16298
16299 if (!args) SWIG_fail;
16300 swig_obj[0] = args;
16301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16302 if (!SWIG_IsOK(res1)) {
16303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16304 }
16305 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16306 {
16307 PyThreadState* __tstate = wxPyBeginAllowThreads();
16308 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16309 wxPyEndAllowThreads(__tstate);
16310 if (PyErr_Occurred()) SWIG_fail;
16311 }
16312 {
16313 #if wxUSE_UNICODE
16314 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16315 #else
16316 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16317 #endif
16318 }
16319 return resultobj;
16320 fail:
16321 return NULL;
16322 }
16323
16324
16325 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16326 PyObject *resultobj = 0;
16327 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16328 wxString *arg2 = 0 ;
16329 bool result;
16330 void *argp1 = 0 ;
16331 int res1 = 0 ;
16332 bool temp2 = false ;
16333 PyObject * obj0 = 0 ;
16334 PyObject * obj1 = 0 ;
16335 char * kwnames[] = {
16336 (char *) "self",(char *) "s", NULL
16337 };
16338
16339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16341 if (!SWIG_IsOK(res1)) {
16342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16343 }
16344 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16345 {
16346 arg2 = wxString_in_helper(obj1);
16347 if (arg2 == NULL) SWIG_fail;
16348 temp2 = true;
16349 }
16350 {
16351 PyThreadState* __tstate = wxPyBeginAllowThreads();
16352 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16353 wxPyEndAllowThreads(__tstate);
16354 if (PyErr_Occurred()) SWIG_fail;
16355 }
16356 {
16357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16358 }
16359 {
16360 if (temp2)
16361 delete arg2;
16362 }
16363 return resultobj;
16364 fail:
16365 {
16366 if (temp2)
16367 delete arg2;
16368 }
16369 return NULL;
16370 }
16371
16372
16373 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16374 PyObject *resultobj = 0;
16375 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16376 size_t result;
16377 void *argp1 = 0 ;
16378 int res1 = 0 ;
16379 PyObject *swig_obj[1] ;
16380
16381 if (!args) SWIG_fail;
16382 swig_obj[0] = args;
16383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16384 if (!SWIG_IsOK(res1)) {
16385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16386 }
16387 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16388 {
16389 PyThreadState* __tstate = wxPyBeginAllowThreads();
16390 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16391 wxPyEndAllowThreads(__tstate);
16392 if (PyErr_Occurred()) SWIG_fail;
16393 }
16394 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16395 return resultobj;
16396 fail:
16397 return NULL;
16398 }
16399
16400
16401 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16402 PyObject *resultobj = 0;
16403 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16404 wxString *arg2 = 0 ;
16405 int result;
16406 void *argp1 = 0 ;
16407 int res1 = 0 ;
16408 bool temp2 = false ;
16409 PyObject * obj0 = 0 ;
16410 PyObject * obj1 = 0 ;
16411 char * kwnames[] = {
16412 (char *) "self",(char *) "s", NULL
16413 };
16414
16415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16417 if (!SWIG_IsOK(res1)) {
16418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16419 }
16420 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16421 {
16422 arg2 = wxString_in_helper(obj1);
16423 if (arg2 == NULL) SWIG_fail;
16424 temp2 = true;
16425 }
16426 {
16427 PyThreadState* __tstate = wxPyBeginAllowThreads();
16428 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16429 wxPyEndAllowThreads(__tstate);
16430 if (PyErr_Occurred()) SWIG_fail;
16431 }
16432 resultobj = SWIG_From_int(static_cast< int >(result));
16433 {
16434 if (temp2)
16435 delete arg2;
16436 }
16437 return resultobj;
16438 fail:
16439 {
16440 if (temp2)
16441 delete arg2;
16442 }
16443 return NULL;
16444 }
16445
16446
16447 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16448 PyObject *resultobj = 0;
16449 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16450 int arg2 ;
16451 wxString result;
16452 void *argp1 = 0 ;
16453 int res1 = 0 ;
16454 int val2 ;
16455 int ecode2 = 0 ;
16456 PyObject * obj0 = 0 ;
16457 PyObject * obj1 = 0 ;
16458 char * kwnames[] = {
16459 (char *) "self",(char *) "n", NULL
16460 };
16461
16462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16464 if (!SWIG_IsOK(res1)) {
16465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16466 }
16467 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16468 ecode2 = SWIG_AsVal_int(obj1, &val2);
16469 if (!SWIG_IsOK(ecode2)) {
16470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16471 }
16472 arg2 = static_cast< int >(val2);
16473 {
16474 PyThreadState* __tstate = wxPyBeginAllowThreads();
16475 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16476 wxPyEndAllowThreads(__tstate);
16477 if (PyErr_Occurred()) SWIG_fail;
16478 }
16479 {
16480 #if wxUSE_UNICODE
16481 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16482 #else
16483 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16484 #endif
16485 }
16486 return resultobj;
16487 fail:
16488 return NULL;
16489 }
16490
16491
16492 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16493 PyObject *resultobj = 0;
16494 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16495 int arg2 ;
16496 wxString *arg3 = 0 ;
16497 void *argp1 = 0 ;
16498 int res1 = 0 ;
16499 int val2 ;
16500 int ecode2 = 0 ;
16501 bool temp3 = false ;
16502 PyObject * obj0 = 0 ;
16503 PyObject * obj1 = 0 ;
16504 PyObject * obj2 = 0 ;
16505 char * kwnames[] = {
16506 (char *) "self",(char *) "n",(char *) "label", NULL
16507 };
16508
16509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16511 if (!SWIG_IsOK(res1)) {
16512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16513 }
16514 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16515 ecode2 = SWIG_AsVal_int(obj1, &val2);
16516 if (!SWIG_IsOK(ecode2)) {
16517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16518 }
16519 arg2 = static_cast< int >(val2);
16520 {
16521 arg3 = wxString_in_helper(obj2);
16522 if (arg3 == NULL) SWIG_fail;
16523 temp3 = true;
16524 }
16525 {
16526 PyThreadState* __tstate = wxPyBeginAllowThreads();
16527 (arg1)->SetString(arg2,(wxString const &)*arg3);
16528 wxPyEndAllowThreads(__tstate);
16529 if (PyErr_Occurred()) SWIG_fail;
16530 }
16531 resultobj = SWIG_Py_Void();
16532 {
16533 if (temp3)
16534 delete arg3;
16535 }
16536 return resultobj;
16537 fail:
16538 {
16539 if (temp3)
16540 delete arg3;
16541 }
16542 return NULL;
16543 }
16544
16545
16546 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16547 PyObject *resultobj = 0;
16548 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16549 unsigned int arg2 ;
16550 bool arg3 = (bool) true ;
16551 void *argp1 = 0 ;
16552 int res1 = 0 ;
16553 unsigned int val2 ;
16554 int ecode2 = 0 ;
16555 bool val3 ;
16556 int ecode3 = 0 ;
16557 PyObject * obj0 = 0 ;
16558 PyObject * obj1 = 0 ;
16559 PyObject * obj2 = 0 ;
16560 char * kwnames[] = {
16561 (char *) "self",(char *) "n",(char *) "enable", NULL
16562 };
16563
16564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16566 if (!SWIG_IsOK(res1)) {
16567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16568 }
16569 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16570 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16571 if (!SWIG_IsOK(ecode2)) {
16572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16573 }
16574 arg2 = static_cast< unsigned int >(val2);
16575 if (obj2) {
16576 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16577 if (!SWIG_IsOK(ecode3)) {
16578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16579 }
16580 arg3 = static_cast< bool >(val3);
16581 }
16582 {
16583 PyThreadState* __tstate = wxPyBeginAllowThreads();
16584 (arg1)->Enable(arg2,arg3);
16585 wxPyEndAllowThreads(__tstate);
16586 if (PyErr_Occurred()) SWIG_fail;
16587 }
16588 resultobj = SWIG_Py_Void();
16589 return resultobj;
16590 fail:
16591 return NULL;
16592 }
16593
16594
16595 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16596 PyObject *resultobj = 0;
16597 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16598 unsigned int arg2 ;
16599 bool arg3 = (bool) true ;
16600 void *argp1 = 0 ;
16601 int res1 = 0 ;
16602 unsigned int val2 ;
16603 int ecode2 = 0 ;
16604 bool val3 ;
16605 int ecode3 = 0 ;
16606 PyObject * obj0 = 0 ;
16607 PyObject * obj1 = 0 ;
16608 PyObject * obj2 = 0 ;
16609 char * kwnames[] = {
16610 (char *) "self",(char *) "n",(char *) "show", NULL
16611 };
16612
16613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16615 if (!SWIG_IsOK(res1)) {
16616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16617 }
16618 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16619 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16620 if (!SWIG_IsOK(ecode2)) {
16621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16622 }
16623 arg2 = static_cast< unsigned int >(val2);
16624 if (obj2) {
16625 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16626 if (!SWIG_IsOK(ecode3)) {
16627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16628 }
16629 arg3 = static_cast< bool >(val3);
16630 }
16631 {
16632 PyThreadState* __tstate = wxPyBeginAllowThreads();
16633 (arg1)->Show(arg2,arg3);
16634 wxPyEndAllowThreads(__tstate);
16635 if (PyErr_Occurred()) SWIG_fail;
16636 }
16637 resultobj = SWIG_Py_Void();
16638 return resultobj;
16639 fail:
16640 return NULL;
16641 }
16642
16643
16644 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16645 PyObject *resultobj = 0;
16646 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16647 unsigned int arg2 ;
16648 bool result;
16649 void *argp1 = 0 ;
16650 int res1 = 0 ;
16651 unsigned int val2 ;
16652 int ecode2 = 0 ;
16653 PyObject * obj0 = 0 ;
16654 PyObject * obj1 = 0 ;
16655 char * kwnames[] = {
16656 (char *) "self",(char *) "n", NULL
16657 };
16658
16659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16661 if (!SWIG_IsOK(res1)) {
16662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16663 }
16664 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16665 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16666 if (!SWIG_IsOK(ecode2)) {
16667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16668 }
16669 arg2 = static_cast< unsigned int >(val2);
16670 {
16671 PyThreadState* __tstate = wxPyBeginAllowThreads();
16672 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16673 wxPyEndAllowThreads(__tstate);
16674 if (PyErr_Occurred()) SWIG_fail;
16675 }
16676 {
16677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16678 }
16679 return resultobj;
16680 fail:
16681 return NULL;
16682 }
16683
16684
16685 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16686 PyObject *resultobj = 0;
16687 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16688 unsigned int arg2 ;
16689 bool result;
16690 void *argp1 = 0 ;
16691 int res1 = 0 ;
16692 unsigned int val2 ;
16693 int ecode2 = 0 ;
16694 PyObject * obj0 = 0 ;
16695 PyObject * obj1 = 0 ;
16696 char * kwnames[] = {
16697 (char *) "self",(char *) "n", NULL
16698 };
16699
16700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16702 if (!SWIG_IsOK(res1)) {
16703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16704 }
16705 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16706 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16707 if (!SWIG_IsOK(ecode2)) {
16708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16709 }
16710 arg2 = static_cast< unsigned int >(val2);
16711 {
16712 PyThreadState* __tstate = wxPyBeginAllowThreads();
16713 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16714 wxPyEndAllowThreads(__tstate);
16715 if (PyErr_Occurred()) SWIG_fail;
16716 }
16717 {
16718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16719 }
16720 return resultobj;
16721 fail:
16722 return NULL;
16723 }
16724
16725
16726 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16727 PyObject *resultobj = 0;
16728 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16729 unsigned int result;
16730 void *argp1 = 0 ;
16731 int res1 = 0 ;
16732 PyObject *swig_obj[1] ;
16733
16734 if (!args) SWIG_fail;
16735 swig_obj[0] = args;
16736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16737 if (!SWIG_IsOK(res1)) {
16738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16739 }
16740 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16741 {
16742 PyThreadState* __tstate = wxPyBeginAllowThreads();
16743 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16744 wxPyEndAllowThreads(__tstate);
16745 if (PyErr_Occurred()) SWIG_fail;
16746 }
16747 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16748 return resultobj;
16749 fail:
16750 return NULL;
16751 }
16752
16753
16754 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16755 PyObject *resultobj = 0;
16756 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16757 unsigned int result;
16758 void *argp1 = 0 ;
16759 int res1 = 0 ;
16760 PyObject *swig_obj[1] ;
16761
16762 if (!args) SWIG_fail;
16763 swig_obj[0] = args;
16764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16765 if (!SWIG_IsOK(res1)) {
16766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16767 }
16768 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16769 {
16770 PyThreadState* __tstate = wxPyBeginAllowThreads();
16771 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16772 wxPyEndAllowThreads(__tstate);
16773 if (PyErr_Occurred()) SWIG_fail;
16774 }
16775 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16776 return resultobj;
16777 fail:
16778 return NULL;
16779 }
16780
16781
16782 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16783 PyObject *resultobj = 0;
16784 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16785 int arg2 ;
16786 wxDirection arg3 ;
16787 long arg4 ;
16788 int result;
16789 void *argp1 = 0 ;
16790 int res1 = 0 ;
16791 int val2 ;
16792 int ecode2 = 0 ;
16793 int val3 ;
16794 int ecode3 = 0 ;
16795 long val4 ;
16796 int ecode4 = 0 ;
16797 PyObject * obj0 = 0 ;
16798 PyObject * obj1 = 0 ;
16799 PyObject * obj2 = 0 ;
16800 PyObject * obj3 = 0 ;
16801 char * kwnames[] = {
16802 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16803 };
16804
16805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16807 if (!SWIG_IsOK(res1)) {
16808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16809 }
16810 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16811 ecode2 = SWIG_AsVal_int(obj1, &val2);
16812 if (!SWIG_IsOK(ecode2)) {
16813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16814 }
16815 arg2 = static_cast< int >(val2);
16816 ecode3 = SWIG_AsVal_int(obj2, &val3);
16817 if (!SWIG_IsOK(ecode3)) {
16818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16819 }
16820 arg3 = static_cast< wxDirection >(val3);
16821 ecode4 = SWIG_AsVal_long(obj3, &val4);
16822 if (!SWIG_IsOK(ecode4)) {
16823 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16824 }
16825 arg4 = static_cast< long >(val4);
16826 {
16827 PyThreadState* __tstate = wxPyBeginAllowThreads();
16828 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16829 wxPyEndAllowThreads(__tstate);
16830 if (PyErr_Occurred()) SWIG_fail;
16831 }
16832 resultobj = SWIG_From_int(static_cast< int >(result));
16833 return resultobj;
16834 fail:
16835 return NULL;
16836 }
16837
16838
16839 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16840 PyObject *resultobj = 0;
16841 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16842 SwigValueWrapper<wxVisualAttributes > result;
16843 int val1 ;
16844 int ecode1 = 0 ;
16845 PyObject * obj0 = 0 ;
16846 char * kwnames[] = {
16847 (char *) "variant", NULL
16848 };
16849
16850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16851 if (obj0) {
16852 ecode1 = SWIG_AsVal_int(obj0, &val1);
16853 if (!SWIG_IsOK(ecode1)) {
16854 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16855 }
16856 arg1 = static_cast< wxWindowVariant >(val1);
16857 }
16858 {
16859 if (!wxPyCheckForApp()) SWIG_fail;
16860 PyThreadState* __tstate = wxPyBeginAllowThreads();
16861 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16862 wxPyEndAllowThreads(__tstate);
16863 if (PyErr_Occurred()) SWIG_fail;
16864 }
16865 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16866 return resultobj;
16867 fail:
16868 return NULL;
16869 }
16870
16871
16872 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16873 PyObject *obj;
16874 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16875 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16876 return SWIG_Py_Void();
16877 }
16878
16879 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16880 return SWIG_Python_InitShadowInstance(args);
16881 }
16882
16883 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16884 PyObject *resultobj = 0;
16885 wxWindow *arg1 = (wxWindow *) 0 ;
16886 int arg2 = (int) -1 ;
16887 wxString const &arg3_defvalue = wxPyEmptyString ;
16888 wxString *arg3 = (wxString *) &arg3_defvalue ;
16889 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16890 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16891 wxSize const &arg5_defvalue = wxDefaultSize ;
16892 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16893 long arg6 = (long) 0 ;
16894 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16895 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16896 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16897 wxString *arg8 = (wxString *) &arg8_defvalue ;
16898 wxRadioButton *result = 0 ;
16899 void *argp1 = 0 ;
16900 int res1 = 0 ;
16901 int val2 ;
16902 int ecode2 = 0 ;
16903 bool temp3 = false ;
16904 wxPoint temp4 ;
16905 wxSize temp5 ;
16906 long val6 ;
16907 int ecode6 = 0 ;
16908 void *argp7 = 0 ;
16909 int res7 = 0 ;
16910 bool temp8 = false ;
16911 PyObject * obj0 = 0 ;
16912 PyObject * obj1 = 0 ;
16913 PyObject * obj2 = 0 ;
16914 PyObject * obj3 = 0 ;
16915 PyObject * obj4 = 0 ;
16916 PyObject * obj5 = 0 ;
16917 PyObject * obj6 = 0 ;
16918 PyObject * obj7 = 0 ;
16919 char * kwnames[] = {
16920 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16921 };
16922
16923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16925 if (!SWIG_IsOK(res1)) {
16926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
16927 }
16928 arg1 = reinterpret_cast< wxWindow * >(argp1);
16929 if (obj1) {
16930 ecode2 = SWIG_AsVal_int(obj1, &val2);
16931 if (!SWIG_IsOK(ecode2)) {
16932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
16933 }
16934 arg2 = static_cast< int >(val2);
16935 }
16936 if (obj2) {
16937 {
16938 arg3 = wxString_in_helper(obj2);
16939 if (arg3 == NULL) SWIG_fail;
16940 temp3 = true;
16941 }
16942 }
16943 if (obj3) {
16944 {
16945 arg4 = &temp4;
16946 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16947 }
16948 }
16949 if (obj4) {
16950 {
16951 arg5 = &temp5;
16952 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16953 }
16954 }
16955 if (obj5) {
16956 ecode6 = SWIG_AsVal_long(obj5, &val6);
16957 if (!SWIG_IsOK(ecode6)) {
16958 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
16959 }
16960 arg6 = static_cast< long >(val6);
16961 }
16962 if (obj6) {
16963 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
16964 if (!SWIG_IsOK(res7)) {
16965 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16966 }
16967 if (!argp7) {
16968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16969 }
16970 arg7 = reinterpret_cast< wxValidator * >(argp7);
16971 }
16972 if (obj7) {
16973 {
16974 arg8 = wxString_in_helper(obj7);
16975 if (arg8 == NULL) SWIG_fail;
16976 temp8 = true;
16977 }
16978 }
16979 {
16980 if (!wxPyCheckForApp()) SWIG_fail;
16981 PyThreadState* __tstate = wxPyBeginAllowThreads();
16982 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
16983 wxPyEndAllowThreads(__tstate);
16984 if (PyErr_Occurred()) SWIG_fail;
16985 }
16986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
16987 {
16988 if (temp3)
16989 delete arg3;
16990 }
16991 {
16992 if (temp8)
16993 delete arg8;
16994 }
16995 return resultobj;
16996 fail:
16997 {
16998 if (temp3)
16999 delete arg3;
17000 }
17001 {
17002 if (temp8)
17003 delete arg8;
17004 }
17005 return NULL;
17006 }
17007
17008
17009 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17010 PyObject *resultobj = 0;
17011 wxRadioButton *result = 0 ;
17012
17013 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17014 {
17015 if (!wxPyCheckForApp()) SWIG_fail;
17016 PyThreadState* __tstate = wxPyBeginAllowThreads();
17017 result = (wxRadioButton *)new wxRadioButton();
17018 wxPyEndAllowThreads(__tstate);
17019 if (PyErr_Occurred()) SWIG_fail;
17020 }
17021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17022 return resultobj;
17023 fail:
17024 return NULL;
17025 }
17026
17027
17028 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17029 PyObject *resultobj = 0;
17030 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17031 wxWindow *arg2 = (wxWindow *) 0 ;
17032 int arg3 = (int) -1 ;
17033 wxString const &arg4_defvalue = wxPyEmptyString ;
17034 wxString *arg4 = (wxString *) &arg4_defvalue ;
17035 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17036 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17037 wxSize const &arg6_defvalue = wxDefaultSize ;
17038 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17039 long arg7 = (long) 0 ;
17040 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17041 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17042 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17043 wxString *arg9 = (wxString *) &arg9_defvalue ;
17044 bool result;
17045 void *argp1 = 0 ;
17046 int res1 = 0 ;
17047 void *argp2 = 0 ;
17048 int res2 = 0 ;
17049 int val3 ;
17050 int ecode3 = 0 ;
17051 bool temp4 = false ;
17052 wxPoint temp5 ;
17053 wxSize temp6 ;
17054 long val7 ;
17055 int ecode7 = 0 ;
17056 void *argp8 = 0 ;
17057 int res8 = 0 ;
17058 bool temp9 = false ;
17059 PyObject * obj0 = 0 ;
17060 PyObject * obj1 = 0 ;
17061 PyObject * obj2 = 0 ;
17062 PyObject * obj3 = 0 ;
17063 PyObject * obj4 = 0 ;
17064 PyObject * obj5 = 0 ;
17065 PyObject * obj6 = 0 ;
17066 PyObject * obj7 = 0 ;
17067 PyObject * obj8 = 0 ;
17068 char * kwnames[] = {
17069 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17070 };
17071
17072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17074 if (!SWIG_IsOK(res1)) {
17075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17076 }
17077 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17078 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17079 if (!SWIG_IsOK(res2)) {
17080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17081 }
17082 arg2 = reinterpret_cast< wxWindow * >(argp2);
17083 if (obj2) {
17084 ecode3 = SWIG_AsVal_int(obj2, &val3);
17085 if (!SWIG_IsOK(ecode3)) {
17086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17087 }
17088 arg3 = static_cast< int >(val3);
17089 }
17090 if (obj3) {
17091 {
17092 arg4 = wxString_in_helper(obj3);
17093 if (arg4 == NULL) SWIG_fail;
17094 temp4 = true;
17095 }
17096 }
17097 if (obj4) {
17098 {
17099 arg5 = &temp5;
17100 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17101 }
17102 }
17103 if (obj5) {
17104 {
17105 arg6 = &temp6;
17106 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17107 }
17108 }
17109 if (obj6) {
17110 ecode7 = SWIG_AsVal_long(obj6, &val7);
17111 if (!SWIG_IsOK(ecode7)) {
17112 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17113 }
17114 arg7 = static_cast< long >(val7);
17115 }
17116 if (obj7) {
17117 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17118 if (!SWIG_IsOK(res8)) {
17119 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17120 }
17121 if (!argp8) {
17122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17123 }
17124 arg8 = reinterpret_cast< wxValidator * >(argp8);
17125 }
17126 if (obj8) {
17127 {
17128 arg9 = wxString_in_helper(obj8);
17129 if (arg9 == NULL) SWIG_fail;
17130 temp9 = true;
17131 }
17132 }
17133 {
17134 PyThreadState* __tstate = wxPyBeginAllowThreads();
17135 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17136 wxPyEndAllowThreads(__tstate);
17137 if (PyErr_Occurred()) SWIG_fail;
17138 }
17139 {
17140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17141 }
17142 {
17143 if (temp4)
17144 delete arg4;
17145 }
17146 {
17147 if (temp9)
17148 delete arg9;
17149 }
17150 return resultobj;
17151 fail:
17152 {
17153 if (temp4)
17154 delete arg4;
17155 }
17156 {
17157 if (temp9)
17158 delete arg9;
17159 }
17160 return NULL;
17161 }
17162
17163
17164 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17165 PyObject *resultobj = 0;
17166 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17167 bool result;
17168 void *argp1 = 0 ;
17169 int res1 = 0 ;
17170 PyObject *swig_obj[1] ;
17171
17172 if (!args) SWIG_fail;
17173 swig_obj[0] = args;
17174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17175 if (!SWIG_IsOK(res1)) {
17176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17177 }
17178 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17179 {
17180 PyThreadState* __tstate = wxPyBeginAllowThreads();
17181 result = (bool)(arg1)->GetValue();
17182 wxPyEndAllowThreads(__tstate);
17183 if (PyErr_Occurred()) SWIG_fail;
17184 }
17185 {
17186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17187 }
17188 return resultobj;
17189 fail:
17190 return NULL;
17191 }
17192
17193
17194 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17195 PyObject *resultobj = 0;
17196 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17197 bool arg2 ;
17198 void *argp1 = 0 ;
17199 int res1 = 0 ;
17200 bool val2 ;
17201 int ecode2 = 0 ;
17202 PyObject * obj0 = 0 ;
17203 PyObject * obj1 = 0 ;
17204 char * kwnames[] = {
17205 (char *) "self",(char *) "value", NULL
17206 };
17207
17208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17210 if (!SWIG_IsOK(res1)) {
17211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17212 }
17213 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17214 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17215 if (!SWIG_IsOK(ecode2)) {
17216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17217 }
17218 arg2 = static_cast< bool >(val2);
17219 {
17220 PyThreadState* __tstate = wxPyBeginAllowThreads();
17221 (arg1)->SetValue(arg2);
17222 wxPyEndAllowThreads(__tstate);
17223 if (PyErr_Occurred()) SWIG_fail;
17224 }
17225 resultobj = SWIG_Py_Void();
17226 return resultobj;
17227 fail:
17228 return NULL;
17229 }
17230
17231
17232 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17233 PyObject *resultobj = 0;
17234 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17235 SwigValueWrapper<wxVisualAttributes > result;
17236 int val1 ;
17237 int ecode1 = 0 ;
17238 PyObject * obj0 = 0 ;
17239 char * kwnames[] = {
17240 (char *) "variant", NULL
17241 };
17242
17243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17244 if (obj0) {
17245 ecode1 = SWIG_AsVal_int(obj0, &val1);
17246 if (!SWIG_IsOK(ecode1)) {
17247 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17248 }
17249 arg1 = static_cast< wxWindowVariant >(val1);
17250 }
17251 {
17252 if (!wxPyCheckForApp()) SWIG_fail;
17253 PyThreadState* __tstate = wxPyBeginAllowThreads();
17254 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17255 wxPyEndAllowThreads(__tstate);
17256 if (PyErr_Occurred()) SWIG_fail;
17257 }
17258 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17259 return resultobj;
17260 fail:
17261 return NULL;
17262 }
17263
17264
17265 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17266 PyObject *obj;
17267 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17268 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17269 return SWIG_Py_Void();
17270 }
17271
17272 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17273 return SWIG_Python_InitShadowInstance(args);
17274 }
17275
17276 SWIGINTERN int SliderNameStr_set(PyObject *) {
17277 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17278 return 1;
17279 }
17280
17281
17282 SWIGINTERN PyObject *SliderNameStr_get(void) {
17283 PyObject *pyobj = 0;
17284
17285 {
17286 #if wxUSE_UNICODE
17287 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17288 #else
17289 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17290 #endif
17291 }
17292 return pyobj;
17293 }
17294
17295
17296 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17297 PyObject *resultobj = 0;
17298 wxWindow *arg1 = (wxWindow *) 0 ;
17299 int arg2 = (int) -1 ;
17300 int arg3 = (int) 0 ;
17301 int arg4 = (int) 0 ;
17302 int arg5 = (int) 100 ;
17303 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17304 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17305 wxSize const &arg7_defvalue = wxDefaultSize ;
17306 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17307 long arg8 = (long) wxSL_HORIZONTAL ;
17308 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17309 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17310 wxString const &arg10_defvalue = wxPySliderNameStr ;
17311 wxString *arg10 = (wxString *) &arg10_defvalue ;
17312 wxSlider *result = 0 ;
17313 void *argp1 = 0 ;
17314 int res1 = 0 ;
17315 int val2 ;
17316 int ecode2 = 0 ;
17317 int val3 ;
17318 int ecode3 = 0 ;
17319 int val4 ;
17320 int ecode4 = 0 ;
17321 int val5 ;
17322 int ecode5 = 0 ;
17323 wxPoint temp6 ;
17324 wxSize temp7 ;
17325 long val8 ;
17326 int ecode8 = 0 ;
17327 void *argp9 = 0 ;
17328 int res9 = 0 ;
17329 bool temp10 = false ;
17330 PyObject * obj0 = 0 ;
17331 PyObject * obj1 = 0 ;
17332 PyObject * obj2 = 0 ;
17333 PyObject * obj3 = 0 ;
17334 PyObject * obj4 = 0 ;
17335 PyObject * obj5 = 0 ;
17336 PyObject * obj6 = 0 ;
17337 PyObject * obj7 = 0 ;
17338 PyObject * obj8 = 0 ;
17339 PyObject * obj9 = 0 ;
17340 char * kwnames[] = {
17341 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17342 };
17343
17344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17346 if (!SWIG_IsOK(res1)) {
17347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17348 }
17349 arg1 = reinterpret_cast< wxWindow * >(argp1);
17350 if (obj1) {
17351 ecode2 = SWIG_AsVal_int(obj1, &val2);
17352 if (!SWIG_IsOK(ecode2)) {
17353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17354 }
17355 arg2 = static_cast< int >(val2);
17356 }
17357 if (obj2) {
17358 ecode3 = SWIG_AsVal_int(obj2, &val3);
17359 if (!SWIG_IsOK(ecode3)) {
17360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17361 }
17362 arg3 = static_cast< int >(val3);
17363 }
17364 if (obj3) {
17365 ecode4 = SWIG_AsVal_int(obj3, &val4);
17366 if (!SWIG_IsOK(ecode4)) {
17367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17368 }
17369 arg4 = static_cast< int >(val4);
17370 }
17371 if (obj4) {
17372 ecode5 = SWIG_AsVal_int(obj4, &val5);
17373 if (!SWIG_IsOK(ecode5)) {
17374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17375 }
17376 arg5 = static_cast< int >(val5);
17377 }
17378 if (obj5) {
17379 {
17380 arg6 = &temp6;
17381 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17382 }
17383 }
17384 if (obj6) {
17385 {
17386 arg7 = &temp7;
17387 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17388 }
17389 }
17390 if (obj7) {
17391 ecode8 = SWIG_AsVal_long(obj7, &val8);
17392 if (!SWIG_IsOK(ecode8)) {
17393 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17394 }
17395 arg8 = static_cast< long >(val8);
17396 }
17397 if (obj8) {
17398 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17399 if (!SWIG_IsOK(res9)) {
17400 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17401 }
17402 if (!argp9) {
17403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17404 }
17405 arg9 = reinterpret_cast< wxValidator * >(argp9);
17406 }
17407 if (obj9) {
17408 {
17409 arg10 = wxString_in_helper(obj9);
17410 if (arg10 == NULL) SWIG_fail;
17411 temp10 = true;
17412 }
17413 }
17414 {
17415 if (!wxPyCheckForApp()) SWIG_fail;
17416 PyThreadState* __tstate = wxPyBeginAllowThreads();
17417 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17418 wxPyEndAllowThreads(__tstate);
17419 if (PyErr_Occurred()) SWIG_fail;
17420 }
17421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17422 {
17423 if (temp10)
17424 delete arg10;
17425 }
17426 return resultobj;
17427 fail:
17428 {
17429 if (temp10)
17430 delete arg10;
17431 }
17432 return NULL;
17433 }
17434
17435
17436 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17437 PyObject *resultobj = 0;
17438 wxSlider *result = 0 ;
17439
17440 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17441 {
17442 if (!wxPyCheckForApp()) SWIG_fail;
17443 PyThreadState* __tstate = wxPyBeginAllowThreads();
17444 result = (wxSlider *)new wxSlider();
17445 wxPyEndAllowThreads(__tstate);
17446 if (PyErr_Occurred()) SWIG_fail;
17447 }
17448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17449 return resultobj;
17450 fail:
17451 return NULL;
17452 }
17453
17454
17455 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17456 PyObject *resultobj = 0;
17457 wxSlider *arg1 = (wxSlider *) 0 ;
17458 wxWindow *arg2 = (wxWindow *) 0 ;
17459 int arg3 = (int) -1 ;
17460 int arg4 = (int) 0 ;
17461 int arg5 = (int) 0 ;
17462 int arg6 = (int) 100 ;
17463 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17464 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17465 wxSize const &arg8_defvalue = wxDefaultSize ;
17466 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17467 long arg9 = (long) wxSL_HORIZONTAL ;
17468 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17469 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17470 wxString const &arg11_defvalue = wxPySliderNameStr ;
17471 wxString *arg11 = (wxString *) &arg11_defvalue ;
17472 bool result;
17473 void *argp1 = 0 ;
17474 int res1 = 0 ;
17475 void *argp2 = 0 ;
17476 int res2 = 0 ;
17477 int val3 ;
17478 int ecode3 = 0 ;
17479 int val4 ;
17480 int ecode4 = 0 ;
17481 int val5 ;
17482 int ecode5 = 0 ;
17483 int val6 ;
17484 int ecode6 = 0 ;
17485 wxPoint temp7 ;
17486 wxSize temp8 ;
17487 long val9 ;
17488 int ecode9 = 0 ;
17489 void *argp10 = 0 ;
17490 int res10 = 0 ;
17491 bool temp11 = false ;
17492 PyObject * obj0 = 0 ;
17493 PyObject * obj1 = 0 ;
17494 PyObject * obj2 = 0 ;
17495 PyObject * obj3 = 0 ;
17496 PyObject * obj4 = 0 ;
17497 PyObject * obj5 = 0 ;
17498 PyObject * obj6 = 0 ;
17499 PyObject * obj7 = 0 ;
17500 PyObject * obj8 = 0 ;
17501 PyObject * obj9 = 0 ;
17502 PyObject * obj10 = 0 ;
17503 char * kwnames[] = {
17504 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17505 };
17506
17507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17509 if (!SWIG_IsOK(res1)) {
17510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17511 }
17512 arg1 = reinterpret_cast< wxSlider * >(argp1);
17513 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17514 if (!SWIG_IsOK(res2)) {
17515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17516 }
17517 arg2 = reinterpret_cast< wxWindow * >(argp2);
17518 if (obj2) {
17519 ecode3 = SWIG_AsVal_int(obj2, &val3);
17520 if (!SWIG_IsOK(ecode3)) {
17521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17522 }
17523 arg3 = static_cast< int >(val3);
17524 }
17525 if (obj3) {
17526 ecode4 = SWIG_AsVal_int(obj3, &val4);
17527 if (!SWIG_IsOK(ecode4)) {
17528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17529 }
17530 arg4 = static_cast< int >(val4);
17531 }
17532 if (obj4) {
17533 ecode5 = SWIG_AsVal_int(obj4, &val5);
17534 if (!SWIG_IsOK(ecode5)) {
17535 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17536 }
17537 arg5 = static_cast< int >(val5);
17538 }
17539 if (obj5) {
17540 ecode6 = SWIG_AsVal_int(obj5, &val6);
17541 if (!SWIG_IsOK(ecode6)) {
17542 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17543 }
17544 arg6 = static_cast< int >(val6);
17545 }
17546 if (obj6) {
17547 {
17548 arg7 = &temp7;
17549 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17550 }
17551 }
17552 if (obj7) {
17553 {
17554 arg8 = &temp8;
17555 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17556 }
17557 }
17558 if (obj8) {
17559 ecode9 = SWIG_AsVal_long(obj8, &val9);
17560 if (!SWIG_IsOK(ecode9)) {
17561 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17562 }
17563 arg9 = static_cast< long >(val9);
17564 }
17565 if (obj9) {
17566 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17567 if (!SWIG_IsOK(res10)) {
17568 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17569 }
17570 if (!argp10) {
17571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17572 }
17573 arg10 = reinterpret_cast< wxValidator * >(argp10);
17574 }
17575 if (obj10) {
17576 {
17577 arg11 = wxString_in_helper(obj10);
17578 if (arg11 == NULL) SWIG_fail;
17579 temp11 = true;
17580 }
17581 }
17582 {
17583 PyThreadState* __tstate = wxPyBeginAllowThreads();
17584 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17585 wxPyEndAllowThreads(__tstate);
17586 if (PyErr_Occurred()) SWIG_fail;
17587 }
17588 {
17589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17590 }
17591 {
17592 if (temp11)
17593 delete arg11;
17594 }
17595 return resultobj;
17596 fail:
17597 {
17598 if (temp11)
17599 delete arg11;
17600 }
17601 return NULL;
17602 }
17603
17604
17605 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17606 PyObject *resultobj = 0;
17607 wxSlider *arg1 = (wxSlider *) 0 ;
17608 int result;
17609 void *argp1 = 0 ;
17610 int res1 = 0 ;
17611 PyObject *swig_obj[1] ;
17612
17613 if (!args) SWIG_fail;
17614 swig_obj[0] = args;
17615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17616 if (!SWIG_IsOK(res1)) {
17617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17618 }
17619 arg1 = reinterpret_cast< wxSlider * >(argp1);
17620 {
17621 PyThreadState* __tstate = wxPyBeginAllowThreads();
17622 result = (int)((wxSlider const *)arg1)->GetValue();
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 resultobj = SWIG_From_int(static_cast< int >(result));
17627 return resultobj;
17628 fail:
17629 return NULL;
17630 }
17631
17632
17633 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj = 0;
17635 wxSlider *arg1 = (wxSlider *) 0 ;
17636 int arg2 ;
17637 void *argp1 = 0 ;
17638 int res1 = 0 ;
17639 int val2 ;
17640 int ecode2 = 0 ;
17641 PyObject * obj0 = 0 ;
17642 PyObject * obj1 = 0 ;
17643 char * kwnames[] = {
17644 (char *) "self",(char *) "value", NULL
17645 };
17646
17647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17649 if (!SWIG_IsOK(res1)) {
17650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17651 }
17652 arg1 = reinterpret_cast< wxSlider * >(argp1);
17653 ecode2 = SWIG_AsVal_int(obj1, &val2);
17654 if (!SWIG_IsOK(ecode2)) {
17655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17656 }
17657 arg2 = static_cast< int >(val2);
17658 {
17659 PyThreadState* __tstate = wxPyBeginAllowThreads();
17660 (arg1)->SetValue(arg2);
17661 wxPyEndAllowThreads(__tstate);
17662 if (PyErr_Occurred()) SWIG_fail;
17663 }
17664 resultobj = SWIG_Py_Void();
17665 return resultobj;
17666 fail:
17667 return NULL;
17668 }
17669
17670
17671 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17672 PyObject *resultobj = 0;
17673 wxSlider *arg1 = (wxSlider *) 0 ;
17674 int arg2 ;
17675 int arg3 ;
17676 void *argp1 = 0 ;
17677 int res1 = 0 ;
17678 int val2 ;
17679 int ecode2 = 0 ;
17680 int val3 ;
17681 int ecode3 = 0 ;
17682 PyObject * obj0 = 0 ;
17683 PyObject * obj1 = 0 ;
17684 PyObject * obj2 = 0 ;
17685 char * kwnames[] = {
17686 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17687 };
17688
17689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17691 if (!SWIG_IsOK(res1)) {
17692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17693 }
17694 arg1 = reinterpret_cast< wxSlider * >(argp1);
17695 ecode2 = SWIG_AsVal_int(obj1, &val2);
17696 if (!SWIG_IsOK(ecode2)) {
17697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17698 }
17699 arg2 = static_cast< int >(val2);
17700 ecode3 = SWIG_AsVal_int(obj2, &val3);
17701 if (!SWIG_IsOK(ecode3)) {
17702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17703 }
17704 arg3 = static_cast< int >(val3);
17705 {
17706 PyThreadState* __tstate = wxPyBeginAllowThreads();
17707 (arg1)->SetRange(arg2,arg3);
17708 wxPyEndAllowThreads(__tstate);
17709 if (PyErr_Occurred()) SWIG_fail;
17710 }
17711 resultobj = SWIG_Py_Void();
17712 return resultobj;
17713 fail:
17714 return NULL;
17715 }
17716
17717
17718 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17719 PyObject *resultobj = 0;
17720 wxSlider *arg1 = (wxSlider *) 0 ;
17721 int result;
17722 void *argp1 = 0 ;
17723 int res1 = 0 ;
17724 PyObject *swig_obj[1] ;
17725
17726 if (!args) SWIG_fail;
17727 swig_obj[0] = args;
17728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17729 if (!SWIG_IsOK(res1)) {
17730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17731 }
17732 arg1 = reinterpret_cast< wxSlider * >(argp1);
17733 {
17734 PyThreadState* __tstate = wxPyBeginAllowThreads();
17735 result = (int)((wxSlider const *)arg1)->GetMin();
17736 wxPyEndAllowThreads(__tstate);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 }
17739 resultobj = SWIG_From_int(static_cast< int >(result));
17740 return resultobj;
17741 fail:
17742 return NULL;
17743 }
17744
17745
17746 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17747 PyObject *resultobj = 0;
17748 wxSlider *arg1 = (wxSlider *) 0 ;
17749 int result;
17750 void *argp1 = 0 ;
17751 int res1 = 0 ;
17752 PyObject *swig_obj[1] ;
17753
17754 if (!args) SWIG_fail;
17755 swig_obj[0] = args;
17756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17757 if (!SWIG_IsOK(res1)) {
17758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17759 }
17760 arg1 = reinterpret_cast< wxSlider * >(argp1);
17761 {
17762 PyThreadState* __tstate = wxPyBeginAllowThreads();
17763 result = (int)((wxSlider const *)arg1)->GetMax();
17764 wxPyEndAllowThreads(__tstate);
17765 if (PyErr_Occurred()) SWIG_fail;
17766 }
17767 resultobj = SWIG_From_int(static_cast< int >(result));
17768 return resultobj;
17769 fail:
17770 return NULL;
17771 }
17772
17773
17774 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17775 PyObject *resultobj = 0;
17776 wxSlider *arg1 = (wxSlider *) 0 ;
17777 int arg2 ;
17778 void *argp1 = 0 ;
17779 int res1 = 0 ;
17780 int val2 ;
17781 int ecode2 = 0 ;
17782 PyObject * obj0 = 0 ;
17783 PyObject * obj1 = 0 ;
17784 char * kwnames[] = {
17785 (char *) "self",(char *) "minValue", NULL
17786 };
17787
17788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17790 if (!SWIG_IsOK(res1)) {
17791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17792 }
17793 arg1 = reinterpret_cast< wxSlider * >(argp1);
17794 ecode2 = SWIG_AsVal_int(obj1, &val2);
17795 if (!SWIG_IsOK(ecode2)) {
17796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17797 }
17798 arg2 = static_cast< int >(val2);
17799 {
17800 PyThreadState* __tstate = wxPyBeginAllowThreads();
17801 (arg1)->SetMin(arg2);
17802 wxPyEndAllowThreads(__tstate);
17803 if (PyErr_Occurred()) SWIG_fail;
17804 }
17805 resultobj = SWIG_Py_Void();
17806 return resultobj;
17807 fail:
17808 return NULL;
17809 }
17810
17811
17812 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17813 PyObject *resultobj = 0;
17814 wxSlider *arg1 = (wxSlider *) 0 ;
17815 int arg2 ;
17816 void *argp1 = 0 ;
17817 int res1 = 0 ;
17818 int val2 ;
17819 int ecode2 = 0 ;
17820 PyObject * obj0 = 0 ;
17821 PyObject * obj1 = 0 ;
17822 char * kwnames[] = {
17823 (char *) "self",(char *) "maxValue", NULL
17824 };
17825
17826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17828 if (!SWIG_IsOK(res1)) {
17829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17830 }
17831 arg1 = reinterpret_cast< wxSlider * >(argp1);
17832 ecode2 = SWIG_AsVal_int(obj1, &val2);
17833 if (!SWIG_IsOK(ecode2)) {
17834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17835 }
17836 arg2 = static_cast< int >(val2);
17837 {
17838 PyThreadState* __tstate = wxPyBeginAllowThreads();
17839 (arg1)->SetMax(arg2);
17840 wxPyEndAllowThreads(__tstate);
17841 if (PyErr_Occurred()) SWIG_fail;
17842 }
17843 resultobj = SWIG_Py_Void();
17844 return resultobj;
17845 fail:
17846 return NULL;
17847 }
17848
17849
17850 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17851 PyObject *resultobj = 0;
17852 wxSlider *arg1 = (wxSlider *) 0 ;
17853 int arg2 ;
17854 void *argp1 = 0 ;
17855 int res1 = 0 ;
17856 int val2 ;
17857 int ecode2 = 0 ;
17858 PyObject * obj0 = 0 ;
17859 PyObject * obj1 = 0 ;
17860 char * kwnames[] = {
17861 (char *) "self",(char *) "lineSize", NULL
17862 };
17863
17864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17866 if (!SWIG_IsOK(res1)) {
17867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17868 }
17869 arg1 = reinterpret_cast< wxSlider * >(argp1);
17870 ecode2 = SWIG_AsVal_int(obj1, &val2);
17871 if (!SWIG_IsOK(ecode2)) {
17872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17873 }
17874 arg2 = static_cast< int >(val2);
17875 {
17876 PyThreadState* __tstate = wxPyBeginAllowThreads();
17877 (arg1)->SetLineSize(arg2);
17878 wxPyEndAllowThreads(__tstate);
17879 if (PyErr_Occurred()) SWIG_fail;
17880 }
17881 resultobj = SWIG_Py_Void();
17882 return resultobj;
17883 fail:
17884 return NULL;
17885 }
17886
17887
17888 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17889 PyObject *resultobj = 0;
17890 wxSlider *arg1 = (wxSlider *) 0 ;
17891 int arg2 ;
17892 void *argp1 = 0 ;
17893 int res1 = 0 ;
17894 int val2 ;
17895 int ecode2 = 0 ;
17896 PyObject * obj0 = 0 ;
17897 PyObject * obj1 = 0 ;
17898 char * kwnames[] = {
17899 (char *) "self",(char *) "pageSize", NULL
17900 };
17901
17902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17904 if (!SWIG_IsOK(res1)) {
17905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17906 }
17907 arg1 = reinterpret_cast< wxSlider * >(argp1);
17908 ecode2 = SWIG_AsVal_int(obj1, &val2);
17909 if (!SWIG_IsOK(ecode2)) {
17910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17911 }
17912 arg2 = static_cast< int >(val2);
17913 {
17914 PyThreadState* __tstate = wxPyBeginAllowThreads();
17915 (arg1)->SetPageSize(arg2);
17916 wxPyEndAllowThreads(__tstate);
17917 if (PyErr_Occurred()) SWIG_fail;
17918 }
17919 resultobj = SWIG_Py_Void();
17920 return resultobj;
17921 fail:
17922 return NULL;
17923 }
17924
17925
17926 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17927 PyObject *resultobj = 0;
17928 wxSlider *arg1 = (wxSlider *) 0 ;
17929 int result;
17930 void *argp1 = 0 ;
17931 int res1 = 0 ;
17932 PyObject *swig_obj[1] ;
17933
17934 if (!args) SWIG_fail;
17935 swig_obj[0] = args;
17936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17937 if (!SWIG_IsOK(res1)) {
17938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17939 }
17940 arg1 = reinterpret_cast< wxSlider * >(argp1);
17941 {
17942 PyThreadState* __tstate = wxPyBeginAllowThreads();
17943 result = (int)((wxSlider const *)arg1)->GetLineSize();
17944 wxPyEndAllowThreads(__tstate);
17945 if (PyErr_Occurred()) SWIG_fail;
17946 }
17947 resultobj = SWIG_From_int(static_cast< int >(result));
17948 return resultobj;
17949 fail:
17950 return NULL;
17951 }
17952
17953
17954 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17955 PyObject *resultobj = 0;
17956 wxSlider *arg1 = (wxSlider *) 0 ;
17957 int result;
17958 void *argp1 = 0 ;
17959 int res1 = 0 ;
17960 PyObject *swig_obj[1] ;
17961
17962 if (!args) SWIG_fail;
17963 swig_obj[0] = args;
17964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17965 if (!SWIG_IsOK(res1)) {
17966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17967 }
17968 arg1 = reinterpret_cast< wxSlider * >(argp1);
17969 {
17970 PyThreadState* __tstate = wxPyBeginAllowThreads();
17971 result = (int)((wxSlider const *)arg1)->GetPageSize();
17972 wxPyEndAllowThreads(__tstate);
17973 if (PyErr_Occurred()) SWIG_fail;
17974 }
17975 resultobj = SWIG_From_int(static_cast< int >(result));
17976 return resultobj;
17977 fail:
17978 return NULL;
17979 }
17980
17981
17982 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17983 PyObject *resultobj = 0;
17984 wxSlider *arg1 = (wxSlider *) 0 ;
17985 int arg2 ;
17986 void *argp1 = 0 ;
17987 int res1 = 0 ;
17988 int val2 ;
17989 int ecode2 = 0 ;
17990 PyObject * obj0 = 0 ;
17991 PyObject * obj1 = 0 ;
17992 char * kwnames[] = {
17993 (char *) "self",(char *) "lenPixels", NULL
17994 };
17995
17996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
17997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17998 if (!SWIG_IsOK(res1)) {
17999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18000 }
18001 arg1 = reinterpret_cast< wxSlider * >(argp1);
18002 ecode2 = SWIG_AsVal_int(obj1, &val2);
18003 if (!SWIG_IsOK(ecode2)) {
18004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18005 }
18006 arg2 = static_cast< int >(val2);
18007 {
18008 PyThreadState* __tstate = wxPyBeginAllowThreads();
18009 (arg1)->SetThumbLength(arg2);
18010 wxPyEndAllowThreads(__tstate);
18011 if (PyErr_Occurred()) SWIG_fail;
18012 }
18013 resultobj = SWIG_Py_Void();
18014 return resultobj;
18015 fail:
18016 return NULL;
18017 }
18018
18019
18020 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18021 PyObject *resultobj = 0;
18022 wxSlider *arg1 = (wxSlider *) 0 ;
18023 int result;
18024 void *argp1 = 0 ;
18025 int res1 = 0 ;
18026 PyObject *swig_obj[1] ;
18027
18028 if (!args) SWIG_fail;
18029 swig_obj[0] = args;
18030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18031 if (!SWIG_IsOK(res1)) {
18032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18033 }
18034 arg1 = reinterpret_cast< wxSlider * >(argp1);
18035 {
18036 PyThreadState* __tstate = wxPyBeginAllowThreads();
18037 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18038 wxPyEndAllowThreads(__tstate);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 }
18041 resultobj = SWIG_From_int(static_cast< int >(result));
18042 return resultobj;
18043 fail:
18044 return NULL;
18045 }
18046
18047
18048 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18049 PyObject *resultobj = 0;
18050 wxSlider *arg1 = (wxSlider *) 0 ;
18051 int arg2 ;
18052 int arg3 = (int) 1 ;
18053 void *argp1 = 0 ;
18054 int res1 = 0 ;
18055 int val2 ;
18056 int ecode2 = 0 ;
18057 int val3 ;
18058 int ecode3 = 0 ;
18059 PyObject * obj0 = 0 ;
18060 PyObject * obj1 = 0 ;
18061 PyObject * obj2 = 0 ;
18062 char * kwnames[] = {
18063 (char *) "self",(char *) "n",(char *) "pos", NULL
18064 };
18065
18066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18068 if (!SWIG_IsOK(res1)) {
18069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18070 }
18071 arg1 = reinterpret_cast< wxSlider * >(argp1);
18072 ecode2 = SWIG_AsVal_int(obj1, &val2);
18073 if (!SWIG_IsOK(ecode2)) {
18074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18075 }
18076 arg2 = static_cast< int >(val2);
18077 if (obj2) {
18078 ecode3 = SWIG_AsVal_int(obj2, &val3);
18079 if (!SWIG_IsOK(ecode3)) {
18080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18081 }
18082 arg3 = static_cast< int >(val3);
18083 }
18084 {
18085 PyThreadState* __tstate = wxPyBeginAllowThreads();
18086 (arg1)->SetTickFreq(arg2,arg3);
18087 wxPyEndAllowThreads(__tstate);
18088 if (PyErr_Occurred()) SWIG_fail;
18089 }
18090 resultobj = SWIG_Py_Void();
18091 return resultobj;
18092 fail:
18093 return NULL;
18094 }
18095
18096
18097 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18098 PyObject *resultobj = 0;
18099 wxSlider *arg1 = (wxSlider *) 0 ;
18100 int result;
18101 void *argp1 = 0 ;
18102 int res1 = 0 ;
18103 PyObject *swig_obj[1] ;
18104
18105 if (!args) SWIG_fail;
18106 swig_obj[0] = args;
18107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18108 if (!SWIG_IsOK(res1)) {
18109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18110 }
18111 arg1 = reinterpret_cast< wxSlider * >(argp1);
18112 {
18113 PyThreadState* __tstate = wxPyBeginAllowThreads();
18114 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18115 wxPyEndAllowThreads(__tstate);
18116 if (PyErr_Occurred()) SWIG_fail;
18117 }
18118 resultobj = SWIG_From_int(static_cast< int >(result));
18119 return resultobj;
18120 fail:
18121 return NULL;
18122 }
18123
18124
18125 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18126 PyObject *resultobj = 0;
18127 wxSlider *arg1 = (wxSlider *) 0 ;
18128 void *argp1 = 0 ;
18129 int res1 = 0 ;
18130 PyObject *swig_obj[1] ;
18131
18132 if (!args) SWIG_fail;
18133 swig_obj[0] = args;
18134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18135 if (!SWIG_IsOK(res1)) {
18136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18137 }
18138 arg1 = reinterpret_cast< wxSlider * >(argp1);
18139 {
18140 PyThreadState* __tstate = wxPyBeginAllowThreads();
18141 (arg1)->ClearTicks();
18142 wxPyEndAllowThreads(__tstate);
18143 if (PyErr_Occurred()) SWIG_fail;
18144 }
18145 resultobj = SWIG_Py_Void();
18146 return resultobj;
18147 fail:
18148 return NULL;
18149 }
18150
18151
18152 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18153 PyObject *resultobj = 0;
18154 wxSlider *arg1 = (wxSlider *) 0 ;
18155 int arg2 ;
18156 void *argp1 = 0 ;
18157 int res1 = 0 ;
18158 int val2 ;
18159 int ecode2 = 0 ;
18160 PyObject * obj0 = 0 ;
18161 PyObject * obj1 = 0 ;
18162 char * kwnames[] = {
18163 (char *) "self",(char *) "tickPos", NULL
18164 };
18165
18166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18168 if (!SWIG_IsOK(res1)) {
18169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18170 }
18171 arg1 = reinterpret_cast< wxSlider * >(argp1);
18172 ecode2 = SWIG_AsVal_int(obj1, &val2);
18173 if (!SWIG_IsOK(ecode2)) {
18174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18175 }
18176 arg2 = static_cast< int >(val2);
18177 {
18178 PyThreadState* __tstate = wxPyBeginAllowThreads();
18179 (arg1)->SetTick(arg2);
18180 wxPyEndAllowThreads(__tstate);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 }
18183 resultobj = SWIG_Py_Void();
18184 return resultobj;
18185 fail:
18186 return NULL;
18187 }
18188
18189
18190 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18191 PyObject *resultobj = 0;
18192 wxSlider *arg1 = (wxSlider *) 0 ;
18193 void *argp1 = 0 ;
18194 int res1 = 0 ;
18195 PyObject *swig_obj[1] ;
18196
18197 if (!args) SWIG_fail;
18198 swig_obj[0] = args;
18199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18200 if (!SWIG_IsOK(res1)) {
18201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18202 }
18203 arg1 = reinterpret_cast< wxSlider * >(argp1);
18204 {
18205 PyThreadState* __tstate = wxPyBeginAllowThreads();
18206 (arg1)->ClearSel();
18207 wxPyEndAllowThreads(__tstate);
18208 if (PyErr_Occurred()) SWIG_fail;
18209 }
18210 resultobj = SWIG_Py_Void();
18211 return resultobj;
18212 fail:
18213 return NULL;
18214 }
18215
18216
18217 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18218 PyObject *resultobj = 0;
18219 wxSlider *arg1 = (wxSlider *) 0 ;
18220 int result;
18221 void *argp1 = 0 ;
18222 int res1 = 0 ;
18223 PyObject *swig_obj[1] ;
18224
18225 if (!args) SWIG_fail;
18226 swig_obj[0] = args;
18227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18228 if (!SWIG_IsOK(res1)) {
18229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18230 }
18231 arg1 = reinterpret_cast< wxSlider * >(argp1);
18232 {
18233 PyThreadState* __tstate = wxPyBeginAllowThreads();
18234 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18235 wxPyEndAllowThreads(__tstate);
18236 if (PyErr_Occurred()) SWIG_fail;
18237 }
18238 resultobj = SWIG_From_int(static_cast< int >(result));
18239 return resultobj;
18240 fail:
18241 return NULL;
18242 }
18243
18244
18245 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18246 PyObject *resultobj = 0;
18247 wxSlider *arg1 = (wxSlider *) 0 ;
18248 int result;
18249 void *argp1 = 0 ;
18250 int res1 = 0 ;
18251 PyObject *swig_obj[1] ;
18252
18253 if (!args) SWIG_fail;
18254 swig_obj[0] = args;
18255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18256 if (!SWIG_IsOK(res1)) {
18257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18258 }
18259 arg1 = reinterpret_cast< wxSlider * >(argp1);
18260 {
18261 PyThreadState* __tstate = wxPyBeginAllowThreads();
18262 result = (int)((wxSlider const *)arg1)->GetSelStart();
18263 wxPyEndAllowThreads(__tstate);
18264 if (PyErr_Occurred()) SWIG_fail;
18265 }
18266 resultobj = SWIG_From_int(static_cast< int >(result));
18267 return resultobj;
18268 fail:
18269 return NULL;
18270 }
18271
18272
18273 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18274 PyObject *resultobj = 0;
18275 wxSlider *arg1 = (wxSlider *) 0 ;
18276 int arg2 ;
18277 int arg3 ;
18278 void *argp1 = 0 ;
18279 int res1 = 0 ;
18280 int val2 ;
18281 int ecode2 = 0 ;
18282 int val3 ;
18283 int ecode3 = 0 ;
18284 PyObject * obj0 = 0 ;
18285 PyObject * obj1 = 0 ;
18286 PyObject * obj2 = 0 ;
18287 char * kwnames[] = {
18288 (char *) "self",(char *) "min",(char *) "max", NULL
18289 };
18290
18291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18293 if (!SWIG_IsOK(res1)) {
18294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18295 }
18296 arg1 = reinterpret_cast< wxSlider * >(argp1);
18297 ecode2 = SWIG_AsVal_int(obj1, &val2);
18298 if (!SWIG_IsOK(ecode2)) {
18299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18300 }
18301 arg2 = static_cast< int >(val2);
18302 ecode3 = SWIG_AsVal_int(obj2, &val3);
18303 if (!SWIG_IsOK(ecode3)) {
18304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18305 }
18306 arg3 = static_cast< int >(val3);
18307 {
18308 PyThreadState* __tstate = wxPyBeginAllowThreads();
18309 (arg1)->SetSelection(arg2,arg3);
18310 wxPyEndAllowThreads(__tstate);
18311 if (PyErr_Occurred()) SWIG_fail;
18312 }
18313 resultobj = SWIG_Py_Void();
18314 return resultobj;
18315 fail:
18316 return NULL;
18317 }
18318
18319
18320 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18321 PyObject *resultobj = 0;
18322 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18323 SwigValueWrapper<wxVisualAttributes > result;
18324 int val1 ;
18325 int ecode1 = 0 ;
18326 PyObject * obj0 = 0 ;
18327 char * kwnames[] = {
18328 (char *) "variant", NULL
18329 };
18330
18331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18332 if (obj0) {
18333 ecode1 = SWIG_AsVal_int(obj0, &val1);
18334 if (!SWIG_IsOK(ecode1)) {
18335 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18336 }
18337 arg1 = static_cast< wxWindowVariant >(val1);
18338 }
18339 {
18340 if (!wxPyCheckForApp()) SWIG_fail;
18341 PyThreadState* __tstate = wxPyBeginAllowThreads();
18342 result = wxSlider::GetClassDefaultAttributes(arg1);
18343 wxPyEndAllowThreads(__tstate);
18344 if (PyErr_Occurred()) SWIG_fail;
18345 }
18346 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18347 return resultobj;
18348 fail:
18349 return NULL;
18350 }
18351
18352
18353 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18354 PyObject *obj;
18355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18356 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18357 return SWIG_Py_Void();
18358 }
18359
18360 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18361 return SWIG_Python_InitShadowInstance(args);
18362 }
18363
18364 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18365 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18366 return 1;
18367 }
18368
18369
18370 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18371 PyObject *pyobj = 0;
18372
18373 {
18374 #if wxUSE_UNICODE
18375 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18376 #else
18377 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18378 #endif
18379 }
18380 return pyobj;
18381 }
18382
18383
18384 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18385 PyObject *resultobj = 0;
18386 wxWindow *arg1 = (wxWindow *) 0 ;
18387 int arg2 = (int) -1 ;
18388 wxString const &arg3_defvalue = wxPyEmptyString ;
18389 wxString *arg3 = (wxString *) &arg3_defvalue ;
18390 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18391 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18392 wxSize const &arg5_defvalue = wxDefaultSize ;
18393 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18394 long arg6 = (long) 0 ;
18395 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18396 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18397 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18398 wxString *arg8 = (wxString *) &arg8_defvalue ;
18399 wxToggleButton *result = 0 ;
18400 void *argp1 = 0 ;
18401 int res1 = 0 ;
18402 int val2 ;
18403 int ecode2 = 0 ;
18404 bool temp3 = false ;
18405 wxPoint temp4 ;
18406 wxSize temp5 ;
18407 long val6 ;
18408 int ecode6 = 0 ;
18409 void *argp7 = 0 ;
18410 int res7 = 0 ;
18411 bool temp8 = false ;
18412 PyObject * obj0 = 0 ;
18413 PyObject * obj1 = 0 ;
18414 PyObject * obj2 = 0 ;
18415 PyObject * obj3 = 0 ;
18416 PyObject * obj4 = 0 ;
18417 PyObject * obj5 = 0 ;
18418 PyObject * obj6 = 0 ;
18419 PyObject * obj7 = 0 ;
18420 char * kwnames[] = {
18421 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18422 };
18423
18424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18426 if (!SWIG_IsOK(res1)) {
18427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18428 }
18429 arg1 = reinterpret_cast< wxWindow * >(argp1);
18430 if (obj1) {
18431 ecode2 = SWIG_AsVal_int(obj1, &val2);
18432 if (!SWIG_IsOK(ecode2)) {
18433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18434 }
18435 arg2 = static_cast< int >(val2);
18436 }
18437 if (obj2) {
18438 {
18439 arg3 = wxString_in_helper(obj2);
18440 if (arg3 == NULL) SWIG_fail;
18441 temp3 = true;
18442 }
18443 }
18444 if (obj3) {
18445 {
18446 arg4 = &temp4;
18447 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18448 }
18449 }
18450 if (obj4) {
18451 {
18452 arg5 = &temp5;
18453 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18454 }
18455 }
18456 if (obj5) {
18457 ecode6 = SWIG_AsVal_long(obj5, &val6);
18458 if (!SWIG_IsOK(ecode6)) {
18459 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18460 }
18461 arg6 = static_cast< long >(val6);
18462 }
18463 if (obj6) {
18464 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18465 if (!SWIG_IsOK(res7)) {
18466 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18467 }
18468 if (!argp7) {
18469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18470 }
18471 arg7 = reinterpret_cast< wxValidator * >(argp7);
18472 }
18473 if (obj7) {
18474 {
18475 arg8 = wxString_in_helper(obj7);
18476 if (arg8 == NULL) SWIG_fail;
18477 temp8 = true;
18478 }
18479 }
18480 {
18481 if (!wxPyCheckForApp()) SWIG_fail;
18482 PyThreadState* __tstate = wxPyBeginAllowThreads();
18483 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18484 wxPyEndAllowThreads(__tstate);
18485 if (PyErr_Occurred()) SWIG_fail;
18486 }
18487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18488 {
18489 if (temp3)
18490 delete arg3;
18491 }
18492 {
18493 if (temp8)
18494 delete arg8;
18495 }
18496 return resultobj;
18497 fail:
18498 {
18499 if (temp3)
18500 delete arg3;
18501 }
18502 {
18503 if (temp8)
18504 delete arg8;
18505 }
18506 return NULL;
18507 }
18508
18509
18510 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18511 PyObject *resultobj = 0;
18512 wxToggleButton *result = 0 ;
18513
18514 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18515 {
18516 if (!wxPyCheckForApp()) SWIG_fail;
18517 PyThreadState* __tstate = wxPyBeginAllowThreads();
18518 result = (wxToggleButton *)new wxToggleButton();
18519 wxPyEndAllowThreads(__tstate);
18520 if (PyErr_Occurred()) SWIG_fail;
18521 }
18522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18523 return resultobj;
18524 fail:
18525 return NULL;
18526 }
18527
18528
18529 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18530 PyObject *resultobj = 0;
18531 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18532 wxWindow *arg2 = (wxWindow *) 0 ;
18533 int arg3 = (int) -1 ;
18534 wxString const &arg4_defvalue = wxPyEmptyString ;
18535 wxString *arg4 = (wxString *) &arg4_defvalue ;
18536 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18537 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18538 wxSize const &arg6_defvalue = wxDefaultSize ;
18539 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18540 long arg7 = (long) 0 ;
18541 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18542 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18543 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18544 wxString *arg9 = (wxString *) &arg9_defvalue ;
18545 bool result;
18546 void *argp1 = 0 ;
18547 int res1 = 0 ;
18548 void *argp2 = 0 ;
18549 int res2 = 0 ;
18550 int val3 ;
18551 int ecode3 = 0 ;
18552 bool temp4 = false ;
18553 wxPoint temp5 ;
18554 wxSize temp6 ;
18555 long val7 ;
18556 int ecode7 = 0 ;
18557 void *argp8 = 0 ;
18558 int res8 = 0 ;
18559 bool temp9 = false ;
18560 PyObject * obj0 = 0 ;
18561 PyObject * obj1 = 0 ;
18562 PyObject * obj2 = 0 ;
18563 PyObject * obj3 = 0 ;
18564 PyObject * obj4 = 0 ;
18565 PyObject * obj5 = 0 ;
18566 PyObject * obj6 = 0 ;
18567 PyObject * obj7 = 0 ;
18568 PyObject * obj8 = 0 ;
18569 char * kwnames[] = {
18570 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18571 };
18572
18573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18575 if (!SWIG_IsOK(res1)) {
18576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18577 }
18578 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18579 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18580 if (!SWIG_IsOK(res2)) {
18581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18582 }
18583 arg2 = reinterpret_cast< wxWindow * >(argp2);
18584 if (obj2) {
18585 ecode3 = SWIG_AsVal_int(obj2, &val3);
18586 if (!SWIG_IsOK(ecode3)) {
18587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18588 }
18589 arg3 = static_cast< int >(val3);
18590 }
18591 if (obj3) {
18592 {
18593 arg4 = wxString_in_helper(obj3);
18594 if (arg4 == NULL) SWIG_fail;
18595 temp4 = true;
18596 }
18597 }
18598 if (obj4) {
18599 {
18600 arg5 = &temp5;
18601 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18602 }
18603 }
18604 if (obj5) {
18605 {
18606 arg6 = &temp6;
18607 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18608 }
18609 }
18610 if (obj6) {
18611 ecode7 = SWIG_AsVal_long(obj6, &val7);
18612 if (!SWIG_IsOK(ecode7)) {
18613 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18614 }
18615 arg7 = static_cast< long >(val7);
18616 }
18617 if (obj7) {
18618 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18619 if (!SWIG_IsOK(res8)) {
18620 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18621 }
18622 if (!argp8) {
18623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18624 }
18625 arg8 = reinterpret_cast< wxValidator * >(argp8);
18626 }
18627 if (obj8) {
18628 {
18629 arg9 = wxString_in_helper(obj8);
18630 if (arg9 == NULL) SWIG_fail;
18631 temp9 = true;
18632 }
18633 }
18634 {
18635 PyThreadState* __tstate = wxPyBeginAllowThreads();
18636 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18637 wxPyEndAllowThreads(__tstate);
18638 if (PyErr_Occurred()) SWIG_fail;
18639 }
18640 {
18641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18642 }
18643 {
18644 if (temp4)
18645 delete arg4;
18646 }
18647 {
18648 if (temp9)
18649 delete arg9;
18650 }
18651 return resultobj;
18652 fail:
18653 {
18654 if (temp4)
18655 delete arg4;
18656 }
18657 {
18658 if (temp9)
18659 delete arg9;
18660 }
18661 return NULL;
18662 }
18663
18664
18665 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18666 PyObject *resultobj = 0;
18667 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18668 bool arg2 ;
18669 void *argp1 = 0 ;
18670 int res1 = 0 ;
18671 bool val2 ;
18672 int ecode2 = 0 ;
18673 PyObject * obj0 = 0 ;
18674 PyObject * obj1 = 0 ;
18675 char * kwnames[] = {
18676 (char *) "self",(char *) "value", NULL
18677 };
18678
18679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18681 if (!SWIG_IsOK(res1)) {
18682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18683 }
18684 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18685 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18686 if (!SWIG_IsOK(ecode2)) {
18687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18688 }
18689 arg2 = static_cast< bool >(val2);
18690 {
18691 PyThreadState* __tstate = wxPyBeginAllowThreads();
18692 (arg1)->SetValue(arg2);
18693 wxPyEndAllowThreads(__tstate);
18694 if (PyErr_Occurred()) SWIG_fail;
18695 }
18696 resultobj = SWIG_Py_Void();
18697 return resultobj;
18698 fail:
18699 return NULL;
18700 }
18701
18702
18703 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18704 PyObject *resultobj = 0;
18705 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18706 bool result;
18707 void *argp1 = 0 ;
18708 int res1 = 0 ;
18709 PyObject *swig_obj[1] ;
18710
18711 if (!args) SWIG_fail;
18712 swig_obj[0] = args;
18713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18714 if (!SWIG_IsOK(res1)) {
18715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18716 }
18717 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18718 {
18719 PyThreadState* __tstate = wxPyBeginAllowThreads();
18720 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18721 wxPyEndAllowThreads(__tstate);
18722 if (PyErr_Occurred()) SWIG_fail;
18723 }
18724 {
18725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18726 }
18727 return resultobj;
18728 fail:
18729 return NULL;
18730 }
18731
18732
18733 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18734 PyObject *resultobj = 0;
18735 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18736 SwigValueWrapper<wxVisualAttributes > result;
18737 int val1 ;
18738 int ecode1 = 0 ;
18739 PyObject * obj0 = 0 ;
18740 char * kwnames[] = {
18741 (char *) "variant", NULL
18742 };
18743
18744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18745 if (obj0) {
18746 ecode1 = SWIG_AsVal_int(obj0, &val1);
18747 if (!SWIG_IsOK(ecode1)) {
18748 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18749 }
18750 arg1 = static_cast< wxWindowVariant >(val1);
18751 }
18752 {
18753 if (!wxPyCheckForApp()) SWIG_fail;
18754 PyThreadState* __tstate = wxPyBeginAllowThreads();
18755 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18756 wxPyEndAllowThreads(__tstate);
18757 if (PyErr_Occurred()) SWIG_fail;
18758 }
18759 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18760 return resultobj;
18761 fail:
18762 return NULL;
18763 }
18764
18765
18766 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18767 PyObject *obj;
18768 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18769 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18770 return SWIG_Py_Void();
18771 }
18772
18773 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18774 return SWIG_Python_InitShadowInstance(args);
18775 }
18776
18777 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18778 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18779 return 1;
18780 }
18781
18782
18783 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18784 PyObject *pyobj = 0;
18785
18786 {
18787 #if wxUSE_UNICODE
18788 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18789 #else
18790 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18791 #endif
18792 }
18793 return pyobj;
18794 }
18795
18796
18797 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18798 PyObject *resultobj = 0;
18799 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18800 size_t result;
18801 void *argp1 = 0 ;
18802 int res1 = 0 ;
18803 PyObject *swig_obj[1] ;
18804
18805 if (!args) SWIG_fail;
18806 swig_obj[0] = args;
18807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18808 if (!SWIG_IsOK(res1)) {
18809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18810 }
18811 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18812 {
18813 PyThreadState* __tstate = wxPyBeginAllowThreads();
18814 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18815 wxPyEndAllowThreads(__tstate);
18816 if (PyErr_Occurred()) SWIG_fail;
18817 }
18818 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18819 return resultobj;
18820 fail:
18821 return NULL;
18822 }
18823
18824
18825 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18826 PyObject *resultobj = 0;
18827 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18828 size_t arg2 ;
18829 wxWindow *result = 0 ;
18830 void *argp1 = 0 ;
18831 int res1 = 0 ;
18832 size_t val2 ;
18833 int ecode2 = 0 ;
18834 PyObject * obj0 = 0 ;
18835 PyObject * obj1 = 0 ;
18836 char * kwnames[] = {
18837 (char *) "self",(char *) "n", NULL
18838 };
18839
18840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18842 if (!SWIG_IsOK(res1)) {
18843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18844 }
18845 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18846 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18847 if (!SWIG_IsOK(ecode2)) {
18848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18849 }
18850 arg2 = static_cast< size_t >(val2);
18851 {
18852 PyThreadState* __tstate = wxPyBeginAllowThreads();
18853 result = (wxWindow *)(arg1)->GetPage(arg2);
18854 wxPyEndAllowThreads(__tstate);
18855 if (PyErr_Occurred()) SWIG_fail;
18856 }
18857 {
18858 resultobj = wxPyMake_wxObject(result, 0);
18859 }
18860 return resultobj;
18861 fail:
18862 return NULL;
18863 }
18864
18865
18866 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18867 PyObject *resultobj = 0;
18868 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18869 wxWindow *result = 0 ;
18870 void *argp1 = 0 ;
18871 int res1 = 0 ;
18872 PyObject *swig_obj[1] ;
18873
18874 if (!args) SWIG_fail;
18875 swig_obj[0] = args;
18876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18877 if (!SWIG_IsOK(res1)) {
18878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18879 }
18880 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18881 {
18882 PyThreadState* __tstate = wxPyBeginAllowThreads();
18883 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18884 wxPyEndAllowThreads(__tstate);
18885 if (PyErr_Occurred()) SWIG_fail;
18886 }
18887 {
18888 resultobj = wxPyMake_wxObject(result, 0);
18889 }
18890 return resultobj;
18891 fail:
18892 return NULL;
18893 }
18894
18895
18896 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18897 PyObject *resultobj = 0;
18898 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18899 int result;
18900 void *argp1 = 0 ;
18901 int res1 = 0 ;
18902 PyObject *swig_obj[1] ;
18903
18904 if (!args) SWIG_fail;
18905 swig_obj[0] = args;
18906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18907 if (!SWIG_IsOK(res1)) {
18908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18909 }
18910 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18911 {
18912 PyThreadState* __tstate = wxPyBeginAllowThreads();
18913 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18914 wxPyEndAllowThreads(__tstate);
18915 if (PyErr_Occurred()) SWIG_fail;
18916 }
18917 resultobj = SWIG_From_int(static_cast< int >(result));
18918 return resultobj;
18919 fail:
18920 return NULL;
18921 }
18922
18923
18924 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18925 PyObject *resultobj = 0;
18926 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18927 size_t arg2 ;
18928 wxString *arg3 = 0 ;
18929 bool result;
18930 void *argp1 = 0 ;
18931 int res1 = 0 ;
18932 size_t val2 ;
18933 int ecode2 = 0 ;
18934 bool temp3 = false ;
18935 PyObject * obj0 = 0 ;
18936 PyObject * obj1 = 0 ;
18937 PyObject * obj2 = 0 ;
18938 char * kwnames[] = {
18939 (char *) "self",(char *) "n",(char *) "strText", NULL
18940 };
18941
18942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18944 if (!SWIG_IsOK(res1)) {
18945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18946 }
18947 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18948 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18949 if (!SWIG_IsOK(ecode2)) {
18950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
18951 }
18952 arg2 = static_cast< size_t >(val2);
18953 {
18954 arg3 = wxString_in_helper(obj2);
18955 if (arg3 == NULL) SWIG_fail;
18956 temp3 = true;
18957 }
18958 {
18959 PyThreadState* __tstate = wxPyBeginAllowThreads();
18960 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
18961 wxPyEndAllowThreads(__tstate);
18962 if (PyErr_Occurred()) SWIG_fail;
18963 }
18964 {
18965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18966 }
18967 {
18968 if (temp3)
18969 delete arg3;
18970 }
18971 return resultobj;
18972 fail:
18973 {
18974 if (temp3)
18975 delete arg3;
18976 }
18977 return NULL;
18978 }
18979
18980
18981 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18982 PyObject *resultobj = 0;
18983 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18984 size_t arg2 ;
18985 wxString result;
18986 void *argp1 = 0 ;
18987 int res1 = 0 ;
18988 size_t val2 ;
18989 int ecode2 = 0 ;
18990 PyObject * obj0 = 0 ;
18991 PyObject * obj1 = 0 ;
18992 char * kwnames[] = {
18993 (char *) "self",(char *) "n", NULL
18994 };
18995
18996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
18997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18998 if (!SWIG_IsOK(res1)) {
18999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19000 }
19001 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19002 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19003 if (!SWIG_IsOK(ecode2)) {
19004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19005 }
19006 arg2 = static_cast< size_t >(val2);
19007 {
19008 PyThreadState* __tstate = wxPyBeginAllowThreads();
19009 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19010 wxPyEndAllowThreads(__tstate);
19011 if (PyErr_Occurred()) SWIG_fail;
19012 }
19013 {
19014 #if wxUSE_UNICODE
19015 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19016 #else
19017 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19018 #endif
19019 }
19020 return resultobj;
19021 fail:
19022 return NULL;
19023 }
19024
19025
19026 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19027 PyObject *resultobj = 0;
19028 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19029 wxImageList *arg2 = (wxImageList *) 0 ;
19030 void *argp1 = 0 ;
19031 int res1 = 0 ;
19032 void *argp2 = 0 ;
19033 int res2 = 0 ;
19034 PyObject * obj0 = 0 ;
19035 PyObject * obj1 = 0 ;
19036 char * kwnames[] = {
19037 (char *) "self",(char *) "imageList", NULL
19038 };
19039
19040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19042 if (!SWIG_IsOK(res1)) {
19043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19044 }
19045 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19046 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19047 if (!SWIG_IsOK(res2)) {
19048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19049 }
19050 arg2 = reinterpret_cast< wxImageList * >(argp2);
19051 {
19052 PyThreadState* __tstate = wxPyBeginAllowThreads();
19053 (arg1)->SetImageList(arg2);
19054 wxPyEndAllowThreads(__tstate);
19055 if (PyErr_Occurred()) SWIG_fail;
19056 }
19057 resultobj = SWIG_Py_Void();
19058 return resultobj;
19059 fail:
19060 return NULL;
19061 }
19062
19063
19064 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19065 PyObject *resultobj = 0;
19066 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19067 wxImageList *arg2 = (wxImageList *) 0 ;
19068 void *argp1 = 0 ;
19069 int res1 = 0 ;
19070 int res2 = 0 ;
19071 PyObject * obj0 = 0 ;
19072 PyObject * obj1 = 0 ;
19073 char * kwnames[] = {
19074 (char *) "self",(char *) "imageList", NULL
19075 };
19076
19077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19079 if (!SWIG_IsOK(res1)) {
19080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19081 }
19082 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19083 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19084 if (!SWIG_IsOK(res2)) {
19085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19086 }
19087 {
19088 PyThreadState* __tstate = wxPyBeginAllowThreads();
19089 (arg1)->AssignImageList(arg2);
19090 wxPyEndAllowThreads(__tstate);
19091 if (PyErr_Occurred()) SWIG_fail;
19092 }
19093 resultobj = SWIG_Py_Void();
19094 return resultobj;
19095 fail:
19096 return NULL;
19097 }
19098
19099
19100 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19101 PyObject *resultobj = 0;
19102 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19103 wxImageList *result = 0 ;
19104 void *argp1 = 0 ;
19105 int res1 = 0 ;
19106 PyObject *swig_obj[1] ;
19107
19108 if (!args) SWIG_fail;
19109 swig_obj[0] = args;
19110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19111 if (!SWIG_IsOK(res1)) {
19112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19113 }
19114 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19115 {
19116 PyThreadState* __tstate = wxPyBeginAllowThreads();
19117 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19118 wxPyEndAllowThreads(__tstate);
19119 if (PyErr_Occurred()) SWIG_fail;
19120 }
19121 {
19122 resultobj = wxPyMake_wxObject(result, (bool)0);
19123 }
19124 return resultobj;
19125 fail:
19126 return NULL;
19127 }
19128
19129
19130 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19131 PyObject *resultobj = 0;
19132 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19133 size_t arg2 ;
19134 int result;
19135 void *argp1 = 0 ;
19136 int res1 = 0 ;
19137 size_t val2 ;
19138 int ecode2 = 0 ;
19139 PyObject * obj0 = 0 ;
19140 PyObject * obj1 = 0 ;
19141 char * kwnames[] = {
19142 (char *) "self",(char *) "n", NULL
19143 };
19144
19145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19147 if (!SWIG_IsOK(res1)) {
19148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19149 }
19150 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19151 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19152 if (!SWIG_IsOK(ecode2)) {
19153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19154 }
19155 arg2 = static_cast< size_t >(val2);
19156 {
19157 PyThreadState* __tstate = wxPyBeginAllowThreads();
19158 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19159 wxPyEndAllowThreads(__tstate);
19160 if (PyErr_Occurred()) SWIG_fail;
19161 }
19162 resultobj = SWIG_From_int(static_cast< int >(result));
19163 return resultobj;
19164 fail:
19165 return NULL;
19166 }
19167
19168
19169 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19170 PyObject *resultobj = 0;
19171 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19172 size_t arg2 ;
19173 int arg3 ;
19174 bool result;
19175 void *argp1 = 0 ;
19176 int res1 = 0 ;
19177 size_t val2 ;
19178 int ecode2 = 0 ;
19179 int val3 ;
19180 int ecode3 = 0 ;
19181 PyObject * obj0 = 0 ;
19182 PyObject * obj1 = 0 ;
19183 PyObject * obj2 = 0 ;
19184 char * kwnames[] = {
19185 (char *) "self",(char *) "n",(char *) "imageId", NULL
19186 };
19187
19188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19190 if (!SWIG_IsOK(res1)) {
19191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19192 }
19193 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19194 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19195 if (!SWIG_IsOK(ecode2)) {
19196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19197 }
19198 arg2 = static_cast< size_t >(val2);
19199 ecode3 = SWIG_AsVal_int(obj2, &val3);
19200 if (!SWIG_IsOK(ecode3)) {
19201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19202 }
19203 arg3 = static_cast< int >(val3);
19204 {
19205 PyThreadState* __tstate = wxPyBeginAllowThreads();
19206 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19207 wxPyEndAllowThreads(__tstate);
19208 if (PyErr_Occurred()) SWIG_fail;
19209 }
19210 {
19211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19212 }
19213 return resultobj;
19214 fail:
19215 return NULL;
19216 }
19217
19218
19219 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19220 PyObject *resultobj = 0;
19221 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19222 wxSize *arg2 = 0 ;
19223 void *argp1 = 0 ;
19224 int res1 = 0 ;
19225 wxSize temp2 ;
19226 PyObject * obj0 = 0 ;
19227 PyObject * obj1 = 0 ;
19228 char * kwnames[] = {
19229 (char *) "self",(char *) "size", NULL
19230 };
19231
19232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19234 if (!SWIG_IsOK(res1)) {
19235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19236 }
19237 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19238 {
19239 arg2 = &temp2;
19240 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19241 }
19242 {
19243 PyThreadState* __tstate = wxPyBeginAllowThreads();
19244 (arg1)->SetPageSize((wxSize const &)*arg2);
19245 wxPyEndAllowThreads(__tstate);
19246 if (PyErr_Occurred()) SWIG_fail;
19247 }
19248 resultobj = SWIG_Py_Void();
19249 return resultobj;
19250 fail:
19251 return NULL;
19252 }
19253
19254
19255 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19256 PyObject *resultobj = 0;
19257 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19258 wxSize *arg2 = 0 ;
19259 wxSize result;
19260 void *argp1 = 0 ;
19261 int res1 = 0 ;
19262 wxSize temp2 ;
19263 PyObject * obj0 = 0 ;
19264 PyObject * obj1 = 0 ;
19265 char * kwnames[] = {
19266 (char *) "self",(char *) "sizePage", NULL
19267 };
19268
19269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19271 if (!SWIG_IsOK(res1)) {
19272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19273 }
19274 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19275 {
19276 arg2 = &temp2;
19277 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19278 }
19279 {
19280 PyThreadState* __tstate = wxPyBeginAllowThreads();
19281 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19282 wxPyEndAllowThreads(__tstate);
19283 if (PyErr_Occurred()) SWIG_fail;
19284 }
19285 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19286 return resultobj;
19287 fail:
19288 return NULL;
19289 }
19290
19291
19292 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19293 PyObject *resultobj = 0;
19294 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19295 size_t result;
19296 void *argp1 = 0 ;
19297 int res1 = 0 ;
19298 PyObject *swig_obj[1] ;
19299
19300 if (!args) SWIG_fail;
19301 swig_obj[0] = args;
19302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19303 if (!SWIG_IsOK(res1)) {
19304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19305 }
19306 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19307 {
19308 PyThreadState* __tstate = wxPyBeginAllowThreads();
19309 result = (size_t)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19310 wxPyEndAllowThreads(__tstate);
19311 if (PyErr_Occurred()) SWIG_fail;
19312 }
19313 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19314 return resultobj;
19315 fail:
19316 return NULL;
19317 }
19318
19319
19320 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19321 PyObject *resultobj = 0;
19322 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19323 size_t arg2 ;
19324 void *argp1 = 0 ;
19325 int res1 = 0 ;
19326 size_t val2 ;
19327 int ecode2 = 0 ;
19328 PyObject * obj0 = 0 ;
19329 PyObject * obj1 = 0 ;
19330 char * kwnames[] = {
19331 (char *) "self",(char *) "internalBorder", NULL
19332 };
19333
19334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19336 if (!SWIG_IsOK(res1)) {
19337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19338 }
19339 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19340 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19341 if (!SWIG_IsOK(ecode2)) {
19342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "size_t""'");
19343 }
19344 arg2 = static_cast< size_t >(val2);
19345 {
19346 PyThreadState* __tstate = wxPyBeginAllowThreads();
19347 (arg1)->SetInternalBorder(arg2);
19348 wxPyEndAllowThreads(__tstate);
19349 if (PyErr_Occurred()) SWIG_fail;
19350 }
19351 resultobj = SWIG_Py_Void();
19352 return resultobj;
19353 fail:
19354 return NULL;
19355 }
19356
19357
19358 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19359 PyObject *resultobj = 0;
19360 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19361 bool result;
19362 void *argp1 = 0 ;
19363 int res1 = 0 ;
19364 PyObject *swig_obj[1] ;
19365
19366 if (!args) SWIG_fail;
19367 swig_obj[0] = args;
19368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19369 if (!SWIG_IsOK(res1)) {
19370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19371 }
19372 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19373 {
19374 PyThreadState* __tstate = wxPyBeginAllowThreads();
19375 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19376 wxPyEndAllowThreads(__tstate);
19377 if (PyErr_Occurred()) SWIG_fail;
19378 }
19379 {
19380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19381 }
19382 return resultobj;
19383 fail:
19384 return NULL;
19385 }
19386
19387
19388 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19389 PyObject *resultobj = 0;
19390 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19391 bool arg2 ;
19392 void *argp1 = 0 ;
19393 int res1 = 0 ;
19394 bool val2 ;
19395 int ecode2 = 0 ;
19396 PyObject * obj0 = 0 ;
19397 PyObject * obj1 = 0 ;
19398 char * kwnames[] = {
19399 (char *) "self",(char *) "fit", NULL
19400 };
19401
19402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19404 if (!SWIG_IsOK(res1)) {
19405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19406 }
19407 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19408 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19409 if (!SWIG_IsOK(ecode2)) {
19410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19411 }
19412 arg2 = static_cast< bool >(val2);
19413 {
19414 PyThreadState* __tstate = wxPyBeginAllowThreads();
19415 (arg1)->SetFitToCurrentPage(arg2);
19416 wxPyEndAllowThreads(__tstate);
19417 if (PyErr_Occurred()) SWIG_fail;
19418 }
19419 resultobj = SWIG_Py_Void();
19420 return resultobj;
19421 fail:
19422 return NULL;
19423 }
19424
19425
19426 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19427 PyObject *resultobj = 0;
19428 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19429 bool result;
19430 void *argp1 = 0 ;
19431 int res1 = 0 ;
19432 PyObject *swig_obj[1] ;
19433
19434 if (!args) SWIG_fail;
19435 swig_obj[0] = args;
19436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19437 if (!SWIG_IsOK(res1)) {
19438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19439 }
19440 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19441 {
19442 PyThreadState* __tstate = wxPyBeginAllowThreads();
19443 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19444 wxPyEndAllowThreads(__tstate);
19445 if (PyErr_Occurred()) SWIG_fail;
19446 }
19447 {
19448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19449 }
19450 return resultobj;
19451 fail:
19452 return NULL;
19453 }
19454
19455
19456 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19457 PyObject *resultobj = 0;
19458 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19459 size_t arg2 ;
19460 bool result;
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_DeletePage",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_DeletePage" "', 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_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19480 }
19481 arg2 = static_cast< size_t >(val2);
19482 {
19483 PyThreadState* __tstate = wxPyBeginAllowThreads();
19484 result = (bool)(arg1)->DeletePage(arg2);
19485 wxPyEndAllowThreads(__tstate);
19486 if (PyErr_Occurred()) SWIG_fail;
19487 }
19488 {
19489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19490 }
19491 return resultobj;
19492 fail:
19493 return NULL;
19494 }
19495
19496
19497 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19498 PyObject *resultobj = 0;
19499 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19500 size_t arg2 ;
19501 bool result;
19502 void *argp1 = 0 ;
19503 int res1 = 0 ;
19504 size_t val2 ;
19505 int ecode2 = 0 ;
19506 PyObject * obj0 = 0 ;
19507 PyObject * obj1 = 0 ;
19508 char * kwnames[] = {
19509 (char *) "self",(char *) "n", NULL
19510 };
19511
19512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19514 if (!SWIG_IsOK(res1)) {
19515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19516 }
19517 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19518 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19519 if (!SWIG_IsOK(ecode2)) {
19520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19521 }
19522 arg2 = static_cast< size_t >(val2);
19523 {
19524 PyThreadState* __tstate = wxPyBeginAllowThreads();
19525 result = (bool)(arg1)->RemovePage(arg2);
19526 wxPyEndAllowThreads(__tstate);
19527 if (PyErr_Occurred()) SWIG_fail;
19528 }
19529 {
19530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19531 }
19532 return resultobj;
19533 fail:
19534 return NULL;
19535 }
19536
19537
19538 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19539 PyObject *resultobj = 0;
19540 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19541 bool result;
19542 void *argp1 = 0 ;
19543 int res1 = 0 ;
19544 PyObject *swig_obj[1] ;
19545
19546 if (!args) SWIG_fail;
19547 swig_obj[0] = args;
19548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19549 if (!SWIG_IsOK(res1)) {
19550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19551 }
19552 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19553 {
19554 PyThreadState* __tstate = wxPyBeginAllowThreads();
19555 result = (bool)(arg1)->DeleteAllPages();
19556 wxPyEndAllowThreads(__tstate);
19557 if (PyErr_Occurred()) SWIG_fail;
19558 }
19559 {
19560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19561 }
19562 return resultobj;
19563 fail:
19564 return NULL;
19565 }
19566
19567
19568 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19569 PyObject *resultobj = 0;
19570 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19571 wxWindow *arg2 = (wxWindow *) 0 ;
19572 wxString *arg3 = 0 ;
19573 bool arg4 = (bool) false ;
19574 int arg5 = (int) -1 ;
19575 bool result;
19576 void *argp1 = 0 ;
19577 int res1 = 0 ;
19578 void *argp2 = 0 ;
19579 int res2 = 0 ;
19580 bool temp3 = false ;
19581 bool val4 ;
19582 int ecode4 = 0 ;
19583 int val5 ;
19584 int ecode5 = 0 ;
19585 PyObject * obj0 = 0 ;
19586 PyObject * obj1 = 0 ;
19587 PyObject * obj2 = 0 ;
19588 PyObject * obj3 = 0 ;
19589 PyObject * obj4 = 0 ;
19590 char * kwnames[] = {
19591 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19592 };
19593
19594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19596 if (!SWIG_IsOK(res1)) {
19597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19598 }
19599 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19600 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19601 if (!SWIG_IsOK(res2)) {
19602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19603 }
19604 arg2 = reinterpret_cast< wxWindow * >(argp2);
19605 {
19606 arg3 = wxString_in_helper(obj2);
19607 if (arg3 == NULL) SWIG_fail;
19608 temp3 = true;
19609 }
19610 if (obj3) {
19611 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19612 if (!SWIG_IsOK(ecode4)) {
19613 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19614 }
19615 arg4 = static_cast< bool >(val4);
19616 }
19617 if (obj4) {
19618 ecode5 = SWIG_AsVal_int(obj4, &val5);
19619 if (!SWIG_IsOK(ecode5)) {
19620 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19621 }
19622 arg5 = static_cast< int >(val5);
19623 }
19624 {
19625 PyThreadState* __tstate = wxPyBeginAllowThreads();
19626 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19627 wxPyEndAllowThreads(__tstate);
19628 if (PyErr_Occurred()) SWIG_fail;
19629 }
19630 {
19631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19632 }
19633 {
19634 if (temp3)
19635 delete arg3;
19636 }
19637 return resultobj;
19638 fail:
19639 {
19640 if (temp3)
19641 delete arg3;
19642 }
19643 return NULL;
19644 }
19645
19646
19647 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19648 PyObject *resultobj = 0;
19649 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19650 size_t arg2 ;
19651 wxWindow *arg3 = (wxWindow *) 0 ;
19652 wxString *arg4 = 0 ;
19653 bool arg5 = (bool) false ;
19654 int arg6 = (int) -1 ;
19655 bool result;
19656 void *argp1 = 0 ;
19657 int res1 = 0 ;
19658 size_t val2 ;
19659 int ecode2 = 0 ;
19660 void *argp3 = 0 ;
19661 int res3 = 0 ;
19662 bool temp4 = false ;
19663 bool val5 ;
19664 int ecode5 = 0 ;
19665 int val6 ;
19666 int ecode6 = 0 ;
19667 PyObject * obj0 = 0 ;
19668 PyObject * obj1 = 0 ;
19669 PyObject * obj2 = 0 ;
19670 PyObject * obj3 = 0 ;
19671 PyObject * obj4 = 0 ;
19672 PyObject * obj5 = 0 ;
19673 char * kwnames[] = {
19674 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19675 };
19676
19677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19679 if (!SWIG_IsOK(res1)) {
19680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19681 }
19682 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19683 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19684 if (!SWIG_IsOK(ecode2)) {
19685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19686 }
19687 arg2 = static_cast< size_t >(val2);
19688 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19689 if (!SWIG_IsOK(res3)) {
19690 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19691 }
19692 arg3 = reinterpret_cast< wxWindow * >(argp3);
19693 {
19694 arg4 = wxString_in_helper(obj3);
19695 if (arg4 == NULL) SWIG_fail;
19696 temp4 = true;
19697 }
19698 if (obj4) {
19699 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19700 if (!SWIG_IsOK(ecode5)) {
19701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19702 }
19703 arg5 = static_cast< bool >(val5);
19704 }
19705 if (obj5) {
19706 ecode6 = SWIG_AsVal_int(obj5, &val6);
19707 if (!SWIG_IsOK(ecode6)) {
19708 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19709 }
19710 arg6 = static_cast< int >(val6);
19711 }
19712 {
19713 PyThreadState* __tstate = wxPyBeginAllowThreads();
19714 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19715 wxPyEndAllowThreads(__tstate);
19716 if (PyErr_Occurred()) SWIG_fail;
19717 }
19718 {
19719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19720 }
19721 {
19722 if (temp4)
19723 delete arg4;
19724 }
19725 return resultobj;
19726 fail:
19727 {
19728 if (temp4)
19729 delete arg4;
19730 }
19731 return NULL;
19732 }
19733
19734
19735 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19736 PyObject *resultobj = 0;
19737 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19738 size_t arg2 ;
19739 int result;
19740 void *argp1 = 0 ;
19741 int res1 = 0 ;
19742 size_t val2 ;
19743 int ecode2 = 0 ;
19744 PyObject * obj0 = 0 ;
19745 PyObject * obj1 = 0 ;
19746 char * kwnames[] = {
19747 (char *) "self",(char *) "n", NULL
19748 };
19749
19750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19752 if (!SWIG_IsOK(res1)) {
19753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19754 }
19755 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19756 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19757 if (!SWIG_IsOK(ecode2)) {
19758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19759 }
19760 arg2 = static_cast< size_t >(val2);
19761 {
19762 PyThreadState* __tstate = wxPyBeginAllowThreads();
19763 result = (int)(arg1)->SetSelection(arg2);
19764 wxPyEndAllowThreads(__tstate);
19765 if (PyErr_Occurred()) SWIG_fail;
19766 }
19767 resultobj = SWIG_From_int(static_cast< int >(result));
19768 return resultobj;
19769 fail:
19770 return NULL;
19771 }
19772
19773
19774 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19775 PyObject *resultobj = 0;
19776 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19777 bool arg2 = (bool) true ;
19778 void *argp1 = 0 ;
19779 int res1 = 0 ;
19780 bool val2 ;
19781 int ecode2 = 0 ;
19782 PyObject * obj0 = 0 ;
19783 PyObject * obj1 = 0 ;
19784 char * kwnames[] = {
19785 (char *) "self",(char *) "forward", NULL
19786 };
19787
19788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19790 if (!SWIG_IsOK(res1)) {
19791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19792 }
19793 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19794 if (obj1) {
19795 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19796 if (!SWIG_IsOK(ecode2)) {
19797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19798 }
19799 arg2 = static_cast< bool >(val2);
19800 }
19801 {
19802 PyThreadState* __tstate = wxPyBeginAllowThreads();
19803 (arg1)->AdvanceSelection(arg2);
19804 wxPyEndAllowThreads(__tstate);
19805 if (PyErr_Occurred()) SWIG_fail;
19806 }
19807 resultobj = SWIG_Py_Void();
19808 return resultobj;
19809 fail:
19810 return NULL;
19811 }
19812
19813
19814 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19815 PyObject *resultobj = 0;
19816 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19817 SwigValueWrapper<wxVisualAttributes > result;
19818 int val1 ;
19819 int ecode1 = 0 ;
19820 PyObject * obj0 = 0 ;
19821 char * kwnames[] = {
19822 (char *) "variant", NULL
19823 };
19824
19825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19826 if (obj0) {
19827 ecode1 = SWIG_AsVal_int(obj0, &val1);
19828 if (!SWIG_IsOK(ecode1)) {
19829 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19830 }
19831 arg1 = static_cast< wxWindowVariant >(val1);
19832 }
19833 {
19834 if (!wxPyCheckForApp()) SWIG_fail;
19835 PyThreadState* __tstate = wxPyBeginAllowThreads();
19836 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
19837 wxPyEndAllowThreads(__tstate);
19838 if (PyErr_Occurred()) SWIG_fail;
19839 }
19840 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19841 return resultobj;
19842 fail:
19843 return NULL;
19844 }
19845
19846
19847 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19848 PyObject *obj;
19849 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19850 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
19851 return SWIG_Py_Void();
19852 }
19853
19854 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19855 PyObject *resultobj = 0;
19856 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19857 int arg2 = (int) 0 ;
19858 int arg3 = (int) -1 ;
19859 int arg4 = (int) -1 ;
19860 wxBookCtrlBaseEvent *result = 0 ;
19861 int val1 ;
19862 int ecode1 = 0 ;
19863 int val2 ;
19864 int ecode2 = 0 ;
19865 int val3 ;
19866 int ecode3 = 0 ;
19867 int val4 ;
19868 int ecode4 = 0 ;
19869 PyObject * obj0 = 0 ;
19870 PyObject * obj1 = 0 ;
19871 PyObject * obj2 = 0 ;
19872 PyObject * obj3 = 0 ;
19873 char * kwnames[] = {
19874 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
19875 };
19876
19877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19878 if (obj0) {
19879 ecode1 = SWIG_AsVal_int(obj0, &val1);
19880 if (!SWIG_IsOK(ecode1)) {
19881 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
19882 }
19883 arg1 = static_cast< wxEventType >(val1);
19884 }
19885 if (obj1) {
19886 ecode2 = SWIG_AsVal_int(obj1, &val2);
19887 if (!SWIG_IsOK(ecode2)) {
19888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
19889 }
19890 arg2 = static_cast< int >(val2);
19891 }
19892 if (obj2) {
19893 ecode3 = SWIG_AsVal_int(obj2, &val3);
19894 if (!SWIG_IsOK(ecode3)) {
19895 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
19896 }
19897 arg3 = static_cast< int >(val3);
19898 }
19899 if (obj3) {
19900 ecode4 = SWIG_AsVal_int(obj3, &val4);
19901 if (!SWIG_IsOK(ecode4)) {
19902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
19903 }
19904 arg4 = static_cast< int >(val4);
19905 }
19906 {
19907 PyThreadState* __tstate = wxPyBeginAllowThreads();
19908 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
19909 wxPyEndAllowThreads(__tstate);
19910 if (PyErr_Occurred()) SWIG_fail;
19911 }
19912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
19913 return resultobj;
19914 fail:
19915 return NULL;
19916 }
19917
19918
19919 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19920 PyObject *resultobj = 0;
19921 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19922 int result;
19923 void *argp1 = 0 ;
19924 int res1 = 0 ;
19925 PyObject *swig_obj[1] ;
19926
19927 if (!args) SWIG_fail;
19928 swig_obj[0] = args;
19929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19930 if (!SWIG_IsOK(res1)) {
19931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
19932 }
19933 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19934 {
19935 PyThreadState* __tstate = wxPyBeginAllowThreads();
19936 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
19937 wxPyEndAllowThreads(__tstate);
19938 if (PyErr_Occurred()) SWIG_fail;
19939 }
19940 resultobj = SWIG_From_int(static_cast< int >(result));
19941 return resultobj;
19942 fail:
19943 return NULL;
19944 }
19945
19946
19947 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19948 PyObject *resultobj = 0;
19949 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19950 int arg2 ;
19951 void *argp1 = 0 ;
19952 int res1 = 0 ;
19953 int val2 ;
19954 int ecode2 = 0 ;
19955 PyObject * obj0 = 0 ;
19956 PyObject * obj1 = 0 ;
19957 char * kwnames[] = {
19958 (char *) "self",(char *) "nSel", NULL
19959 };
19960
19961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19963 if (!SWIG_IsOK(res1)) {
19964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
19965 }
19966 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19967 ecode2 = SWIG_AsVal_int(obj1, &val2);
19968 if (!SWIG_IsOK(ecode2)) {
19969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
19970 }
19971 arg2 = static_cast< int >(val2);
19972 {
19973 PyThreadState* __tstate = wxPyBeginAllowThreads();
19974 (arg1)->SetSelection(arg2);
19975 wxPyEndAllowThreads(__tstate);
19976 if (PyErr_Occurred()) SWIG_fail;
19977 }
19978 resultobj = SWIG_Py_Void();
19979 return resultobj;
19980 fail:
19981 return NULL;
19982 }
19983
19984
19985 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19986 PyObject *resultobj = 0;
19987 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19988 int result;
19989 void *argp1 = 0 ;
19990 int res1 = 0 ;
19991 PyObject *swig_obj[1] ;
19992
19993 if (!args) SWIG_fail;
19994 swig_obj[0] = args;
19995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19996 if (!SWIG_IsOK(res1)) {
19997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
19998 }
19999 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20000 {
20001 PyThreadState* __tstate = wxPyBeginAllowThreads();
20002 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20003 wxPyEndAllowThreads(__tstate);
20004 if (PyErr_Occurred()) SWIG_fail;
20005 }
20006 resultobj = SWIG_From_int(static_cast< int >(result));
20007 return resultobj;
20008 fail:
20009 return NULL;
20010 }
20011
20012
20013 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20014 PyObject *resultobj = 0;
20015 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20016 int arg2 ;
20017 void *argp1 = 0 ;
20018 int res1 = 0 ;
20019 int val2 ;
20020 int ecode2 = 0 ;
20021 PyObject * obj0 = 0 ;
20022 PyObject * obj1 = 0 ;
20023 char * kwnames[] = {
20024 (char *) "self",(char *) "nOldSel", NULL
20025 };
20026
20027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20029 if (!SWIG_IsOK(res1)) {
20030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20031 }
20032 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20033 ecode2 = SWIG_AsVal_int(obj1, &val2);
20034 if (!SWIG_IsOK(ecode2)) {
20035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20036 }
20037 arg2 = static_cast< int >(val2);
20038 {
20039 PyThreadState* __tstate = wxPyBeginAllowThreads();
20040 (arg1)->SetOldSelection(arg2);
20041 wxPyEndAllowThreads(__tstate);
20042 if (PyErr_Occurred()) SWIG_fail;
20043 }
20044 resultobj = SWIG_Py_Void();
20045 return resultobj;
20046 fail:
20047 return NULL;
20048 }
20049
20050
20051 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20052 PyObject *obj;
20053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20054 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20055 return SWIG_Py_Void();
20056 }
20057
20058 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20059 return SWIG_Python_InitShadowInstance(args);
20060 }
20061
20062 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20063 PyObject *resultobj = 0;
20064 wxWindow *arg1 = (wxWindow *) 0 ;
20065 int arg2 = (int) -1 ;
20066 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20067 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20068 wxSize const &arg4_defvalue = wxDefaultSize ;
20069 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20070 long arg5 = (long) 0 ;
20071 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20072 wxString *arg6 = (wxString *) &arg6_defvalue ;
20073 wxNotebook *result = 0 ;
20074 void *argp1 = 0 ;
20075 int res1 = 0 ;
20076 int val2 ;
20077 int ecode2 = 0 ;
20078 wxPoint temp3 ;
20079 wxSize temp4 ;
20080 long val5 ;
20081 int ecode5 = 0 ;
20082 bool temp6 = false ;
20083 PyObject * obj0 = 0 ;
20084 PyObject * obj1 = 0 ;
20085 PyObject * obj2 = 0 ;
20086 PyObject * obj3 = 0 ;
20087 PyObject * obj4 = 0 ;
20088 PyObject * obj5 = 0 ;
20089 char * kwnames[] = {
20090 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20091 };
20092
20093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20095 if (!SWIG_IsOK(res1)) {
20096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20097 }
20098 arg1 = reinterpret_cast< wxWindow * >(argp1);
20099 if (obj1) {
20100 ecode2 = SWIG_AsVal_int(obj1, &val2);
20101 if (!SWIG_IsOK(ecode2)) {
20102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20103 }
20104 arg2 = static_cast< int >(val2);
20105 }
20106 if (obj2) {
20107 {
20108 arg3 = &temp3;
20109 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20110 }
20111 }
20112 if (obj3) {
20113 {
20114 arg4 = &temp4;
20115 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20116 }
20117 }
20118 if (obj4) {
20119 ecode5 = SWIG_AsVal_long(obj4, &val5);
20120 if (!SWIG_IsOK(ecode5)) {
20121 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20122 }
20123 arg5 = static_cast< long >(val5);
20124 }
20125 if (obj5) {
20126 {
20127 arg6 = wxString_in_helper(obj5);
20128 if (arg6 == NULL) SWIG_fail;
20129 temp6 = true;
20130 }
20131 }
20132 {
20133 if (!wxPyCheckForApp()) SWIG_fail;
20134 PyThreadState* __tstate = wxPyBeginAllowThreads();
20135 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20136 wxPyEndAllowThreads(__tstate);
20137 if (PyErr_Occurred()) SWIG_fail;
20138 }
20139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20140 {
20141 if (temp6)
20142 delete arg6;
20143 }
20144 return resultobj;
20145 fail:
20146 {
20147 if (temp6)
20148 delete arg6;
20149 }
20150 return NULL;
20151 }
20152
20153
20154 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20155 PyObject *resultobj = 0;
20156 wxNotebook *result = 0 ;
20157
20158 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20159 {
20160 if (!wxPyCheckForApp()) SWIG_fail;
20161 PyThreadState* __tstate = wxPyBeginAllowThreads();
20162 result = (wxNotebook *)new wxNotebook();
20163 wxPyEndAllowThreads(__tstate);
20164 if (PyErr_Occurred()) SWIG_fail;
20165 }
20166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20167 return resultobj;
20168 fail:
20169 return NULL;
20170 }
20171
20172
20173 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20174 PyObject *resultobj = 0;
20175 wxNotebook *arg1 = (wxNotebook *) 0 ;
20176 wxWindow *arg2 = (wxWindow *) 0 ;
20177 int arg3 = (int) -1 ;
20178 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20179 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20180 wxSize const &arg5_defvalue = wxDefaultSize ;
20181 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20182 long arg6 = (long) 0 ;
20183 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20184 wxString *arg7 = (wxString *) &arg7_defvalue ;
20185 bool result;
20186 void *argp1 = 0 ;
20187 int res1 = 0 ;
20188 void *argp2 = 0 ;
20189 int res2 = 0 ;
20190 int val3 ;
20191 int ecode3 = 0 ;
20192 wxPoint temp4 ;
20193 wxSize temp5 ;
20194 long val6 ;
20195 int ecode6 = 0 ;
20196 bool temp7 = false ;
20197 PyObject * obj0 = 0 ;
20198 PyObject * obj1 = 0 ;
20199 PyObject * obj2 = 0 ;
20200 PyObject * obj3 = 0 ;
20201 PyObject * obj4 = 0 ;
20202 PyObject * obj5 = 0 ;
20203 PyObject * obj6 = 0 ;
20204 char * kwnames[] = {
20205 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20206 };
20207
20208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20210 if (!SWIG_IsOK(res1)) {
20211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20212 }
20213 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20214 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20215 if (!SWIG_IsOK(res2)) {
20216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20217 }
20218 arg2 = reinterpret_cast< wxWindow * >(argp2);
20219 if (obj2) {
20220 ecode3 = SWIG_AsVal_int(obj2, &val3);
20221 if (!SWIG_IsOK(ecode3)) {
20222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20223 }
20224 arg3 = static_cast< int >(val3);
20225 }
20226 if (obj3) {
20227 {
20228 arg4 = &temp4;
20229 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20230 }
20231 }
20232 if (obj4) {
20233 {
20234 arg5 = &temp5;
20235 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20236 }
20237 }
20238 if (obj5) {
20239 ecode6 = SWIG_AsVal_long(obj5, &val6);
20240 if (!SWIG_IsOK(ecode6)) {
20241 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20242 }
20243 arg6 = static_cast< long >(val6);
20244 }
20245 if (obj6) {
20246 {
20247 arg7 = wxString_in_helper(obj6);
20248 if (arg7 == NULL) SWIG_fail;
20249 temp7 = true;
20250 }
20251 }
20252 {
20253 PyThreadState* __tstate = wxPyBeginAllowThreads();
20254 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20255 wxPyEndAllowThreads(__tstate);
20256 if (PyErr_Occurred()) SWIG_fail;
20257 }
20258 {
20259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20260 }
20261 {
20262 if (temp7)
20263 delete arg7;
20264 }
20265 return resultobj;
20266 fail:
20267 {
20268 if (temp7)
20269 delete arg7;
20270 }
20271 return NULL;
20272 }
20273
20274
20275 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20276 PyObject *resultobj = 0;
20277 wxNotebook *arg1 = (wxNotebook *) 0 ;
20278 int result;
20279 void *argp1 = 0 ;
20280 int res1 = 0 ;
20281 PyObject *swig_obj[1] ;
20282
20283 if (!args) SWIG_fail;
20284 swig_obj[0] = args;
20285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20286 if (!SWIG_IsOK(res1)) {
20287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20288 }
20289 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20290 {
20291 PyThreadState* __tstate = wxPyBeginAllowThreads();
20292 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20293 wxPyEndAllowThreads(__tstate);
20294 if (PyErr_Occurred()) SWIG_fail;
20295 }
20296 resultobj = SWIG_From_int(static_cast< int >(result));
20297 return resultobj;
20298 fail:
20299 return NULL;
20300 }
20301
20302
20303 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20304 PyObject *resultobj = 0;
20305 wxNotebook *arg1 = (wxNotebook *) 0 ;
20306 wxSize *arg2 = 0 ;
20307 void *argp1 = 0 ;
20308 int res1 = 0 ;
20309 wxSize temp2 ;
20310 PyObject * obj0 = 0 ;
20311 PyObject * obj1 = 0 ;
20312 char * kwnames[] = {
20313 (char *) "self",(char *) "padding", NULL
20314 };
20315
20316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20318 if (!SWIG_IsOK(res1)) {
20319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20320 }
20321 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20322 {
20323 arg2 = &temp2;
20324 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20325 }
20326 {
20327 PyThreadState* __tstate = wxPyBeginAllowThreads();
20328 (arg1)->SetPadding((wxSize const &)*arg2);
20329 wxPyEndAllowThreads(__tstate);
20330 if (PyErr_Occurred()) SWIG_fail;
20331 }
20332 resultobj = SWIG_Py_Void();
20333 return resultobj;
20334 fail:
20335 return NULL;
20336 }
20337
20338
20339 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20340 PyObject *resultobj = 0;
20341 wxNotebook *arg1 = (wxNotebook *) 0 ;
20342 wxSize *arg2 = 0 ;
20343 void *argp1 = 0 ;
20344 int res1 = 0 ;
20345 wxSize temp2 ;
20346 PyObject * obj0 = 0 ;
20347 PyObject * obj1 = 0 ;
20348 char * kwnames[] = {
20349 (char *) "self",(char *) "sz", NULL
20350 };
20351
20352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20354 if (!SWIG_IsOK(res1)) {
20355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20356 }
20357 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20358 {
20359 arg2 = &temp2;
20360 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20361 }
20362 {
20363 PyThreadState* __tstate = wxPyBeginAllowThreads();
20364 (arg1)->SetTabSize((wxSize const &)*arg2);
20365 wxPyEndAllowThreads(__tstate);
20366 if (PyErr_Occurred()) SWIG_fail;
20367 }
20368 resultobj = SWIG_Py_Void();
20369 return resultobj;
20370 fail:
20371 return NULL;
20372 }
20373
20374
20375 SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20376 PyObject *resultobj = 0;
20377 wxNotebook *arg1 = (wxNotebook *) 0 ;
20378 wxPoint *arg2 = 0 ;
20379 long *arg3 = (long *) 0 ;
20380 int result;
20381 void *argp1 = 0 ;
20382 int res1 = 0 ;
20383 wxPoint temp2 ;
20384 long temp3 ;
20385 int res3 = SWIG_TMPOBJ ;
20386 PyObject * obj0 = 0 ;
20387 PyObject * obj1 = 0 ;
20388 char * kwnames[] = {
20389 (char *) "self",(char *) "pt", NULL
20390 };
20391
20392 arg3 = &temp3;
20393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20395 if (!SWIG_IsOK(res1)) {
20396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20397 }
20398 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20399 {
20400 arg2 = &temp2;
20401 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20402 }
20403 {
20404 PyThreadState* __tstate = wxPyBeginAllowThreads();
20405 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20406 wxPyEndAllowThreads(__tstate);
20407 if (PyErr_Occurred()) SWIG_fail;
20408 }
20409 resultobj = SWIG_From_int(static_cast< int >(result));
20410 if (SWIG_IsTmpObj(res3)) {
20411 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20412 } else {
20413 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20414 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20415 }
20416 return resultobj;
20417 fail:
20418 return NULL;
20419 }
20420
20421
20422 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20423 PyObject *resultobj = 0;
20424 wxNotebook *arg1 = (wxNotebook *) 0 ;
20425 wxColour result;
20426 void *argp1 = 0 ;
20427 int res1 = 0 ;
20428 PyObject *swig_obj[1] ;
20429
20430 if (!args) SWIG_fail;
20431 swig_obj[0] = args;
20432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20433 if (!SWIG_IsOK(res1)) {
20434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20435 }
20436 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20437 {
20438 PyThreadState* __tstate = wxPyBeginAllowThreads();
20439 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20440 wxPyEndAllowThreads(__tstate);
20441 if (PyErr_Occurred()) SWIG_fail;
20442 }
20443 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20444 return resultobj;
20445 fail:
20446 return NULL;
20447 }
20448
20449
20450 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20451 PyObject *resultobj = 0;
20452 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20453 SwigValueWrapper<wxVisualAttributes > result;
20454 int val1 ;
20455 int ecode1 = 0 ;
20456 PyObject * obj0 = 0 ;
20457 char * kwnames[] = {
20458 (char *) "variant", NULL
20459 };
20460
20461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20462 if (obj0) {
20463 ecode1 = SWIG_AsVal_int(obj0, &val1);
20464 if (!SWIG_IsOK(ecode1)) {
20465 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20466 }
20467 arg1 = static_cast< wxWindowVariant >(val1);
20468 }
20469 {
20470 if (!wxPyCheckForApp()) SWIG_fail;
20471 PyThreadState* __tstate = wxPyBeginAllowThreads();
20472 result = wxNotebook::GetClassDefaultAttributes(arg1);
20473 wxPyEndAllowThreads(__tstate);
20474 if (PyErr_Occurred()) SWIG_fail;
20475 }
20476 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20477 return resultobj;
20478 fail:
20479 return NULL;
20480 }
20481
20482
20483 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20484 PyObject *obj;
20485 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20486 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20487 return SWIG_Py_Void();
20488 }
20489
20490 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20491 return SWIG_Python_InitShadowInstance(args);
20492 }
20493
20494 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20495 PyObject *resultobj = 0;
20496 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20497 int arg2 = (int) 0 ;
20498 int arg3 = (int) -1 ;
20499 int arg4 = (int) -1 ;
20500 wxNotebookEvent *result = 0 ;
20501 int val1 ;
20502 int ecode1 = 0 ;
20503 int val2 ;
20504 int ecode2 = 0 ;
20505 int val3 ;
20506 int ecode3 = 0 ;
20507 int val4 ;
20508 int ecode4 = 0 ;
20509 PyObject * obj0 = 0 ;
20510 PyObject * obj1 = 0 ;
20511 PyObject * obj2 = 0 ;
20512 PyObject * obj3 = 0 ;
20513 char * kwnames[] = {
20514 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20515 };
20516
20517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20518 if (obj0) {
20519 ecode1 = SWIG_AsVal_int(obj0, &val1);
20520 if (!SWIG_IsOK(ecode1)) {
20521 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20522 }
20523 arg1 = static_cast< wxEventType >(val1);
20524 }
20525 if (obj1) {
20526 ecode2 = SWIG_AsVal_int(obj1, &val2);
20527 if (!SWIG_IsOK(ecode2)) {
20528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20529 }
20530 arg2 = static_cast< int >(val2);
20531 }
20532 if (obj2) {
20533 ecode3 = SWIG_AsVal_int(obj2, &val3);
20534 if (!SWIG_IsOK(ecode3)) {
20535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20536 }
20537 arg3 = static_cast< int >(val3);
20538 }
20539 if (obj3) {
20540 ecode4 = SWIG_AsVal_int(obj3, &val4);
20541 if (!SWIG_IsOK(ecode4)) {
20542 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20543 }
20544 arg4 = static_cast< int >(val4);
20545 }
20546 {
20547 PyThreadState* __tstate = wxPyBeginAllowThreads();
20548 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20549 wxPyEndAllowThreads(__tstate);
20550 if (PyErr_Occurred()) SWIG_fail;
20551 }
20552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20553 return resultobj;
20554 fail:
20555 return NULL;
20556 }
20557
20558
20559 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20560 PyObject *obj;
20561 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20562 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20563 return SWIG_Py_Void();
20564 }
20565
20566 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20567 return SWIG_Python_InitShadowInstance(args);
20568 }
20569
20570 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20571 PyObject *resultobj = 0;
20572 wxWindow *arg1 = (wxWindow *) 0 ;
20573 int arg2 = (int) -1 ;
20574 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20575 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20576 wxSize const &arg4_defvalue = wxDefaultSize ;
20577 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20578 long arg5 = (long) 0 ;
20579 wxString const &arg6_defvalue = wxPyEmptyString ;
20580 wxString *arg6 = (wxString *) &arg6_defvalue ;
20581 wxListbook *result = 0 ;
20582 void *argp1 = 0 ;
20583 int res1 = 0 ;
20584 int val2 ;
20585 int ecode2 = 0 ;
20586 wxPoint temp3 ;
20587 wxSize temp4 ;
20588 long val5 ;
20589 int ecode5 = 0 ;
20590 bool temp6 = false ;
20591 PyObject * obj0 = 0 ;
20592 PyObject * obj1 = 0 ;
20593 PyObject * obj2 = 0 ;
20594 PyObject * obj3 = 0 ;
20595 PyObject * obj4 = 0 ;
20596 PyObject * obj5 = 0 ;
20597 char * kwnames[] = {
20598 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20599 };
20600
20601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20603 if (!SWIG_IsOK(res1)) {
20604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20605 }
20606 arg1 = reinterpret_cast< wxWindow * >(argp1);
20607 if (obj1) {
20608 ecode2 = SWIG_AsVal_int(obj1, &val2);
20609 if (!SWIG_IsOK(ecode2)) {
20610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20611 }
20612 arg2 = static_cast< int >(val2);
20613 }
20614 if (obj2) {
20615 {
20616 arg3 = &temp3;
20617 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20618 }
20619 }
20620 if (obj3) {
20621 {
20622 arg4 = &temp4;
20623 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20624 }
20625 }
20626 if (obj4) {
20627 ecode5 = SWIG_AsVal_long(obj4, &val5);
20628 if (!SWIG_IsOK(ecode5)) {
20629 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20630 }
20631 arg5 = static_cast< long >(val5);
20632 }
20633 if (obj5) {
20634 {
20635 arg6 = wxString_in_helper(obj5);
20636 if (arg6 == NULL) SWIG_fail;
20637 temp6 = true;
20638 }
20639 }
20640 {
20641 if (!wxPyCheckForApp()) SWIG_fail;
20642 PyThreadState* __tstate = wxPyBeginAllowThreads();
20643 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20644 wxPyEndAllowThreads(__tstate);
20645 if (PyErr_Occurred()) SWIG_fail;
20646 }
20647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20648 {
20649 if (temp6)
20650 delete arg6;
20651 }
20652 return resultobj;
20653 fail:
20654 {
20655 if (temp6)
20656 delete arg6;
20657 }
20658 return NULL;
20659 }
20660
20661
20662 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20663 PyObject *resultobj = 0;
20664 wxListbook *result = 0 ;
20665
20666 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20667 {
20668 if (!wxPyCheckForApp()) SWIG_fail;
20669 PyThreadState* __tstate = wxPyBeginAllowThreads();
20670 result = (wxListbook *)new wxListbook();
20671 wxPyEndAllowThreads(__tstate);
20672 if (PyErr_Occurred()) SWIG_fail;
20673 }
20674 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20675 return resultobj;
20676 fail:
20677 return NULL;
20678 }
20679
20680
20681 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20682 PyObject *resultobj = 0;
20683 wxListbook *arg1 = (wxListbook *) 0 ;
20684 wxWindow *arg2 = (wxWindow *) 0 ;
20685 int arg3 = (int) -1 ;
20686 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20687 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20688 wxSize const &arg5_defvalue = wxDefaultSize ;
20689 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20690 long arg6 = (long) 0 ;
20691 wxString const &arg7_defvalue = wxPyEmptyString ;
20692 wxString *arg7 = (wxString *) &arg7_defvalue ;
20693 bool result;
20694 void *argp1 = 0 ;
20695 int res1 = 0 ;
20696 void *argp2 = 0 ;
20697 int res2 = 0 ;
20698 int val3 ;
20699 int ecode3 = 0 ;
20700 wxPoint temp4 ;
20701 wxSize temp5 ;
20702 long val6 ;
20703 int ecode6 = 0 ;
20704 bool temp7 = false ;
20705 PyObject * obj0 = 0 ;
20706 PyObject * obj1 = 0 ;
20707 PyObject * obj2 = 0 ;
20708 PyObject * obj3 = 0 ;
20709 PyObject * obj4 = 0 ;
20710 PyObject * obj5 = 0 ;
20711 PyObject * obj6 = 0 ;
20712 char * kwnames[] = {
20713 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20714 };
20715
20716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20718 if (!SWIG_IsOK(res1)) {
20719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20720 }
20721 arg1 = reinterpret_cast< wxListbook * >(argp1);
20722 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20723 if (!SWIG_IsOK(res2)) {
20724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20725 }
20726 arg2 = reinterpret_cast< wxWindow * >(argp2);
20727 if (obj2) {
20728 ecode3 = SWIG_AsVal_int(obj2, &val3);
20729 if (!SWIG_IsOK(ecode3)) {
20730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20731 }
20732 arg3 = static_cast< int >(val3);
20733 }
20734 if (obj3) {
20735 {
20736 arg4 = &temp4;
20737 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20738 }
20739 }
20740 if (obj4) {
20741 {
20742 arg5 = &temp5;
20743 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20744 }
20745 }
20746 if (obj5) {
20747 ecode6 = SWIG_AsVal_long(obj5, &val6);
20748 if (!SWIG_IsOK(ecode6)) {
20749 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20750 }
20751 arg6 = static_cast< long >(val6);
20752 }
20753 if (obj6) {
20754 {
20755 arg7 = wxString_in_helper(obj6);
20756 if (arg7 == NULL) SWIG_fail;
20757 temp7 = true;
20758 }
20759 }
20760 {
20761 PyThreadState* __tstate = wxPyBeginAllowThreads();
20762 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20763 wxPyEndAllowThreads(__tstate);
20764 if (PyErr_Occurred()) SWIG_fail;
20765 }
20766 {
20767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20768 }
20769 {
20770 if (temp7)
20771 delete arg7;
20772 }
20773 return resultobj;
20774 fail:
20775 {
20776 if (temp7)
20777 delete arg7;
20778 }
20779 return NULL;
20780 }
20781
20782
20783 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20784 PyObject *resultobj = 0;
20785 wxListbook *arg1 = (wxListbook *) 0 ;
20786 wxListView *result = 0 ;
20787 void *argp1 = 0 ;
20788 int res1 = 0 ;
20789 PyObject *swig_obj[1] ;
20790
20791 if (!args) SWIG_fail;
20792 swig_obj[0] = args;
20793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20794 if (!SWIG_IsOK(res1)) {
20795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20796 }
20797 arg1 = reinterpret_cast< wxListbook * >(argp1);
20798 {
20799 PyThreadState* __tstate = wxPyBeginAllowThreads();
20800 result = (wxListView *)(arg1)->GetListView();
20801 wxPyEndAllowThreads(__tstate);
20802 if (PyErr_Occurred()) SWIG_fail;
20803 }
20804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20805 return resultobj;
20806 fail:
20807 return NULL;
20808 }
20809
20810
20811 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20812 PyObject *obj;
20813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20814 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20815 return SWIG_Py_Void();
20816 }
20817
20818 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20819 return SWIG_Python_InitShadowInstance(args);
20820 }
20821
20822 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20823 PyObject *resultobj = 0;
20824 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20825 int arg2 = (int) 0 ;
20826 int arg3 = (int) -1 ;
20827 int arg4 = (int) -1 ;
20828 wxListbookEvent *result = 0 ;
20829 int val1 ;
20830 int ecode1 = 0 ;
20831 int val2 ;
20832 int ecode2 = 0 ;
20833 int val3 ;
20834 int ecode3 = 0 ;
20835 int val4 ;
20836 int ecode4 = 0 ;
20837 PyObject * obj0 = 0 ;
20838 PyObject * obj1 = 0 ;
20839 PyObject * obj2 = 0 ;
20840 PyObject * obj3 = 0 ;
20841 char * kwnames[] = {
20842 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20843 };
20844
20845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20846 if (obj0) {
20847 ecode1 = SWIG_AsVal_int(obj0, &val1);
20848 if (!SWIG_IsOK(ecode1)) {
20849 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20850 }
20851 arg1 = static_cast< wxEventType >(val1);
20852 }
20853 if (obj1) {
20854 ecode2 = SWIG_AsVal_int(obj1, &val2);
20855 if (!SWIG_IsOK(ecode2)) {
20856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
20857 }
20858 arg2 = static_cast< int >(val2);
20859 }
20860 if (obj2) {
20861 ecode3 = SWIG_AsVal_int(obj2, &val3);
20862 if (!SWIG_IsOK(ecode3)) {
20863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
20864 }
20865 arg3 = static_cast< int >(val3);
20866 }
20867 if (obj3) {
20868 ecode4 = SWIG_AsVal_int(obj3, &val4);
20869 if (!SWIG_IsOK(ecode4)) {
20870 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
20871 }
20872 arg4 = static_cast< int >(val4);
20873 }
20874 {
20875 PyThreadState* __tstate = wxPyBeginAllowThreads();
20876 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
20877 wxPyEndAllowThreads(__tstate);
20878 if (PyErr_Occurred()) SWIG_fail;
20879 }
20880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
20881 return resultobj;
20882 fail:
20883 return NULL;
20884 }
20885
20886
20887 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20888 PyObject *obj;
20889 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20890 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
20891 return SWIG_Py_Void();
20892 }
20893
20894 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20895 return SWIG_Python_InitShadowInstance(args);
20896 }
20897
20898 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20899 PyObject *resultobj = 0;
20900 wxWindow *arg1 = (wxWindow *) 0 ;
20901 int arg2 ;
20902 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20903 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20904 wxSize const &arg4_defvalue = wxDefaultSize ;
20905 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20906 long arg5 = (long) 0 ;
20907 wxString const &arg6_defvalue = wxPyEmptyString ;
20908 wxString *arg6 = (wxString *) &arg6_defvalue ;
20909 wxChoicebook *result = 0 ;
20910 void *argp1 = 0 ;
20911 int res1 = 0 ;
20912 int val2 ;
20913 int ecode2 = 0 ;
20914 wxPoint temp3 ;
20915 wxSize temp4 ;
20916 long val5 ;
20917 int ecode5 = 0 ;
20918 bool temp6 = false ;
20919 PyObject * obj0 = 0 ;
20920 PyObject * obj1 = 0 ;
20921 PyObject * obj2 = 0 ;
20922 PyObject * obj3 = 0 ;
20923 PyObject * obj4 = 0 ;
20924 PyObject * obj5 = 0 ;
20925 char * kwnames[] = {
20926 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20927 };
20928
20929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20931 if (!SWIG_IsOK(res1)) {
20932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20933 }
20934 arg1 = reinterpret_cast< wxWindow * >(argp1);
20935 ecode2 = SWIG_AsVal_int(obj1, &val2);
20936 if (!SWIG_IsOK(ecode2)) {
20937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
20938 }
20939 arg2 = static_cast< int >(val2);
20940 if (obj2) {
20941 {
20942 arg3 = &temp3;
20943 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20944 }
20945 }
20946 if (obj3) {
20947 {
20948 arg4 = &temp4;
20949 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20950 }
20951 }
20952 if (obj4) {
20953 ecode5 = SWIG_AsVal_long(obj4, &val5);
20954 if (!SWIG_IsOK(ecode5)) {
20955 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
20956 }
20957 arg5 = static_cast< long >(val5);
20958 }
20959 if (obj5) {
20960 {
20961 arg6 = wxString_in_helper(obj5);
20962 if (arg6 == NULL) SWIG_fail;
20963 temp6 = true;
20964 }
20965 }
20966 {
20967 if (!wxPyCheckForApp()) SWIG_fail;
20968 PyThreadState* __tstate = wxPyBeginAllowThreads();
20969 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20970 wxPyEndAllowThreads(__tstate);
20971 if (PyErr_Occurred()) SWIG_fail;
20972 }
20973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
20974 {
20975 if (temp6)
20976 delete arg6;
20977 }
20978 return resultobj;
20979 fail:
20980 {
20981 if (temp6)
20982 delete arg6;
20983 }
20984 return NULL;
20985 }
20986
20987
20988 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20989 PyObject *resultobj = 0;
20990 wxChoicebook *result = 0 ;
20991
20992 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
20993 {
20994 if (!wxPyCheckForApp()) SWIG_fail;
20995 PyThreadState* __tstate = wxPyBeginAllowThreads();
20996 result = (wxChoicebook *)new wxChoicebook();
20997 wxPyEndAllowThreads(__tstate);
20998 if (PyErr_Occurred()) SWIG_fail;
20999 }
21000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21001 return resultobj;
21002 fail:
21003 return NULL;
21004 }
21005
21006
21007 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21008 PyObject *resultobj = 0;
21009 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21010 wxWindow *arg2 = (wxWindow *) 0 ;
21011 int arg3 ;
21012 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21013 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21014 wxSize const &arg5_defvalue = wxDefaultSize ;
21015 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21016 long arg6 = (long) 0 ;
21017 wxString const &arg7_defvalue = wxPyEmptyString ;
21018 wxString *arg7 = (wxString *) &arg7_defvalue ;
21019 bool result;
21020 void *argp1 = 0 ;
21021 int res1 = 0 ;
21022 void *argp2 = 0 ;
21023 int res2 = 0 ;
21024 int val3 ;
21025 int ecode3 = 0 ;
21026 wxPoint temp4 ;
21027 wxSize temp5 ;
21028 long val6 ;
21029 int ecode6 = 0 ;
21030 bool temp7 = false ;
21031 PyObject * obj0 = 0 ;
21032 PyObject * obj1 = 0 ;
21033 PyObject * obj2 = 0 ;
21034 PyObject * obj3 = 0 ;
21035 PyObject * obj4 = 0 ;
21036 PyObject * obj5 = 0 ;
21037 PyObject * obj6 = 0 ;
21038 char * kwnames[] = {
21039 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21040 };
21041
21042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21044 if (!SWIG_IsOK(res1)) {
21045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21046 }
21047 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21048 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21049 if (!SWIG_IsOK(res2)) {
21050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21051 }
21052 arg2 = reinterpret_cast< wxWindow * >(argp2);
21053 ecode3 = SWIG_AsVal_int(obj2, &val3);
21054 if (!SWIG_IsOK(ecode3)) {
21055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21056 }
21057 arg3 = static_cast< int >(val3);
21058 if (obj3) {
21059 {
21060 arg4 = &temp4;
21061 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21062 }
21063 }
21064 if (obj4) {
21065 {
21066 arg5 = &temp5;
21067 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21068 }
21069 }
21070 if (obj5) {
21071 ecode6 = SWIG_AsVal_long(obj5, &val6);
21072 if (!SWIG_IsOK(ecode6)) {
21073 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21074 }
21075 arg6 = static_cast< long >(val6);
21076 }
21077 if (obj6) {
21078 {
21079 arg7 = wxString_in_helper(obj6);
21080 if (arg7 == NULL) SWIG_fail;
21081 temp7 = true;
21082 }
21083 }
21084 {
21085 PyThreadState* __tstate = wxPyBeginAllowThreads();
21086 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21087 wxPyEndAllowThreads(__tstate);
21088 if (PyErr_Occurred()) SWIG_fail;
21089 }
21090 {
21091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21092 }
21093 {
21094 if (temp7)
21095 delete arg7;
21096 }
21097 return resultobj;
21098 fail:
21099 {
21100 if (temp7)
21101 delete arg7;
21102 }
21103 return NULL;
21104 }
21105
21106
21107 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21108 PyObject *resultobj = 0;
21109 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21110 wxChoice *result = 0 ;
21111 void *argp1 = 0 ;
21112 int res1 = 0 ;
21113 PyObject *swig_obj[1] ;
21114
21115 if (!args) SWIG_fail;
21116 swig_obj[0] = args;
21117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21118 if (!SWIG_IsOK(res1)) {
21119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21120 }
21121 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21122 {
21123 PyThreadState* __tstate = wxPyBeginAllowThreads();
21124 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21125 wxPyEndAllowThreads(__tstate);
21126 if (PyErr_Occurred()) SWIG_fail;
21127 }
21128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21129 return resultobj;
21130 fail:
21131 return NULL;
21132 }
21133
21134
21135 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21136 PyObject *obj;
21137 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21138 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21139 return SWIG_Py_Void();
21140 }
21141
21142 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21143 return SWIG_Python_InitShadowInstance(args);
21144 }
21145
21146 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21147 PyObject *resultobj = 0;
21148 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21149 int arg2 = (int) 0 ;
21150 int arg3 = (int) -1 ;
21151 int arg4 = (int) -1 ;
21152 wxChoicebookEvent *result = 0 ;
21153 int val1 ;
21154 int ecode1 = 0 ;
21155 int val2 ;
21156 int ecode2 = 0 ;
21157 int val3 ;
21158 int ecode3 = 0 ;
21159 int val4 ;
21160 int ecode4 = 0 ;
21161 PyObject * obj0 = 0 ;
21162 PyObject * obj1 = 0 ;
21163 PyObject * obj2 = 0 ;
21164 PyObject * obj3 = 0 ;
21165 char * kwnames[] = {
21166 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21167 };
21168
21169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21170 if (obj0) {
21171 ecode1 = SWIG_AsVal_int(obj0, &val1);
21172 if (!SWIG_IsOK(ecode1)) {
21173 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21174 }
21175 arg1 = static_cast< wxEventType >(val1);
21176 }
21177 if (obj1) {
21178 ecode2 = SWIG_AsVal_int(obj1, &val2);
21179 if (!SWIG_IsOK(ecode2)) {
21180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21181 }
21182 arg2 = static_cast< int >(val2);
21183 }
21184 if (obj2) {
21185 ecode3 = SWIG_AsVal_int(obj2, &val3);
21186 if (!SWIG_IsOK(ecode3)) {
21187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21188 }
21189 arg3 = static_cast< int >(val3);
21190 }
21191 if (obj3) {
21192 ecode4 = SWIG_AsVal_int(obj3, &val4);
21193 if (!SWIG_IsOK(ecode4)) {
21194 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21195 }
21196 arg4 = static_cast< int >(val4);
21197 }
21198 {
21199 PyThreadState* __tstate = wxPyBeginAllowThreads();
21200 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21201 wxPyEndAllowThreads(__tstate);
21202 if (PyErr_Occurred()) SWIG_fail;
21203 }
21204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21205 return resultobj;
21206 fail:
21207 return NULL;
21208 }
21209
21210
21211 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21212 PyObject *obj;
21213 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21214 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21215 return SWIG_Py_Void();
21216 }
21217
21218 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21219 return SWIG_Python_InitShadowInstance(args);
21220 }
21221
21222 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21223 PyObject *resultobj = 0;
21224 wxWindow *arg1 = (wxWindow *) 0 ;
21225 int arg2 ;
21226 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21227 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21228 wxSize const &arg4_defvalue = wxDefaultSize ;
21229 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21230 long arg5 = (long) wxBK_DEFAULT ;
21231 wxString const &arg6_defvalue = wxPyEmptyString ;
21232 wxString *arg6 = (wxString *) &arg6_defvalue ;
21233 wxTreebook *result = 0 ;
21234 void *argp1 = 0 ;
21235 int res1 = 0 ;
21236 int val2 ;
21237 int ecode2 = 0 ;
21238 wxPoint temp3 ;
21239 wxSize temp4 ;
21240 long val5 ;
21241 int ecode5 = 0 ;
21242 bool temp6 = false ;
21243 PyObject * obj0 = 0 ;
21244 PyObject * obj1 = 0 ;
21245 PyObject * obj2 = 0 ;
21246 PyObject * obj3 = 0 ;
21247 PyObject * obj4 = 0 ;
21248 PyObject * obj5 = 0 ;
21249 char * kwnames[] = {
21250 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21251 };
21252
21253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21255 if (!SWIG_IsOK(res1)) {
21256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21257 }
21258 arg1 = reinterpret_cast< wxWindow * >(argp1);
21259 ecode2 = SWIG_AsVal_int(obj1, &val2);
21260 if (!SWIG_IsOK(ecode2)) {
21261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21262 }
21263 arg2 = static_cast< int >(val2);
21264 if (obj2) {
21265 {
21266 arg3 = &temp3;
21267 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21268 }
21269 }
21270 if (obj3) {
21271 {
21272 arg4 = &temp4;
21273 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21274 }
21275 }
21276 if (obj4) {
21277 ecode5 = SWIG_AsVal_long(obj4, &val5);
21278 if (!SWIG_IsOK(ecode5)) {
21279 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21280 }
21281 arg5 = static_cast< long >(val5);
21282 }
21283 if (obj5) {
21284 {
21285 arg6 = wxString_in_helper(obj5);
21286 if (arg6 == NULL) SWIG_fail;
21287 temp6 = true;
21288 }
21289 }
21290 {
21291 if (!wxPyCheckForApp()) SWIG_fail;
21292 PyThreadState* __tstate = wxPyBeginAllowThreads();
21293 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21294 wxPyEndAllowThreads(__tstate);
21295 if (PyErr_Occurred()) SWIG_fail;
21296 }
21297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21298 {
21299 if (temp6)
21300 delete arg6;
21301 }
21302 return resultobj;
21303 fail:
21304 {
21305 if (temp6)
21306 delete arg6;
21307 }
21308 return NULL;
21309 }
21310
21311
21312 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21313 PyObject *resultobj = 0;
21314 wxTreebook *result = 0 ;
21315
21316 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21317 {
21318 if (!wxPyCheckForApp()) SWIG_fail;
21319 PyThreadState* __tstate = wxPyBeginAllowThreads();
21320 result = (wxTreebook *)new wxTreebook();
21321 wxPyEndAllowThreads(__tstate);
21322 if (PyErr_Occurred()) SWIG_fail;
21323 }
21324 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21325 return resultobj;
21326 fail:
21327 return NULL;
21328 }
21329
21330
21331 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21332 PyObject *resultobj = 0;
21333 wxTreebook *arg1 = (wxTreebook *) 0 ;
21334 wxWindow *arg2 = (wxWindow *) 0 ;
21335 int arg3 ;
21336 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21337 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21338 wxSize const &arg5_defvalue = wxDefaultSize ;
21339 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21340 long arg6 = (long) wxBK_DEFAULT ;
21341 wxString const &arg7_defvalue = wxPyEmptyString ;
21342 wxString *arg7 = (wxString *) &arg7_defvalue ;
21343 bool result;
21344 void *argp1 = 0 ;
21345 int res1 = 0 ;
21346 void *argp2 = 0 ;
21347 int res2 = 0 ;
21348 int val3 ;
21349 int ecode3 = 0 ;
21350 wxPoint temp4 ;
21351 wxSize temp5 ;
21352 long val6 ;
21353 int ecode6 = 0 ;
21354 bool temp7 = false ;
21355 PyObject * obj0 = 0 ;
21356 PyObject * obj1 = 0 ;
21357 PyObject * obj2 = 0 ;
21358 PyObject * obj3 = 0 ;
21359 PyObject * obj4 = 0 ;
21360 PyObject * obj5 = 0 ;
21361 PyObject * obj6 = 0 ;
21362 char * kwnames[] = {
21363 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21364 };
21365
21366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21368 if (!SWIG_IsOK(res1)) {
21369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21370 }
21371 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21372 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21373 if (!SWIG_IsOK(res2)) {
21374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21375 }
21376 arg2 = reinterpret_cast< wxWindow * >(argp2);
21377 ecode3 = SWIG_AsVal_int(obj2, &val3);
21378 if (!SWIG_IsOK(ecode3)) {
21379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21380 }
21381 arg3 = static_cast< int >(val3);
21382 if (obj3) {
21383 {
21384 arg4 = &temp4;
21385 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21386 }
21387 }
21388 if (obj4) {
21389 {
21390 arg5 = &temp5;
21391 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21392 }
21393 }
21394 if (obj5) {
21395 ecode6 = SWIG_AsVal_long(obj5, &val6);
21396 if (!SWIG_IsOK(ecode6)) {
21397 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21398 }
21399 arg6 = static_cast< long >(val6);
21400 }
21401 if (obj6) {
21402 {
21403 arg7 = wxString_in_helper(obj6);
21404 if (arg7 == NULL) SWIG_fail;
21405 temp7 = true;
21406 }
21407 }
21408 {
21409 PyThreadState* __tstate = wxPyBeginAllowThreads();
21410 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21411 wxPyEndAllowThreads(__tstate);
21412 if (PyErr_Occurred()) SWIG_fail;
21413 }
21414 {
21415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21416 }
21417 {
21418 if (temp7)
21419 delete arg7;
21420 }
21421 return resultobj;
21422 fail:
21423 {
21424 if (temp7)
21425 delete arg7;
21426 }
21427 return NULL;
21428 }
21429
21430
21431 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21432 PyObject *resultobj = 0;
21433 wxTreebook *arg1 = (wxTreebook *) 0 ;
21434 size_t arg2 ;
21435 wxWindow *arg3 = (wxWindow *) 0 ;
21436 wxString *arg4 = 0 ;
21437 bool arg5 = (bool) false ;
21438 int arg6 = (int) wxNOT_FOUND ;
21439 bool result;
21440 void *argp1 = 0 ;
21441 int res1 = 0 ;
21442 size_t val2 ;
21443 int ecode2 = 0 ;
21444 void *argp3 = 0 ;
21445 int res3 = 0 ;
21446 bool temp4 = false ;
21447 bool val5 ;
21448 int ecode5 = 0 ;
21449 int val6 ;
21450 int ecode6 = 0 ;
21451 PyObject * obj0 = 0 ;
21452 PyObject * obj1 = 0 ;
21453 PyObject * obj2 = 0 ;
21454 PyObject * obj3 = 0 ;
21455 PyObject * obj4 = 0 ;
21456 PyObject * obj5 = 0 ;
21457 char * kwnames[] = {
21458 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21459 };
21460
21461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21463 if (!SWIG_IsOK(res1)) {
21464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21465 }
21466 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21467 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21468 if (!SWIG_IsOK(ecode2)) {
21469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21470 }
21471 arg2 = static_cast< size_t >(val2);
21472 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21473 if (!SWIG_IsOK(res3)) {
21474 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21475 }
21476 arg3 = reinterpret_cast< wxWindow * >(argp3);
21477 {
21478 arg4 = wxString_in_helper(obj3);
21479 if (arg4 == NULL) SWIG_fail;
21480 temp4 = true;
21481 }
21482 if (obj4) {
21483 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21484 if (!SWIG_IsOK(ecode5)) {
21485 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21486 }
21487 arg5 = static_cast< bool >(val5);
21488 }
21489 if (obj5) {
21490 ecode6 = SWIG_AsVal_int(obj5, &val6);
21491 if (!SWIG_IsOK(ecode6)) {
21492 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21493 }
21494 arg6 = static_cast< int >(val6);
21495 }
21496 {
21497 PyThreadState* __tstate = wxPyBeginAllowThreads();
21498 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21499 wxPyEndAllowThreads(__tstate);
21500 if (PyErr_Occurred()) SWIG_fail;
21501 }
21502 {
21503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21504 }
21505 {
21506 if (temp4)
21507 delete arg4;
21508 }
21509 return resultobj;
21510 fail:
21511 {
21512 if (temp4)
21513 delete arg4;
21514 }
21515 return NULL;
21516 }
21517
21518
21519 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21520 PyObject *resultobj = 0;
21521 wxTreebook *arg1 = (wxTreebook *) 0 ;
21522 wxWindow *arg2 = (wxWindow *) 0 ;
21523 wxString *arg3 = 0 ;
21524 bool arg4 = (bool) false ;
21525 int arg5 = (int) wxNOT_FOUND ;
21526 bool result;
21527 void *argp1 = 0 ;
21528 int res1 = 0 ;
21529 void *argp2 = 0 ;
21530 int res2 = 0 ;
21531 bool temp3 = false ;
21532 bool val4 ;
21533 int ecode4 = 0 ;
21534 int val5 ;
21535 int ecode5 = 0 ;
21536 PyObject * obj0 = 0 ;
21537 PyObject * obj1 = 0 ;
21538 PyObject * obj2 = 0 ;
21539 PyObject * obj3 = 0 ;
21540 PyObject * obj4 = 0 ;
21541 char * kwnames[] = {
21542 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21543 };
21544
21545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21547 if (!SWIG_IsOK(res1)) {
21548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21549 }
21550 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21551 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21552 if (!SWIG_IsOK(res2)) {
21553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21554 }
21555 arg2 = reinterpret_cast< wxWindow * >(argp2);
21556 {
21557 arg3 = wxString_in_helper(obj2);
21558 if (arg3 == NULL) SWIG_fail;
21559 temp3 = true;
21560 }
21561 if (obj3) {
21562 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21563 if (!SWIG_IsOK(ecode4)) {
21564 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21565 }
21566 arg4 = static_cast< bool >(val4);
21567 }
21568 if (obj4) {
21569 ecode5 = SWIG_AsVal_int(obj4, &val5);
21570 if (!SWIG_IsOK(ecode5)) {
21571 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21572 }
21573 arg5 = static_cast< int >(val5);
21574 }
21575 {
21576 PyThreadState* __tstate = wxPyBeginAllowThreads();
21577 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21578 wxPyEndAllowThreads(__tstate);
21579 if (PyErr_Occurred()) SWIG_fail;
21580 }
21581 {
21582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21583 }
21584 {
21585 if (temp3)
21586 delete arg3;
21587 }
21588 return resultobj;
21589 fail:
21590 {
21591 if (temp3)
21592 delete arg3;
21593 }
21594 return NULL;
21595 }
21596
21597
21598 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21599 PyObject *resultobj = 0;
21600 wxTreebook *arg1 = (wxTreebook *) 0 ;
21601 size_t arg2 ;
21602 bool result;
21603 void *argp1 = 0 ;
21604 int res1 = 0 ;
21605 size_t val2 ;
21606 int ecode2 = 0 ;
21607 PyObject * obj0 = 0 ;
21608 PyObject * obj1 = 0 ;
21609 char * kwnames[] = {
21610 (char *) "self",(char *) "pos", NULL
21611 };
21612
21613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21615 if (!SWIG_IsOK(res1)) {
21616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21617 }
21618 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21619 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21620 if (!SWIG_IsOK(ecode2)) {
21621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21622 }
21623 arg2 = static_cast< size_t >(val2);
21624 {
21625 PyThreadState* __tstate = wxPyBeginAllowThreads();
21626 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21627 wxPyEndAllowThreads(__tstate);
21628 if (PyErr_Occurred()) SWIG_fail;
21629 }
21630 {
21631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21632 }
21633 return resultobj;
21634 fail:
21635 return NULL;
21636 }
21637
21638
21639 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21640 PyObject *resultobj = 0;
21641 wxTreebook *arg1 = (wxTreebook *) 0 ;
21642 size_t arg2 ;
21643 bool arg3 = (bool) true ;
21644 bool result;
21645 void *argp1 = 0 ;
21646 int res1 = 0 ;
21647 size_t val2 ;
21648 int ecode2 = 0 ;
21649 bool val3 ;
21650 int ecode3 = 0 ;
21651 PyObject * obj0 = 0 ;
21652 PyObject * obj1 = 0 ;
21653 PyObject * obj2 = 0 ;
21654 char * kwnames[] = {
21655 (char *) "self",(char *) "pos",(char *) "expand", NULL
21656 };
21657
21658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21660 if (!SWIG_IsOK(res1)) {
21661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21662 }
21663 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21664 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21665 if (!SWIG_IsOK(ecode2)) {
21666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21667 }
21668 arg2 = static_cast< size_t >(val2);
21669 if (obj2) {
21670 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21671 if (!SWIG_IsOK(ecode3)) {
21672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21673 }
21674 arg3 = static_cast< bool >(val3);
21675 }
21676 {
21677 PyThreadState* __tstate = wxPyBeginAllowThreads();
21678 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21679 wxPyEndAllowThreads(__tstate);
21680 if (PyErr_Occurred()) SWIG_fail;
21681 }
21682 {
21683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21684 }
21685 return resultobj;
21686 fail:
21687 return NULL;
21688 }
21689
21690
21691 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21692 PyObject *resultobj = 0;
21693 wxTreebook *arg1 = (wxTreebook *) 0 ;
21694 size_t arg2 ;
21695 bool result;
21696 void *argp1 = 0 ;
21697 int res1 = 0 ;
21698 size_t val2 ;
21699 int ecode2 = 0 ;
21700 PyObject * obj0 = 0 ;
21701 PyObject * obj1 = 0 ;
21702 char * kwnames[] = {
21703 (char *) "self",(char *) "pos", NULL
21704 };
21705
21706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21708 if (!SWIG_IsOK(res1)) {
21709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21710 }
21711 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21712 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21713 if (!SWIG_IsOK(ecode2)) {
21714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21715 }
21716 arg2 = static_cast< size_t >(val2);
21717 {
21718 PyThreadState* __tstate = wxPyBeginAllowThreads();
21719 result = (bool)(arg1)->CollapseNode(arg2);
21720 wxPyEndAllowThreads(__tstate);
21721 if (PyErr_Occurred()) SWIG_fail;
21722 }
21723 {
21724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21725 }
21726 return resultobj;
21727 fail:
21728 return NULL;
21729 }
21730
21731
21732 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21733 PyObject *resultobj = 0;
21734 wxTreebook *arg1 = (wxTreebook *) 0 ;
21735 size_t arg2 ;
21736 int result;
21737 void *argp1 = 0 ;
21738 int res1 = 0 ;
21739 size_t val2 ;
21740 int ecode2 = 0 ;
21741 PyObject * obj0 = 0 ;
21742 PyObject * obj1 = 0 ;
21743 char * kwnames[] = {
21744 (char *) "self",(char *) "pos", NULL
21745 };
21746
21747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21749 if (!SWIG_IsOK(res1)) {
21750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21751 }
21752 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21753 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21754 if (!SWIG_IsOK(ecode2)) {
21755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21756 }
21757 arg2 = static_cast< size_t >(val2);
21758 {
21759 PyThreadState* __tstate = wxPyBeginAllowThreads();
21760 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21761 wxPyEndAllowThreads(__tstate);
21762 if (PyErr_Occurred()) SWIG_fail;
21763 }
21764 resultobj = SWIG_From_int(static_cast< int >(result));
21765 return resultobj;
21766 fail:
21767 return NULL;
21768 }
21769
21770
21771 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21772 PyObject *resultobj = 0;
21773 wxTreebook *arg1 = (wxTreebook *) 0 ;
21774 wxTreeCtrl *result = 0 ;
21775 void *argp1 = 0 ;
21776 int res1 = 0 ;
21777 PyObject *swig_obj[1] ;
21778
21779 if (!args) SWIG_fail;
21780 swig_obj[0] = args;
21781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21782 if (!SWIG_IsOK(res1)) {
21783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21784 }
21785 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21786 {
21787 PyThreadState* __tstate = wxPyBeginAllowThreads();
21788 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21789 wxPyEndAllowThreads(__tstate);
21790 if (PyErr_Occurred()) SWIG_fail;
21791 }
21792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21793 return resultobj;
21794 fail:
21795 return NULL;
21796 }
21797
21798
21799 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21800 PyObject *obj;
21801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21802 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21803 return SWIG_Py_Void();
21804 }
21805
21806 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21807 return SWIG_Python_InitShadowInstance(args);
21808 }
21809
21810 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21811 PyObject *resultobj = 0;
21812 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21813 int arg2 = (int) 0 ;
21814 int arg3 = (int) wxNOT_FOUND ;
21815 int arg4 = (int) wxNOT_FOUND ;
21816 wxTreebookEvent *result = 0 ;
21817 int val1 ;
21818 int ecode1 = 0 ;
21819 int val2 ;
21820 int ecode2 = 0 ;
21821 int val3 ;
21822 int ecode3 = 0 ;
21823 int val4 ;
21824 int ecode4 = 0 ;
21825 PyObject * obj0 = 0 ;
21826 PyObject * obj1 = 0 ;
21827 PyObject * obj2 = 0 ;
21828 PyObject * obj3 = 0 ;
21829 char * kwnames[] = {
21830 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21831 };
21832
21833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21834 if (obj0) {
21835 ecode1 = SWIG_AsVal_int(obj0, &val1);
21836 if (!SWIG_IsOK(ecode1)) {
21837 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21838 }
21839 arg1 = static_cast< wxEventType >(val1);
21840 }
21841 if (obj1) {
21842 ecode2 = SWIG_AsVal_int(obj1, &val2);
21843 if (!SWIG_IsOK(ecode2)) {
21844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
21845 }
21846 arg2 = static_cast< int >(val2);
21847 }
21848 if (obj2) {
21849 ecode3 = SWIG_AsVal_int(obj2, &val3);
21850 if (!SWIG_IsOK(ecode3)) {
21851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
21852 }
21853 arg3 = static_cast< int >(val3);
21854 }
21855 if (obj3) {
21856 ecode4 = SWIG_AsVal_int(obj3, &val4);
21857 if (!SWIG_IsOK(ecode4)) {
21858 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
21859 }
21860 arg4 = static_cast< int >(val4);
21861 }
21862 {
21863 PyThreadState* __tstate = wxPyBeginAllowThreads();
21864 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
21865 wxPyEndAllowThreads(__tstate);
21866 if (PyErr_Occurred()) SWIG_fail;
21867 }
21868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
21869 return resultobj;
21870 fail:
21871 return NULL;
21872 }
21873
21874
21875 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21876 PyObject *obj;
21877 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21878 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
21879 return SWIG_Py_Void();
21880 }
21881
21882 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21883 return SWIG_Python_InitShadowInstance(args);
21884 }
21885
21886 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21887 PyObject *resultobj = 0;
21888 wxWindow *arg1 = (wxWindow *) 0 ;
21889 int arg2 ;
21890 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21891 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21892 wxSize const &arg4_defvalue = wxDefaultSize ;
21893 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21894 long arg5 = (long) wxBK_DEFAULT ;
21895 wxString const &arg6_defvalue = wxPyEmptyString ;
21896 wxString *arg6 = (wxString *) &arg6_defvalue ;
21897 wxToolbook *result = 0 ;
21898 void *argp1 = 0 ;
21899 int res1 = 0 ;
21900 int val2 ;
21901 int ecode2 = 0 ;
21902 wxPoint temp3 ;
21903 wxSize temp4 ;
21904 long val5 ;
21905 int ecode5 = 0 ;
21906 bool temp6 = false ;
21907 PyObject * obj0 = 0 ;
21908 PyObject * obj1 = 0 ;
21909 PyObject * obj2 = 0 ;
21910 PyObject * obj3 = 0 ;
21911 PyObject * obj4 = 0 ;
21912 PyObject * obj5 = 0 ;
21913 char * kwnames[] = {
21914 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21915 };
21916
21917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21919 if (!SWIG_IsOK(res1)) {
21920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21921 }
21922 arg1 = reinterpret_cast< wxWindow * >(argp1);
21923 ecode2 = SWIG_AsVal_int(obj1, &val2);
21924 if (!SWIG_IsOK(ecode2)) {
21925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
21926 }
21927 arg2 = static_cast< int >(val2);
21928 if (obj2) {
21929 {
21930 arg3 = &temp3;
21931 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21932 }
21933 }
21934 if (obj3) {
21935 {
21936 arg4 = &temp4;
21937 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21938 }
21939 }
21940 if (obj4) {
21941 ecode5 = SWIG_AsVal_long(obj4, &val5);
21942 if (!SWIG_IsOK(ecode5)) {
21943 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
21944 }
21945 arg5 = static_cast< long >(val5);
21946 }
21947 if (obj5) {
21948 {
21949 arg6 = wxString_in_helper(obj5);
21950 if (arg6 == NULL) SWIG_fail;
21951 temp6 = true;
21952 }
21953 }
21954 {
21955 PyThreadState* __tstate = wxPyBeginAllowThreads();
21956 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21957 wxPyEndAllowThreads(__tstate);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 }
21960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
21961 {
21962 if (temp6)
21963 delete arg6;
21964 }
21965 return resultobj;
21966 fail:
21967 {
21968 if (temp6)
21969 delete arg6;
21970 }
21971 return NULL;
21972 }
21973
21974
21975 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21976 PyObject *resultobj = 0;
21977 wxToolbook *result = 0 ;
21978
21979 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
21980 {
21981 PyThreadState* __tstate = wxPyBeginAllowThreads();
21982 result = (wxToolbook *)new wxToolbook();
21983 wxPyEndAllowThreads(__tstate);
21984 if (PyErr_Occurred()) SWIG_fail;
21985 }
21986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
21987 return resultobj;
21988 fail:
21989 return NULL;
21990 }
21991
21992
21993 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21994 PyObject *resultobj = 0;
21995 wxToolbook *arg1 = (wxToolbook *) 0 ;
21996 wxWindow *arg2 = (wxWindow *) 0 ;
21997 int arg3 ;
21998 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21999 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22000 wxSize const &arg5_defvalue = wxDefaultSize ;
22001 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22002 long arg6 = (long) 0 ;
22003 wxString const &arg7_defvalue = wxEmptyString ;
22004 wxString *arg7 = (wxString *) &arg7_defvalue ;
22005 bool result;
22006 void *argp1 = 0 ;
22007 int res1 = 0 ;
22008 void *argp2 = 0 ;
22009 int res2 = 0 ;
22010 int val3 ;
22011 int ecode3 = 0 ;
22012 wxPoint temp4 ;
22013 wxSize temp5 ;
22014 long val6 ;
22015 int ecode6 = 0 ;
22016 bool temp7 = false ;
22017 PyObject * obj0 = 0 ;
22018 PyObject * obj1 = 0 ;
22019 PyObject * obj2 = 0 ;
22020 PyObject * obj3 = 0 ;
22021 PyObject * obj4 = 0 ;
22022 PyObject * obj5 = 0 ;
22023 PyObject * obj6 = 0 ;
22024 char * kwnames[] = {
22025 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22026 };
22027
22028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22030 if (!SWIG_IsOK(res1)) {
22031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22032 }
22033 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22034 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22035 if (!SWIG_IsOK(res2)) {
22036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22037 }
22038 arg2 = reinterpret_cast< wxWindow * >(argp2);
22039 ecode3 = SWIG_AsVal_int(obj2, &val3);
22040 if (!SWIG_IsOK(ecode3)) {
22041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22042 }
22043 arg3 = static_cast< int >(val3);
22044 if (obj3) {
22045 {
22046 arg4 = &temp4;
22047 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22048 }
22049 }
22050 if (obj4) {
22051 {
22052 arg5 = &temp5;
22053 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22054 }
22055 }
22056 if (obj5) {
22057 ecode6 = SWIG_AsVal_long(obj5, &val6);
22058 if (!SWIG_IsOK(ecode6)) {
22059 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22060 }
22061 arg6 = static_cast< long >(val6);
22062 }
22063 if (obj6) {
22064 {
22065 arg7 = wxString_in_helper(obj6);
22066 if (arg7 == NULL) SWIG_fail;
22067 temp7 = true;
22068 }
22069 }
22070 {
22071 PyThreadState* __tstate = wxPyBeginAllowThreads();
22072 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22073 wxPyEndAllowThreads(__tstate);
22074 if (PyErr_Occurred()) SWIG_fail;
22075 }
22076 {
22077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22078 }
22079 {
22080 if (temp7)
22081 delete arg7;
22082 }
22083 return resultobj;
22084 fail:
22085 {
22086 if (temp7)
22087 delete arg7;
22088 }
22089 return NULL;
22090 }
22091
22092
22093 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22094 PyObject *resultobj = 0;
22095 wxToolbook *arg1 = (wxToolbook *) 0 ;
22096 wxToolBarBase *result = 0 ;
22097 void *argp1 = 0 ;
22098 int res1 = 0 ;
22099 PyObject *swig_obj[1] ;
22100
22101 if (!args) SWIG_fail;
22102 swig_obj[0] = args;
22103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22104 if (!SWIG_IsOK(res1)) {
22105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22106 }
22107 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22108 {
22109 PyThreadState* __tstate = wxPyBeginAllowThreads();
22110 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22111 wxPyEndAllowThreads(__tstate);
22112 if (PyErr_Occurred()) SWIG_fail;
22113 }
22114 {
22115 resultobj = wxPyMake_wxObject(result, (bool)0);
22116 }
22117 return resultobj;
22118 fail:
22119 return NULL;
22120 }
22121
22122
22123 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22124 PyObject *resultobj = 0;
22125 wxToolbook *arg1 = (wxToolbook *) 0 ;
22126 void *argp1 = 0 ;
22127 int res1 = 0 ;
22128 PyObject *swig_obj[1] ;
22129
22130 if (!args) SWIG_fail;
22131 swig_obj[0] = args;
22132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22133 if (!SWIG_IsOK(res1)) {
22134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22135 }
22136 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22137 {
22138 PyThreadState* __tstate = wxPyBeginAllowThreads();
22139 (arg1)->Realize();
22140 wxPyEndAllowThreads(__tstate);
22141 if (PyErr_Occurred()) SWIG_fail;
22142 }
22143 resultobj = SWIG_Py_Void();
22144 return resultobj;
22145 fail:
22146 return NULL;
22147 }
22148
22149
22150 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22151 PyObject *obj;
22152 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22153 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22154 return SWIG_Py_Void();
22155 }
22156
22157 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22158 return SWIG_Python_InitShadowInstance(args);
22159 }
22160
22161 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22162 PyObject *resultobj = 0;
22163 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22164 int arg2 = (int) 0 ;
22165 int arg3 = (int) wxNOT_FOUND ;
22166 int arg4 = (int) wxNOT_FOUND ;
22167 wxToolbookEvent *result = 0 ;
22168 int val1 ;
22169 int ecode1 = 0 ;
22170 int val2 ;
22171 int ecode2 = 0 ;
22172 int val3 ;
22173 int ecode3 = 0 ;
22174 int val4 ;
22175 int ecode4 = 0 ;
22176 PyObject * obj0 = 0 ;
22177 PyObject * obj1 = 0 ;
22178 PyObject * obj2 = 0 ;
22179 PyObject * obj3 = 0 ;
22180 char * kwnames[] = {
22181 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22182 };
22183
22184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22185 if (obj0) {
22186 ecode1 = SWIG_AsVal_int(obj0, &val1);
22187 if (!SWIG_IsOK(ecode1)) {
22188 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22189 }
22190 arg1 = static_cast< wxEventType >(val1);
22191 }
22192 if (obj1) {
22193 ecode2 = SWIG_AsVal_int(obj1, &val2);
22194 if (!SWIG_IsOK(ecode2)) {
22195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22196 }
22197 arg2 = static_cast< int >(val2);
22198 }
22199 if (obj2) {
22200 ecode3 = SWIG_AsVal_int(obj2, &val3);
22201 if (!SWIG_IsOK(ecode3)) {
22202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22203 }
22204 arg3 = static_cast< int >(val3);
22205 }
22206 if (obj3) {
22207 ecode4 = SWIG_AsVal_int(obj3, &val4);
22208 if (!SWIG_IsOK(ecode4)) {
22209 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22210 }
22211 arg4 = static_cast< int >(val4);
22212 }
22213 {
22214 PyThreadState* __tstate = wxPyBeginAllowThreads();
22215 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22216 wxPyEndAllowThreads(__tstate);
22217 if (PyErr_Occurred()) SWIG_fail;
22218 }
22219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22220 return resultobj;
22221 fail:
22222 return NULL;
22223 }
22224
22225
22226 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22227 PyObject *obj;
22228 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22229 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22230 return SWIG_Py_Void();
22231 }
22232
22233 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22234 return SWIG_Python_InitShadowInstance(args);
22235 }
22236
22237 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22238 PyObject *resultobj = 0;
22239 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22240 int result;
22241 void *argp1 = 0 ;
22242 int res1 = 0 ;
22243 PyObject *swig_obj[1] ;
22244
22245 if (!args) SWIG_fail;
22246 swig_obj[0] = args;
22247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22248 if (!SWIG_IsOK(res1)) {
22249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22250 }
22251 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22252 {
22253 PyThreadState* __tstate = wxPyBeginAllowThreads();
22254 result = (int)(arg1)->GetId();
22255 wxPyEndAllowThreads(__tstate);
22256 if (PyErr_Occurred()) SWIG_fail;
22257 }
22258 resultobj = SWIG_From_int(static_cast< int >(result));
22259 return resultobj;
22260 fail:
22261 return NULL;
22262 }
22263
22264
22265 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22266 PyObject *resultobj = 0;
22267 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22268 wxControl *result = 0 ;
22269 void *argp1 = 0 ;
22270 int res1 = 0 ;
22271 PyObject *swig_obj[1] ;
22272
22273 if (!args) SWIG_fail;
22274 swig_obj[0] = args;
22275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22276 if (!SWIG_IsOK(res1)) {
22277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22278 }
22279 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22280 {
22281 PyThreadState* __tstate = wxPyBeginAllowThreads();
22282 result = (wxControl *)(arg1)->GetControl();
22283 wxPyEndAllowThreads(__tstate);
22284 if (PyErr_Occurred()) SWIG_fail;
22285 }
22286 {
22287 resultobj = wxPyMake_wxObject(result, 0);
22288 }
22289 return resultobj;
22290 fail:
22291 return NULL;
22292 }
22293
22294
22295 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22296 PyObject *resultobj = 0;
22297 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22298 wxToolBarBase *result = 0 ;
22299 void *argp1 = 0 ;
22300 int res1 = 0 ;
22301 PyObject *swig_obj[1] ;
22302
22303 if (!args) SWIG_fail;
22304 swig_obj[0] = args;
22305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22306 if (!SWIG_IsOK(res1)) {
22307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22308 }
22309 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22310 {
22311 PyThreadState* __tstate = wxPyBeginAllowThreads();
22312 result = (wxToolBarBase *)(arg1)->GetToolBar();
22313 wxPyEndAllowThreads(__tstate);
22314 if (PyErr_Occurred()) SWIG_fail;
22315 }
22316 {
22317 resultobj = wxPyMake_wxObject(result, (bool)0);
22318 }
22319 return resultobj;
22320 fail:
22321 return NULL;
22322 }
22323
22324
22325 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22326 PyObject *resultobj = 0;
22327 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22328 int result;
22329 void *argp1 = 0 ;
22330 int res1 = 0 ;
22331 PyObject *swig_obj[1] ;
22332
22333 if (!args) SWIG_fail;
22334 swig_obj[0] = args;
22335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22336 if (!SWIG_IsOK(res1)) {
22337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22338 }
22339 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22340 {
22341 PyThreadState* __tstate = wxPyBeginAllowThreads();
22342 result = (int)(arg1)->IsButton();
22343 wxPyEndAllowThreads(__tstate);
22344 if (PyErr_Occurred()) SWIG_fail;
22345 }
22346 resultobj = SWIG_From_int(static_cast< int >(result));
22347 return resultobj;
22348 fail:
22349 return NULL;
22350 }
22351
22352
22353 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22354 PyObject *resultobj = 0;
22355 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22356 int result;
22357 void *argp1 = 0 ;
22358 int res1 = 0 ;
22359 PyObject *swig_obj[1] ;
22360
22361 if (!args) SWIG_fail;
22362 swig_obj[0] = args;
22363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22364 if (!SWIG_IsOK(res1)) {
22365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22366 }
22367 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22368 {
22369 PyThreadState* __tstate = wxPyBeginAllowThreads();
22370 result = (int)(arg1)->IsControl();
22371 wxPyEndAllowThreads(__tstate);
22372 if (PyErr_Occurred()) SWIG_fail;
22373 }
22374 resultobj = SWIG_From_int(static_cast< int >(result));
22375 return resultobj;
22376 fail:
22377 return NULL;
22378 }
22379
22380
22381 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22382 PyObject *resultobj = 0;
22383 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22384 int result;
22385 void *argp1 = 0 ;
22386 int res1 = 0 ;
22387 PyObject *swig_obj[1] ;
22388
22389 if (!args) SWIG_fail;
22390 swig_obj[0] = args;
22391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22392 if (!SWIG_IsOK(res1)) {
22393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22394 }
22395 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22396 {
22397 PyThreadState* __tstate = wxPyBeginAllowThreads();
22398 result = (int)(arg1)->IsSeparator();
22399 wxPyEndAllowThreads(__tstate);
22400 if (PyErr_Occurred()) SWIG_fail;
22401 }
22402 resultobj = SWIG_From_int(static_cast< int >(result));
22403 return resultobj;
22404 fail:
22405 return NULL;
22406 }
22407
22408
22409 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22410 PyObject *resultobj = 0;
22411 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22412 int result;
22413 void *argp1 = 0 ;
22414 int res1 = 0 ;
22415 PyObject *swig_obj[1] ;
22416
22417 if (!args) SWIG_fail;
22418 swig_obj[0] = args;
22419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22420 if (!SWIG_IsOK(res1)) {
22421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22422 }
22423 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22424 {
22425 PyThreadState* __tstate = wxPyBeginAllowThreads();
22426 result = (int)(arg1)->GetStyle();
22427 wxPyEndAllowThreads(__tstate);
22428 if (PyErr_Occurred()) SWIG_fail;
22429 }
22430 resultobj = SWIG_From_int(static_cast< int >(result));
22431 return resultobj;
22432 fail:
22433 return NULL;
22434 }
22435
22436
22437 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22438 PyObject *resultobj = 0;
22439 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22440 wxItemKind result;
22441 void *argp1 = 0 ;
22442 int res1 = 0 ;
22443 PyObject *swig_obj[1] ;
22444
22445 if (!args) SWIG_fail;
22446 swig_obj[0] = args;
22447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22448 if (!SWIG_IsOK(res1)) {
22449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22450 }
22451 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22452 {
22453 PyThreadState* __tstate = wxPyBeginAllowThreads();
22454 result = (wxItemKind)(arg1)->GetKind();
22455 wxPyEndAllowThreads(__tstate);
22456 if (PyErr_Occurred()) SWIG_fail;
22457 }
22458 resultobj = SWIG_From_int(static_cast< int >(result));
22459 return resultobj;
22460 fail:
22461 return NULL;
22462 }
22463
22464
22465 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22466 PyObject *resultobj = 0;
22467 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22468 bool result;
22469 void *argp1 = 0 ;
22470 int res1 = 0 ;
22471 PyObject *swig_obj[1] ;
22472
22473 if (!args) SWIG_fail;
22474 swig_obj[0] = args;
22475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22476 if (!SWIG_IsOK(res1)) {
22477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22478 }
22479 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22480 {
22481 PyThreadState* __tstate = wxPyBeginAllowThreads();
22482 result = (bool)(arg1)->IsEnabled();
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_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22496 PyObject *resultobj = 0;
22497 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22498 bool result;
22499 void *argp1 = 0 ;
22500 int res1 = 0 ;
22501 PyObject *swig_obj[1] ;
22502
22503 if (!args) SWIG_fail;
22504 swig_obj[0] = args;
22505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22506 if (!SWIG_IsOK(res1)) {
22507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22508 }
22509 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22510 {
22511 PyThreadState* __tstate = wxPyBeginAllowThreads();
22512 result = (bool)(arg1)->IsToggled();
22513 wxPyEndAllowThreads(__tstate);
22514 if (PyErr_Occurred()) SWIG_fail;
22515 }
22516 {
22517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22518 }
22519 return resultobj;
22520 fail:
22521 return NULL;
22522 }
22523
22524
22525 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22526 PyObject *resultobj = 0;
22527 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22528 bool result;
22529 void *argp1 = 0 ;
22530 int res1 = 0 ;
22531 PyObject *swig_obj[1] ;
22532
22533 if (!args) SWIG_fail;
22534 swig_obj[0] = args;
22535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22536 if (!SWIG_IsOK(res1)) {
22537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22538 }
22539 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22540 {
22541 PyThreadState* __tstate = wxPyBeginAllowThreads();
22542 result = (bool)(arg1)->CanBeToggled();
22543 wxPyEndAllowThreads(__tstate);
22544 if (PyErr_Occurred()) SWIG_fail;
22545 }
22546 {
22547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22548 }
22549 return resultobj;
22550 fail:
22551 return NULL;
22552 }
22553
22554
22555 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22556 PyObject *resultobj = 0;
22557 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22558 wxBitmap *result = 0 ;
22559 void *argp1 = 0 ;
22560 int res1 = 0 ;
22561 PyObject *swig_obj[1] ;
22562
22563 if (!args) SWIG_fail;
22564 swig_obj[0] = args;
22565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22566 if (!SWIG_IsOK(res1)) {
22567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22568 }
22569 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22570 {
22571 PyThreadState* __tstate = wxPyBeginAllowThreads();
22572 {
22573 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22574 result = (wxBitmap *) &_result_ref;
22575 }
22576 wxPyEndAllowThreads(__tstate);
22577 if (PyErr_Occurred()) SWIG_fail;
22578 }
22579 {
22580 wxBitmap* resultptr = new wxBitmap(*result);
22581 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22582 }
22583 return resultobj;
22584 fail:
22585 return NULL;
22586 }
22587
22588
22589 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22590 PyObject *resultobj = 0;
22591 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22592 wxBitmap *result = 0 ;
22593 void *argp1 = 0 ;
22594 int res1 = 0 ;
22595 PyObject *swig_obj[1] ;
22596
22597 if (!args) SWIG_fail;
22598 swig_obj[0] = args;
22599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22600 if (!SWIG_IsOK(res1)) {
22601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22602 }
22603 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22604 {
22605 PyThreadState* __tstate = wxPyBeginAllowThreads();
22606 {
22607 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22608 result = (wxBitmap *) &_result_ref;
22609 }
22610 wxPyEndAllowThreads(__tstate);
22611 if (PyErr_Occurred()) SWIG_fail;
22612 }
22613 {
22614 wxBitmap* resultptr = new wxBitmap(*result);
22615 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22616 }
22617 return resultobj;
22618 fail:
22619 return NULL;
22620 }
22621
22622
22623 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22624 PyObject *resultobj = 0;
22625 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22626 wxBitmap result;
22627 void *argp1 = 0 ;
22628 int res1 = 0 ;
22629 PyObject *swig_obj[1] ;
22630
22631 if (!args) SWIG_fail;
22632 swig_obj[0] = args;
22633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22634 if (!SWIG_IsOK(res1)) {
22635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22636 }
22637 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22638 {
22639 PyThreadState* __tstate = wxPyBeginAllowThreads();
22640 result = (arg1)->GetBitmap();
22641 wxPyEndAllowThreads(__tstate);
22642 if (PyErr_Occurred()) SWIG_fail;
22643 }
22644 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22645 return resultobj;
22646 fail:
22647 return NULL;
22648 }
22649
22650
22651 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22652 PyObject *resultobj = 0;
22653 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22654 wxString result;
22655 void *argp1 = 0 ;
22656 int res1 = 0 ;
22657 PyObject *swig_obj[1] ;
22658
22659 if (!args) SWIG_fail;
22660 swig_obj[0] = args;
22661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22662 if (!SWIG_IsOK(res1)) {
22663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22664 }
22665 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22666 {
22667 PyThreadState* __tstate = wxPyBeginAllowThreads();
22668 result = (arg1)->GetLabel();
22669 wxPyEndAllowThreads(__tstate);
22670 if (PyErr_Occurred()) SWIG_fail;
22671 }
22672 {
22673 #if wxUSE_UNICODE
22674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22675 #else
22676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22677 #endif
22678 }
22679 return resultobj;
22680 fail:
22681 return NULL;
22682 }
22683
22684
22685 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22686 PyObject *resultobj = 0;
22687 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22688 wxString result;
22689 void *argp1 = 0 ;
22690 int res1 = 0 ;
22691 PyObject *swig_obj[1] ;
22692
22693 if (!args) SWIG_fail;
22694 swig_obj[0] = args;
22695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22696 if (!SWIG_IsOK(res1)) {
22697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22698 }
22699 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22700 {
22701 PyThreadState* __tstate = wxPyBeginAllowThreads();
22702 result = (arg1)->GetShortHelp();
22703 wxPyEndAllowThreads(__tstate);
22704 if (PyErr_Occurred()) SWIG_fail;
22705 }
22706 {
22707 #if wxUSE_UNICODE
22708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22709 #else
22710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22711 #endif
22712 }
22713 return resultobj;
22714 fail:
22715 return NULL;
22716 }
22717
22718
22719 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22720 PyObject *resultobj = 0;
22721 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22722 wxString result;
22723 void *argp1 = 0 ;
22724 int res1 = 0 ;
22725 PyObject *swig_obj[1] ;
22726
22727 if (!args) SWIG_fail;
22728 swig_obj[0] = args;
22729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22730 if (!SWIG_IsOK(res1)) {
22731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22732 }
22733 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22734 {
22735 PyThreadState* __tstate = wxPyBeginAllowThreads();
22736 result = (arg1)->GetLongHelp();
22737 wxPyEndAllowThreads(__tstate);
22738 if (PyErr_Occurred()) SWIG_fail;
22739 }
22740 {
22741 #if wxUSE_UNICODE
22742 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22743 #else
22744 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22745 #endif
22746 }
22747 return resultobj;
22748 fail:
22749 return NULL;
22750 }
22751
22752
22753 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22754 PyObject *resultobj = 0;
22755 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22756 bool arg2 ;
22757 bool result;
22758 void *argp1 = 0 ;
22759 int res1 = 0 ;
22760 bool val2 ;
22761 int ecode2 = 0 ;
22762 PyObject * obj0 = 0 ;
22763 PyObject * obj1 = 0 ;
22764 char * kwnames[] = {
22765 (char *) "self",(char *) "enable", NULL
22766 };
22767
22768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22770 if (!SWIG_IsOK(res1)) {
22771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22772 }
22773 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22774 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22775 if (!SWIG_IsOK(ecode2)) {
22776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22777 }
22778 arg2 = static_cast< bool >(val2);
22779 {
22780 PyThreadState* __tstate = wxPyBeginAllowThreads();
22781 result = (bool)(arg1)->Enable(arg2);
22782 wxPyEndAllowThreads(__tstate);
22783 if (PyErr_Occurred()) SWIG_fail;
22784 }
22785 {
22786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22787 }
22788 return resultobj;
22789 fail:
22790 return NULL;
22791 }
22792
22793
22794 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22795 PyObject *resultobj = 0;
22796 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22797 void *argp1 = 0 ;
22798 int res1 = 0 ;
22799 PyObject *swig_obj[1] ;
22800
22801 if (!args) SWIG_fail;
22802 swig_obj[0] = args;
22803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22804 if (!SWIG_IsOK(res1)) {
22805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22806 }
22807 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22808 {
22809 PyThreadState* __tstate = wxPyBeginAllowThreads();
22810 (arg1)->Toggle();
22811 wxPyEndAllowThreads(__tstate);
22812 if (PyErr_Occurred()) SWIG_fail;
22813 }
22814 resultobj = SWIG_Py_Void();
22815 return resultobj;
22816 fail:
22817 return NULL;
22818 }
22819
22820
22821 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22822 PyObject *resultobj = 0;
22823 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22824 bool arg2 ;
22825 bool result;
22826 void *argp1 = 0 ;
22827 int res1 = 0 ;
22828 bool val2 ;
22829 int ecode2 = 0 ;
22830 PyObject * obj0 = 0 ;
22831 PyObject * obj1 = 0 ;
22832 char * kwnames[] = {
22833 (char *) "self",(char *) "toggle", NULL
22834 };
22835
22836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
22837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22838 if (!SWIG_IsOK(res1)) {
22839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22840 }
22841 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22842 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22843 if (!SWIG_IsOK(ecode2)) {
22844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
22845 }
22846 arg2 = static_cast< bool >(val2);
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 result = (bool)(arg1)->SetToggle(arg2);
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 {
22854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22855 }
22856 return resultobj;
22857 fail:
22858 return NULL;
22859 }
22860
22861
22862 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22863 PyObject *resultobj = 0;
22864 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22865 wxString *arg2 = 0 ;
22866 bool result;
22867 void *argp1 = 0 ;
22868 int res1 = 0 ;
22869 bool temp2 = false ;
22870 PyObject * obj0 = 0 ;
22871 PyObject * obj1 = 0 ;
22872 char * kwnames[] = {
22873 (char *) "self",(char *) "help", NULL
22874 };
22875
22876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22878 if (!SWIG_IsOK(res1)) {
22879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22880 }
22881 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22882 {
22883 arg2 = wxString_in_helper(obj1);
22884 if (arg2 == NULL) SWIG_fail;
22885 temp2 = true;
22886 }
22887 {
22888 PyThreadState* __tstate = wxPyBeginAllowThreads();
22889 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
22890 wxPyEndAllowThreads(__tstate);
22891 if (PyErr_Occurred()) SWIG_fail;
22892 }
22893 {
22894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22895 }
22896 {
22897 if (temp2)
22898 delete arg2;
22899 }
22900 return resultobj;
22901 fail:
22902 {
22903 if (temp2)
22904 delete arg2;
22905 }
22906 return NULL;
22907 }
22908
22909
22910 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22911 PyObject *resultobj = 0;
22912 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22913 wxString *arg2 = 0 ;
22914 bool result;
22915 void *argp1 = 0 ;
22916 int res1 = 0 ;
22917 bool temp2 = false ;
22918 PyObject * obj0 = 0 ;
22919 PyObject * obj1 = 0 ;
22920 char * kwnames[] = {
22921 (char *) "self",(char *) "help", NULL
22922 };
22923
22924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22926 if (!SWIG_IsOK(res1)) {
22927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22928 }
22929 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22930 {
22931 arg2 = wxString_in_helper(obj1);
22932 if (arg2 == NULL) SWIG_fail;
22933 temp2 = true;
22934 }
22935 {
22936 PyThreadState* __tstate = wxPyBeginAllowThreads();
22937 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
22938 wxPyEndAllowThreads(__tstate);
22939 if (PyErr_Occurred()) SWIG_fail;
22940 }
22941 {
22942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22943 }
22944 {
22945 if (temp2)
22946 delete arg2;
22947 }
22948 return resultobj;
22949 fail:
22950 {
22951 if (temp2)
22952 delete arg2;
22953 }
22954 return NULL;
22955 }
22956
22957
22958 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22959 PyObject *resultobj = 0;
22960 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22961 wxBitmap *arg2 = 0 ;
22962 void *argp1 = 0 ;
22963 int res1 = 0 ;
22964 void *argp2 = 0 ;
22965 int res2 = 0 ;
22966 PyObject * obj0 = 0 ;
22967 PyObject * obj1 = 0 ;
22968 char * kwnames[] = {
22969 (char *) "self",(char *) "bmp", NULL
22970 };
22971
22972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22974 if (!SWIG_IsOK(res1)) {
22975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22976 }
22977 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22978 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22979 if (!SWIG_IsOK(res2)) {
22980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22981 }
22982 if (!argp2) {
22983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22984 }
22985 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22986 {
22987 PyThreadState* __tstate = wxPyBeginAllowThreads();
22988 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
22989 wxPyEndAllowThreads(__tstate);
22990 if (PyErr_Occurred()) SWIG_fail;
22991 }
22992 resultobj = SWIG_Py_Void();
22993 return resultobj;
22994 fail:
22995 return NULL;
22996 }
22997
22998
22999 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23000 PyObject *resultobj = 0;
23001 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23002 wxBitmap *arg2 = 0 ;
23003 void *argp1 = 0 ;
23004 int res1 = 0 ;
23005 void *argp2 = 0 ;
23006 int res2 = 0 ;
23007 PyObject * obj0 = 0 ;
23008 PyObject * obj1 = 0 ;
23009 char * kwnames[] = {
23010 (char *) "self",(char *) "bmp", NULL
23011 };
23012
23013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23015 if (!SWIG_IsOK(res1)) {
23016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23017 }
23018 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23019 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23020 if (!SWIG_IsOK(res2)) {
23021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23022 }
23023 if (!argp2) {
23024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23025 }
23026 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23027 {
23028 PyThreadState* __tstate = wxPyBeginAllowThreads();
23029 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23030 wxPyEndAllowThreads(__tstate);
23031 if (PyErr_Occurred()) SWIG_fail;
23032 }
23033 resultobj = SWIG_Py_Void();
23034 return resultobj;
23035 fail:
23036 return NULL;
23037 }
23038
23039
23040 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23041 PyObject *resultobj = 0;
23042 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23043 wxString *arg2 = 0 ;
23044 void *argp1 = 0 ;
23045 int res1 = 0 ;
23046 bool temp2 = false ;
23047 PyObject * obj0 = 0 ;
23048 PyObject * obj1 = 0 ;
23049 char * kwnames[] = {
23050 (char *) "self",(char *) "label", NULL
23051 };
23052
23053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23055 if (!SWIG_IsOK(res1)) {
23056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23057 }
23058 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23059 {
23060 arg2 = wxString_in_helper(obj1);
23061 if (arg2 == NULL) SWIG_fail;
23062 temp2 = true;
23063 }
23064 {
23065 PyThreadState* __tstate = wxPyBeginAllowThreads();
23066 (arg1)->SetLabel((wxString const &)*arg2);
23067 wxPyEndAllowThreads(__tstate);
23068 if (PyErr_Occurred()) SWIG_fail;
23069 }
23070 resultobj = SWIG_Py_Void();
23071 {
23072 if (temp2)
23073 delete arg2;
23074 }
23075 return resultobj;
23076 fail:
23077 {
23078 if (temp2)
23079 delete arg2;
23080 }
23081 return NULL;
23082 }
23083
23084
23085 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23086 PyObject *resultobj = 0;
23087 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23088 void *argp1 = 0 ;
23089 int res1 = 0 ;
23090 PyObject *swig_obj[1] ;
23091
23092 if (!args) SWIG_fail;
23093 swig_obj[0] = args;
23094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23095 if (!SWIG_IsOK(res1)) {
23096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23097 }
23098 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23099 {
23100 PyThreadState* __tstate = wxPyBeginAllowThreads();
23101 (arg1)->Detach();
23102 wxPyEndAllowThreads(__tstate);
23103 if (PyErr_Occurred()) SWIG_fail;
23104 }
23105 resultobj = SWIG_Py_Void();
23106 return resultobj;
23107 fail:
23108 return NULL;
23109 }
23110
23111
23112 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23113 PyObject *resultobj = 0;
23114 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23115 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23116 void *argp1 = 0 ;
23117 int res1 = 0 ;
23118 void *argp2 = 0 ;
23119 int res2 = 0 ;
23120 PyObject * obj0 = 0 ;
23121 PyObject * obj1 = 0 ;
23122 char * kwnames[] = {
23123 (char *) "self",(char *) "tbar", NULL
23124 };
23125
23126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23128 if (!SWIG_IsOK(res1)) {
23129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23130 }
23131 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23132 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23133 if (!SWIG_IsOK(res2)) {
23134 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23135 }
23136 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23137 {
23138 PyThreadState* __tstate = wxPyBeginAllowThreads();
23139 (arg1)->Attach(arg2);
23140 wxPyEndAllowThreads(__tstate);
23141 if (PyErr_Occurred()) SWIG_fail;
23142 }
23143 resultobj = SWIG_Py_Void();
23144 return resultobj;
23145 fail:
23146 return NULL;
23147 }
23148
23149
23150 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23151 PyObject *resultobj = 0;
23152 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23153 PyObject *result = 0 ;
23154 void *argp1 = 0 ;
23155 int res1 = 0 ;
23156 PyObject *swig_obj[1] ;
23157
23158 if (!args) SWIG_fail;
23159 swig_obj[0] = args;
23160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23161 if (!SWIG_IsOK(res1)) {
23162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23163 }
23164 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23165 {
23166 PyThreadState* __tstate = wxPyBeginAllowThreads();
23167 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23168 wxPyEndAllowThreads(__tstate);
23169 if (PyErr_Occurred()) SWIG_fail;
23170 }
23171 resultobj = result;
23172 return resultobj;
23173 fail:
23174 return NULL;
23175 }
23176
23177
23178 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23179 PyObject *resultobj = 0;
23180 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23181 PyObject *arg2 = (PyObject *) 0 ;
23182 void *argp1 = 0 ;
23183 int res1 = 0 ;
23184 PyObject * obj0 = 0 ;
23185 PyObject * obj1 = 0 ;
23186 char * kwnames[] = {
23187 (char *) "self",(char *) "clientData", NULL
23188 };
23189
23190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23192 if (!SWIG_IsOK(res1)) {
23193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23194 }
23195 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23196 arg2 = obj1;
23197 {
23198 PyThreadState* __tstate = wxPyBeginAllowThreads();
23199 wxToolBarToolBase_SetClientData(arg1,arg2);
23200 wxPyEndAllowThreads(__tstate);
23201 if (PyErr_Occurred()) SWIG_fail;
23202 }
23203 resultobj = SWIG_Py_Void();
23204 return resultobj;
23205 fail:
23206 return NULL;
23207 }
23208
23209
23210 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23211 PyObject *obj;
23212 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23213 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23214 return SWIG_Py_Void();
23215 }
23216
23217 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23218 PyObject *resultobj = 0;
23219 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23220 int arg2 ;
23221 wxString *arg3 = 0 ;
23222 wxBitmap *arg4 = 0 ;
23223 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23224 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23225 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23226 wxString const &arg7_defvalue = wxPyEmptyString ;
23227 wxString *arg7 = (wxString *) &arg7_defvalue ;
23228 wxString const &arg8_defvalue = wxPyEmptyString ;
23229 wxString *arg8 = (wxString *) &arg8_defvalue ;
23230 PyObject *arg9 = (PyObject *) NULL ;
23231 wxToolBarToolBase *result = 0 ;
23232 void *argp1 = 0 ;
23233 int res1 = 0 ;
23234 int val2 ;
23235 int ecode2 = 0 ;
23236 bool temp3 = false ;
23237 void *argp4 = 0 ;
23238 int res4 = 0 ;
23239 void *argp5 = 0 ;
23240 int res5 = 0 ;
23241 int val6 ;
23242 int ecode6 = 0 ;
23243 bool temp7 = false ;
23244 bool temp8 = false ;
23245 PyObject * obj0 = 0 ;
23246 PyObject * obj1 = 0 ;
23247 PyObject * obj2 = 0 ;
23248 PyObject * obj3 = 0 ;
23249 PyObject * obj4 = 0 ;
23250 PyObject * obj5 = 0 ;
23251 PyObject * obj6 = 0 ;
23252 PyObject * obj7 = 0 ;
23253 PyObject * obj8 = 0 ;
23254 char * kwnames[] = {
23255 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23256 };
23257
23258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23260 if (!SWIG_IsOK(res1)) {
23261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23262 }
23263 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23264 ecode2 = SWIG_AsVal_int(obj1, &val2);
23265 if (!SWIG_IsOK(ecode2)) {
23266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23267 }
23268 arg2 = static_cast< int >(val2);
23269 {
23270 arg3 = wxString_in_helper(obj2);
23271 if (arg3 == NULL) SWIG_fail;
23272 temp3 = true;
23273 }
23274 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23275 if (!SWIG_IsOK(res4)) {
23276 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23277 }
23278 if (!argp4) {
23279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23280 }
23281 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23282 if (obj4) {
23283 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23284 if (!SWIG_IsOK(res5)) {
23285 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23286 }
23287 if (!argp5) {
23288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23289 }
23290 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23291 }
23292 if (obj5) {
23293 ecode6 = SWIG_AsVal_int(obj5, &val6);
23294 if (!SWIG_IsOK(ecode6)) {
23295 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23296 }
23297 arg6 = static_cast< wxItemKind >(val6);
23298 }
23299 if (obj6) {
23300 {
23301 arg7 = wxString_in_helper(obj6);
23302 if (arg7 == NULL) SWIG_fail;
23303 temp7 = true;
23304 }
23305 }
23306 if (obj7) {
23307 {
23308 arg8 = wxString_in_helper(obj7);
23309 if (arg8 == NULL) SWIG_fail;
23310 temp8 = true;
23311 }
23312 }
23313 if (obj8) {
23314 arg9 = obj8;
23315 }
23316 {
23317 PyThreadState* __tstate = wxPyBeginAllowThreads();
23318 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23319 wxPyEndAllowThreads(__tstate);
23320 if (PyErr_Occurred()) SWIG_fail;
23321 }
23322 {
23323 resultobj = wxPyMake_wxObject(result, (bool)0);
23324 }
23325 {
23326 if (temp3)
23327 delete arg3;
23328 }
23329 {
23330 if (temp7)
23331 delete arg7;
23332 }
23333 {
23334 if (temp8)
23335 delete arg8;
23336 }
23337 return resultobj;
23338 fail:
23339 {
23340 if (temp3)
23341 delete arg3;
23342 }
23343 {
23344 if (temp7)
23345 delete arg7;
23346 }
23347 {
23348 if (temp8)
23349 delete arg8;
23350 }
23351 return NULL;
23352 }
23353
23354
23355 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23356 PyObject *resultobj = 0;
23357 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23358 size_t arg2 ;
23359 int arg3 ;
23360 wxString *arg4 = 0 ;
23361 wxBitmap *arg5 = 0 ;
23362 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23363 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23364 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23365 wxString const &arg8_defvalue = wxPyEmptyString ;
23366 wxString *arg8 = (wxString *) &arg8_defvalue ;
23367 wxString const &arg9_defvalue = wxPyEmptyString ;
23368 wxString *arg9 = (wxString *) &arg9_defvalue ;
23369 PyObject *arg10 = (PyObject *) NULL ;
23370 wxToolBarToolBase *result = 0 ;
23371 void *argp1 = 0 ;
23372 int res1 = 0 ;
23373 size_t val2 ;
23374 int ecode2 = 0 ;
23375 int val3 ;
23376 int ecode3 = 0 ;
23377 bool temp4 = false ;
23378 void *argp5 = 0 ;
23379 int res5 = 0 ;
23380 void *argp6 = 0 ;
23381 int res6 = 0 ;
23382 int val7 ;
23383 int ecode7 = 0 ;
23384 bool temp8 = false ;
23385 bool temp9 = false ;
23386 PyObject * obj0 = 0 ;
23387 PyObject * obj1 = 0 ;
23388 PyObject * obj2 = 0 ;
23389 PyObject * obj3 = 0 ;
23390 PyObject * obj4 = 0 ;
23391 PyObject * obj5 = 0 ;
23392 PyObject * obj6 = 0 ;
23393 PyObject * obj7 = 0 ;
23394 PyObject * obj8 = 0 ;
23395 PyObject * obj9 = 0 ;
23396 char * kwnames[] = {
23397 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23398 };
23399
23400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23402 if (!SWIG_IsOK(res1)) {
23403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23404 }
23405 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23406 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23407 if (!SWIG_IsOK(ecode2)) {
23408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23409 }
23410 arg2 = static_cast< size_t >(val2);
23411 ecode3 = SWIG_AsVal_int(obj2, &val3);
23412 if (!SWIG_IsOK(ecode3)) {
23413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23414 }
23415 arg3 = static_cast< int >(val3);
23416 {
23417 arg4 = wxString_in_helper(obj3);
23418 if (arg4 == NULL) SWIG_fail;
23419 temp4 = true;
23420 }
23421 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23422 if (!SWIG_IsOK(res5)) {
23423 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23424 }
23425 if (!argp5) {
23426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23427 }
23428 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23429 if (obj5) {
23430 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23431 if (!SWIG_IsOK(res6)) {
23432 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23433 }
23434 if (!argp6) {
23435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23436 }
23437 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23438 }
23439 if (obj6) {
23440 ecode7 = SWIG_AsVal_int(obj6, &val7);
23441 if (!SWIG_IsOK(ecode7)) {
23442 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23443 }
23444 arg7 = static_cast< wxItemKind >(val7);
23445 }
23446 if (obj7) {
23447 {
23448 arg8 = wxString_in_helper(obj7);
23449 if (arg8 == NULL) SWIG_fail;
23450 temp8 = true;
23451 }
23452 }
23453 if (obj8) {
23454 {
23455 arg9 = wxString_in_helper(obj8);
23456 if (arg9 == NULL) SWIG_fail;
23457 temp9 = true;
23458 }
23459 }
23460 if (obj9) {
23461 arg10 = obj9;
23462 }
23463 {
23464 PyThreadState* __tstate = wxPyBeginAllowThreads();
23465 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23466 wxPyEndAllowThreads(__tstate);
23467 if (PyErr_Occurred()) SWIG_fail;
23468 }
23469 {
23470 resultobj = wxPyMake_wxObject(result, (bool)0);
23471 }
23472 {
23473 if (temp4)
23474 delete arg4;
23475 }
23476 {
23477 if (temp8)
23478 delete arg8;
23479 }
23480 {
23481 if (temp9)
23482 delete arg9;
23483 }
23484 return resultobj;
23485 fail:
23486 {
23487 if (temp4)
23488 delete arg4;
23489 }
23490 {
23491 if (temp8)
23492 delete arg8;
23493 }
23494 {
23495 if (temp9)
23496 delete arg9;
23497 }
23498 return NULL;
23499 }
23500
23501
23502 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23503 PyObject *resultobj = 0;
23504 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23505 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23506 wxToolBarToolBase *result = 0 ;
23507 void *argp1 = 0 ;
23508 int res1 = 0 ;
23509 void *argp2 = 0 ;
23510 int res2 = 0 ;
23511 PyObject * obj0 = 0 ;
23512 PyObject * obj1 = 0 ;
23513 char * kwnames[] = {
23514 (char *) "self",(char *) "tool", NULL
23515 };
23516
23517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23519 if (!SWIG_IsOK(res1)) {
23520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23521 }
23522 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23523 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23524 if (!SWIG_IsOK(res2)) {
23525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23526 }
23527 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23528 {
23529 PyThreadState* __tstate = wxPyBeginAllowThreads();
23530 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23531 wxPyEndAllowThreads(__tstate);
23532 if (PyErr_Occurred()) SWIG_fail;
23533 }
23534 {
23535 resultobj = wxPyMake_wxObject(result, (bool)0);
23536 }
23537 return resultobj;
23538 fail:
23539 return NULL;
23540 }
23541
23542
23543 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23544 PyObject *resultobj = 0;
23545 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23546 size_t arg2 ;
23547 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23548 wxToolBarToolBase *result = 0 ;
23549 void *argp1 = 0 ;
23550 int res1 = 0 ;
23551 size_t val2 ;
23552 int ecode2 = 0 ;
23553 void *argp3 = 0 ;
23554 int res3 = 0 ;
23555 PyObject * obj0 = 0 ;
23556 PyObject * obj1 = 0 ;
23557 PyObject * obj2 = 0 ;
23558 char * kwnames[] = {
23559 (char *) "self",(char *) "pos",(char *) "tool", NULL
23560 };
23561
23562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23564 if (!SWIG_IsOK(res1)) {
23565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23566 }
23567 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23568 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23569 if (!SWIG_IsOK(ecode2)) {
23570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23571 }
23572 arg2 = static_cast< size_t >(val2);
23573 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23574 if (!SWIG_IsOK(res3)) {
23575 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23576 }
23577 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23578 {
23579 PyThreadState* __tstate = wxPyBeginAllowThreads();
23580 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23581 wxPyEndAllowThreads(__tstate);
23582 if (PyErr_Occurred()) SWIG_fail;
23583 }
23584 {
23585 resultobj = wxPyMake_wxObject(result, (bool)0);
23586 }
23587 return resultobj;
23588 fail:
23589 return NULL;
23590 }
23591
23592
23593 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23594 PyObject *resultobj = 0;
23595 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23596 wxControl *arg2 = (wxControl *) 0 ;
23597 wxToolBarToolBase *result = 0 ;
23598 void *argp1 = 0 ;
23599 int res1 = 0 ;
23600 void *argp2 = 0 ;
23601 int res2 = 0 ;
23602 PyObject * obj0 = 0 ;
23603 PyObject * obj1 = 0 ;
23604 char * kwnames[] = {
23605 (char *) "self",(char *) "control", NULL
23606 };
23607
23608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23610 if (!SWIG_IsOK(res1)) {
23611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23612 }
23613 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23614 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23615 if (!SWIG_IsOK(res2)) {
23616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23617 }
23618 arg2 = reinterpret_cast< wxControl * >(argp2);
23619 {
23620 PyThreadState* __tstate = wxPyBeginAllowThreads();
23621 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23622 wxPyEndAllowThreads(__tstate);
23623 if (PyErr_Occurred()) SWIG_fail;
23624 }
23625 {
23626 resultobj = wxPyMake_wxObject(result, (bool)0);
23627 }
23628 return resultobj;
23629 fail:
23630 return NULL;
23631 }
23632
23633
23634 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23635 PyObject *resultobj = 0;
23636 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23637 size_t arg2 ;
23638 wxControl *arg3 = (wxControl *) 0 ;
23639 wxToolBarToolBase *result = 0 ;
23640 void *argp1 = 0 ;
23641 int res1 = 0 ;
23642 size_t val2 ;
23643 int ecode2 = 0 ;
23644 void *argp3 = 0 ;
23645 int res3 = 0 ;
23646 PyObject * obj0 = 0 ;
23647 PyObject * obj1 = 0 ;
23648 PyObject * obj2 = 0 ;
23649 char * kwnames[] = {
23650 (char *) "self",(char *) "pos",(char *) "control", NULL
23651 };
23652
23653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23655 if (!SWIG_IsOK(res1)) {
23656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23657 }
23658 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23659 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23660 if (!SWIG_IsOK(ecode2)) {
23661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23662 }
23663 arg2 = static_cast< size_t >(val2);
23664 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23665 if (!SWIG_IsOK(res3)) {
23666 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23667 }
23668 arg3 = reinterpret_cast< wxControl * >(argp3);
23669 {
23670 PyThreadState* __tstate = wxPyBeginAllowThreads();
23671 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23672 wxPyEndAllowThreads(__tstate);
23673 if (PyErr_Occurred()) SWIG_fail;
23674 }
23675 {
23676 resultobj = wxPyMake_wxObject(result, (bool)0);
23677 }
23678 return resultobj;
23679 fail:
23680 return NULL;
23681 }
23682
23683
23684 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23685 PyObject *resultobj = 0;
23686 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23687 int arg2 ;
23688 wxControl *result = 0 ;
23689 void *argp1 = 0 ;
23690 int res1 = 0 ;
23691 int val2 ;
23692 int ecode2 = 0 ;
23693 PyObject * obj0 = 0 ;
23694 PyObject * obj1 = 0 ;
23695 char * kwnames[] = {
23696 (char *) "self",(char *) "id", NULL
23697 };
23698
23699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23701 if (!SWIG_IsOK(res1)) {
23702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23703 }
23704 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23705 ecode2 = SWIG_AsVal_int(obj1, &val2);
23706 if (!SWIG_IsOK(ecode2)) {
23707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23708 }
23709 arg2 = static_cast< int >(val2);
23710 {
23711 PyThreadState* __tstate = wxPyBeginAllowThreads();
23712 result = (wxControl *)(arg1)->FindControl(arg2);
23713 wxPyEndAllowThreads(__tstate);
23714 if (PyErr_Occurred()) SWIG_fail;
23715 }
23716 {
23717 resultobj = wxPyMake_wxObject(result, 0);
23718 }
23719 return resultobj;
23720 fail:
23721 return NULL;
23722 }
23723
23724
23725 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23726 PyObject *resultobj = 0;
23727 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23728 wxToolBarToolBase *result = 0 ;
23729 void *argp1 = 0 ;
23730 int res1 = 0 ;
23731 PyObject *swig_obj[1] ;
23732
23733 if (!args) SWIG_fail;
23734 swig_obj[0] = args;
23735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23736 if (!SWIG_IsOK(res1)) {
23737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23738 }
23739 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23740 {
23741 PyThreadState* __tstate = wxPyBeginAllowThreads();
23742 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23743 wxPyEndAllowThreads(__tstate);
23744 if (PyErr_Occurred()) SWIG_fail;
23745 }
23746 {
23747 resultobj = wxPyMake_wxObject(result, (bool)0);
23748 }
23749 return resultobj;
23750 fail:
23751 return NULL;
23752 }
23753
23754
23755 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23756 PyObject *resultobj = 0;
23757 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23758 size_t arg2 ;
23759 wxToolBarToolBase *result = 0 ;
23760 void *argp1 = 0 ;
23761 int res1 = 0 ;
23762 size_t val2 ;
23763 int ecode2 = 0 ;
23764 PyObject * obj0 = 0 ;
23765 PyObject * obj1 = 0 ;
23766 char * kwnames[] = {
23767 (char *) "self",(char *) "pos", NULL
23768 };
23769
23770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23772 if (!SWIG_IsOK(res1)) {
23773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23774 }
23775 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23776 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23777 if (!SWIG_IsOK(ecode2)) {
23778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23779 }
23780 arg2 = static_cast< size_t >(val2);
23781 {
23782 PyThreadState* __tstate = wxPyBeginAllowThreads();
23783 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23784 wxPyEndAllowThreads(__tstate);
23785 if (PyErr_Occurred()) SWIG_fail;
23786 }
23787 {
23788 resultobj = wxPyMake_wxObject(result, (bool)0);
23789 }
23790 return resultobj;
23791 fail:
23792 return NULL;
23793 }
23794
23795
23796 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23797 PyObject *resultobj = 0;
23798 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23799 int arg2 ;
23800 wxToolBarToolBase *result = 0 ;
23801 void *argp1 = 0 ;
23802 int res1 = 0 ;
23803 int val2 ;
23804 int ecode2 = 0 ;
23805 PyObject * obj0 = 0 ;
23806 PyObject * obj1 = 0 ;
23807 char * kwnames[] = {
23808 (char *) "self",(char *) "id", NULL
23809 };
23810
23811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23813 if (!SWIG_IsOK(res1)) {
23814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23815 }
23816 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23817 ecode2 = SWIG_AsVal_int(obj1, &val2);
23818 if (!SWIG_IsOK(ecode2)) {
23819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23820 }
23821 arg2 = static_cast< int >(val2);
23822 {
23823 PyThreadState* __tstate = wxPyBeginAllowThreads();
23824 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23825 wxPyEndAllowThreads(__tstate);
23826 if (PyErr_Occurred()) SWIG_fail;
23827 }
23828 {
23829 resultobj = wxPyMake_wxObject(result, (bool)0);
23830 }
23831 return resultobj;
23832 fail:
23833 return NULL;
23834 }
23835
23836
23837 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23838 PyObject *resultobj = 0;
23839 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23840 size_t arg2 ;
23841 bool result;
23842 void *argp1 = 0 ;
23843 int res1 = 0 ;
23844 size_t val2 ;
23845 int ecode2 = 0 ;
23846 PyObject * obj0 = 0 ;
23847 PyObject * obj1 = 0 ;
23848 char * kwnames[] = {
23849 (char *) "self",(char *) "pos", NULL
23850 };
23851
23852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
23853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23854 if (!SWIG_IsOK(res1)) {
23855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23856 }
23857 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23858 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23859 if (!SWIG_IsOK(ecode2)) {
23860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
23861 }
23862 arg2 = static_cast< size_t >(val2);
23863 {
23864 PyThreadState* __tstate = wxPyBeginAllowThreads();
23865 result = (bool)(arg1)->DeleteToolByPos(arg2);
23866 wxPyEndAllowThreads(__tstate);
23867 if (PyErr_Occurred()) SWIG_fail;
23868 }
23869 {
23870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23871 }
23872 return resultobj;
23873 fail:
23874 return NULL;
23875 }
23876
23877
23878 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23879 PyObject *resultobj = 0;
23880 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23881 int arg2 ;
23882 bool result;
23883 void *argp1 = 0 ;
23884 int res1 = 0 ;
23885 int val2 ;
23886 int ecode2 = 0 ;
23887 PyObject * obj0 = 0 ;
23888 PyObject * obj1 = 0 ;
23889 char * kwnames[] = {
23890 (char *) "self",(char *) "id", NULL
23891 };
23892
23893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
23894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23895 if (!SWIG_IsOK(res1)) {
23896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23897 }
23898 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23899 ecode2 = SWIG_AsVal_int(obj1, &val2);
23900 if (!SWIG_IsOK(ecode2)) {
23901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
23902 }
23903 arg2 = static_cast< int >(val2);
23904 {
23905 PyThreadState* __tstate = wxPyBeginAllowThreads();
23906 result = (bool)(arg1)->DeleteTool(arg2);
23907 wxPyEndAllowThreads(__tstate);
23908 if (PyErr_Occurred()) SWIG_fail;
23909 }
23910 {
23911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23912 }
23913 return resultobj;
23914 fail:
23915 return NULL;
23916 }
23917
23918
23919 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23920 PyObject *resultobj = 0;
23921 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23922 void *argp1 = 0 ;
23923 int res1 = 0 ;
23924 PyObject *swig_obj[1] ;
23925
23926 if (!args) SWIG_fail;
23927 swig_obj[0] = args;
23928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23929 if (!SWIG_IsOK(res1)) {
23930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23931 }
23932 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23933 {
23934 PyThreadState* __tstate = wxPyBeginAllowThreads();
23935 (arg1)->ClearTools();
23936 wxPyEndAllowThreads(__tstate);
23937 if (PyErr_Occurred()) SWIG_fail;
23938 }
23939 resultobj = SWIG_Py_Void();
23940 return resultobj;
23941 fail:
23942 return NULL;
23943 }
23944
23945
23946 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23947 PyObject *resultobj = 0;
23948 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23949 bool result;
23950 void *argp1 = 0 ;
23951 int res1 = 0 ;
23952 PyObject *swig_obj[1] ;
23953
23954 if (!args) SWIG_fail;
23955 swig_obj[0] = args;
23956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23957 if (!SWIG_IsOK(res1)) {
23958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23959 }
23960 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23961 {
23962 PyThreadState* __tstate = wxPyBeginAllowThreads();
23963 result = (bool)(arg1)->Realize();
23964 wxPyEndAllowThreads(__tstate);
23965 if (PyErr_Occurred()) SWIG_fail;
23966 }
23967 {
23968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23969 }
23970 return resultobj;
23971 fail:
23972 return NULL;
23973 }
23974
23975
23976 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23977 PyObject *resultobj = 0;
23978 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23979 int arg2 ;
23980 bool arg3 ;
23981 void *argp1 = 0 ;
23982 int res1 = 0 ;
23983 int val2 ;
23984 int ecode2 = 0 ;
23985 bool val3 ;
23986 int ecode3 = 0 ;
23987 PyObject * obj0 = 0 ;
23988 PyObject * obj1 = 0 ;
23989 PyObject * obj2 = 0 ;
23990 char * kwnames[] = {
23991 (char *) "self",(char *) "id",(char *) "enable", NULL
23992 };
23993
23994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23996 if (!SWIG_IsOK(res1)) {
23997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23998 }
23999 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24000 ecode2 = SWIG_AsVal_int(obj1, &val2);
24001 if (!SWIG_IsOK(ecode2)) {
24002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24003 }
24004 arg2 = static_cast< int >(val2);
24005 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24006 if (!SWIG_IsOK(ecode3)) {
24007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24008 }
24009 arg3 = static_cast< bool >(val3);
24010 {
24011 PyThreadState* __tstate = wxPyBeginAllowThreads();
24012 (arg1)->EnableTool(arg2,arg3);
24013 wxPyEndAllowThreads(__tstate);
24014 if (PyErr_Occurred()) SWIG_fail;
24015 }
24016 resultobj = SWIG_Py_Void();
24017 return resultobj;
24018 fail:
24019 return NULL;
24020 }
24021
24022
24023 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24024 PyObject *resultobj = 0;
24025 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24026 int arg2 ;
24027 bool arg3 ;
24028 void *argp1 = 0 ;
24029 int res1 = 0 ;
24030 int val2 ;
24031 int ecode2 = 0 ;
24032 bool val3 ;
24033 int ecode3 = 0 ;
24034 PyObject * obj0 = 0 ;
24035 PyObject * obj1 = 0 ;
24036 PyObject * obj2 = 0 ;
24037 char * kwnames[] = {
24038 (char *) "self",(char *) "id",(char *) "toggle", NULL
24039 };
24040
24041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24043 if (!SWIG_IsOK(res1)) {
24044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24045 }
24046 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24047 ecode2 = SWIG_AsVal_int(obj1, &val2);
24048 if (!SWIG_IsOK(ecode2)) {
24049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24050 }
24051 arg2 = static_cast< int >(val2);
24052 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24053 if (!SWIG_IsOK(ecode3)) {
24054 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24055 }
24056 arg3 = static_cast< bool >(val3);
24057 {
24058 PyThreadState* __tstate = wxPyBeginAllowThreads();
24059 (arg1)->ToggleTool(arg2,arg3);
24060 wxPyEndAllowThreads(__tstate);
24061 if (PyErr_Occurred()) SWIG_fail;
24062 }
24063 resultobj = SWIG_Py_Void();
24064 return resultobj;
24065 fail:
24066 return NULL;
24067 }
24068
24069
24070 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24071 PyObject *resultobj = 0;
24072 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24073 int arg2 ;
24074 bool arg3 ;
24075 void *argp1 = 0 ;
24076 int res1 = 0 ;
24077 int val2 ;
24078 int ecode2 = 0 ;
24079 bool val3 ;
24080 int ecode3 = 0 ;
24081 PyObject * obj0 = 0 ;
24082 PyObject * obj1 = 0 ;
24083 PyObject * obj2 = 0 ;
24084 char * kwnames[] = {
24085 (char *) "self",(char *) "id",(char *) "toggle", NULL
24086 };
24087
24088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24090 if (!SWIG_IsOK(res1)) {
24091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24092 }
24093 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24094 ecode2 = SWIG_AsVal_int(obj1, &val2);
24095 if (!SWIG_IsOK(ecode2)) {
24096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24097 }
24098 arg2 = static_cast< int >(val2);
24099 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24100 if (!SWIG_IsOK(ecode3)) {
24101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24102 }
24103 arg3 = static_cast< bool >(val3);
24104 {
24105 PyThreadState* __tstate = wxPyBeginAllowThreads();
24106 (arg1)->SetToggle(arg2,arg3);
24107 wxPyEndAllowThreads(__tstate);
24108 if (PyErr_Occurred()) SWIG_fail;
24109 }
24110 resultobj = SWIG_Py_Void();
24111 return resultobj;
24112 fail:
24113 return NULL;
24114 }
24115
24116
24117 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24118 PyObject *resultobj = 0;
24119 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24120 int arg2 ;
24121 PyObject *result = 0 ;
24122 void *argp1 = 0 ;
24123 int res1 = 0 ;
24124 int val2 ;
24125 int ecode2 = 0 ;
24126 PyObject * obj0 = 0 ;
24127 PyObject * obj1 = 0 ;
24128 char * kwnames[] = {
24129 (char *) "self",(char *) "id", NULL
24130 };
24131
24132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24134 if (!SWIG_IsOK(res1)) {
24135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24136 }
24137 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24138 ecode2 = SWIG_AsVal_int(obj1, &val2);
24139 if (!SWIG_IsOK(ecode2)) {
24140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24141 }
24142 arg2 = static_cast< int >(val2);
24143 {
24144 PyThreadState* __tstate = wxPyBeginAllowThreads();
24145 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24146 wxPyEndAllowThreads(__tstate);
24147 if (PyErr_Occurred()) SWIG_fail;
24148 }
24149 resultobj = result;
24150 return resultobj;
24151 fail:
24152 return NULL;
24153 }
24154
24155
24156 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24157 PyObject *resultobj = 0;
24158 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24159 int arg2 ;
24160 PyObject *arg3 = (PyObject *) 0 ;
24161 void *argp1 = 0 ;
24162 int res1 = 0 ;
24163 int val2 ;
24164 int ecode2 = 0 ;
24165 PyObject * obj0 = 0 ;
24166 PyObject * obj1 = 0 ;
24167 PyObject * obj2 = 0 ;
24168 char * kwnames[] = {
24169 (char *) "self",(char *) "id",(char *) "clientData", NULL
24170 };
24171
24172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24174 if (!SWIG_IsOK(res1)) {
24175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24176 }
24177 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24178 ecode2 = SWIG_AsVal_int(obj1, &val2);
24179 if (!SWIG_IsOK(ecode2)) {
24180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24181 }
24182 arg2 = static_cast< int >(val2);
24183 arg3 = obj2;
24184 {
24185 PyThreadState* __tstate = wxPyBeginAllowThreads();
24186 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24187 wxPyEndAllowThreads(__tstate);
24188 if (PyErr_Occurred()) SWIG_fail;
24189 }
24190 resultobj = SWIG_Py_Void();
24191 return resultobj;
24192 fail:
24193 return NULL;
24194 }
24195
24196
24197 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24198 PyObject *resultobj = 0;
24199 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24200 int arg2 ;
24201 int result;
24202 void *argp1 = 0 ;
24203 int res1 = 0 ;
24204 int val2 ;
24205 int ecode2 = 0 ;
24206 PyObject * obj0 = 0 ;
24207 PyObject * obj1 = 0 ;
24208 char * kwnames[] = {
24209 (char *) "self",(char *) "id", NULL
24210 };
24211
24212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24214 if (!SWIG_IsOK(res1)) {
24215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24216 }
24217 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24218 ecode2 = SWIG_AsVal_int(obj1, &val2);
24219 if (!SWIG_IsOK(ecode2)) {
24220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24221 }
24222 arg2 = static_cast< int >(val2);
24223 {
24224 PyThreadState* __tstate = wxPyBeginAllowThreads();
24225 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24226 wxPyEndAllowThreads(__tstate);
24227 if (PyErr_Occurred()) SWIG_fail;
24228 }
24229 resultobj = SWIG_From_int(static_cast< int >(result));
24230 return resultobj;
24231 fail:
24232 return NULL;
24233 }
24234
24235
24236 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24237 PyObject *resultobj = 0;
24238 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24239 int arg2 ;
24240 bool result;
24241 void *argp1 = 0 ;
24242 int res1 = 0 ;
24243 int val2 ;
24244 int ecode2 = 0 ;
24245 PyObject * obj0 = 0 ;
24246 PyObject * obj1 = 0 ;
24247 char * kwnames[] = {
24248 (char *) "self",(char *) "id", NULL
24249 };
24250
24251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24253 if (!SWIG_IsOK(res1)) {
24254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24255 }
24256 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24257 ecode2 = SWIG_AsVal_int(obj1, &val2);
24258 if (!SWIG_IsOK(ecode2)) {
24259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24260 }
24261 arg2 = static_cast< int >(val2);
24262 {
24263 PyThreadState* __tstate = wxPyBeginAllowThreads();
24264 result = (bool)(arg1)->GetToolState(arg2);
24265 wxPyEndAllowThreads(__tstate);
24266 if (PyErr_Occurred()) SWIG_fail;
24267 }
24268 {
24269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24270 }
24271 return resultobj;
24272 fail:
24273 return NULL;
24274 }
24275
24276
24277 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24278 PyObject *resultobj = 0;
24279 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24280 int arg2 ;
24281 bool result;
24282 void *argp1 = 0 ;
24283 int res1 = 0 ;
24284 int val2 ;
24285 int ecode2 = 0 ;
24286 PyObject * obj0 = 0 ;
24287 PyObject * obj1 = 0 ;
24288 char * kwnames[] = {
24289 (char *) "self",(char *) "id", NULL
24290 };
24291
24292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24294 if (!SWIG_IsOK(res1)) {
24295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24296 }
24297 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24298 ecode2 = SWIG_AsVal_int(obj1, &val2);
24299 if (!SWIG_IsOK(ecode2)) {
24300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24301 }
24302 arg2 = static_cast< int >(val2);
24303 {
24304 PyThreadState* __tstate = wxPyBeginAllowThreads();
24305 result = (bool)(arg1)->GetToolEnabled(arg2);
24306 wxPyEndAllowThreads(__tstate);
24307 if (PyErr_Occurred()) SWIG_fail;
24308 }
24309 {
24310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24311 }
24312 return resultobj;
24313 fail:
24314 return NULL;
24315 }
24316
24317
24318 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24319 PyObject *resultobj = 0;
24320 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24321 int arg2 ;
24322 wxString *arg3 = 0 ;
24323 void *argp1 = 0 ;
24324 int res1 = 0 ;
24325 int val2 ;
24326 int ecode2 = 0 ;
24327 bool temp3 = false ;
24328 PyObject * obj0 = 0 ;
24329 PyObject * obj1 = 0 ;
24330 PyObject * obj2 = 0 ;
24331 char * kwnames[] = {
24332 (char *) "self",(char *) "id",(char *) "helpString", NULL
24333 };
24334
24335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24337 if (!SWIG_IsOK(res1)) {
24338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24339 }
24340 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24341 ecode2 = SWIG_AsVal_int(obj1, &val2);
24342 if (!SWIG_IsOK(ecode2)) {
24343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24344 }
24345 arg2 = static_cast< int >(val2);
24346 {
24347 arg3 = wxString_in_helper(obj2);
24348 if (arg3 == NULL) SWIG_fail;
24349 temp3 = true;
24350 }
24351 {
24352 PyThreadState* __tstate = wxPyBeginAllowThreads();
24353 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24354 wxPyEndAllowThreads(__tstate);
24355 if (PyErr_Occurred()) SWIG_fail;
24356 }
24357 resultobj = SWIG_Py_Void();
24358 {
24359 if (temp3)
24360 delete arg3;
24361 }
24362 return resultobj;
24363 fail:
24364 {
24365 if (temp3)
24366 delete arg3;
24367 }
24368 return NULL;
24369 }
24370
24371
24372 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24373 PyObject *resultobj = 0;
24374 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24375 int arg2 ;
24376 wxString result;
24377 void *argp1 = 0 ;
24378 int res1 = 0 ;
24379 int val2 ;
24380 int ecode2 = 0 ;
24381 PyObject * obj0 = 0 ;
24382 PyObject * obj1 = 0 ;
24383 char * kwnames[] = {
24384 (char *) "self",(char *) "id", NULL
24385 };
24386
24387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24389 if (!SWIG_IsOK(res1)) {
24390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24391 }
24392 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24393 ecode2 = SWIG_AsVal_int(obj1, &val2);
24394 if (!SWIG_IsOK(ecode2)) {
24395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24396 }
24397 arg2 = static_cast< int >(val2);
24398 {
24399 PyThreadState* __tstate = wxPyBeginAllowThreads();
24400 result = (arg1)->GetToolShortHelp(arg2);
24401 wxPyEndAllowThreads(__tstate);
24402 if (PyErr_Occurred()) SWIG_fail;
24403 }
24404 {
24405 #if wxUSE_UNICODE
24406 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24407 #else
24408 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24409 #endif
24410 }
24411 return resultobj;
24412 fail:
24413 return NULL;
24414 }
24415
24416
24417 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24418 PyObject *resultobj = 0;
24419 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24420 int arg2 ;
24421 wxString *arg3 = 0 ;
24422 void *argp1 = 0 ;
24423 int res1 = 0 ;
24424 int val2 ;
24425 int ecode2 = 0 ;
24426 bool temp3 = false ;
24427 PyObject * obj0 = 0 ;
24428 PyObject * obj1 = 0 ;
24429 PyObject * obj2 = 0 ;
24430 char * kwnames[] = {
24431 (char *) "self",(char *) "id",(char *) "helpString", NULL
24432 };
24433
24434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24436 if (!SWIG_IsOK(res1)) {
24437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24438 }
24439 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24440 ecode2 = SWIG_AsVal_int(obj1, &val2);
24441 if (!SWIG_IsOK(ecode2)) {
24442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24443 }
24444 arg2 = static_cast< int >(val2);
24445 {
24446 arg3 = wxString_in_helper(obj2);
24447 if (arg3 == NULL) SWIG_fail;
24448 temp3 = true;
24449 }
24450 {
24451 PyThreadState* __tstate = wxPyBeginAllowThreads();
24452 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24453 wxPyEndAllowThreads(__tstate);
24454 if (PyErr_Occurred()) SWIG_fail;
24455 }
24456 resultobj = SWIG_Py_Void();
24457 {
24458 if (temp3)
24459 delete arg3;
24460 }
24461 return resultobj;
24462 fail:
24463 {
24464 if (temp3)
24465 delete arg3;
24466 }
24467 return NULL;
24468 }
24469
24470
24471 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24472 PyObject *resultobj = 0;
24473 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24474 int arg2 ;
24475 wxString result;
24476 void *argp1 = 0 ;
24477 int res1 = 0 ;
24478 int val2 ;
24479 int ecode2 = 0 ;
24480 PyObject * obj0 = 0 ;
24481 PyObject * obj1 = 0 ;
24482 char * kwnames[] = {
24483 (char *) "self",(char *) "id", NULL
24484 };
24485
24486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24488 if (!SWIG_IsOK(res1)) {
24489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24490 }
24491 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24492 ecode2 = SWIG_AsVal_int(obj1, &val2);
24493 if (!SWIG_IsOK(ecode2)) {
24494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24495 }
24496 arg2 = static_cast< int >(val2);
24497 {
24498 PyThreadState* __tstate = wxPyBeginAllowThreads();
24499 result = (arg1)->GetToolLongHelp(arg2);
24500 wxPyEndAllowThreads(__tstate);
24501 if (PyErr_Occurred()) SWIG_fail;
24502 }
24503 {
24504 #if wxUSE_UNICODE
24505 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24506 #else
24507 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24508 #endif
24509 }
24510 return resultobj;
24511 fail:
24512 return NULL;
24513 }
24514
24515
24516 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24517 PyObject *resultobj = 0;
24518 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24519 int arg2 ;
24520 int arg3 ;
24521 void *argp1 = 0 ;
24522 int res1 = 0 ;
24523 int val2 ;
24524 int ecode2 = 0 ;
24525 int val3 ;
24526 int ecode3 = 0 ;
24527 PyObject * obj0 = 0 ;
24528 PyObject * obj1 = 0 ;
24529 PyObject * obj2 = 0 ;
24530 char * kwnames[] = {
24531 (char *) "self",(char *) "x",(char *) "y", NULL
24532 };
24533
24534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) 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_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24538 }
24539 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24540 ecode2 = SWIG_AsVal_int(obj1, &val2);
24541 if (!SWIG_IsOK(ecode2)) {
24542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24543 }
24544 arg2 = static_cast< int >(val2);
24545 ecode3 = SWIG_AsVal_int(obj2, &val3);
24546 if (!SWIG_IsOK(ecode3)) {
24547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24548 }
24549 arg3 = static_cast< int >(val3);
24550 {
24551 PyThreadState* __tstate = wxPyBeginAllowThreads();
24552 (arg1)->SetMargins(arg2,arg3);
24553 wxPyEndAllowThreads(__tstate);
24554 if (PyErr_Occurred()) SWIG_fail;
24555 }
24556 resultobj = SWIG_Py_Void();
24557 return resultobj;
24558 fail:
24559 return NULL;
24560 }
24561
24562
24563 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24564 PyObject *resultobj = 0;
24565 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24566 wxSize *arg2 = 0 ;
24567 void *argp1 = 0 ;
24568 int res1 = 0 ;
24569 wxSize temp2 ;
24570 PyObject * obj0 = 0 ;
24571 PyObject * obj1 = 0 ;
24572 char * kwnames[] = {
24573 (char *) "self",(char *) "size", NULL
24574 };
24575
24576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24578 if (!SWIG_IsOK(res1)) {
24579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24580 }
24581 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24582 {
24583 arg2 = &temp2;
24584 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24585 }
24586 {
24587 PyThreadState* __tstate = wxPyBeginAllowThreads();
24588 (arg1)->SetMargins((wxSize const &)*arg2);
24589 wxPyEndAllowThreads(__tstate);
24590 if (PyErr_Occurred()) SWIG_fail;
24591 }
24592 resultobj = SWIG_Py_Void();
24593 return resultobj;
24594 fail:
24595 return NULL;
24596 }
24597
24598
24599 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24600 PyObject *resultobj = 0;
24601 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24602 int arg2 ;
24603 void *argp1 = 0 ;
24604 int res1 = 0 ;
24605 int val2 ;
24606 int ecode2 = 0 ;
24607 PyObject * obj0 = 0 ;
24608 PyObject * obj1 = 0 ;
24609 char * kwnames[] = {
24610 (char *) "self",(char *) "packing", NULL
24611 };
24612
24613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24615 if (!SWIG_IsOK(res1)) {
24616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24617 }
24618 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24619 ecode2 = SWIG_AsVal_int(obj1, &val2);
24620 if (!SWIG_IsOK(ecode2)) {
24621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24622 }
24623 arg2 = static_cast< int >(val2);
24624 {
24625 PyThreadState* __tstate = wxPyBeginAllowThreads();
24626 (arg1)->SetToolPacking(arg2);
24627 wxPyEndAllowThreads(__tstate);
24628 if (PyErr_Occurred()) SWIG_fail;
24629 }
24630 resultobj = SWIG_Py_Void();
24631 return resultobj;
24632 fail:
24633 return NULL;
24634 }
24635
24636
24637 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24638 PyObject *resultobj = 0;
24639 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24640 int arg2 ;
24641 void *argp1 = 0 ;
24642 int res1 = 0 ;
24643 int val2 ;
24644 int ecode2 = 0 ;
24645 PyObject * obj0 = 0 ;
24646 PyObject * obj1 = 0 ;
24647 char * kwnames[] = {
24648 (char *) "self",(char *) "separation", NULL
24649 };
24650
24651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24653 if (!SWIG_IsOK(res1)) {
24654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24655 }
24656 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24657 ecode2 = SWIG_AsVal_int(obj1, &val2);
24658 if (!SWIG_IsOK(ecode2)) {
24659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24660 }
24661 arg2 = static_cast< int >(val2);
24662 {
24663 PyThreadState* __tstate = wxPyBeginAllowThreads();
24664 (arg1)->SetToolSeparation(arg2);
24665 wxPyEndAllowThreads(__tstate);
24666 if (PyErr_Occurred()) SWIG_fail;
24667 }
24668 resultobj = SWIG_Py_Void();
24669 return resultobj;
24670 fail:
24671 return NULL;
24672 }
24673
24674
24675 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24676 PyObject *resultobj = 0;
24677 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24678 wxSize result;
24679 void *argp1 = 0 ;
24680 int res1 = 0 ;
24681 PyObject *swig_obj[1] ;
24682
24683 if (!args) SWIG_fail;
24684 swig_obj[0] = args;
24685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24686 if (!SWIG_IsOK(res1)) {
24687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24688 }
24689 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24690 {
24691 PyThreadState* __tstate = wxPyBeginAllowThreads();
24692 result = (arg1)->GetToolMargins();
24693 wxPyEndAllowThreads(__tstate);
24694 if (PyErr_Occurred()) SWIG_fail;
24695 }
24696 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24697 return resultobj;
24698 fail:
24699 return NULL;
24700 }
24701
24702
24703 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24704 PyObject *resultobj = 0;
24705 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24706 wxSize result;
24707 void *argp1 = 0 ;
24708 int res1 = 0 ;
24709 PyObject *swig_obj[1] ;
24710
24711 if (!args) SWIG_fail;
24712 swig_obj[0] = args;
24713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24714 if (!SWIG_IsOK(res1)) {
24715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24716 }
24717 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24718 {
24719 PyThreadState* __tstate = wxPyBeginAllowThreads();
24720 result = (arg1)->GetMargins();
24721 wxPyEndAllowThreads(__tstate);
24722 if (PyErr_Occurred()) SWIG_fail;
24723 }
24724 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24725 return resultobj;
24726 fail:
24727 return NULL;
24728 }
24729
24730
24731 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24732 PyObject *resultobj = 0;
24733 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24734 int result;
24735 void *argp1 = 0 ;
24736 int res1 = 0 ;
24737 PyObject *swig_obj[1] ;
24738
24739 if (!args) SWIG_fail;
24740 swig_obj[0] = args;
24741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24742 if (!SWIG_IsOK(res1)) {
24743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24744 }
24745 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24746 {
24747 PyThreadState* __tstate = wxPyBeginAllowThreads();
24748 result = (int)(arg1)->GetToolPacking();
24749 wxPyEndAllowThreads(__tstate);
24750 if (PyErr_Occurred()) SWIG_fail;
24751 }
24752 resultobj = SWIG_From_int(static_cast< int >(result));
24753 return resultobj;
24754 fail:
24755 return NULL;
24756 }
24757
24758
24759 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24760 PyObject *resultobj = 0;
24761 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24762 int result;
24763 void *argp1 = 0 ;
24764 int res1 = 0 ;
24765 PyObject *swig_obj[1] ;
24766
24767 if (!args) SWIG_fail;
24768 swig_obj[0] = args;
24769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24770 if (!SWIG_IsOK(res1)) {
24771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24772 }
24773 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24774 {
24775 PyThreadState* __tstate = wxPyBeginAllowThreads();
24776 result = (int)(arg1)->GetToolSeparation();
24777 wxPyEndAllowThreads(__tstate);
24778 if (PyErr_Occurred()) SWIG_fail;
24779 }
24780 resultobj = SWIG_From_int(static_cast< int >(result));
24781 return resultobj;
24782 fail:
24783 return NULL;
24784 }
24785
24786
24787 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24788 PyObject *resultobj = 0;
24789 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24790 int arg2 ;
24791 void *argp1 = 0 ;
24792 int res1 = 0 ;
24793 int val2 ;
24794 int ecode2 = 0 ;
24795 PyObject * obj0 = 0 ;
24796 PyObject * obj1 = 0 ;
24797 char * kwnames[] = {
24798 (char *) "self",(char *) "nRows", NULL
24799 };
24800
24801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24803 if (!SWIG_IsOK(res1)) {
24804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24805 }
24806 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24807 ecode2 = SWIG_AsVal_int(obj1, &val2);
24808 if (!SWIG_IsOK(ecode2)) {
24809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24810 }
24811 arg2 = static_cast< int >(val2);
24812 {
24813 PyThreadState* __tstate = wxPyBeginAllowThreads();
24814 (arg1)->SetRows(arg2);
24815 wxPyEndAllowThreads(__tstate);
24816 if (PyErr_Occurred()) SWIG_fail;
24817 }
24818 resultobj = SWIG_Py_Void();
24819 return resultobj;
24820 fail:
24821 return NULL;
24822 }
24823
24824
24825 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24826 PyObject *resultobj = 0;
24827 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24828 int arg2 ;
24829 int arg3 ;
24830 void *argp1 = 0 ;
24831 int res1 = 0 ;
24832 int val2 ;
24833 int ecode2 = 0 ;
24834 int val3 ;
24835 int ecode3 = 0 ;
24836 PyObject * obj0 = 0 ;
24837 PyObject * obj1 = 0 ;
24838 PyObject * obj2 = 0 ;
24839 char * kwnames[] = {
24840 (char *) "self",(char *) "rows",(char *) "cols", NULL
24841 };
24842
24843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24845 if (!SWIG_IsOK(res1)) {
24846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24847 }
24848 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24849 ecode2 = SWIG_AsVal_int(obj1, &val2);
24850 if (!SWIG_IsOK(ecode2)) {
24851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
24852 }
24853 arg2 = static_cast< int >(val2);
24854 ecode3 = SWIG_AsVal_int(obj2, &val3);
24855 if (!SWIG_IsOK(ecode3)) {
24856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
24857 }
24858 arg3 = static_cast< int >(val3);
24859 {
24860 PyThreadState* __tstate = wxPyBeginAllowThreads();
24861 (arg1)->SetMaxRowsCols(arg2,arg3);
24862 wxPyEndAllowThreads(__tstate);
24863 if (PyErr_Occurred()) SWIG_fail;
24864 }
24865 resultobj = SWIG_Py_Void();
24866 return resultobj;
24867 fail:
24868 return NULL;
24869 }
24870
24871
24872 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24873 PyObject *resultobj = 0;
24874 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24875 int result;
24876 void *argp1 = 0 ;
24877 int res1 = 0 ;
24878 PyObject *swig_obj[1] ;
24879
24880 if (!args) SWIG_fail;
24881 swig_obj[0] = args;
24882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24883 if (!SWIG_IsOK(res1)) {
24884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24885 }
24886 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24887 {
24888 PyThreadState* __tstate = wxPyBeginAllowThreads();
24889 result = (int)(arg1)->GetMaxRows();
24890 wxPyEndAllowThreads(__tstate);
24891 if (PyErr_Occurred()) SWIG_fail;
24892 }
24893 resultobj = SWIG_From_int(static_cast< int >(result));
24894 return resultobj;
24895 fail:
24896 return NULL;
24897 }
24898
24899
24900 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24901 PyObject *resultobj = 0;
24902 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24903 int result;
24904 void *argp1 = 0 ;
24905 int res1 = 0 ;
24906 PyObject *swig_obj[1] ;
24907
24908 if (!args) SWIG_fail;
24909 swig_obj[0] = args;
24910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24911 if (!SWIG_IsOK(res1)) {
24912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24913 }
24914 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24915 {
24916 PyThreadState* __tstate = wxPyBeginAllowThreads();
24917 result = (int)(arg1)->GetMaxCols();
24918 wxPyEndAllowThreads(__tstate);
24919 if (PyErr_Occurred()) SWIG_fail;
24920 }
24921 resultobj = SWIG_From_int(static_cast< int >(result));
24922 return resultobj;
24923 fail:
24924 return NULL;
24925 }
24926
24927
24928 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24929 PyObject *resultobj = 0;
24930 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24931 wxSize *arg2 = 0 ;
24932 void *argp1 = 0 ;
24933 int res1 = 0 ;
24934 wxSize temp2 ;
24935 PyObject * obj0 = 0 ;
24936 PyObject * obj1 = 0 ;
24937 char * kwnames[] = {
24938 (char *) "self",(char *) "size", NULL
24939 };
24940
24941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
24942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24943 if (!SWIG_IsOK(res1)) {
24944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24945 }
24946 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24947 {
24948 arg2 = &temp2;
24949 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24950 }
24951 {
24952 PyThreadState* __tstate = wxPyBeginAllowThreads();
24953 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
24954 wxPyEndAllowThreads(__tstate);
24955 if (PyErr_Occurred()) SWIG_fail;
24956 }
24957 resultobj = SWIG_Py_Void();
24958 return resultobj;
24959 fail:
24960 return NULL;
24961 }
24962
24963
24964 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24965 PyObject *resultobj = 0;
24966 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24967 wxSize result;
24968 void *argp1 = 0 ;
24969 int res1 = 0 ;
24970 PyObject *swig_obj[1] ;
24971
24972 if (!args) SWIG_fail;
24973 swig_obj[0] = args;
24974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24975 if (!SWIG_IsOK(res1)) {
24976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24977 }
24978 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24979 {
24980 PyThreadState* __tstate = wxPyBeginAllowThreads();
24981 result = (arg1)->GetToolBitmapSize();
24982 wxPyEndAllowThreads(__tstate);
24983 if (PyErr_Occurred()) SWIG_fail;
24984 }
24985 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24986 return resultobj;
24987 fail:
24988 return NULL;
24989 }
24990
24991
24992 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24993 PyObject *resultobj = 0;
24994 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24995 wxSize result;
24996 void *argp1 = 0 ;
24997 int res1 = 0 ;
24998 PyObject *swig_obj[1] ;
24999
25000 if (!args) SWIG_fail;
25001 swig_obj[0] = args;
25002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25003 if (!SWIG_IsOK(res1)) {
25004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25005 }
25006 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25007 {
25008 PyThreadState* __tstate = wxPyBeginAllowThreads();
25009 result = (arg1)->GetToolSize();
25010 wxPyEndAllowThreads(__tstate);
25011 if (PyErr_Occurred()) SWIG_fail;
25012 }
25013 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25014 return resultobj;
25015 fail:
25016 return NULL;
25017 }
25018
25019
25020 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25021 PyObject *resultobj = 0;
25022 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25023 int arg2 ;
25024 int arg3 ;
25025 wxToolBarToolBase *result = 0 ;
25026 void *argp1 = 0 ;
25027 int res1 = 0 ;
25028 int val2 ;
25029 int ecode2 = 0 ;
25030 int val3 ;
25031 int ecode3 = 0 ;
25032 PyObject * obj0 = 0 ;
25033 PyObject * obj1 = 0 ;
25034 PyObject * obj2 = 0 ;
25035 char * kwnames[] = {
25036 (char *) "self",(char *) "x",(char *) "y", NULL
25037 };
25038
25039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25041 if (!SWIG_IsOK(res1)) {
25042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25043 }
25044 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25045 ecode2 = SWIG_AsVal_int(obj1, &val2);
25046 if (!SWIG_IsOK(ecode2)) {
25047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25048 }
25049 arg2 = static_cast< int >(val2);
25050 ecode3 = SWIG_AsVal_int(obj2, &val3);
25051 if (!SWIG_IsOK(ecode3)) {
25052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25053 }
25054 arg3 = static_cast< int >(val3);
25055 {
25056 PyThreadState* __tstate = wxPyBeginAllowThreads();
25057 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25058 wxPyEndAllowThreads(__tstate);
25059 if (PyErr_Occurred()) SWIG_fail;
25060 }
25061 {
25062 resultobj = wxPyMake_wxObject(result, (bool)0);
25063 }
25064 return resultobj;
25065 fail:
25066 return NULL;
25067 }
25068
25069
25070 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25071 PyObject *resultobj = 0;
25072 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25073 int arg2 ;
25074 wxToolBarToolBase *result = 0 ;
25075 void *argp1 = 0 ;
25076 int res1 = 0 ;
25077 int val2 ;
25078 int ecode2 = 0 ;
25079 PyObject * obj0 = 0 ;
25080 PyObject * obj1 = 0 ;
25081 char * kwnames[] = {
25082 (char *) "self",(char *) "toolid", NULL
25083 };
25084
25085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25087 if (!SWIG_IsOK(res1)) {
25088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25089 }
25090 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25091 ecode2 = SWIG_AsVal_int(obj1, &val2);
25092 if (!SWIG_IsOK(ecode2)) {
25093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25094 }
25095 arg2 = static_cast< int >(val2);
25096 {
25097 PyThreadState* __tstate = wxPyBeginAllowThreads();
25098 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25099 wxPyEndAllowThreads(__tstate);
25100 if (PyErr_Occurred()) SWIG_fail;
25101 }
25102 {
25103 resultobj = wxPyMake_wxObject(result, (bool)0);
25104 }
25105 return resultobj;
25106 fail:
25107 return NULL;
25108 }
25109
25110
25111 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25112 PyObject *resultobj = 0;
25113 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25114 bool result;
25115 void *argp1 = 0 ;
25116 int res1 = 0 ;
25117 PyObject *swig_obj[1] ;
25118
25119 if (!args) SWIG_fail;
25120 swig_obj[0] = args;
25121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25122 if (!SWIG_IsOK(res1)) {
25123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25124 }
25125 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25126 {
25127 PyThreadState* __tstate = wxPyBeginAllowThreads();
25128 result = (bool)(arg1)->IsVertical();
25129 wxPyEndAllowThreads(__tstate);
25130 if (PyErr_Occurred()) SWIG_fail;
25131 }
25132 {
25133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25134 }
25135 return resultobj;
25136 fail:
25137 return NULL;
25138 }
25139
25140
25141 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25142 PyObject *resultobj = 0;
25143 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25144 size_t result;
25145 void *argp1 = 0 ;
25146 int res1 = 0 ;
25147 PyObject *swig_obj[1] ;
25148
25149 if (!args) SWIG_fail;
25150 swig_obj[0] = args;
25151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25152 if (!SWIG_IsOK(res1)) {
25153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25154 }
25155 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25156 {
25157 PyThreadState* __tstate = wxPyBeginAllowThreads();
25158 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25159 wxPyEndAllowThreads(__tstate);
25160 if (PyErr_Occurred()) SWIG_fail;
25161 }
25162 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25163 return resultobj;
25164 fail:
25165 return NULL;
25166 }
25167
25168
25169 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25170 PyObject *obj;
25171 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25172 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25173 return SWIG_Py_Void();
25174 }
25175
25176 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25177 PyObject *resultobj = 0;
25178 wxWindow *arg1 = (wxWindow *) 0 ;
25179 int arg2 = (int) -1 ;
25180 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25181 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25182 wxSize const &arg4_defvalue = wxDefaultSize ;
25183 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25184 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25185 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25186 wxString *arg6 = (wxString *) &arg6_defvalue ;
25187 wxToolBar *result = 0 ;
25188 void *argp1 = 0 ;
25189 int res1 = 0 ;
25190 int val2 ;
25191 int ecode2 = 0 ;
25192 wxPoint temp3 ;
25193 wxSize temp4 ;
25194 long val5 ;
25195 int ecode5 = 0 ;
25196 bool temp6 = false ;
25197 PyObject * obj0 = 0 ;
25198 PyObject * obj1 = 0 ;
25199 PyObject * obj2 = 0 ;
25200 PyObject * obj3 = 0 ;
25201 PyObject * obj4 = 0 ;
25202 PyObject * obj5 = 0 ;
25203 char * kwnames[] = {
25204 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25205 };
25206
25207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25209 if (!SWIG_IsOK(res1)) {
25210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25211 }
25212 arg1 = reinterpret_cast< wxWindow * >(argp1);
25213 if (obj1) {
25214 ecode2 = SWIG_AsVal_int(obj1, &val2);
25215 if (!SWIG_IsOK(ecode2)) {
25216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25217 }
25218 arg2 = static_cast< int >(val2);
25219 }
25220 if (obj2) {
25221 {
25222 arg3 = &temp3;
25223 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25224 }
25225 }
25226 if (obj3) {
25227 {
25228 arg4 = &temp4;
25229 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25230 }
25231 }
25232 if (obj4) {
25233 ecode5 = SWIG_AsVal_long(obj4, &val5);
25234 if (!SWIG_IsOK(ecode5)) {
25235 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25236 }
25237 arg5 = static_cast< long >(val5);
25238 }
25239 if (obj5) {
25240 {
25241 arg6 = wxString_in_helper(obj5);
25242 if (arg6 == NULL) SWIG_fail;
25243 temp6 = true;
25244 }
25245 }
25246 {
25247 if (!wxPyCheckForApp()) SWIG_fail;
25248 PyThreadState* __tstate = wxPyBeginAllowThreads();
25249 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25250 wxPyEndAllowThreads(__tstate);
25251 if (PyErr_Occurred()) SWIG_fail;
25252 }
25253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25254 {
25255 if (temp6)
25256 delete arg6;
25257 }
25258 return resultobj;
25259 fail:
25260 {
25261 if (temp6)
25262 delete arg6;
25263 }
25264 return NULL;
25265 }
25266
25267
25268 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25269 PyObject *resultobj = 0;
25270 wxToolBar *result = 0 ;
25271
25272 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25273 {
25274 if (!wxPyCheckForApp()) SWIG_fail;
25275 PyThreadState* __tstate = wxPyBeginAllowThreads();
25276 result = (wxToolBar *)new wxToolBar();
25277 wxPyEndAllowThreads(__tstate);
25278 if (PyErr_Occurred()) SWIG_fail;
25279 }
25280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25281 return resultobj;
25282 fail:
25283 return NULL;
25284 }
25285
25286
25287 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25288 PyObject *resultobj = 0;
25289 wxToolBar *arg1 = (wxToolBar *) 0 ;
25290 wxWindow *arg2 = (wxWindow *) 0 ;
25291 int arg3 = (int) -1 ;
25292 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25293 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25294 wxSize const &arg5_defvalue = wxDefaultSize ;
25295 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25296 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25297 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25298 wxString *arg7 = (wxString *) &arg7_defvalue ;
25299 bool result;
25300 void *argp1 = 0 ;
25301 int res1 = 0 ;
25302 void *argp2 = 0 ;
25303 int res2 = 0 ;
25304 int val3 ;
25305 int ecode3 = 0 ;
25306 wxPoint temp4 ;
25307 wxSize temp5 ;
25308 long val6 ;
25309 int ecode6 = 0 ;
25310 bool temp7 = false ;
25311 PyObject * obj0 = 0 ;
25312 PyObject * obj1 = 0 ;
25313 PyObject * obj2 = 0 ;
25314 PyObject * obj3 = 0 ;
25315 PyObject * obj4 = 0 ;
25316 PyObject * obj5 = 0 ;
25317 PyObject * obj6 = 0 ;
25318 char * kwnames[] = {
25319 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25320 };
25321
25322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25324 if (!SWIG_IsOK(res1)) {
25325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25326 }
25327 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25328 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25329 if (!SWIG_IsOK(res2)) {
25330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25331 }
25332 arg2 = reinterpret_cast< wxWindow * >(argp2);
25333 if (obj2) {
25334 ecode3 = SWIG_AsVal_int(obj2, &val3);
25335 if (!SWIG_IsOK(ecode3)) {
25336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25337 }
25338 arg3 = static_cast< int >(val3);
25339 }
25340 if (obj3) {
25341 {
25342 arg4 = &temp4;
25343 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25344 }
25345 }
25346 if (obj4) {
25347 {
25348 arg5 = &temp5;
25349 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25350 }
25351 }
25352 if (obj5) {
25353 ecode6 = SWIG_AsVal_long(obj5, &val6);
25354 if (!SWIG_IsOK(ecode6)) {
25355 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25356 }
25357 arg6 = static_cast< long >(val6);
25358 }
25359 if (obj6) {
25360 {
25361 arg7 = wxString_in_helper(obj6);
25362 if (arg7 == NULL) SWIG_fail;
25363 temp7 = true;
25364 }
25365 }
25366 {
25367 PyThreadState* __tstate = wxPyBeginAllowThreads();
25368 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25369 wxPyEndAllowThreads(__tstate);
25370 if (PyErr_Occurred()) SWIG_fail;
25371 }
25372 {
25373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25374 }
25375 {
25376 if (temp7)
25377 delete arg7;
25378 }
25379 return resultobj;
25380 fail:
25381 {
25382 if (temp7)
25383 delete arg7;
25384 }
25385 return NULL;
25386 }
25387
25388
25389 SWIGINTERN PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25390 PyObject *resultobj = 0;
25391 wxToolBar *arg1 = (wxToolBar *) 0 ;
25392 int arg2 ;
25393 int arg3 ;
25394 wxToolBarToolBase *result = 0 ;
25395 void *argp1 = 0 ;
25396 int res1 = 0 ;
25397 int val2 ;
25398 int ecode2 = 0 ;
25399 int val3 ;
25400 int ecode3 = 0 ;
25401 PyObject * obj0 = 0 ;
25402 PyObject * obj1 = 0 ;
25403 PyObject * obj2 = 0 ;
25404 char * kwnames[] = {
25405 (char *) "self",(char *) "x",(char *) "y", NULL
25406 };
25407
25408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25410 if (!SWIG_IsOK(res1)) {
25411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBar *""'");
25412 }
25413 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25414 ecode2 = SWIG_AsVal_int(obj1, &val2);
25415 if (!SWIG_IsOK(ecode2)) {
25416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25417 }
25418 arg2 = static_cast< int >(val2);
25419 ecode3 = SWIG_AsVal_int(obj2, &val3);
25420 if (!SWIG_IsOK(ecode3)) {
25421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25422 }
25423 arg3 = static_cast< int >(val3);
25424 {
25425 PyThreadState* __tstate = wxPyBeginAllowThreads();
25426 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25427 wxPyEndAllowThreads(__tstate);
25428 if (PyErr_Occurred()) SWIG_fail;
25429 }
25430 {
25431 resultobj = wxPyMake_wxObject(result, (bool)0);
25432 }
25433 return resultobj;
25434 fail:
25435 return NULL;
25436 }
25437
25438
25439 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25440 PyObject *resultobj = 0;
25441 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25442 SwigValueWrapper<wxVisualAttributes > result;
25443 int val1 ;
25444 int ecode1 = 0 ;
25445 PyObject * obj0 = 0 ;
25446 char * kwnames[] = {
25447 (char *) "variant", NULL
25448 };
25449
25450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25451 if (obj0) {
25452 ecode1 = SWIG_AsVal_int(obj0, &val1);
25453 if (!SWIG_IsOK(ecode1)) {
25454 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25455 }
25456 arg1 = static_cast< wxWindowVariant >(val1);
25457 }
25458 {
25459 if (!wxPyCheckForApp()) SWIG_fail;
25460 PyThreadState* __tstate = wxPyBeginAllowThreads();
25461 result = wxToolBar::GetClassDefaultAttributes(arg1);
25462 wxPyEndAllowThreads(__tstate);
25463 if (PyErr_Occurred()) SWIG_fail;
25464 }
25465 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25466 return resultobj;
25467 fail:
25468 return NULL;
25469 }
25470
25471
25472 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25473 PyObject *obj;
25474 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25475 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25476 return SWIG_Py_Void();
25477 }
25478
25479 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25480 return SWIG_Python_InitShadowInstance(args);
25481 }
25482
25483 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25484 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25485 return 1;
25486 }
25487
25488
25489 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25490 PyObject *pyobj = 0;
25491
25492 {
25493 #if wxUSE_UNICODE
25494 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25495 #else
25496 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25497 #endif
25498 }
25499 return pyobj;
25500 }
25501
25502
25503 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25504 PyObject *resultobj = 0;
25505 wxColour const &arg1_defvalue = wxNullColour ;
25506 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25507 wxColour const &arg2_defvalue = wxNullColour ;
25508 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25509 wxFont const &arg3_defvalue = wxNullFont ;
25510 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25511 wxListItemAttr *result = 0 ;
25512 wxColour temp1 ;
25513 wxColour temp2 ;
25514 void *argp3 = 0 ;
25515 int res3 = 0 ;
25516 PyObject * obj0 = 0 ;
25517 PyObject * obj1 = 0 ;
25518 PyObject * obj2 = 0 ;
25519 char * kwnames[] = {
25520 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25521 };
25522
25523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25524 if (obj0) {
25525 {
25526 arg1 = &temp1;
25527 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25528 }
25529 }
25530 if (obj1) {
25531 {
25532 arg2 = &temp2;
25533 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25534 }
25535 }
25536 if (obj2) {
25537 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25538 if (!SWIG_IsOK(res3)) {
25539 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25540 }
25541 if (!argp3) {
25542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25543 }
25544 arg3 = reinterpret_cast< wxFont * >(argp3);
25545 }
25546 {
25547 PyThreadState* __tstate = wxPyBeginAllowThreads();
25548 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25549 wxPyEndAllowThreads(__tstate);
25550 if (PyErr_Occurred()) SWIG_fail;
25551 }
25552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25553 return resultobj;
25554 fail:
25555 return NULL;
25556 }
25557
25558
25559 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25560 PyObject *resultobj = 0;
25561 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25562 void *argp1 = 0 ;
25563 int res1 = 0 ;
25564 PyObject *swig_obj[1] ;
25565
25566 if (!args) SWIG_fail;
25567 swig_obj[0] = args;
25568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25569 if (!SWIG_IsOK(res1)) {
25570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25571 }
25572 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25573 {
25574 PyThreadState* __tstate = wxPyBeginAllowThreads();
25575 delete arg1;
25576
25577 wxPyEndAllowThreads(__tstate);
25578 if (PyErr_Occurred()) SWIG_fail;
25579 }
25580 resultobj = SWIG_Py_Void();
25581 return resultobj;
25582 fail:
25583 return NULL;
25584 }
25585
25586
25587 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25588 PyObject *resultobj = 0;
25589 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25590 wxColour *arg2 = 0 ;
25591 void *argp1 = 0 ;
25592 int res1 = 0 ;
25593 wxColour temp2 ;
25594 PyObject * obj0 = 0 ;
25595 PyObject * obj1 = 0 ;
25596 char * kwnames[] = {
25597 (char *) "self",(char *) "colText", NULL
25598 };
25599
25600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25602 if (!SWIG_IsOK(res1)) {
25603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25604 }
25605 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25606 {
25607 arg2 = &temp2;
25608 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25609 }
25610 {
25611 PyThreadState* __tstate = wxPyBeginAllowThreads();
25612 (arg1)->SetTextColour((wxColour const &)*arg2);
25613 wxPyEndAllowThreads(__tstate);
25614 if (PyErr_Occurred()) SWIG_fail;
25615 }
25616 resultobj = SWIG_Py_Void();
25617 return resultobj;
25618 fail:
25619 return NULL;
25620 }
25621
25622
25623 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25624 PyObject *resultobj = 0;
25625 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25626 wxColour *arg2 = 0 ;
25627 void *argp1 = 0 ;
25628 int res1 = 0 ;
25629 wxColour temp2 ;
25630 PyObject * obj0 = 0 ;
25631 PyObject * obj1 = 0 ;
25632 char * kwnames[] = {
25633 (char *) "self",(char *) "colBack", NULL
25634 };
25635
25636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25638 if (!SWIG_IsOK(res1)) {
25639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25640 }
25641 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25642 {
25643 arg2 = &temp2;
25644 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25645 }
25646 {
25647 PyThreadState* __tstate = wxPyBeginAllowThreads();
25648 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25649 wxPyEndAllowThreads(__tstate);
25650 if (PyErr_Occurred()) SWIG_fail;
25651 }
25652 resultobj = SWIG_Py_Void();
25653 return resultobj;
25654 fail:
25655 return NULL;
25656 }
25657
25658
25659 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25660 PyObject *resultobj = 0;
25661 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25662 wxFont *arg2 = 0 ;
25663 void *argp1 = 0 ;
25664 int res1 = 0 ;
25665 void *argp2 = 0 ;
25666 int res2 = 0 ;
25667 PyObject * obj0 = 0 ;
25668 PyObject * obj1 = 0 ;
25669 char * kwnames[] = {
25670 (char *) "self",(char *) "font", NULL
25671 };
25672
25673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25675 if (!SWIG_IsOK(res1)) {
25676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25677 }
25678 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25679 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25680 if (!SWIG_IsOK(res2)) {
25681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25682 }
25683 if (!argp2) {
25684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25685 }
25686 arg2 = reinterpret_cast< wxFont * >(argp2);
25687 {
25688 PyThreadState* __tstate = wxPyBeginAllowThreads();
25689 (arg1)->SetFont((wxFont const &)*arg2);
25690 wxPyEndAllowThreads(__tstate);
25691 if (PyErr_Occurred()) SWIG_fail;
25692 }
25693 resultobj = SWIG_Py_Void();
25694 return resultobj;
25695 fail:
25696 return NULL;
25697 }
25698
25699
25700 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25701 PyObject *resultobj = 0;
25702 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25703 bool result;
25704 void *argp1 = 0 ;
25705 int res1 = 0 ;
25706 PyObject *swig_obj[1] ;
25707
25708 if (!args) SWIG_fail;
25709 swig_obj[0] = args;
25710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25711 if (!SWIG_IsOK(res1)) {
25712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25713 }
25714 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25715 {
25716 PyThreadState* __tstate = wxPyBeginAllowThreads();
25717 result = (bool)(arg1)->HasTextColour();
25718 wxPyEndAllowThreads(__tstate);
25719 if (PyErr_Occurred()) SWIG_fail;
25720 }
25721 {
25722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25723 }
25724 return resultobj;
25725 fail:
25726 return NULL;
25727 }
25728
25729
25730 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25731 PyObject *resultobj = 0;
25732 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25733 bool result;
25734 void *argp1 = 0 ;
25735 int res1 = 0 ;
25736 PyObject *swig_obj[1] ;
25737
25738 if (!args) SWIG_fail;
25739 swig_obj[0] = args;
25740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25741 if (!SWIG_IsOK(res1)) {
25742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25743 }
25744 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25745 {
25746 PyThreadState* __tstate = wxPyBeginAllowThreads();
25747 result = (bool)(arg1)->HasBackgroundColour();
25748 wxPyEndAllowThreads(__tstate);
25749 if (PyErr_Occurred()) SWIG_fail;
25750 }
25751 {
25752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25753 }
25754 return resultobj;
25755 fail:
25756 return NULL;
25757 }
25758
25759
25760 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25761 PyObject *resultobj = 0;
25762 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25763 bool result;
25764 void *argp1 = 0 ;
25765 int res1 = 0 ;
25766 PyObject *swig_obj[1] ;
25767
25768 if (!args) SWIG_fail;
25769 swig_obj[0] = args;
25770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25771 if (!SWIG_IsOK(res1)) {
25772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25773 }
25774 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25775 {
25776 PyThreadState* __tstate = wxPyBeginAllowThreads();
25777 result = (bool)(arg1)->HasFont();
25778 wxPyEndAllowThreads(__tstate);
25779 if (PyErr_Occurred()) SWIG_fail;
25780 }
25781 {
25782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25783 }
25784 return resultobj;
25785 fail:
25786 return NULL;
25787 }
25788
25789
25790 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25791 PyObject *resultobj = 0;
25792 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25793 wxColour result;
25794 void *argp1 = 0 ;
25795 int res1 = 0 ;
25796 PyObject *swig_obj[1] ;
25797
25798 if (!args) SWIG_fail;
25799 swig_obj[0] = args;
25800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25801 if (!SWIG_IsOK(res1)) {
25802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25803 }
25804 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25805 {
25806 PyThreadState* __tstate = wxPyBeginAllowThreads();
25807 result = (arg1)->GetTextColour();
25808 wxPyEndAllowThreads(__tstate);
25809 if (PyErr_Occurred()) SWIG_fail;
25810 }
25811 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25812 return resultobj;
25813 fail:
25814 return NULL;
25815 }
25816
25817
25818 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25819 PyObject *resultobj = 0;
25820 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25821 wxColour result;
25822 void *argp1 = 0 ;
25823 int res1 = 0 ;
25824 PyObject *swig_obj[1] ;
25825
25826 if (!args) SWIG_fail;
25827 swig_obj[0] = args;
25828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25829 if (!SWIG_IsOK(res1)) {
25830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25831 }
25832 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25833 {
25834 PyThreadState* __tstate = wxPyBeginAllowThreads();
25835 result = (arg1)->GetBackgroundColour();
25836 wxPyEndAllowThreads(__tstate);
25837 if (PyErr_Occurred()) SWIG_fail;
25838 }
25839 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25840 return resultobj;
25841 fail:
25842 return NULL;
25843 }
25844
25845
25846 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25847 PyObject *resultobj = 0;
25848 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25849 wxFont result;
25850 void *argp1 = 0 ;
25851 int res1 = 0 ;
25852 PyObject *swig_obj[1] ;
25853
25854 if (!args) SWIG_fail;
25855 swig_obj[0] = args;
25856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25857 if (!SWIG_IsOK(res1)) {
25858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25859 }
25860 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25861 {
25862 PyThreadState* __tstate = wxPyBeginAllowThreads();
25863 result = (arg1)->GetFont();
25864 wxPyEndAllowThreads(__tstate);
25865 if (PyErr_Occurred()) SWIG_fail;
25866 }
25867 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25868 return resultobj;
25869 fail:
25870 return NULL;
25871 }
25872
25873
25874 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25875 PyObject *resultobj = 0;
25876 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25877 wxListItemAttr *arg2 = 0 ;
25878 void *argp1 = 0 ;
25879 int res1 = 0 ;
25880 void *argp2 = 0 ;
25881 int res2 = 0 ;
25882 PyObject * obj0 = 0 ;
25883 PyObject * obj1 = 0 ;
25884 char * kwnames[] = {
25885 (char *) "self",(char *) "source", NULL
25886 };
25887
25888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
25889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25890 if (!SWIG_IsOK(res1)) {
25891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25892 }
25893 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
25895 if (!SWIG_IsOK(res2)) {
25896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25897 }
25898 if (!argp2) {
25899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25900 }
25901 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
25902 {
25903 PyThreadState* __tstate = wxPyBeginAllowThreads();
25904 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
25905 wxPyEndAllowThreads(__tstate);
25906 if (PyErr_Occurred()) SWIG_fail;
25907 }
25908 resultobj = SWIG_Py_Void();
25909 return resultobj;
25910 fail:
25911 return NULL;
25912 }
25913
25914
25915 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25916 PyObject *resultobj = 0;
25917 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25918 void *argp1 = 0 ;
25919 int res1 = 0 ;
25920 PyObject *swig_obj[1] ;
25921
25922 if (!args) SWIG_fail;
25923 swig_obj[0] = args;
25924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25925 if (!SWIG_IsOK(res1)) {
25926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25927 }
25928 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25929 {
25930 PyThreadState* __tstate = wxPyBeginAllowThreads();
25931 wxListItemAttr_Destroy(arg1);
25932 wxPyEndAllowThreads(__tstate);
25933 if (PyErr_Occurred()) SWIG_fail;
25934 }
25935 resultobj = SWIG_Py_Void();
25936 return resultobj;
25937 fail:
25938 return NULL;
25939 }
25940
25941
25942 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25943 PyObject *obj;
25944 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25945 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
25946 return SWIG_Py_Void();
25947 }
25948
25949 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25950 return SWIG_Python_InitShadowInstance(args);
25951 }
25952
25953 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25954 PyObject *resultobj = 0;
25955 wxListItem *result = 0 ;
25956
25957 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
25958 {
25959 PyThreadState* __tstate = wxPyBeginAllowThreads();
25960 result = (wxListItem *)new wxListItem();
25961 wxPyEndAllowThreads(__tstate);
25962 if (PyErr_Occurred()) SWIG_fail;
25963 }
25964 {
25965 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
25966 }
25967 return resultobj;
25968 fail:
25969 return NULL;
25970 }
25971
25972
25973 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25974 PyObject *resultobj = 0;
25975 wxListItem *arg1 = (wxListItem *) 0 ;
25976 void *argp1 = 0 ;
25977 int res1 = 0 ;
25978 PyObject *swig_obj[1] ;
25979
25980 if (!args) SWIG_fail;
25981 swig_obj[0] = args;
25982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
25983 if (!SWIG_IsOK(res1)) {
25984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
25985 }
25986 arg1 = reinterpret_cast< wxListItem * >(argp1);
25987 {
25988 PyThreadState* __tstate = wxPyBeginAllowThreads();
25989 delete arg1;
25990
25991 wxPyEndAllowThreads(__tstate);
25992 if (PyErr_Occurred()) SWIG_fail;
25993 }
25994 resultobj = SWIG_Py_Void();
25995 return resultobj;
25996 fail:
25997 return NULL;
25998 }
25999
26000
26001 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26002 PyObject *resultobj = 0;
26003 wxListItem *arg1 = (wxListItem *) 0 ;
26004 void *argp1 = 0 ;
26005 int res1 = 0 ;
26006 PyObject *swig_obj[1] ;
26007
26008 if (!args) SWIG_fail;
26009 swig_obj[0] = args;
26010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26011 if (!SWIG_IsOK(res1)) {
26012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26013 }
26014 arg1 = reinterpret_cast< wxListItem * >(argp1);
26015 {
26016 PyThreadState* __tstate = wxPyBeginAllowThreads();
26017 (arg1)->Clear();
26018 wxPyEndAllowThreads(__tstate);
26019 if (PyErr_Occurred()) SWIG_fail;
26020 }
26021 resultobj = SWIG_Py_Void();
26022 return resultobj;
26023 fail:
26024 return NULL;
26025 }
26026
26027
26028 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26029 PyObject *resultobj = 0;
26030 wxListItem *arg1 = (wxListItem *) 0 ;
26031 void *argp1 = 0 ;
26032 int res1 = 0 ;
26033 PyObject *swig_obj[1] ;
26034
26035 if (!args) SWIG_fail;
26036 swig_obj[0] = args;
26037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26038 if (!SWIG_IsOK(res1)) {
26039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26040 }
26041 arg1 = reinterpret_cast< wxListItem * >(argp1);
26042 {
26043 PyThreadState* __tstate = wxPyBeginAllowThreads();
26044 (arg1)->ClearAttributes();
26045 wxPyEndAllowThreads(__tstate);
26046 if (PyErr_Occurred()) SWIG_fail;
26047 }
26048 resultobj = SWIG_Py_Void();
26049 return resultobj;
26050 fail:
26051 return NULL;
26052 }
26053
26054
26055 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26056 PyObject *resultobj = 0;
26057 wxListItem *arg1 = (wxListItem *) 0 ;
26058 long arg2 ;
26059 void *argp1 = 0 ;
26060 int res1 = 0 ;
26061 long val2 ;
26062 int ecode2 = 0 ;
26063 PyObject * obj0 = 0 ;
26064 PyObject * obj1 = 0 ;
26065 char * kwnames[] = {
26066 (char *) "self",(char *) "mask", NULL
26067 };
26068
26069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26071 if (!SWIG_IsOK(res1)) {
26072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26073 }
26074 arg1 = reinterpret_cast< wxListItem * >(argp1);
26075 ecode2 = SWIG_AsVal_long(obj1, &val2);
26076 if (!SWIG_IsOK(ecode2)) {
26077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26078 }
26079 arg2 = static_cast< long >(val2);
26080 {
26081 PyThreadState* __tstate = wxPyBeginAllowThreads();
26082 (arg1)->SetMask(arg2);
26083 wxPyEndAllowThreads(__tstate);
26084 if (PyErr_Occurred()) SWIG_fail;
26085 }
26086 resultobj = SWIG_Py_Void();
26087 return resultobj;
26088 fail:
26089 return NULL;
26090 }
26091
26092
26093 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26094 PyObject *resultobj = 0;
26095 wxListItem *arg1 = (wxListItem *) 0 ;
26096 long arg2 ;
26097 void *argp1 = 0 ;
26098 int res1 = 0 ;
26099 long val2 ;
26100 int ecode2 = 0 ;
26101 PyObject * obj0 = 0 ;
26102 PyObject * obj1 = 0 ;
26103 char * kwnames[] = {
26104 (char *) "self",(char *) "id", NULL
26105 };
26106
26107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26109 if (!SWIG_IsOK(res1)) {
26110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26111 }
26112 arg1 = reinterpret_cast< wxListItem * >(argp1);
26113 ecode2 = SWIG_AsVal_long(obj1, &val2);
26114 if (!SWIG_IsOK(ecode2)) {
26115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26116 }
26117 arg2 = static_cast< long >(val2);
26118 {
26119 PyThreadState* __tstate = wxPyBeginAllowThreads();
26120 (arg1)->SetId(arg2);
26121 wxPyEndAllowThreads(__tstate);
26122 if (PyErr_Occurred()) SWIG_fail;
26123 }
26124 resultobj = SWIG_Py_Void();
26125 return resultobj;
26126 fail:
26127 return NULL;
26128 }
26129
26130
26131 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26132 PyObject *resultobj = 0;
26133 wxListItem *arg1 = (wxListItem *) 0 ;
26134 int arg2 ;
26135 void *argp1 = 0 ;
26136 int res1 = 0 ;
26137 int val2 ;
26138 int ecode2 = 0 ;
26139 PyObject * obj0 = 0 ;
26140 PyObject * obj1 = 0 ;
26141 char * kwnames[] = {
26142 (char *) "self",(char *) "col", NULL
26143 };
26144
26145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26147 if (!SWIG_IsOK(res1)) {
26148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26149 }
26150 arg1 = reinterpret_cast< wxListItem * >(argp1);
26151 ecode2 = SWIG_AsVal_int(obj1, &val2);
26152 if (!SWIG_IsOK(ecode2)) {
26153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26154 }
26155 arg2 = static_cast< int >(val2);
26156 {
26157 PyThreadState* __tstate = wxPyBeginAllowThreads();
26158 (arg1)->SetColumn(arg2);
26159 wxPyEndAllowThreads(__tstate);
26160 if (PyErr_Occurred()) SWIG_fail;
26161 }
26162 resultobj = SWIG_Py_Void();
26163 return resultobj;
26164 fail:
26165 return NULL;
26166 }
26167
26168
26169 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26170 PyObject *resultobj = 0;
26171 wxListItem *arg1 = (wxListItem *) 0 ;
26172 long arg2 ;
26173 void *argp1 = 0 ;
26174 int res1 = 0 ;
26175 long val2 ;
26176 int ecode2 = 0 ;
26177 PyObject * obj0 = 0 ;
26178 PyObject * obj1 = 0 ;
26179 char * kwnames[] = {
26180 (char *) "self",(char *) "state", NULL
26181 };
26182
26183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26185 if (!SWIG_IsOK(res1)) {
26186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26187 }
26188 arg1 = reinterpret_cast< wxListItem * >(argp1);
26189 ecode2 = SWIG_AsVal_long(obj1, &val2);
26190 if (!SWIG_IsOK(ecode2)) {
26191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26192 }
26193 arg2 = static_cast< long >(val2);
26194 {
26195 PyThreadState* __tstate = wxPyBeginAllowThreads();
26196 (arg1)->SetState(arg2);
26197 wxPyEndAllowThreads(__tstate);
26198 if (PyErr_Occurred()) SWIG_fail;
26199 }
26200 resultobj = SWIG_Py_Void();
26201 return resultobj;
26202 fail:
26203 return NULL;
26204 }
26205
26206
26207 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26208 PyObject *resultobj = 0;
26209 wxListItem *arg1 = (wxListItem *) 0 ;
26210 long arg2 ;
26211 void *argp1 = 0 ;
26212 int res1 = 0 ;
26213 long val2 ;
26214 int ecode2 = 0 ;
26215 PyObject * obj0 = 0 ;
26216 PyObject * obj1 = 0 ;
26217 char * kwnames[] = {
26218 (char *) "self",(char *) "stateMask", NULL
26219 };
26220
26221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26223 if (!SWIG_IsOK(res1)) {
26224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26225 }
26226 arg1 = reinterpret_cast< wxListItem * >(argp1);
26227 ecode2 = SWIG_AsVal_long(obj1, &val2);
26228 if (!SWIG_IsOK(ecode2)) {
26229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26230 }
26231 arg2 = static_cast< long >(val2);
26232 {
26233 PyThreadState* __tstate = wxPyBeginAllowThreads();
26234 (arg1)->SetStateMask(arg2);
26235 wxPyEndAllowThreads(__tstate);
26236 if (PyErr_Occurred()) SWIG_fail;
26237 }
26238 resultobj = SWIG_Py_Void();
26239 return resultobj;
26240 fail:
26241 return NULL;
26242 }
26243
26244
26245 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26246 PyObject *resultobj = 0;
26247 wxListItem *arg1 = (wxListItem *) 0 ;
26248 wxString *arg2 = 0 ;
26249 void *argp1 = 0 ;
26250 int res1 = 0 ;
26251 bool temp2 = false ;
26252 PyObject * obj0 = 0 ;
26253 PyObject * obj1 = 0 ;
26254 char * kwnames[] = {
26255 (char *) "self",(char *) "text", NULL
26256 };
26257
26258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26260 if (!SWIG_IsOK(res1)) {
26261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26262 }
26263 arg1 = reinterpret_cast< wxListItem * >(argp1);
26264 {
26265 arg2 = wxString_in_helper(obj1);
26266 if (arg2 == NULL) SWIG_fail;
26267 temp2 = true;
26268 }
26269 {
26270 PyThreadState* __tstate = wxPyBeginAllowThreads();
26271 (arg1)->SetText((wxString const &)*arg2);
26272 wxPyEndAllowThreads(__tstate);
26273 if (PyErr_Occurred()) SWIG_fail;
26274 }
26275 resultobj = SWIG_Py_Void();
26276 {
26277 if (temp2)
26278 delete arg2;
26279 }
26280 return resultobj;
26281 fail:
26282 {
26283 if (temp2)
26284 delete arg2;
26285 }
26286 return NULL;
26287 }
26288
26289
26290 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26291 PyObject *resultobj = 0;
26292 wxListItem *arg1 = (wxListItem *) 0 ;
26293 int arg2 ;
26294 void *argp1 = 0 ;
26295 int res1 = 0 ;
26296 int val2 ;
26297 int ecode2 = 0 ;
26298 PyObject * obj0 = 0 ;
26299 PyObject * obj1 = 0 ;
26300 char * kwnames[] = {
26301 (char *) "self",(char *) "image", NULL
26302 };
26303
26304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26306 if (!SWIG_IsOK(res1)) {
26307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26308 }
26309 arg1 = reinterpret_cast< wxListItem * >(argp1);
26310 ecode2 = SWIG_AsVal_int(obj1, &val2);
26311 if (!SWIG_IsOK(ecode2)) {
26312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26313 }
26314 arg2 = static_cast< int >(val2);
26315 {
26316 PyThreadState* __tstate = wxPyBeginAllowThreads();
26317 (arg1)->SetImage(arg2);
26318 wxPyEndAllowThreads(__tstate);
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 resultobj = SWIG_Py_Void();
26322 return resultobj;
26323 fail:
26324 return NULL;
26325 }
26326
26327
26328 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26329 PyObject *resultobj = 0;
26330 wxListItem *arg1 = (wxListItem *) 0 ;
26331 long arg2 ;
26332 void *argp1 = 0 ;
26333 int res1 = 0 ;
26334 long val2 ;
26335 int ecode2 = 0 ;
26336 PyObject * obj0 = 0 ;
26337 PyObject * obj1 = 0 ;
26338 char * kwnames[] = {
26339 (char *) "self",(char *) "data", NULL
26340 };
26341
26342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26344 if (!SWIG_IsOK(res1)) {
26345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26346 }
26347 arg1 = reinterpret_cast< wxListItem * >(argp1);
26348 ecode2 = SWIG_AsVal_long(obj1, &val2);
26349 if (!SWIG_IsOK(ecode2)) {
26350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26351 }
26352 arg2 = static_cast< long >(val2);
26353 {
26354 PyThreadState* __tstate = wxPyBeginAllowThreads();
26355 (arg1)->SetData(arg2);
26356 wxPyEndAllowThreads(__tstate);
26357 if (PyErr_Occurred()) SWIG_fail;
26358 }
26359 resultobj = SWIG_Py_Void();
26360 return resultobj;
26361 fail:
26362 return NULL;
26363 }
26364
26365
26366 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26367 PyObject *resultobj = 0;
26368 wxListItem *arg1 = (wxListItem *) 0 ;
26369 int arg2 ;
26370 void *argp1 = 0 ;
26371 int res1 = 0 ;
26372 int val2 ;
26373 int ecode2 = 0 ;
26374 PyObject * obj0 = 0 ;
26375 PyObject * obj1 = 0 ;
26376 char * kwnames[] = {
26377 (char *) "self",(char *) "width", NULL
26378 };
26379
26380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26382 if (!SWIG_IsOK(res1)) {
26383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26384 }
26385 arg1 = reinterpret_cast< wxListItem * >(argp1);
26386 ecode2 = SWIG_AsVal_int(obj1, &val2);
26387 if (!SWIG_IsOK(ecode2)) {
26388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26389 }
26390 arg2 = static_cast< int >(val2);
26391 {
26392 PyThreadState* __tstate = wxPyBeginAllowThreads();
26393 (arg1)->SetWidth(arg2);
26394 wxPyEndAllowThreads(__tstate);
26395 if (PyErr_Occurred()) SWIG_fail;
26396 }
26397 resultobj = SWIG_Py_Void();
26398 return resultobj;
26399 fail:
26400 return NULL;
26401 }
26402
26403
26404 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26405 PyObject *resultobj = 0;
26406 wxListItem *arg1 = (wxListItem *) 0 ;
26407 wxListColumnFormat arg2 ;
26408 void *argp1 = 0 ;
26409 int res1 = 0 ;
26410 int val2 ;
26411 int ecode2 = 0 ;
26412 PyObject * obj0 = 0 ;
26413 PyObject * obj1 = 0 ;
26414 char * kwnames[] = {
26415 (char *) "self",(char *) "align", NULL
26416 };
26417
26418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26420 if (!SWIG_IsOK(res1)) {
26421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26422 }
26423 arg1 = reinterpret_cast< wxListItem * >(argp1);
26424 ecode2 = SWIG_AsVal_int(obj1, &val2);
26425 if (!SWIG_IsOK(ecode2)) {
26426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26427 }
26428 arg2 = static_cast< wxListColumnFormat >(val2);
26429 {
26430 PyThreadState* __tstate = wxPyBeginAllowThreads();
26431 (arg1)->SetAlign(arg2);
26432 wxPyEndAllowThreads(__tstate);
26433 if (PyErr_Occurred()) SWIG_fail;
26434 }
26435 resultobj = SWIG_Py_Void();
26436 return resultobj;
26437 fail:
26438 return NULL;
26439 }
26440
26441
26442 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26443 PyObject *resultobj = 0;
26444 wxListItem *arg1 = (wxListItem *) 0 ;
26445 wxColour *arg2 = 0 ;
26446 void *argp1 = 0 ;
26447 int res1 = 0 ;
26448 wxColour temp2 ;
26449 PyObject * obj0 = 0 ;
26450 PyObject * obj1 = 0 ;
26451 char * kwnames[] = {
26452 (char *) "self",(char *) "colText", NULL
26453 };
26454
26455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26457 if (!SWIG_IsOK(res1)) {
26458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26459 }
26460 arg1 = reinterpret_cast< wxListItem * >(argp1);
26461 {
26462 arg2 = &temp2;
26463 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26464 }
26465 {
26466 PyThreadState* __tstate = wxPyBeginAllowThreads();
26467 (arg1)->SetTextColour((wxColour const &)*arg2);
26468 wxPyEndAllowThreads(__tstate);
26469 if (PyErr_Occurred()) SWIG_fail;
26470 }
26471 resultobj = SWIG_Py_Void();
26472 return resultobj;
26473 fail:
26474 return NULL;
26475 }
26476
26477
26478 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26479 PyObject *resultobj = 0;
26480 wxListItem *arg1 = (wxListItem *) 0 ;
26481 wxColour *arg2 = 0 ;
26482 void *argp1 = 0 ;
26483 int res1 = 0 ;
26484 wxColour temp2 ;
26485 PyObject * obj0 = 0 ;
26486 PyObject * obj1 = 0 ;
26487 char * kwnames[] = {
26488 (char *) "self",(char *) "colBack", NULL
26489 };
26490
26491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26493 if (!SWIG_IsOK(res1)) {
26494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26495 }
26496 arg1 = reinterpret_cast< wxListItem * >(argp1);
26497 {
26498 arg2 = &temp2;
26499 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26500 }
26501 {
26502 PyThreadState* __tstate = wxPyBeginAllowThreads();
26503 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26504 wxPyEndAllowThreads(__tstate);
26505 if (PyErr_Occurred()) SWIG_fail;
26506 }
26507 resultobj = SWIG_Py_Void();
26508 return resultobj;
26509 fail:
26510 return NULL;
26511 }
26512
26513
26514 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26515 PyObject *resultobj = 0;
26516 wxListItem *arg1 = (wxListItem *) 0 ;
26517 wxFont *arg2 = 0 ;
26518 void *argp1 = 0 ;
26519 int res1 = 0 ;
26520 void *argp2 = 0 ;
26521 int res2 = 0 ;
26522 PyObject * obj0 = 0 ;
26523 PyObject * obj1 = 0 ;
26524 char * kwnames[] = {
26525 (char *) "self",(char *) "font", NULL
26526 };
26527
26528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26530 if (!SWIG_IsOK(res1)) {
26531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26532 }
26533 arg1 = reinterpret_cast< wxListItem * >(argp1);
26534 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26535 if (!SWIG_IsOK(res2)) {
26536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26537 }
26538 if (!argp2) {
26539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26540 }
26541 arg2 = reinterpret_cast< wxFont * >(argp2);
26542 {
26543 PyThreadState* __tstate = wxPyBeginAllowThreads();
26544 (arg1)->SetFont((wxFont const &)*arg2);
26545 wxPyEndAllowThreads(__tstate);
26546 if (PyErr_Occurred()) SWIG_fail;
26547 }
26548 resultobj = SWIG_Py_Void();
26549 return resultobj;
26550 fail:
26551 return NULL;
26552 }
26553
26554
26555 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26556 PyObject *resultobj = 0;
26557 wxListItem *arg1 = (wxListItem *) 0 ;
26558 long result;
26559 void *argp1 = 0 ;
26560 int res1 = 0 ;
26561 PyObject *swig_obj[1] ;
26562
26563 if (!args) SWIG_fail;
26564 swig_obj[0] = args;
26565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26566 if (!SWIG_IsOK(res1)) {
26567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26568 }
26569 arg1 = reinterpret_cast< wxListItem * >(argp1);
26570 {
26571 PyThreadState* __tstate = wxPyBeginAllowThreads();
26572 result = (long)(arg1)->GetMask();
26573 wxPyEndAllowThreads(__tstate);
26574 if (PyErr_Occurred()) SWIG_fail;
26575 }
26576 resultobj = SWIG_From_long(static_cast< long >(result));
26577 return resultobj;
26578 fail:
26579 return NULL;
26580 }
26581
26582
26583 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26584 PyObject *resultobj = 0;
26585 wxListItem *arg1 = (wxListItem *) 0 ;
26586 long result;
26587 void *argp1 = 0 ;
26588 int res1 = 0 ;
26589 PyObject *swig_obj[1] ;
26590
26591 if (!args) SWIG_fail;
26592 swig_obj[0] = args;
26593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26594 if (!SWIG_IsOK(res1)) {
26595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26596 }
26597 arg1 = reinterpret_cast< wxListItem * >(argp1);
26598 {
26599 PyThreadState* __tstate = wxPyBeginAllowThreads();
26600 result = (long)(arg1)->GetId();
26601 wxPyEndAllowThreads(__tstate);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 resultobj = SWIG_From_long(static_cast< long >(result));
26605 return resultobj;
26606 fail:
26607 return NULL;
26608 }
26609
26610
26611 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26612 PyObject *resultobj = 0;
26613 wxListItem *arg1 = (wxListItem *) 0 ;
26614 int result;
26615 void *argp1 = 0 ;
26616 int res1 = 0 ;
26617 PyObject *swig_obj[1] ;
26618
26619 if (!args) SWIG_fail;
26620 swig_obj[0] = args;
26621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26622 if (!SWIG_IsOK(res1)) {
26623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26624 }
26625 arg1 = reinterpret_cast< wxListItem * >(argp1);
26626 {
26627 PyThreadState* __tstate = wxPyBeginAllowThreads();
26628 result = (int)(arg1)->GetColumn();
26629 wxPyEndAllowThreads(__tstate);
26630 if (PyErr_Occurred()) SWIG_fail;
26631 }
26632 resultobj = SWIG_From_int(static_cast< int >(result));
26633 return resultobj;
26634 fail:
26635 return NULL;
26636 }
26637
26638
26639 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26640 PyObject *resultobj = 0;
26641 wxListItem *arg1 = (wxListItem *) 0 ;
26642 long result;
26643 void *argp1 = 0 ;
26644 int res1 = 0 ;
26645 PyObject *swig_obj[1] ;
26646
26647 if (!args) SWIG_fail;
26648 swig_obj[0] = args;
26649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26650 if (!SWIG_IsOK(res1)) {
26651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26652 }
26653 arg1 = reinterpret_cast< wxListItem * >(argp1);
26654 {
26655 PyThreadState* __tstate = wxPyBeginAllowThreads();
26656 result = (long)(arg1)->GetState();
26657 wxPyEndAllowThreads(__tstate);
26658 if (PyErr_Occurred()) SWIG_fail;
26659 }
26660 resultobj = SWIG_From_long(static_cast< long >(result));
26661 return resultobj;
26662 fail:
26663 return NULL;
26664 }
26665
26666
26667 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26668 PyObject *resultobj = 0;
26669 wxListItem *arg1 = (wxListItem *) 0 ;
26670 wxString *result = 0 ;
26671 void *argp1 = 0 ;
26672 int res1 = 0 ;
26673 PyObject *swig_obj[1] ;
26674
26675 if (!args) SWIG_fail;
26676 swig_obj[0] = args;
26677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26678 if (!SWIG_IsOK(res1)) {
26679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26680 }
26681 arg1 = reinterpret_cast< wxListItem * >(argp1);
26682 {
26683 PyThreadState* __tstate = wxPyBeginAllowThreads();
26684 {
26685 wxString const &_result_ref = (arg1)->GetText();
26686 result = (wxString *) &_result_ref;
26687 }
26688 wxPyEndAllowThreads(__tstate);
26689 if (PyErr_Occurred()) SWIG_fail;
26690 }
26691 {
26692 #if wxUSE_UNICODE
26693 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26694 #else
26695 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26696 #endif
26697 }
26698 return resultobj;
26699 fail:
26700 return NULL;
26701 }
26702
26703
26704 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26705 PyObject *resultobj = 0;
26706 wxListItem *arg1 = (wxListItem *) 0 ;
26707 int result;
26708 void *argp1 = 0 ;
26709 int res1 = 0 ;
26710 PyObject *swig_obj[1] ;
26711
26712 if (!args) SWIG_fail;
26713 swig_obj[0] = args;
26714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26715 if (!SWIG_IsOK(res1)) {
26716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26717 }
26718 arg1 = reinterpret_cast< wxListItem * >(argp1);
26719 {
26720 PyThreadState* __tstate = wxPyBeginAllowThreads();
26721 result = (int)(arg1)->GetImage();
26722 wxPyEndAllowThreads(__tstate);
26723 if (PyErr_Occurred()) SWIG_fail;
26724 }
26725 resultobj = SWIG_From_int(static_cast< int >(result));
26726 return resultobj;
26727 fail:
26728 return NULL;
26729 }
26730
26731
26732 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26733 PyObject *resultobj = 0;
26734 wxListItem *arg1 = (wxListItem *) 0 ;
26735 long result;
26736 void *argp1 = 0 ;
26737 int res1 = 0 ;
26738 PyObject *swig_obj[1] ;
26739
26740 if (!args) SWIG_fail;
26741 swig_obj[0] = args;
26742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26743 if (!SWIG_IsOK(res1)) {
26744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26745 }
26746 arg1 = reinterpret_cast< wxListItem * >(argp1);
26747 {
26748 PyThreadState* __tstate = wxPyBeginAllowThreads();
26749 result = (long)(arg1)->GetData();
26750 wxPyEndAllowThreads(__tstate);
26751 if (PyErr_Occurred()) SWIG_fail;
26752 }
26753 resultobj = SWIG_From_long(static_cast< long >(result));
26754 return resultobj;
26755 fail:
26756 return NULL;
26757 }
26758
26759
26760 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26761 PyObject *resultobj = 0;
26762 wxListItem *arg1 = (wxListItem *) 0 ;
26763 int result;
26764 void *argp1 = 0 ;
26765 int res1 = 0 ;
26766 PyObject *swig_obj[1] ;
26767
26768 if (!args) SWIG_fail;
26769 swig_obj[0] = args;
26770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26771 if (!SWIG_IsOK(res1)) {
26772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26773 }
26774 arg1 = reinterpret_cast< wxListItem * >(argp1);
26775 {
26776 PyThreadState* __tstate = wxPyBeginAllowThreads();
26777 result = (int)(arg1)->GetWidth();
26778 wxPyEndAllowThreads(__tstate);
26779 if (PyErr_Occurred()) SWIG_fail;
26780 }
26781 resultobj = SWIG_From_int(static_cast< int >(result));
26782 return resultobj;
26783 fail:
26784 return NULL;
26785 }
26786
26787
26788 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26789 PyObject *resultobj = 0;
26790 wxListItem *arg1 = (wxListItem *) 0 ;
26791 wxListColumnFormat result;
26792 void *argp1 = 0 ;
26793 int res1 = 0 ;
26794 PyObject *swig_obj[1] ;
26795
26796 if (!args) SWIG_fail;
26797 swig_obj[0] = args;
26798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26799 if (!SWIG_IsOK(res1)) {
26800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26801 }
26802 arg1 = reinterpret_cast< wxListItem * >(argp1);
26803 {
26804 PyThreadState* __tstate = wxPyBeginAllowThreads();
26805 result = (wxListColumnFormat)(arg1)->GetAlign();
26806 wxPyEndAllowThreads(__tstate);
26807 if (PyErr_Occurred()) SWIG_fail;
26808 }
26809 resultobj = SWIG_From_int(static_cast< int >(result));
26810 return resultobj;
26811 fail:
26812 return NULL;
26813 }
26814
26815
26816 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26817 PyObject *resultobj = 0;
26818 wxListItem *arg1 = (wxListItem *) 0 ;
26819 wxListItemAttr *result = 0 ;
26820 void *argp1 = 0 ;
26821 int res1 = 0 ;
26822 PyObject *swig_obj[1] ;
26823
26824 if (!args) SWIG_fail;
26825 swig_obj[0] = args;
26826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26827 if (!SWIG_IsOK(res1)) {
26828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26829 }
26830 arg1 = reinterpret_cast< wxListItem * >(argp1);
26831 {
26832 PyThreadState* __tstate = wxPyBeginAllowThreads();
26833 result = (wxListItemAttr *)(arg1)->GetAttributes();
26834 wxPyEndAllowThreads(__tstate);
26835 if (PyErr_Occurred()) SWIG_fail;
26836 }
26837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26838 return resultobj;
26839 fail:
26840 return NULL;
26841 }
26842
26843
26844 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26845 PyObject *resultobj = 0;
26846 wxListItem *arg1 = (wxListItem *) 0 ;
26847 bool result;
26848 void *argp1 = 0 ;
26849 int res1 = 0 ;
26850 PyObject *swig_obj[1] ;
26851
26852 if (!args) SWIG_fail;
26853 swig_obj[0] = args;
26854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26855 if (!SWIG_IsOK(res1)) {
26856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26857 }
26858 arg1 = reinterpret_cast< wxListItem * >(argp1);
26859 {
26860 PyThreadState* __tstate = wxPyBeginAllowThreads();
26861 result = (bool)(arg1)->HasAttributes();
26862 wxPyEndAllowThreads(__tstate);
26863 if (PyErr_Occurred()) SWIG_fail;
26864 }
26865 {
26866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26867 }
26868 return resultobj;
26869 fail:
26870 return NULL;
26871 }
26872
26873
26874 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26875 PyObject *resultobj = 0;
26876 wxListItem *arg1 = (wxListItem *) 0 ;
26877 wxColour result;
26878 void *argp1 = 0 ;
26879 int res1 = 0 ;
26880 PyObject *swig_obj[1] ;
26881
26882 if (!args) SWIG_fail;
26883 swig_obj[0] = args;
26884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26885 if (!SWIG_IsOK(res1)) {
26886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26887 }
26888 arg1 = reinterpret_cast< wxListItem * >(argp1);
26889 {
26890 PyThreadState* __tstate = wxPyBeginAllowThreads();
26891 result = ((wxListItem const *)arg1)->GetTextColour();
26892 wxPyEndAllowThreads(__tstate);
26893 if (PyErr_Occurred()) SWIG_fail;
26894 }
26895 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26896 return resultobj;
26897 fail:
26898 return NULL;
26899 }
26900
26901
26902 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26903 PyObject *resultobj = 0;
26904 wxListItem *arg1 = (wxListItem *) 0 ;
26905 wxColour result;
26906 void *argp1 = 0 ;
26907 int res1 = 0 ;
26908 PyObject *swig_obj[1] ;
26909
26910 if (!args) SWIG_fail;
26911 swig_obj[0] = args;
26912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26913 if (!SWIG_IsOK(res1)) {
26914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26915 }
26916 arg1 = reinterpret_cast< wxListItem * >(argp1);
26917 {
26918 PyThreadState* __tstate = wxPyBeginAllowThreads();
26919 result = ((wxListItem const *)arg1)->GetBackgroundColour();
26920 wxPyEndAllowThreads(__tstate);
26921 if (PyErr_Occurred()) SWIG_fail;
26922 }
26923 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26924 return resultobj;
26925 fail:
26926 return NULL;
26927 }
26928
26929
26930 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26931 PyObject *resultobj = 0;
26932 wxListItem *arg1 = (wxListItem *) 0 ;
26933 wxFont result;
26934 void *argp1 = 0 ;
26935 int res1 = 0 ;
26936 PyObject *swig_obj[1] ;
26937
26938 if (!args) SWIG_fail;
26939 swig_obj[0] = args;
26940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26941 if (!SWIG_IsOK(res1)) {
26942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
26943 }
26944 arg1 = reinterpret_cast< wxListItem * >(argp1);
26945 {
26946 PyThreadState* __tstate = wxPyBeginAllowThreads();
26947 result = ((wxListItem const *)arg1)->GetFont();
26948 wxPyEndAllowThreads(__tstate);
26949 if (PyErr_Occurred()) SWIG_fail;
26950 }
26951 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26952 return resultobj;
26953 fail:
26954 return NULL;
26955 }
26956
26957
26958 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26959 PyObject *resultobj = 0;
26960 wxListItem *arg1 = (wxListItem *) 0 ;
26961 long arg2 ;
26962 void *argp1 = 0 ;
26963 int res1 = 0 ;
26964 long val2 ;
26965 int ecode2 = 0 ;
26966 PyObject *swig_obj[2] ;
26967
26968 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
26969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26970 if (!SWIG_IsOK(res1)) {
26971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26972 }
26973 arg1 = reinterpret_cast< wxListItem * >(argp1);
26974 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
26975 if (!SWIG_IsOK(ecode2)) {
26976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
26977 }
26978 arg2 = static_cast< long >(val2);
26979 if (arg1) (arg1)->m_mask = arg2;
26980
26981 resultobj = SWIG_Py_Void();
26982 return resultobj;
26983 fail:
26984 return NULL;
26985 }
26986
26987
26988 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26989 PyObject *resultobj = 0;
26990 wxListItem *arg1 = (wxListItem *) 0 ;
26991 long result;
26992 void *argp1 = 0 ;
26993 int res1 = 0 ;
26994 PyObject *swig_obj[1] ;
26995
26996 if (!args) SWIG_fail;
26997 swig_obj[0] = args;
26998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26999 if (!SWIG_IsOK(res1)) {
27000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27001 }
27002 arg1 = reinterpret_cast< wxListItem * >(argp1);
27003 result = (long) ((arg1)->m_mask);
27004 resultobj = SWIG_From_long(static_cast< long >(result));
27005 return resultobj;
27006 fail:
27007 return NULL;
27008 }
27009
27010
27011 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27012 PyObject *resultobj = 0;
27013 wxListItem *arg1 = (wxListItem *) 0 ;
27014 long arg2 ;
27015 void *argp1 = 0 ;
27016 int res1 = 0 ;
27017 long val2 ;
27018 int ecode2 = 0 ;
27019 PyObject *swig_obj[2] ;
27020
27021 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27023 if (!SWIG_IsOK(res1)) {
27024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27025 }
27026 arg1 = reinterpret_cast< wxListItem * >(argp1);
27027 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27028 if (!SWIG_IsOK(ecode2)) {
27029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27030 }
27031 arg2 = static_cast< long >(val2);
27032 if (arg1) (arg1)->m_itemId = arg2;
27033
27034 resultobj = SWIG_Py_Void();
27035 return resultobj;
27036 fail:
27037 return NULL;
27038 }
27039
27040
27041 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27042 PyObject *resultobj = 0;
27043 wxListItem *arg1 = (wxListItem *) 0 ;
27044 long result;
27045 void *argp1 = 0 ;
27046 int res1 = 0 ;
27047 PyObject *swig_obj[1] ;
27048
27049 if (!args) SWIG_fail;
27050 swig_obj[0] = args;
27051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27052 if (!SWIG_IsOK(res1)) {
27053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27054 }
27055 arg1 = reinterpret_cast< wxListItem * >(argp1);
27056 result = (long) ((arg1)->m_itemId);
27057 resultobj = SWIG_From_long(static_cast< long >(result));
27058 return resultobj;
27059 fail:
27060 return NULL;
27061 }
27062
27063
27064 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27065 PyObject *resultobj = 0;
27066 wxListItem *arg1 = (wxListItem *) 0 ;
27067 int arg2 ;
27068 void *argp1 = 0 ;
27069 int res1 = 0 ;
27070 int val2 ;
27071 int ecode2 = 0 ;
27072 PyObject *swig_obj[2] ;
27073
27074 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27076 if (!SWIG_IsOK(res1)) {
27077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27078 }
27079 arg1 = reinterpret_cast< wxListItem * >(argp1);
27080 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27081 if (!SWIG_IsOK(ecode2)) {
27082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27083 }
27084 arg2 = static_cast< int >(val2);
27085 if (arg1) (arg1)->m_col = arg2;
27086
27087 resultobj = SWIG_Py_Void();
27088 return resultobj;
27089 fail:
27090 return NULL;
27091 }
27092
27093
27094 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27095 PyObject *resultobj = 0;
27096 wxListItem *arg1 = (wxListItem *) 0 ;
27097 int result;
27098 void *argp1 = 0 ;
27099 int res1 = 0 ;
27100 PyObject *swig_obj[1] ;
27101
27102 if (!args) SWIG_fail;
27103 swig_obj[0] = args;
27104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27105 if (!SWIG_IsOK(res1)) {
27106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27107 }
27108 arg1 = reinterpret_cast< wxListItem * >(argp1);
27109 result = (int) ((arg1)->m_col);
27110 resultobj = SWIG_From_int(static_cast< int >(result));
27111 return resultobj;
27112 fail:
27113 return NULL;
27114 }
27115
27116
27117 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27118 PyObject *resultobj = 0;
27119 wxListItem *arg1 = (wxListItem *) 0 ;
27120 long arg2 ;
27121 void *argp1 = 0 ;
27122 int res1 = 0 ;
27123 long val2 ;
27124 int ecode2 = 0 ;
27125 PyObject *swig_obj[2] ;
27126
27127 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27129 if (!SWIG_IsOK(res1)) {
27130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27131 }
27132 arg1 = reinterpret_cast< wxListItem * >(argp1);
27133 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27134 if (!SWIG_IsOK(ecode2)) {
27135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27136 }
27137 arg2 = static_cast< long >(val2);
27138 if (arg1) (arg1)->m_state = arg2;
27139
27140 resultobj = SWIG_Py_Void();
27141 return resultobj;
27142 fail:
27143 return NULL;
27144 }
27145
27146
27147 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27148 PyObject *resultobj = 0;
27149 wxListItem *arg1 = (wxListItem *) 0 ;
27150 long result;
27151 void *argp1 = 0 ;
27152 int res1 = 0 ;
27153 PyObject *swig_obj[1] ;
27154
27155 if (!args) SWIG_fail;
27156 swig_obj[0] = args;
27157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27158 if (!SWIG_IsOK(res1)) {
27159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27160 }
27161 arg1 = reinterpret_cast< wxListItem * >(argp1);
27162 result = (long) ((arg1)->m_state);
27163 resultobj = SWIG_From_long(static_cast< long >(result));
27164 return resultobj;
27165 fail:
27166 return NULL;
27167 }
27168
27169
27170 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27171 PyObject *resultobj = 0;
27172 wxListItem *arg1 = (wxListItem *) 0 ;
27173 long arg2 ;
27174 void *argp1 = 0 ;
27175 int res1 = 0 ;
27176 long val2 ;
27177 int ecode2 = 0 ;
27178 PyObject *swig_obj[2] ;
27179
27180 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27182 if (!SWIG_IsOK(res1)) {
27183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27184 }
27185 arg1 = reinterpret_cast< wxListItem * >(argp1);
27186 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27187 if (!SWIG_IsOK(ecode2)) {
27188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27189 }
27190 arg2 = static_cast< long >(val2);
27191 if (arg1) (arg1)->m_stateMask = arg2;
27192
27193 resultobj = SWIG_Py_Void();
27194 return resultobj;
27195 fail:
27196 return NULL;
27197 }
27198
27199
27200 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27201 PyObject *resultobj = 0;
27202 wxListItem *arg1 = (wxListItem *) 0 ;
27203 long result;
27204 void *argp1 = 0 ;
27205 int res1 = 0 ;
27206 PyObject *swig_obj[1] ;
27207
27208 if (!args) SWIG_fail;
27209 swig_obj[0] = args;
27210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27211 if (!SWIG_IsOK(res1)) {
27212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27213 }
27214 arg1 = reinterpret_cast< wxListItem * >(argp1);
27215 result = (long) ((arg1)->m_stateMask);
27216 resultobj = SWIG_From_long(static_cast< long >(result));
27217 return resultobj;
27218 fail:
27219 return NULL;
27220 }
27221
27222
27223 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27224 PyObject *resultobj = 0;
27225 wxListItem *arg1 = (wxListItem *) 0 ;
27226 wxString *arg2 = (wxString *) 0 ;
27227 void *argp1 = 0 ;
27228 int res1 = 0 ;
27229 bool temp2 = false ;
27230 PyObject *swig_obj[2] ;
27231
27232 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27234 if (!SWIG_IsOK(res1)) {
27235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27236 }
27237 arg1 = reinterpret_cast< wxListItem * >(argp1);
27238 {
27239 arg2 = wxString_in_helper(swig_obj[1]);
27240 if (arg2 == NULL) SWIG_fail;
27241 temp2 = true;
27242 }
27243 if (arg1) (arg1)->m_text = *arg2;
27244
27245 resultobj = SWIG_Py_Void();
27246 {
27247 if (temp2)
27248 delete arg2;
27249 }
27250 return resultobj;
27251 fail:
27252 {
27253 if (temp2)
27254 delete arg2;
27255 }
27256 return NULL;
27257 }
27258
27259
27260 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27261 PyObject *resultobj = 0;
27262 wxListItem *arg1 = (wxListItem *) 0 ;
27263 wxString *result = 0 ;
27264 void *argp1 = 0 ;
27265 int res1 = 0 ;
27266 PyObject *swig_obj[1] ;
27267
27268 if (!args) SWIG_fail;
27269 swig_obj[0] = args;
27270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27271 if (!SWIG_IsOK(res1)) {
27272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27273 }
27274 arg1 = reinterpret_cast< wxListItem * >(argp1);
27275 result = (wxString *)& ((arg1)->m_text);
27276 {
27277 #if wxUSE_UNICODE
27278 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27279 #else
27280 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27281 #endif
27282 }
27283 return resultobj;
27284 fail:
27285 return NULL;
27286 }
27287
27288
27289 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27290 PyObject *resultobj = 0;
27291 wxListItem *arg1 = (wxListItem *) 0 ;
27292 int arg2 ;
27293 void *argp1 = 0 ;
27294 int res1 = 0 ;
27295 int val2 ;
27296 int ecode2 = 0 ;
27297 PyObject *swig_obj[2] ;
27298
27299 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27301 if (!SWIG_IsOK(res1)) {
27302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27303 }
27304 arg1 = reinterpret_cast< wxListItem * >(argp1);
27305 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27306 if (!SWIG_IsOK(ecode2)) {
27307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27308 }
27309 arg2 = static_cast< int >(val2);
27310 if (arg1) (arg1)->m_image = arg2;
27311
27312 resultobj = SWIG_Py_Void();
27313 return resultobj;
27314 fail:
27315 return NULL;
27316 }
27317
27318
27319 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27320 PyObject *resultobj = 0;
27321 wxListItem *arg1 = (wxListItem *) 0 ;
27322 int result;
27323 void *argp1 = 0 ;
27324 int res1 = 0 ;
27325 PyObject *swig_obj[1] ;
27326
27327 if (!args) SWIG_fail;
27328 swig_obj[0] = args;
27329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27330 if (!SWIG_IsOK(res1)) {
27331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27332 }
27333 arg1 = reinterpret_cast< wxListItem * >(argp1);
27334 result = (int) ((arg1)->m_image);
27335 resultobj = SWIG_From_int(static_cast< int >(result));
27336 return resultobj;
27337 fail:
27338 return NULL;
27339 }
27340
27341
27342 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27343 PyObject *resultobj = 0;
27344 wxListItem *arg1 = (wxListItem *) 0 ;
27345 long arg2 ;
27346 void *argp1 = 0 ;
27347 int res1 = 0 ;
27348 long val2 ;
27349 int ecode2 = 0 ;
27350 PyObject *swig_obj[2] ;
27351
27352 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27354 if (!SWIG_IsOK(res1)) {
27355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27356 }
27357 arg1 = reinterpret_cast< wxListItem * >(argp1);
27358 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27359 if (!SWIG_IsOK(ecode2)) {
27360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27361 }
27362 arg2 = static_cast< long >(val2);
27363 if (arg1) (arg1)->m_data = arg2;
27364
27365 resultobj = SWIG_Py_Void();
27366 return resultobj;
27367 fail:
27368 return NULL;
27369 }
27370
27371
27372 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27373 PyObject *resultobj = 0;
27374 wxListItem *arg1 = (wxListItem *) 0 ;
27375 long result;
27376 void *argp1 = 0 ;
27377 int res1 = 0 ;
27378 PyObject *swig_obj[1] ;
27379
27380 if (!args) SWIG_fail;
27381 swig_obj[0] = args;
27382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27383 if (!SWIG_IsOK(res1)) {
27384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27385 }
27386 arg1 = reinterpret_cast< wxListItem * >(argp1);
27387 result = (long) ((arg1)->m_data);
27388 resultobj = SWIG_From_long(static_cast< long >(result));
27389 return resultobj;
27390 fail:
27391 return NULL;
27392 }
27393
27394
27395 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27396 PyObject *resultobj = 0;
27397 wxListItem *arg1 = (wxListItem *) 0 ;
27398 int arg2 ;
27399 void *argp1 = 0 ;
27400 int res1 = 0 ;
27401 int val2 ;
27402 int ecode2 = 0 ;
27403 PyObject *swig_obj[2] ;
27404
27405 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27407 if (!SWIG_IsOK(res1)) {
27408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27409 }
27410 arg1 = reinterpret_cast< wxListItem * >(argp1);
27411 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27412 if (!SWIG_IsOK(ecode2)) {
27413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27414 }
27415 arg2 = static_cast< int >(val2);
27416 if (arg1) (arg1)->m_format = arg2;
27417
27418 resultobj = SWIG_Py_Void();
27419 return resultobj;
27420 fail:
27421 return NULL;
27422 }
27423
27424
27425 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27426 PyObject *resultobj = 0;
27427 wxListItem *arg1 = (wxListItem *) 0 ;
27428 int result;
27429 void *argp1 = 0 ;
27430 int res1 = 0 ;
27431 PyObject *swig_obj[1] ;
27432
27433 if (!args) SWIG_fail;
27434 swig_obj[0] = args;
27435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27436 if (!SWIG_IsOK(res1)) {
27437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27438 }
27439 arg1 = reinterpret_cast< wxListItem * >(argp1);
27440 result = (int) ((arg1)->m_format);
27441 resultobj = SWIG_From_int(static_cast< int >(result));
27442 return resultobj;
27443 fail:
27444 return NULL;
27445 }
27446
27447
27448 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27449 PyObject *resultobj = 0;
27450 wxListItem *arg1 = (wxListItem *) 0 ;
27451 int arg2 ;
27452 void *argp1 = 0 ;
27453 int res1 = 0 ;
27454 int val2 ;
27455 int ecode2 = 0 ;
27456 PyObject *swig_obj[2] ;
27457
27458 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27460 if (!SWIG_IsOK(res1)) {
27461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27462 }
27463 arg1 = reinterpret_cast< wxListItem * >(argp1);
27464 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27465 if (!SWIG_IsOK(ecode2)) {
27466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27467 }
27468 arg2 = static_cast< int >(val2);
27469 if (arg1) (arg1)->m_width = arg2;
27470
27471 resultobj = SWIG_Py_Void();
27472 return resultobj;
27473 fail:
27474 return NULL;
27475 }
27476
27477
27478 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27479 PyObject *resultobj = 0;
27480 wxListItem *arg1 = (wxListItem *) 0 ;
27481 int result;
27482 void *argp1 = 0 ;
27483 int res1 = 0 ;
27484 PyObject *swig_obj[1] ;
27485
27486 if (!args) SWIG_fail;
27487 swig_obj[0] = args;
27488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27489 if (!SWIG_IsOK(res1)) {
27490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27491 }
27492 arg1 = reinterpret_cast< wxListItem * >(argp1);
27493 result = (int) ((arg1)->m_width);
27494 resultobj = SWIG_From_int(static_cast< int >(result));
27495 return resultobj;
27496 fail:
27497 return NULL;
27498 }
27499
27500
27501 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27502 PyObject *obj;
27503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27504 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27505 return SWIG_Py_Void();
27506 }
27507
27508 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27509 return SWIG_Python_InitShadowInstance(args);
27510 }
27511
27512 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27513 PyObject *resultobj = 0;
27514 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27515 int arg2 = (int) 0 ;
27516 wxListEvent *result = 0 ;
27517 int val1 ;
27518 int ecode1 = 0 ;
27519 int val2 ;
27520 int ecode2 = 0 ;
27521 PyObject * obj0 = 0 ;
27522 PyObject * obj1 = 0 ;
27523 char * kwnames[] = {
27524 (char *) "commandType",(char *) "id", NULL
27525 };
27526
27527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27528 if (obj0) {
27529 ecode1 = SWIG_AsVal_int(obj0, &val1);
27530 if (!SWIG_IsOK(ecode1)) {
27531 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27532 }
27533 arg1 = static_cast< wxEventType >(val1);
27534 }
27535 if (obj1) {
27536 ecode2 = SWIG_AsVal_int(obj1, &val2);
27537 if (!SWIG_IsOK(ecode2)) {
27538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27539 }
27540 arg2 = static_cast< int >(val2);
27541 }
27542 {
27543 PyThreadState* __tstate = wxPyBeginAllowThreads();
27544 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27545 wxPyEndAllowThreads(__tstate);
27546 if (PyErr_Occurred()) SWIG_fail;
27547 }
27548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27549 return resultobj;
27550 fail:
27551 return NULL;
27552 }
27553
27554
27555 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27556 PyObject *resultobj = 0;
27557 wxListEvent *arg1 = (wxListEvent *) 0 ;
27558 int arg2 ;
27559 void *argp1 = 0 ;
27560 int res1 = 0 ;
27561 int val2 ;
27562 int ecode2 = 0 ;
27563 PyObject *swig_obj[2] ;
27564
27565 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27567 if (!SWIG_IsOK(res1)) {
27568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27569 }
27570 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27571 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27572 if (!SWIG_IsOK(ecode2)) {
27573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27574 }
27575 arg2 = static_cast< int >(val2);
27576 if (arg1) (arg1)->m_code = arg2;
27577
27578 resultobj = SWIG_Py_Void();
27579 return resultobj;
27580 fail:
27581 return NULL;
27582 }
27583
27584
27585 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27586 PyObject *resultobj = 0;
27587 wxListEvent *arg1 = (wxListEvent *) 0 ;
27588 int result;
27589 void *argp1 = 0 ;
27590 int res1 = 0 ;
27591 PyObject *swig_obj[1] ;
27592
27593 if (!args) SWIG_fail;
27594 swig_obj[0] = args;
27595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27596 if (!SWIG_IsOK(res1)) {
27597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27598 }
27599 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27600 result = (int) ((arg1)->m_code);
27601 resultobj = SWIG_From_int(static_cast< int >(result));
27602 return resultobj;
27603 fail:
27604 return NULL;
27605 }
27606
27607
27608 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27609 PyObject *resultobj = 0;
27610 wxListEvent *arg1 = (wxListEvent *) 0 ;
27611 long arg2 ;
27612 void *argp1 = 0 ;
27613 int res1 = 0 ;
27614 long val2 ;
27615 int ecode2 = 0 ;
27616 PyObject *swig_obj[2] ;
27617
27618 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27620 if (!SWIG_IsOK(res1)) {
27621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27622 }
27623 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27624 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27625 if (!SWIG_IsOK(ecode2)) {
27626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27627 }
27628 arg2 = static_cast< long >(val2);
27629 if (arg1) (arg1)->m_oldItemIndex = arg2;
27630
27631 resultobj = SWIG_Py_Void();
27632 return resultobj;
27633 fail:
27634 return NULL;
27635 }
27636
27637
27638 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27639 PyObject *resultobj = 0;
27640 wxListEvent *arg1 = (wxListEvent *) 0 ;
27641 long result;
27642 void *argp1 = 0 ;
27643 int res1 = 0 ;
27644 PyObject *swig_obj[1] ;
27645
27646 if (!args) SWIG_fail;
27647 swig_obj[0] = args;
27648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27649 if (!SWIG_IsOK(res1)) {
27650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27651 }
27652 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27653 result = (long) ((arg1)->m_oldItemIndex);
27654 resultobj = SWIG_From_long(static_cast< long >(result));
27655 return resultobj;
27656 fail:
27657 return NULL;
27658 }
27659
27660
27661 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27662 PyObject *resultobj = 0;
27663 wxListEvent *arg1 = (wxListEvent *) 0 ;
27664 long arg2 ;
27665 void *argp1 = 0 ;
27666 int res1 = 0 ;
27667 long val2 ;
27668 int ecode2 = 0 ;
27669 PyObject *swig_obj[2] ;
27670
27671 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27673 if (!SWIG_IsOK(res1)) {
27674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27675 }
27676 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27677 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27678 if (!SWIG_IsOK(ecode2)) {
27679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27680 }
27681 arg2 = static_cast< long >(val2);
27682 if (arg1) (arg1)->m_itemIndex = arg2;
27683
27684 resultobj = SWIG_Py_Void();
27685 return resultobj;
27686 fail:
27687 return NULL;
27688 }
27689
27690
27691 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27692 PyObject *resultobj = 0;
27693 wxListEvent *arg1 = (wxListEvent *) 0 ;
27694 long result;
27695 void *argp1 = 0 ;
27696 int res1 = 0 ;
27697 PyObject *swig_obj[1] ;
27698
27699 if (!args) SWIG_fail;
27700 swig_obj[0] = args;
27701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27702 if (!SWIG_IsOK(res1)) {
27703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27704 }
27705 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27706 result = (long) ((arg1)->m_itemIndex);
27707 resultobj = SWIG_From_long(static_cast< long >(result));
27708 return resultobj;
27709 fail:
27710 return NULL;
27711 }
27712
27713
27714 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27715 PyObject *resultobj = 0;
27716 wxListEvent *arg1 = (wxListEvent *) 0 ;
27717 int arg2 ;
27718 void *argp1 = 0 ;
27719 int res1 = 0 ;
27720 int val2 ;
27721 int ecode2 = 0 ;
27722 PyObject *swig_obj[2] ;
27723
27724 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27726 if (!SWIG_IsOK(res1)) {
27727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27728 }
27729 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27730 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27731 if (!SWIG_IsOK(ecode2)) {
27732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27733 }
27734 arg2 = static_cast< int >(val2);
27735 if (arg1) (arg1)->m_col = arg2;
27736
27737 resultobj = SWIG_Py_Void();
27738 return resultobj;
27739 fail:
27740 return NULL;
27741 }
27742
27743
27744 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27745 PyObject *resultobj = 0;
27746 wxListEvent *arg1 = (wxListEvent *) 0 ;
27747 int result;
27748 void *argp1 = 0 ;
27749 int res1 = 0 ;
27750 PyObject *swig_obj[1] ;
27751
27752 if (!args) SWIG_fail;
27753 swig_obj[0] = args;
27754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27755 if (!SWIG_IsOK(res1)) {
27756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27757 }
27758 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27759 result = (int) ((arg1)->m_col);
27760 resultobj = SWIG_From_int(static_cast< int >(result));
27761 return resultobj;
27762 fail:
27763 return NULL;
27764 }
27765
27766
27767 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27768 PyObject *resultobj = 0;
27769 wxListEvent *arg1 = (wxListEvent *) 0 ;
27770 wxPoint *arg2 = (wxPoint *) 0 ;
27771 void *argp1 = 0 ;
27772 int res1 = 0 ;
27773 void *argp2 = 0 ;
27774 int res2 = 0 ;
27775 PyObject *swig_obj[2] ;
27776
27777 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27779 if (!SWIG_IsOK(res1)) {
27780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27781 }
27782 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27783 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27784 if (!SWIG_IsOK(res2)) {
27785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27786 }
27787 arg2 = reinterpret_cast< wxPoint * >(argp2);
27788 if (arg1) (arg1)->m_pointDrag = *arg2;
27789
27790 resultobj = SWIG_Py_Void();
27791 return resultobj;
27792 fail:
27793 return NULL;
27794 }
27795
27796
27797 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27798 PyObject *resultobj = 0;
27799 wxListEvent *arg1 = (wxListEvent *) 0 ;
27800 wxPoint *result = 0 ;
27801 void *argp1 = 0 ;
27802 int res1 = 0 ;
27803 PyObject *swig_obj[1] ;
27804
27805 if (!args) SWIG_fail;
27806 swig_obj[0] = args;
27807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27808 if (!SWIG_IsOK(res1)) {
27809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27810 }
27811 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27812 result = (wxPoint *)& ((arg1)->m_pointDrag);
27813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27814 return resultobj;
27815 fail:
27816 return NULL;
27817 }
27818
27819
27820 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27821 PyObject *resultobj = 0;
27822 wxListEvent *arg1 = (wxListEvent *) 0 ;
27823 wxListItem *result = 0 ;
27824 void *argp1 = 0 ;
27825 int res1 = 0 ;
27826 PyObject *swig_obj[1] ;
27827
27828 if (!args) SWIG_fail;
27829 swig_obj[0] = args;
27830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27831 if (!SWIG_IsOK(res1)) {
27832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27833 }
27834 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27835 result = (wxListItem *)& ((arg1)->m_item);
27836 {
27837 resultobj = wxPyMake_wxObject(result, (bool)0);
27838 }
27839 return resultobj;
27840 fail:
27841 return NULL;
27842 }
27843
27844
27845 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27846 PyObject *resultobj = 0;
27847 wxListEvent *arg1 = (wxListEvent *) 0 ;
27848 int result;
27849 void *argp1 = 0 ;
27850 int res1 = 0 ;
27851 PyObject *swig_obj[1] ;
27852
27853 if (!args) SWIG_fail;
27854 swig_obj[0] = args;
27855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27856 if (!SWIG_IsOK(res1)) {
27857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27858 }
27859 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27860 {
27861 PyThreadState* __tstate = wxPyBeginAllowThreads();
27862 result = (int)(arg1)->GetKeyCode();
27863 wxPyEndAllowThreads(__tstate);
27864 if (PyErr_Occurred()) SWIG_fail;
27865 }
27866 resultobj = SWIG_From_int(static_cast< int >(result));
27867 return resultobj;
27868 fail:
27869 return NULL;
27870 }
27871
27872
27873 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27874 PyObject *resultobj = 0;
27875 wxListEvent *arg1 = (wxListEvent *) 0 ;
27876 long result;
27877 void *argp1 = 0 ;
27878 int res1 = 0 ;
27879 PyObject *swig_obj[1] ;
27880
27881 if (!args) SWIG_fail;
27882 swig_obj[0] = args;
27883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27884 if (!SWIG_IsOK(res1)) {
27885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
27886 }
27887 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27888 {
27889 PyThreadState* __tstate = wxPyBeginAllowThreads();
27890 result = (long)(arg1)->GetIndex();
27891 wxPyEndAllowThreads(__tstate);
27892 if (PyErr_Occurred()) SWIG_fail;
27893 }
27894 resultobj = SWIG_From_long(static_cast< long >(result));
27895 return resultobj;
27896 fail:
27897 return NULL;
27898 }
27899
27900
27901 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27902 PyObject *resultobj = 0;
27903 wxListEvent *arg1 = (wxListEvent *) 0 ;
27904 int result;
27905 void *argp1 = 0 ;
27906 int res1 = 0 ;
27907 PyObject *swig_obj[1] ;
27908
27909 if (!args) SWIG_fail;
27910 swig_obj[0] = args;
27911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27912 if (!SWIG_IsOK(res1)) {
27913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
27914 }
27915 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27916 {
27917 PyThreadState* __tstate = wxPyBeginAllowThreads();
27918 result = (int)(arg1)->GetColumn();
27919 wxPyEndAllowThreads(__tstate);
27920 if (PyErr_Occurred()) SWIG_fail;
27921 }
27922 resultobj = SWIG_From_int(static_cast< int >(result));
27923 return resultobj;
27924 fail:
27925 return NULL;
27926 }
27927
27928
27929 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27930 PyObject *resultobj = 0;
27931 wxListEvent *arg1 = (wxListEvent *) 0 ;
27932 wxPoint result;
27933 void *argp1 = 0 ;
27934 int res1 = 0 ;
27935 PyObject *swig_obj[1] ;
27936
27937 if (!args) SWIG_fail;
27938 swig_obj[0] = args;
27939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27940 if (!SWIG_IsOK(res1)) {
27941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
27942 }
27943 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27944 {
27945 PyThreadState* __tstate = wxPyBeginAllowThreads();
27946 result = (arg1)->GetPoint();
27947 wxPyEndAllowThreads(__tstate);
27948 if (PyErr_Occurred()) SWIG_fail;
27949 }
27950 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
27951 return resultobj;
27952 fail:
27953 return NULL;
27954 }
27955
27956
27957 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27958 PyObject *resultobj = 0;
27959 wxListEvent *arg1 = (wxListEvent *) 0 ;
27960 wxString *result = 0 ;
27961 void *argp1 = 0 ;
27962 int res1 = 0 ;
27963 PyObject *swig_obj[1] ;
27964
27965 if (!args) SWIG_fail;
27966 swig_obj[0] = args;
27967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27968 if (!SWIG_IsOK(res1)) {
27969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
27970 }
27971 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27972 {
27973 PyThreadState* __tstate = wxPyBeginAllowThreads();
27974 {
27975 wxString const &_result_ref = (arg1)->GetLabel();
27976 result = (wxString *) &_result_ref;
27977 }
27978 wxPyEndAllowThreads(__tstate);
27979 if (PyErr_Occurred()) SWIG_fail;
27980 }
27981 {
27982 #if wxUSE_UNICODE
27983 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27984 #else
27985 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27986 #endif
27987 }
27988 return resultobj;
27989 fail:
27990 return NULL;
27991 }
27992
27993
27994 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27995 PyObject *resultobj = 0;
27996 wxListEvent *arg1 = (wxListEvent *) 0 ;
27997 wxString *result = 0 ;
27998 void *argp1 = 0 ;
27999 int res1 = 0 ;
28000 PyObject *swig_obj[1] ;
28001
28002 if (!args) SWIG_fail;
28003 swig_obj[0] = args;
28004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28005 if (!SWIG_IsOK(res1)) {
28006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28007 }
28008 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28009 {
28010 PyThreadState* __tstate = wxPyBeginAllowThreads();
28011 {
28012 wxString const &_result_ref = (arg1)->GetText();
28013 result = (wxString *) &_result_ref;
28014 }
28015 wxPyEndAllowThreads(__tstate);
28016 if (PyErr_Occurred()) SWIG_fail;
28017 }
28018 {
28019 #if wxUSE_UNICODE
28020 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28021 #else
28022 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28023 #endif
28024 }
28025 return resultobj;
28026 fail:
28027 return NULL;
28028 }
28029
28030
28031 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28032 PyObject *resultobj = 0;
28033 wxListEvent *arg1 = (wxListEvent *) 0 ;
28034 int result;
28035 void *argp1 = 0 ;
28036 int res1 = 0 ;
28037 PyObject *swig_obj[1] ;
28038
28039 if (!args) SWIG_fail;
28040 swig_obj[0] = args;
28041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28042 if (!SWIG_IsOK(res1)) {
28043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28044 }
28045 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28046 {
28047 PyThreadState* __tstate = wxPyBeginAllowThreads();
28048 result = (int)(arg1)->GetImage();
28049 wxPyEndAllowThreads(__tstate);
28050 if (PyErr_Occurred()) SWIG_fail;
28051 }
28052 resultobj = SWIG_From_int(static_cast< int >(result));
28053 return resultobj;
28054 fail:
28055 return NULL;
28056 }
28057
28058
28059 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28060 PyObject *resultobj = 0;
28061 wxListEvent *arg1 = (wxListEvent *) 0 ;
28062 long result;
28063 void *argp1 = 0 ;
28064 int res1 = 0 ;
28065 PyObject *swig_obj[1] ;
28066
28067 if (!args) SWIG_fail;
28068 swig_obj[0] = args;
28069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28070 if (!SWIG_IsOK(res1)) {
28071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28072 }
28073 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28074 {
28075 PyThreadState* __tstate = wxPyBeginAllowThreads();
28076 result = (long)(arg1)->GetData();
28077 wxPyEndAllowThreads(__tstate);
28078 if (PyErr_Occurred()) SWIG_fail;
28079 }
28080 resultobj = SWIG_From_long(static_cast< long >(result));
28081 return resultobj;
28082 fail:
28083 return NULL;
28084 }
28085
28086
28087 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28088 PyObject *resultobj = 0;
28089 wxListEvent *arg1 = (wxListEvent *) 0 ;
28090 long result;
28091 void *argp1 = 0 ;
28092 int res1 = 0 ;
28093 PyObject *swig_obj[1] ;
28094
28095 if (!args) SWIG_fail;
28096 swig_obj[0] = args;
28097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28098 if (!SWIG_IsOK(res1)) {
28099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28100 }
28101 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28102 {
28103 PyThreadState* __tstate = wxPyBeginAllowThreads();
28104 result = (long)(arg1)->GetMask();
28105 wxPyEndAllowThreads(__tstate);
28106 if (PyErr_Occurred()) SWIG_fail;
28107 }
28108 resultobj = SWIG_From_long(static_cast< long >(result));
28109 return resultobj;
28110 fail:
28111 return NULL;
28112 }
28113
28114
28115 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28116 PyObject *resultobj = 0;
28117 wxListEvent *arg1 = (wxListEvent *) 0 ;
28118 wxListItem *result = 0 ;
28119 void *argp1 = 0 ;
28120 int res1 = 0 ;
28121 PyObject *swig_obj[1] ;
28122
28123 if (!args) SWIG_fail;
28124 swig_obj[0] = args;
28125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28126 if (!SWIG_IsOK(res1)) {
28127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28128 }
28129 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28130 {
28131 PyThreadState* __tstate = wxPyBeginAllowThreads();
28132 {
28133 wxListItem const &_result_ref = (arg1)->GetItem();
28134 result = (wxListItem *) &_result_ref;
28135 }
28136 wxPyEndAllowThreads(__tstate);
28137 if (PyErr_Occurred()) SWIG_fail;
28138 }
28139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28140 return resultobj;
28141 fail:
28142 return NULL;
28143 }
28144
28145
28146 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28147 PyObject *resultobj = 0;
28148 wxListEvent *arg1 = (wxListEvent *) 0 ;
28149 long result;
28150 void *argp1 = 0 ;
28151 int res1 = 0 ;
28152 PyObject *swig_obj[1] ;
28153
28154 if (!args) SWIG_fail;
28155 swig_obj[0] = args;
28156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28157 if (!SWIG_IsOK(res1)) {
28158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28159 }
28160 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28161 {
28162 PyThreadState* __tstate = wxPyBeginAllowThreads();
28163 result = (long)(arg1)->GetCacheFrom();
28164 wxPyEndAllowThreads(__tstate);
28165 if (PyErr_Occurred()) SWIG_fail;
28166 }
28167 resultobj = SWIG_From_long(static_cast< long >(result));
28168 return resultobj;
28169 fail:
28170 return NULL;
28171 }
28172
28173
28174 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28175 PyObject *resultobj = 0;
28176 wxListEvent *arg1 = (wxListEvent *) 0 ;
28177 long result;
28178 void *argp1 = 0 ;
28179 int res1 = 0 ;
28180 PyObject *swig_obj[1] ;
28181
28182 if (!args) SWIG_fail;
28183 swig_obj[0] = args;
28184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28185 if (!SWIG_IsOK(res1)) {
28186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28187 }
28188 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28189 {
28190 PyThreadState* __tstate = wxPyBeginAllowThreads();
28191 result = (long)(arg1)->GetCacheTo();
28192 wxPyEndAllowThreads(__tstate);
28193 if (PyErr_Occurred()) SWIG_fail;
28194 }
28195 resultobj = SWIG_From_long(static_cast< long >(result));
28196 return resultobj;
28197 fail:
28198 return NULL;
28199 }
28200
28201
28202 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28203 PyObject *resultobj = 0;
28204 wxListEvent *arg1 = (wxListEvent *) 0 ;
28205 bool result;
28206 void *argp1 = 0 ;
28207 int res1 = 0 ;
28208 PyObject *swig_obj[1] ;
28209
28210 if (!args) SWIG_fail;
28211 swig_obj[0] = args;
28212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28213 if (!SWIG_IsOK(res1)) {
28214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28215 }
28216 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28217 {
28218 PyThreadState* __tstate = wxPyBeginAllowThreads();
28219 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28220 wxPyEndAllowThreads(__tstate);
28221 if (PyErr_Occurred()) SWIG_fail;
28222 }
28223 {
28224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28225 }
28226 return resultobj;
28227 fail:
28228 return NULL;
28229 }
28230
28231
28232 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28233 PyObject *resultobj = 0;
28234 wxListEvent *arg1 = (wxListEvent *) 0 ;
28235 bool arg2 ;
28236 void *argp1 = 0 ;
28237 int res1 = 0 ;
28238 bool val2 ;
28239 int ecode2 = 0 ;
28240 PyObject * obj0 = 0 ;
28241 PyObject * obj1 = 0 ;
28242 char * kwnames[] = {
28243 (char *) "self",(char *) "editCancelled", NULL
28244 };
28245
28246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28248 if (!SWIG_IsOK(res1)) {
28249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28250 }
28251 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28252 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28253 if (!SWIG_IsOK(ecode2)) {
28254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28255 }
28256 arg2 = static_cast< bool >(val2);
28257 {
28258 PyThreadState* __tstate = wxPyBeginAllowThreads();
28259 (arg1)->SetEditCanceled(arg2);
28260 wxPyEndAllowThreads(__tstate);
28261 if (PyErr_Occurred()) SWIG_fail;
28262 }
28263 resultobj = SWIG_Py_Void();
28264 return resultobj;
28265 fail:
28266 return NULL;
28267 }
28268
28269
28270 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28271 PyObject *obj;
28272 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28273 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28274 return SWIG_Py_Void();
28275 }
28276
28277 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28278 return SWIG_Python_InitShadowInstance(args);
28279 }
28280
28281 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28282 PyObject *resultobj = 0;
28283 wxWindow *arg1 = (wxWindow *) 0 ;
28284 int arg2 = (int) -1 ;
28285 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28286 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28287 wxSize const &arg4_defvalue = wxDefaultSize ;
28288 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28289 long arg5 = (long) wxLC_ICON ;
28290 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28291 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28292 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28293 wxString *arg7 = (wxString *) &arg7_defvalue ;
28294 wxPyListCtrl *result = 0 ;
28295 void *argp1 = 0 ;
28296 int res1 = 0 ;
28297 int val2 ;
28298 int ecode2 = 0 ;
28299 wxPoint temp3 ;
28300 wxSize temp4 ;
28301 long val5 ;
28302 int ecode5 = 0 ;
28303 void *argp6 = 0 ;
28304 int res6 = 0 ;
28305 bool temp7 = false ;
28306 PyObject * obj0 = 0 ;
28307 PyObject * obj1 = 0 ;
28308 PyObject * obj2 = 0 ;
28309 PyObject * obj3 = 0 ;
28310 PyObject * obj4 = 0 ;
28311 PyObject * obj5 = 0 ;
28312 PyObject * obj6 = 0 ;
28313 char * kwnames[] = {
28314 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28315 };
28316
28317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28319 if (!SWIG_IsOK(res1)) {
28320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28321 }
28322 arg1 = reinterpret_cast< wxWindow * >(argp1);
28323 if (obj1) {
28324 ecode2 = SWIG_AsVal_int(obj1, &val2);
28325 if (!SWIG_IsOK(ecode2)) {
28326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28327 }
28328 arg2 = static_cast< int >(val2);
28329 }
28330 if (obj2) {
28331 {
28332 arg3 = &temp3;
28333 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28334 }
28335 }
28336 if (obj3) {
28337 {
28338 arg4 = &temp4;
28339 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28340 }
28341 }
28342 if (obj4) {
28343 ecode5 = SWIG_AsVal_long(obj4, &val5);
28344 if (!SWIG_IsOK(ecode5)) {
28345 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28346 }
28347 arg5 = static_cast< long >(val5);
28348 }
28349 if (obj5) {
28350 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28351 if (!SWIG_IsOK(res6)) {
28352 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28353 }
28354 if (!argp6) {
28355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28356 }
28357 arg6 = reinterpret_cast< wxValidator * >(argp6);
28358 }
28359 if (obj6) {
28360 {
28361 arg7 = wxString_in_helper(obj6);
28362 if (arg7 == NULL) SWIG_fail;
28363 temp7 = true;
28364 }
28365 }
28366 {
28367 if (!wxPyCheckForApp()) SWIG_fail;
28368 PyThreadState* __tstate = wxPyBeginAllowThreads();
28369 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28370 wxPyEndAllowThreads(__tstate);
28371 if (PyErr_Occurred()) SWIG_fail;
28372 }
28373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28374 {
28375 if (temp7)
28376 delete arg7;
28377 }
28378 return resultobj;
28379 fail:
28380 {
28381 if (temp7)
28382 delete arg7;
28383 }
28384 return NULL;
28385 }
28386
28387
28388 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28389 PyObject *resultobj = 0;
28390 wxPyListCtrl *result = 0 ;
28391
28392 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28393 {
28394 if (!wxPyCheckForApp()) SWIG_fail;
28395 PyThreadState* __tstate = wxPyBeginAllowThreads();
28396 result = (wxPyListCtrl *)new wxPyListCtrl();
28397 wxPyEndAllowThreads(__tstate);
28398 if (PyErr_Occurred()) SWIG_fail;
28399 }
28400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28401 return resultobj;
28402 fail:
28403 return NULL;
28404 }
28405
28406
28407 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28408 PyObject *resultobj = 0;
28409 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28410 wxWindow *arg2 = (wxWindow *) 0 ;
28411 int arg3 = (int) -1 ;
28412 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28413 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28414 wxSize const &arg5_defvalue = wxDefaultSize ;
28415 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28416 long arg6 = (long) wxLC_ICON ;
28417 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28418 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28419 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28420 wxString *arg8 = (wxString *) &arg8_defvalue ;
28421 bool result;
28422 void *argp1 = 0 ;
28423 int res1 = 0 ;
28424 void *argp2 = 0 ;
28425 int res2 = 0 ;
28426 int val3 ;
28427 int ecode3 = 0 ;
28428 wxPoint temp4 ;
28429 wxSize temp5 ;
28430 long val6 ;
28431 int ecode6 = 0 ;
28432 void *argp7 = 0 ;
28433 int res7 = 0 ;
28434 bool temp8 = false ;
28435 PyObject * obj0 = 0 ;
28436 PyObject * obj1 = 0 ;
28437 PyObject * obj2 = 0 ;
28438 PyObject * obj3 = 0 ;
28439 PyObject * obj4 = 0 ;
28440 PyObject * obj5 = 0 ;
28441 PyObject * obj6 = 0 ;
28442 PyObject * obj7 = 0 ;
28443 char * kwnames[] = {
28444 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28445 };
28446
28447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28449 if (!SWIG_IsOK(res1)) {
28450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28451 }
28452 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28453 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28454 if (!SWIG_IsOK(res2)) {
28455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28456 }
28457 arg2 = reinterpret_cast< wxWindow * >(argp2);
28458 if (obj2) {
28459 ecode3 = SWIG_AsVal_int(obj2, &val3);
28460 if (!SWIG_IsOK(ecode3)) {
28461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28462 }
28463 arg3 = static_cast< int >(val3);
28464 }
28465 if (obj3) {
28466 {
28467 arg4 = &temp4;
28468 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28469 }
28470 }
28471 if (obj4) {
28472 {
28473 arg5 = &temp5;
28474 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28475 }
28476 }
28477 if (obj5) {
28478 ecode6 = SWIG_AsVal_long(obj5, &val6);
28479 if (!SWIG_IsOK(ecode6)) {
28480 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28481 }
28482 arg6 = static_cast< long >(val6);
28483 }
28484 if (obj6) {
28485 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28486 if (!SWIG_IsOK(res7)) {
28487 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28488 }
28489 if (!argp7) {
28490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28491 }
28492 arg7 = reinterpret_cast< wxValidator * >(argp7);
28493 }
28494 if (obj7) {
28495 {
28496 arg8 = wxString_in_helper(obj7);
28497 if (arg8 == NULL) SWIG_fail;
28498 temp8 = true;
28499 }
28500 }
28501 {
28502 PyThreadState* __tstate = wxPyBeginAllowThreads();
28503 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28504 wxPyEndAllowThreads(__tstate);
28505 if (PyErr_Occurred()) SWIG_fail;
28506 }
28507 {
28508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28509 }
28510 {
28511 if (temp8)
28512 delete arg8;
28513 }
28514 return resultobj;
28515 fail:
28516 {
28517 if (temp8)
28518 delete arg8;
28519 }
28520 return NULL;
28521 }
28522
28523
28524 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28525 PyObject *resultobj = 0;
28526 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28527 PyObject *arg2 = (PyObject *) 0 ;
28528 PyObject *arg3 = (PyObject *) 0 ;
28529 void *argp1 = 0 ;
28530 int res1 = 0 ;
28531 PyObject * obj0 = 0 ;
28532 PyObject * obj1 = 0 ;
28533 PyObject * obj2 = 0 ;
28534 char * kwnames[] = {
28535 (char *) "self",(char *) "self",(char *) "_class", NULL
28536 };
28537
28538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28540 if (!SWIG_IsOK(res1)) {
28541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28542 }
28543 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28544 arg2 = obj1;
28545 arg3 = obj2;
28546 {
28547 PyThreadState* __tstate = wxPyBeginAllowThreads();
28548 (arg1)->_setCallbackInfo(arg2,arg3);
28549 wxPyEndAllowThreads(__tstate);
28550 if (PyErr_Occurred()) SWIG_fail;
28551 }
28552 resultobj = SWIG_Py_Void();
28553 return resultobj;
28554 fail:
28555 return NULL;
28556 }
28557
28558
28559 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28560 PyObject *resultobj = 0;
28561 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28562 int arg2 ;
28563 wxListItem *result = 0 ;
28564 void *argp1 = 0 ;
28565 int res1 = 0 ;
28566 int val2 ;
28567 int ecode2 = 0 ;
28568 PyObject * obj0 = 0 ;
28569 PyObject * obj1 = 0 ;
28570 char * kwnames[] = {
28571 (char *) "self",(char *) "col", NULL
28572 };
28573
28574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28576 if (!SWIG_IsOK(res1)) {
28577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28578 }
28579 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28580 ecode2 = SWIG_AsVal_int(obj1, &val2);
28581 if (!SWIG_IsOK(ecode2)) {
28582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28583 }
28584 arg2 = static_cast< int >(val2);
28585 {
28586 PyThreadState* __tstate = wxPyBeginAllowThreads();
28587 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28588 wxPyEndAllowThreads(__tstate);
28589 if (PyErr_Occurred()) SWIG_fail;
28590 }
28591 {
28592 resultobj = wxPyMake_wxObject(result, (bool)0);
28593 }
28594 return resultobj;
28595 fail:
28596 return NULL;
28597 }
28598
28599
28600 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28601 PyObject *resultobj = 0;
28602 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28603 int arg2 ;
28604 wxListItem *arg3 = 0 ;
28605 bool result;
28606 void *argp1 = 0 ;
28607 int res1 = 0 ;
28608 int val2 ;
28609 int ecode2 = 0 ;
28610 void *argp3 = 0 ;
28611 int res3 = 0 ;
28612 PyObject * obj0 = 0 ;
28613 PyObject * obj1 = 0 ;
28614 PyObject * obj2 = 0 ;
28615 char * kwnames[] = {
28616 (char *) "self",(char *) "col",(char *) "item", NULL
28617 };
28618
28619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28621 if (!SWIG_IsOK(res1)) {
28622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28623 }
28624 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28625 ecode2 = SWIG_AsVal_int(obj1, &val2);
28626 if (!SWIG_IsOK(ecode2)) {
28627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28628 }
28629 arg2 = static_cast< int >(val2);
28630 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28631 if (!SWIG_IsOK(res3)) {
28632 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28633 }
28634 if (!argp3) {
28635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28636 }
28637 arg3 = reinterpret_cast< wxListItem * >(argp3);
28638 {
28639 PyThreadState* __tstate = wxPyBeginAllowThreads();
28640 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28641 wxPyEndAllowThreads(__tstate);
28642 if (PyErr_Occurred()) SWIG_fail;
28643 }
28644 {
28645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28646 }
28647 return resultobj;
28648 fail:
28649 return NULL;
28650 }
28651
28652
28653 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28654 PyObject *resultobj = 0;
28655 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28656 int arg2 ;
28657 int result;
28658 void *argp1 = 0 ;
28659 int res1 = 0 ;
28660 int val2 ;
28661 int ecode2 = 0 ;
28662 PyObject * obj0 = 0 ;
28663 PyObject * obj1 = 0 ;
28664 char * kwnames[] = {
28665 (char *) "self",(char *) "col", NULL
28666 };
28667
28668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28670 if (!SWIG_IsOK(res1)) {
28671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28672 }
28673 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28674 ecode2 = SWIG_AsVal_int(obj1, &val2);
28675 if (!SWIG_IsOK(ecode2)) {
28676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28677 }
28678 arg2 = static_cast< int >(val2);
28679 {
28680 PyThreadState* __tstate = wxPyBeginAllowThreads();
28681 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28682 wxPyEndAllowThreads(__tstate);
28683 if (PyErr_Occurred()) SWIG_fail;
28684 }
28685 resultobj = SWIG_From_int(static_cast< int >(result));
28686 return resultobj;
28687 fail:
28688 return NULL;
28689 }
28690
28691
28692 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28693 PyObject *resultobj = 0;
28694 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28695 int arg2 ;
28696 int arg3 ;
28697 bool result;
28698 void *argp1 = 0 ;
28699 int res1 = 0 ;
28700 int val2 ;
28701 int ecode2 = 0 ;
28702 int val3 ;
28703 int ecode3 = 0 ;
28704 PyObject * obj0 = 0 ;
28705 PyObject * obj1 = 0 ;
28706 PyObject * obj2 = 0 ;
28707 char * kwnames[] = {
28708 (char *) "self",(char *) "col",(char *) "width", NULL
28709 };
28710
28711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28713 if (!SWIG_IsOK(res1)) {
28714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28715 }
28716 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28717 ecode2 = SWIG_AsVal_int(obj1, &val2);
28718 if (!SWIG_IsOK(ecode2)) {
28719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28720 }
28721 arg2 = static_cast< int >(val2);
28722 ecode3 = SWIG_AsVal_int(obj2, &val3);
28723 if (!SWIG_IsOK(ecode3)) {
28724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28725 }
28726 arg3 = static_cast< int >(val3);
28727 {
28728 PyThreadState* __tstate = wxPyBeginAllowThreads();
28729 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28730 wxPyEndAllowThreads(__tstate);
28731 if (PyErr_Occurred()) SWIG_fail;
28732 }
28733 {
28734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28735 }
28736 return resultobj;
28737 fail:
28738 return NULL;
28739 }
28740
28741
28742 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28743 PyObject *resultobj = 0;
28744 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28745 int result;
28746 void *argp1 = 0 ;
28747 int res1 = 0 ;
28748 PyObject *swig_obj[1] ;
28749
28750 if (!args) SWIG_fail;
28751 swig_obj[0] = args;
28752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28753 if (!SWIG_IsOK(res1)) {
28754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28755 }
28756 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28757 {
28758 PyThreadState* __tstate = wxPyBeginAllowThreads();
28759 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28760 wxPyEndAllowThreads(__tstate);
28761 if (PyErr_Occurred()) SWIG_fail;
28762 }
28763 resultobj = SWIG_From_int(static_cast< int >(result));
28764 return resultobj;
28765 fail:
28766 return NULL;
28767 }
28768
28769
28770 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28771 PyObject *resultobj = 0;
28772 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28773 wxRect result;
28774 void *argp1 = 0 ;
28775 int res1 = 0 ;
28776 PyObject *swig_obj[1] ;
28777
28778 if (!args) SWIG_fail;
28779 swig_obj[0] = args;
28780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28781 if (!SWIG_IsOK(res1)) {
28782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28783 }
28784 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28785 {
28786 PyThreadState* __tstate = wxPyBeginAllowThreads();
28787 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28788 wxPyEndAllowThreads(__tstate);
28789 if (PyErr_Occurred()) SWIG_fail;
28790 }
28791 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28792 return resultobj;
28793 fail:
28794 return NULL;
28795 }
28796
28797
28798 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28799 PyObject *resultobj = 0;
28800 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28801 wxTextCtrl *result = 0 ;
28802 void *argp1 = 0 ;
28803 int res1 = 0 ;
28804 PyObject *swig_obj[1] ;
28805
28806 if (!args) SWIG_fail;
28807 swig_obj[0] = args;
28808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28809 if (!SWIG_IsOK(res1)) {
28810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28811 }
28812 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28813 {
28814 PyThreadState* __tstate = wxPyBeginAllowThreads();
28815 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28816 wxPyEndAllowThreads(__tstate);
28817 if (PyErr_Occurred()) SWIG_fail;
28818 }
28819 {
28820 resultobj = wxPyMake_wxObject(result, 0);
28821 }
28822 return resultobj;
28823 fail:
28824 return NULL;
28825 }
28826
28827
28828 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28829 PyObject *resultobj = 0;
28830 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28831 long arg2 ;
28832 int arg3 = (int) 0 ;
28833 wxListItem *result = 0 ;
28834 void *argp1 = 0 ;
28835 int res1 = 0 ;
28836 long val2 ;
28837 int ecode2 = 0 ;
28838 int val3 ;
28839 int ecode3 = 0 ;
28840 PyObject * obj0 = 0 ;
28841 PyObject * obj1 = 0 ;
28842 PyObject * obj2 = 0 ;
28843 char * kwnames[] = {
28844 (char *) "self",(char *) "itemId",(char *) "col", NULL
28845 };
28846
28847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28849 if (!SWIG_IsOK(res1)) {
28850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28851 }
28852 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28853 ecode2 = SWIG_AsVal_long(obj1, &val2);
28854 if (!SWIG_IsOK(ecode2)) {
28855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28856 }
28857 arg2 = static_cast< long >(val2);
28858 if (obj2) {
28859 ecode3 = SWIG_AsVal_int(obj2, &val3);
28860 if (!SWIG_IsOK(ecode3)) {
28861 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28862 }
28863 arg3 = static_cast< int >(val3);
28864 }
28865 {
28866 PyThreadState* __tstate = wxPyBeginAllowThreads();
28867 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28868 wxPyEndAllowThreads(__tstate);
28869 if (PyErr_Occurred()) SWIG_fail;
28870 }
28871 {
28872 resultobj = wxPyMake_wxObject(result, (bool)0);
28873 }
28874 return resultobj;
28875 fail:
28876 return NULL;
28877 }
28878
28879
28880 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28881 PyObject *resultobj = 0;
28882 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28883 wxListItem *arg2 = 0 ;
28884 bool result;
28885 void *argp1 = 0 ;
28886 int res1 = 0 ;
28887 void *argp2 = 0 ;
28888 int res2 = 0 ;
28889 PyObject * obj0 = 0 ;
28890 PyObject * obj1 = 0 ;
28891 char * kwnames[] = {
28892 (char *) "self",(char *) "info", NULL
28893 };
28894
28895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
28896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28897 if (!SWIG_IsOK(res1)) {
28898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28899 }
28900 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28901 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
28902 if (!SWIG_IsOK(res2)) {
28903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28904 }
28905 if (!argp2) {
28906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28907 }
28908 arg2 = reinterpret_cast< wxListItem * >(argp2);
28909 {
28910 PyThreadState* __tstate = wxPyBeginAllowThreads();
28911 result = (bool)(arg1)->SetItem(*arg2);
28912 wxPyEndAllowThreads(__tstate);
28913 if (PyErr_Occurred()) SWIG_fail;
28914 }
28915 {
28916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28917 }
28918 return resultobj;
28919 fail:
28920 return NULL;
28921 }
28922
28923
28924 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28925 PyObject *resultobj = 0;
28926 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28927 long arg2 ;
28928 int arg3 ;
28929 wxString *arg4 = 0 ;
28930 int arg5 = (int) -1 ;
28931 long result;
28932 void *argp1 = 0 ;
28933 int res1 = 0 ;
28934 long val2 ;
28935 int ecode2 = 0 ;
28936 int val3 ;
28937 int ecode3 = 0 ;
28938 bool temp4 = false ;
28939 int val5 ;
28940 int ecode5 = 0 ;
28941 PyObject * obj0 = 0 ;
28942 PyObject * obj1 = 0 ;
28943 PyObject * obj2 = 0 ;
28944 PyObject * obj3 = 0 ;
28945 PyObject * obj4 = 0 ;
28946 char * kwnames[] = {
28947 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
28948 };
28949
28950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28952 if (!SWIG_IsOK(res1)) {
28953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28954 }
28955 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28956 ecode2 = SWIG_AsVal_long(obj1, &val2);
28957 if (!SWIG_IsOK(ecode2)) {
28958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
28959 }
28960 arg2 = static_cast< long >(val2);
28961 ecode3 = SWIG_AsVal_int(obj2, &val3);
28962 if (!SWIG_IsOK(ecode3)) {
28963 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
28964 }
28965 arg3 = static_cast< int >(val3);
28966 {
28967 arg4 = wxString_in_helper(obj3);
28968 if (arg4 == NULL) SWIG_fail;
28969 temp4 = true;
28970 }
28971 if (obj4) {
28972 ecode5 = SWIG_AsVal_int(obj4, &val5);
28973 if (!SWIG_IsOK(ecode5)) {
28974 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
28975 }
28976 arg5 = static_cast< int >(val5);
28977 }
28978 {
28979 PyThreadState* __tstate = wxPyBeginAllowThreads();
28980 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
28981 wxPyEndAllowThreads(__tstate);
28982 if (PyErr_Occurred()) SWIG_fail;
28983 }
28984 resultobj = SWIG_From_long(static_cast< long >(result));
28985 {
28986 if (temp4)
28987 delete arg4;
28988 }
28989 return resultobj;
28990 fail:
28991 {
28992 if (temp4)
28993 delete arg4;
28994 }
28995 return NULL;
28996 }
28997
28998
28999 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29000 PyObject *resultobj = 0;
29001 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29002 long arg2 ;
29003 long arg3 ;
29004 int result;
29005 void *argp1 = 0 ;
29006 int res1 = 0 ;
29007 long val2 ;
29008 int ecode2 = 0 ;
29009 long val3 ;
29010 int ecode3 = 0 ;
29011 PyObject * obj0 = 0 ;
29012 PyObject * obj1 = 0 ;
29013 PyObject * obj2 = 0 ;
29014 char * kwnames[] = {
29015 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29016 };
29017
29018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29020 if (!SWIG_IsOK(res1)) {
29021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29022 }
29023 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29024 ecode2 = SWIG_AsVal_long(obj1, &val2);
29025 if (!SWIG_IsOK(ecode2)) {
29026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29027 }
29028 arg2 = static_cast< long >(val2);
29029 ecode3 = SWIG_AsVal_long(obj2, &val3);
29030 if (!SWIG_IsOK(ecode3)) {
29031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29032 }
29033 arg3 = static_cast< long >(val3);
29034 {
29035 PyThreadState* __tstate = wxPyBeginAllowThreads();
29036 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29037 wxPyEndAllowThreads(__tstate);
29038 if (PyErr_Occurred()) SWIG_fail;
29039 }
29040 resultobj = SWIG_From_int(static_cast< int >(result));
29041 return resultobj;
29042 fail:
29043 return NULL;
29044 }
29045
29046
29047 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29048 PyObject *resultobj = 0;
29049 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29050 long arg2 ;
29051 long arg3 ;
29052 long arg4 ;
29053 bool result;
29054 void *argp1 = 0 ;
29055 int res1 = 0 ;
29056 long val2 ;
29057 int ecode2 = 0 ;
29058 long val3 ;
29059 int ecode3 = 0 ;
29060 long val4 ;
29061 int ecode4 = 0 ;
29062 PyObject * obj0 = 0 ;
29063 PyObject * obj1 = 0 ;
29064 PyObject * obj2 = 0 ;
29065 PyObject * obj3 = 0 ;
29066 char * kwnames[] = {
29067 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29068 };
29069
29070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29072 if (!SWIG_IsOK(res1)) {
29073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29074 }
29075 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29076 ecode2 = SWIG_AsVal_long(obj1, &val2);
29077 if (!SWIG_IsOK(ecode2)) {
29078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29079 }
29080 arg2 = static_cast< long >(val2);
29081 ecode3 = SWIG_AsVal_long(obj2, &val3);
29082 if (!SWIG_IsOK(ecode3)) {
29083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29084 }
29085 arg3 = static_cast< long >(val3);
29086 ecode4 = SWIG_AsVal_long(obj3, &val4);
29087 if (!SWIG_IsOK(ecode4)) {
29088 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29089 }
29090 arg4 = static_cast< long >(val4);
29091 {
29092 PyThreadState* __tstate = wxPyBeginAllowThreads();
29093 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29094 wxPyEndAllowThreads(__tstate);
29095 if (PyErr_Occurred()) SWIG_fail;
29096 }
29097 {
29098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29099 }
29100 return resultobj;
29101 fail:
29102 return NULL;
29103 }
29104
29105
29106 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29107 PyObject *resultobj = 0;
29108 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29109 long arg2 ;
29110 int arg3 ;
29111 int arg4 = (int) -1 ;
29112 bool result;
29113 void *argp1 = 0 ;
29114 int res1 = 0 ;
29115 long val2 ;
29116 int ecode2 = 0 ;
29117 int val3 ;
29118 int ecode3 = 0 ;
29119 int val4 ;
29120 int ecode4 = 0 ;
29121 PyObject * obj0 = 0 ;
29122 PyObject * obj1 = 0 ;
29123 PyObject * obj2 = 0 ;
29124 PyObject * obj3 = 0 ;
29125 char * kwnames[] = {
29126 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29127 };
29128
29129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29131 if (!SWIG_IsOK(res1)) {
29132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29133 }
29134 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29135 ecode2 = SWIG_AsVal_long(obj1, &val2);
29136 if (!SWIG_IsOK(ecode2)) {
29137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29138 }
29139 arg2 = static_cast< long >(val2);
29140 ecode3 = SWIG_AsVal_int(obj2, &val3);
29141 if (!SWIG_IsOK(ecode3)) {
29142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29143 }
29144 arg3 = static_cast< int >(val3);
29145 if (obj3) {
29146 ecode4 = SWIG_AsVal_int(obj3, &val4);
29147 if (!SWIG_IsOK(ecode4)) {
29148 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29149 }
29150 arg4 = static_cast< int >(val4);
29151 }
29152 {
29153 PyThreadState* __tstate = wxPyBeginAllowThreads();
29154 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29155 wxPyEndAllowThreads(__tstate);
29156 if (PyErr_Occurred()) SWIG_fail;
29157 }
29158 {
29159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29160 }
29161 return resultobj;
29162 fail:
29163 return NULL;
29164 }
29165
29166
29167 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29168 PyObject *resultobj = 0;
29169 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29170 long arg2 ;
29171 long arg3 ;
29172 int arg4 ;
29173 bool result;
29174 void *argp1 = 0 ;
29175 int res1 = 0 ;
29176 long val2 ;
29177 int ecode2 = 0 ;
29178 long val3 ;
29179 int ecode3 = 0 ;
29180 int val4 ;
29181 int ecode4 = 0 ;
29182 PyObject * obj0 = 0 ;
29183 PyObject * obj1 = 0 ;
29184 PyObject * obj2 = 0 ;
29185 PyObject * obj3 = 0 ;
29186 char * kwnames[] = {
29187 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29188 };
29189
29190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29192 if (!SWIG_IsOK(res1)) {
29193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29194 }
29195 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29196 ecode2 = SWIG_AsVal_long(obj1, &val2);
29197 if (!SWIG_IsOK(ecode2)) {
29198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29199 }
29200 arg2 = static_cast< long >(val2);
29201 ecode3 = SWIG_AsVal_long(obj2, &val3);
29202 if (!SWIG_IsOK(ecode3)) {
29203 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29204 }
29205 arg3 = static_cast< long >(val3);
29206 ecode4 = SWIG_AsVal_int(obj3, &val4);
29207 if (!SWIG_IsOK(ecode4)) {
29208 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29209 }
29210 arg4 = static_cast< int >(val4);
29211 {
29212 PyThreadState* __tstate = wxPyBeginAllowThreads();
29213 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29214 wxPyEndAllowThreads(__tstate);
29215 if (PyErr_Occurred()) SWIG_fail;
29216 }
29217 {
29218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29219 }
29220 return resultobj;
29221 fail:
29222 return NULL;
29223 }
29224
29225
29226 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29227 PyObject *resultobj = 0;
29228 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29229 long arg2 ;
29230 wxString result;
29231 void *argp1 = 0 ;
29232 int res1 = 0 ;
29233 long val2 ;
29234 int ecode2 = 0 ;
29235 PyObject * obj0 = 0 ;
29236 PyObject * obj1 = 0 ;
29237 char * kwnames[] = {
29238 (char *) "self",(char *) "item", NULL
29239 };
29240
29241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29243 if (!SWIG_IsOK(res1)) {
29244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29245 }
29246 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29247 ecode2 = SWIG_AsVal_long(obj1, &val2);
29248 if (!SWIG_IsOK(ecode2)) {
29249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29250 }
29251 arg2 = static_cast< long >(val2);
29252 {
29253 PyThreadState* __tstate = wxPyBeginAllowThreads();
29254 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29255 wxPyEndAllowThreads(__tstate);
29256 if (PyErr_Occurred()) SWIG_fail;
29257 }
29258 {
29259 #if wxUSE_UNICODE
29260 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29261 #else
29262 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29263 #endif
29264 }
29265 return resultobj;
29266 fail:
29267 return NULL;
29268 }
29269
29270
29271 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29272 PyObject *resultobj = 0;
29273 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29274 long arg2 ;
29275 wxString *arg3 = 0 ;
29276 void *argp1 = 0 ;
29277 int res1 = 0 ;
29278 long val2 ;
29279 int ecode2 = 0 ;
29280 bool temp3 = false ;
29281 PyObject * obj0 = 0 ;
29282 PyObject * obj1 = 0 ;
29283 PyObject * obj2 = 0 ;
29284 char * kwnames[] = {
29285 (char *) "self",(char *) "item",(char *) "str", NULL
29286 };
29287
29288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29290 if (!SWIG_IsOK(res1)) {
29291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29292 }
29293 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29294 ecode2 = SWIG_AsVal_long(obj1, &val2);
29295 if (!SWIG_IsOK(ecode2)) {
29296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29297 }
29298 arg2 = static_cast< long >(val2);
29299 {
29300 arg3 = wxString_in_helper(obj2);
29301 if (arg3 == NULL) SWIG_fail;
29302 temp3 = true;
29303 }
29304 {
29305 PyThreadState* __tstate = wxPyBeginAllowThreads();
29306 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29307 wxPyEndAllowThreads(__tstate);
29308 if (PyErr_Occurred()) SWIG_fail;
29309 }
29310 resultobj = SWIG_Py_Void();
29311 {
29312 if (temp3)
29313 delete arg3;
29314 }
29315 return resultobj;
29316 fail:
29317 {
29318 if (temp3)
29319 delete arg3;
29320 }
29321 return NULL;
29322 }
29323
29324
29325 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29326 PyObject *resultobj = 0;
29327 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29328 long arg2 ;
29329 long result;
29330 void *argp1 = 0 ;
29331 int res1 = 0 ;
29332 long val2 ;
29333 int ecode2 = 0 ;
29334 PyObject * obj0 = 0 ;
29335 PyObject * obj1 = 0 ;
29336 char * kwnames[] = {
29337 (char *) "self",(char *) "item", NULL
29338 };
29339
29340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29342 if (!SWIG_IsOK(res1)) {
29343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29344 }
29345 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29346 ecode2 = SWIG_AsVal_long(obj1, &val2);
29347 if (!SWIG_IsOK(ecode2)) {
29348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29349 }
29350 arg2 = static_cast< long >(val2);
29351 {
29352 PyThreadState* __tstate = wxPyBeginAllowThreads();
29353 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29354 wxPyEndAllowThreads(__tstate);
29355 if (PyErr_Occurred()) SWIG_fail;
29356 }
29357 resultobj = SWIG_From_long(static_cast< long >(result));
29358 return resultobj;
29359 fail:
29360 return NULL;
29361 }
29362
29363
29364 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29365 PyObject *resultobj = 0;
29366 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29367 long arg2 ;
29368 long arg3 ;
29369 bool result;
29370 void *argp1 = 0 ;
29371 int res1 = 0 ;
29372 long val2 ;
29373 int ecode2 = 0 ;
29374 long val3 ;
29375 int ecode3 = 0 ;
29376 PyObject * obj0 = 0 ;
29377 PyObject * obj1 = 0 ;
29378 PyObject * obj2 = 0 ;
29379 char * kwnames[] = {
29380 (char *) "self",(char *) "item",(char *) "data", NULL
29381 };
29382
29383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29385 if (!SWIG_IsOK(res1)) {
29386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29387 }
29388 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29389 ecode2 = SWIG_AsVal_long(obj1, &val2);
29390 if (!SWIG_IsOK(ecode2)) {
29391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29392 }
29393 arg2 = static_cast< long >(val2);
29394 ecode3 = SWIG_AsVal_long(obj2, &val3);
29395 if (!SWIG_IsOK(ecode3)) {
29396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29397 }
29398 arg3 = static_cast< long >(val3);
29399 {
29400 PyThreadState* __tstate = wxPyBeginAllowThreads();
29401 result = (bool)(arg1)->SetItemData(arg2,arg3);
29402 wxPyEndAllowThreads(__tstate);
29403 if (PyErr_Occurred()) SWIG_fail;
29404 }
29405 {
29406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29407 }
29408 return resultobj;
29409 fail:
29410 return NULL;
29411 }
29412
29413
29414 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29415 PyObject *resultobj = 0;
29416 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29417 long arg2 ;
29418 wxPoint result;
29419 void *argp1 = 0 ;
29420 int res1 = 0 ;
29421 long val2 ;
29422 int ecode2 = 0 ;
29423 PyObject * obj0 = 0 ;
29424 PyObject * obj1 = 0 ;
29425 char * kwnames[] = {
29426 (char *) "self",(char *) "item", NULL
29427 };
29428
29429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29431 if (!SWIG_IsOK(res1)) {
29432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29433 }
29434 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29435 ecode2 = SWIG_AsVal_long(obj1, &val2);
29436 if (!SWIG_IsOK(ecode2)) {
29437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29438 }
29439 arg2 = static_cast< long >(val2);
29440 {
29441 PyThreadState* __tstate = wxPyBeginAllowThreads();
29442 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29443 wxPyEndAllowThreads(__tstate);
29444 if (PyErr_Occurred()) SWIG_fail;
29445 }
29446 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29447 return resultobj;
29448 fail:
29449 return NULL;
29450 }
29451
29452
29453 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29454 PyObject *resultobj = 0;
29455 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29456 long arg2 ;
29457 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29458 wxRect result;
29459 void *argp1 = 0 ;
29460 int res1 = 0 ;
29461 long val2 ;
29462 int ecode2 = 0 ;
29463 int val3 ;
29464 int ecode3 = 0 ;
29465 PyObject * obj0 = 0 ;
29466 PyObject * obj1 = 0 ;
29467 PyObject * obj2 = 0 ;
29468 char * kwnames[] = {
29469 (char *) "self",(char *) "item",(char *) "code", NULL
29470 };
29471
29472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29474 if (!SWIG_IsOK(res1)) {
29475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29476 }
29477 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29478 ecode2 = SWIG_AsVal_long(obj1, &val2);
29479 if (!SWIG_IsOK(ecode2)) {
29480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29481 }
29482 arg2 = static_cast< long >(val2);
29483 if (obj2) {
29484 ecode3 = SWIG_AsVal_int(obj2, &val3);
29485 if (!SWIG_IsOK(ecode3)) {
29486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29487 }
29488 arg3 = static_cast< int >(val3);
29489 }
29490 {
29491 PyThreadState* __tstate = wxPyBeginAllowThreads();
29492 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29493 wxPyEndAllowThreads(__tstate);
29494 if (PyErr_Occurred()) SWIG_fail;
29495 }
29496 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29497 return resultobj;
29498 fail:
29499 return NULL;
29500 }
29501
29502
29503 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29504 PyObject *resultobj = 0;
29505 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29506 long arg2 ;
29507 wxPoint *arg3 = 0 ;
29508 bool result;
29509 void *argp1 = 0 ;
29510 int res1 = 0 ;
29511 long val2 ;
29512 int ecode2 = 0 ;
29513 wxPoint temp3 ;
29514 PyObject * obj0 = 0 ;
29515 PyObject * obj1 = 0 ;
29516 PyObject * obj2 = 0 ;
29517 char * kwnames[] = {
29518 (char *) "self",(char *) "item",(char *) "pos", NULL
29519 };
29520
29521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29523 if (!SWIG_IsOK(res1)) {
29524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29525 }
29526 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29527 ecode2 = SWIG_AsVal_long(obj1, &val2);
29528 if (!SWIG_IsOK(ecode2)) {
29529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29530 }
29531 arg2 = static_cast< long >(val2);
29532 {
29533 arg3 = &temp3;
29534 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29535 }
29536 {
29537 PyThreadState* __tstate = wxPyBeginAllowThreads();
29538 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29539 wxPyEndAllowThreads(__tstate);
29540 if (PyErr_Occurred()) SWIG_fail;
29541 }
29542 {
29543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29544 }
29545 return resultobj;
29546 fail:
29547 return NULL;
29548 }
29549
29550
29551 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29552 PyObject *resultobj = 0;
29553 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29554 int result;
29555 void *argp1 = 0 ;
29556 int res1 = 0 ;
29557 PyObject *swig_obj[1] ;
29558
29559 if (!args) SWIG_fail;
29560 swig_obj[0] = args;
29561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29562 if (!SWIG_IsOK(res1)) {
29563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29564 }
29565 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29566 {
29567 PyThreadState* __tstate = wxPyBeginAllowThreads();
29568 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29569 wxPyEndAllowThreads(__tstate);
29570 if (PyErr_Occurred()) SWIG_fail;
29571 }
29572 resultobj = SWIG_From_int(static_cast< int >(result));
29573 return resultobj;
29574 fail:
29575 return NULL;
29576 }
29577
29578
29579 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29580 PyObject *resultobj = 0;
29581 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29582 int result;
29583 void *argp1 = 0 ;
29584 int res1 = 0 ;
29585 PyObject *swig_obj[1] ;
29586
29587 if (!args) SWIG_fail;
29588 swig_obj[0] = args;
29589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29590 if (!SWIG_IsOK(res1)) {
29591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29592 }
29593 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29594 {
29595 PyThreadState* __tstate = wxPyBeginAllowThreads();
29596 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29597 wxPyEndAllowThreads(__tstate);
29598 if (PyErr_Occurred()) SWIG_fail;
29599 }
29600 resultobj = SWIG_From_int(static_cast< int >(result));
29601 return resultobj;
29602 fail:
29603 return NULL;
29604 }
29605
29606
29607 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29608 PyObject *resultobj = 0;
29609 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29610 wxSize result;
29611 void *argp1 = 0 ;
29612 int res1 = 0 ;
29613 PyObject *swig_obj[1] ;
29614
29615 if (!args) SWIG_fail;
29616 swig_obj[0] = args;
29617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29618 if (!SWIG_IsOK(res1)) {
29619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29620 }
29621 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29622 {
29623 PyThreadState* __tstate = wxPyBeginAllowThreads();
29624 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29625 wxPyEndAllowThreads(__tstate);
29626 if (PyErr_Occurred()) SWIG_fail;
29627 }
29628 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29629 return resultobj;
29630 fail:
29631 return NULL;
29632 }
29633
29634
29635 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29636 PyObject *resultobj = 0;
29637 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29638 int result;
29639 void *argp1 = 0 ;
29640 int res1 = 0 ;
29641 PyObject *swig_obj[1] ;
29642
29643 if (!args) SWIG_fail;
29644 swig_obj[0] = args;
29645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29646 if (!SWIG_IsOK(res1)) {
29647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29648 }
29649 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29650 {
29651 PyThreadState* __tstate = wxPyBeginAllowThreads();
29652 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29653 wxPyEndAllowThreads(__tstate);
29654 if (PyErr_Occurred()) SWIG_fail;
29655 }
29656 resultobj = SWIG_From_int(static_cast< int >(result));
29657 return resultobj;
29658 fail:
29659 return NULL;
29660 }
29661
29662
29663 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29664 PyObject *resultobj = 0;
29665 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29666 wxColour result;
29667 void *argp1 = 0 ;
29668 int res1 = 0 ;
29669 PyObject *swig_obj[1] ;
29670
29671 if (!args) SWIG_fail;
29672 swig_obj[0] = args;
29673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29674 if (!SWIG_IsOK(res1)) {
29675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29676 }
29677 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29678 {
29679 PyThreadState* __tstate = wxPyBeginAllowThreads();
29680 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29681 wxPyEndAllowThreads(__tstate);
29682 if (PyErr_Occurred()) SWIG_fail;
29683 }
29684 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29685 return resultobj;
29686 fail:
29687 return NULL;
29688 }
29689
29690
29691 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29692 PyObject *resultobj = 0;
29693 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29694 wxColour *arg2 = 0 ;
29695 void *argp1 = 0 ;
29696 int res1 = 0 ;
29697 wxColour temp2 ;
29698 PyObject * obj0 = 0 ;
29699 PyObject * obj1 = 0 ;
29700 char * kwnames[] = {
29701 (char *) "self",(char *) "col", NULL
29702 };
29703
29704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29706 if (!SWIG_IsOK(res1)) {
29707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29708 }
29709 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29710 {
29711 arg2 = &temp2;
29712 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29713 }
29714 {
29715 PyThreadState* __tstate = wxPyBeginAllowThreads();
29716 (arg1)->SetTextColour((wxColour const &)*arg2);
29717 wxPyEndAllowThreads(__tstate);
29718 if (PyErr_Occurred()) SWIG_fail;
29719 }
29720 resultobj = SWIG_Py_Void();
29721 return resultobj;
29722 fail:
29723 return NULL;
29724 }
29725
29726
29727 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29728 PyObject *resultobj = 0;
29729 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29730 long result;
29731 void *argp1 = 0 ;
29732 int res1 = 0 ;
29733 PyObject *swig_obj[1] ;
29734
29735 if (!args) SWIG_fail;
29736 swig_obj[0] = args;
29737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29738 if (!SWIG_IsOK(res1)) {
29739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29740 }
29741 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29742 {
29743 PyThreadState* __tstate = wxPyBeginAllowThreads();
29744 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29745 wxPyEndAllowThreads(__tstate);
29746 if (PyErr_Occurred()) SWIG_fail;
29747 }
29748 resultobj = SWIG_From_long(static_cast< long >(result));
29749 return resultobj;
29750 fail:
29751 return NULL;
29752 }
29753
29754
29755 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29756 PyObject *resultobj = 0;
29757 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29758 long arg2 ;
29759 bool arg3 = (bool) true ;
29760 void *argp1 = 0 ;
29761 int res1 = 0 ;
29762 long val2 ;
29763 int ecode2 = 0 ;
29764 bool val3 ;
29765 int ecode3 = 0 ;
29766 PyObject * obj0 = 0 ;
29767 PyObject * obj1 = 0 ;
29768 PyObject * obj2 = 0 ;
29769 char * kwnames[] = {
29770 (char *) "self",(char *) "style",(char *) "add", NULL
29771 };
29772
29773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29775 if (!SWIG_IsOK(res1)) {
29776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29777 }
29778 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29779 ecode2 = SWIG_AsVal_long(obj1, &val2);
29780 if (!SWIG_IsOK(ecode2)) {
29781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29782 }
29783 arg2 = static_cast< long >(val2);
29784 if (obj2) {
29785 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29786 if (!SWIG_IsOK(ecode3)) {
29787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29788 }
29789 arg3 = static_cast< bool >(val3);
29790 }
29791 {
29792 PyThreadState* __tstate = wxPyBeginAllowThreads();
29793 (arg1)->SetSingleStyle(arg2,arg3);
29794 wxPyEndAllowThreads(__tstate);
29795 if (PyErr_Occurred()) SWIG_fail;
29796 }
29797 resultobj = SWIG_Py_Void();
29798 return resultobj;
29799 fail:
29800 return NULL;
29801 }
29802
29803
29804 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29805 PyObject *resultobj = 0;
29806 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29807 long arg2 ;
29808 int arg3 = (int) wxLIST_NEXT_ALL ;
29809 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29810 long result;
29811 void *argp1 = 0 ;
29812 int res1 = 0 ;
29813 long val2 ;
29814 int ecode2 = 0 ;
29815 int val3 ;
29816 int ecode3 = 0 ;
29817 int val4 ;
29818 int ecode4 = 0 ;
29819 PyObject * obj0 = 0 ;
29820 PyObject * obj1 = 0 ;
29821 PyObject * obj2 = 0 ;
29822 PyObject * obj3 = 0 ;
29823 char * kwnames[] = {
29824 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29825 };
29826
29827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29829 if (!SWIG_IsOK(res1)) {
29830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29831 }
29832 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29833 ecode2 = SWIG_AsVal_long(obj1, &val2);
29834 if (!SWIG_IsOK(ecode2)) {
29835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
29836 }
29837 arg2 = static_cast< long >(val2);
29838 if (obj2) {
29839 ecode3 = SWIG_AsVal_int(obj2, &val3);
29840 if (!SWIG_IsOK(ecode3)) {
29841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
29842 }
29843 arg3 = static_cast< int >(val3);
29844 }
29845 if (obj3) {
29846 ecode4 = SWIG_AsVal_int(obj3, &val4);
29847 if (!SWIG_IsOK(ecode4)) {
29848 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
29849 }
29850 arg4 = static_cast< int >(val4);
29851 }
29852 {
29853 PyThreadState* __tstate = wxPyBeginAllowThreads();
29854 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
29855 wxPyEndAllowThreads(__tstate);
29856 if (PyErr_Occurred()) SWIG_fail;
29857 }
29858 resultobj = SWIG_From_long(static_cast< long >(result));
29859 return resultobj;
29860 fail:
29861 return NULL;
29862 }
29863
29864
29865 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29866 PyObject *resultobj = 0;
29867 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29868 int arg2 ;
29869 wxImageList *result = 0 ;
29870 void *argp1 = 0 ;
29871 int res1 = 0 ;
29872 int val2 ;
29873 int ecode2 = 0 ;
29874 PyObject * obj0 = 0 ;
29875 PyObject * obj1 = 0 ;
29876 char * kwnames[] = {
29877 (char *) "self",(char *) "which", NULL
29878 };
29879
29880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
29881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29882 if (!SWIG_IsOK(res1)) {
29883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29884 }
29885 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29886 ecode2 = SWIG_AsVal_int(obj1, &val2);
29887 if (!SWIG_IsOK(ecode2)) {
29888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
29889 }
29890 arg2 = static_cast< int >(val2);
29891 {
29892 PyThreadState* __tstate = wxPyBeginAllowThreads();
29893 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
29894 wxPyEndAllowThreads(__tstate);
29895 if (PyErr_Occurred()) SWIG_fail;
29896 }
29897 {
29898 resultobj = wxPyMake_wxObject(result, (bool)0);
29899 }
29900 return resultobj;
29901 fail:
29902 return NULL;
29903 }
29904
29905
29906 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29907 PyObject *resultobj = 0;
29908 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29909 wxImageList *arg2 = (wxImageList *) 0 ;
29910 int arg3 ;
29911 void *argp1 = 0 ;
29912 int res1 = 0 ;
29913 void *argp2 = 0 ;
29914 int res2 = 0 ;
29915 int val3 ;
29916 int ecode3 = 0 ;
29917 PyObject * obj0 = 0 ;
29918 PyObject * obj1 = 0 ;
29919 PyObject * obj2 = 0 ;
29920 char * kwnames[] = {
29921 (char *) "self",(char *) "imageList",(char *) "which", NULL
29922 };
29923
29924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29926 if (!SWIG_IsOK(res1)) {
29927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29928 }
29929 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29930 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
29931 if (!SWIG_IsOK(res2)) {
29932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
29933 }
29934 arg2 = reinterpret_cast< wxImageList * >(argp2);
29935 ecode3 = SWIG_AsVal_int(obj2, &val3);
29936 if (!SWIG_IsOK(ecode3)) {
29937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
29938 }
29939 arg3 = static_cast< int >(val3);
29940 {
29941 PyThreadState* __tstate = wxPyBeginAllowThreads();
29942 (arg1)->SetImageList(arg2,arg3);
29943 wxPyEndAllowThreads(__tstate);
29944 if (PyErr_Occurred()) SWIG_fail;
29945 }
29946 resultobj = SWIG_Py_Void();
29947 return resultobj;
29948 fail:
29949 return NULL;
29950 }
29951
29952
29953 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29954 PyObject *resultobj = 0;
29955 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29956 wxImageList *arg2 = (wxImageList *) 0 ;
29957 int arg3 ;
29958 void *argp1 = 0 ;
29959 int res1 = 0 ;
29960 int res2 = 0 ;
29961 int val3 ;
29962 int ecode3 = 0 ;
29963 PyObject * obj0 = 0 ;
29964 PyObject * obj1 = 0 ;
29965 PyObject * obj2 = 0 ;
29966 char * kwnames[] = {
29967 (char *) "self",(char *) "imageList",(char *) "which", NULL
29968 };
29969
29970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29972 if (!SWIG_IsOK(res1)) {
29973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29974 }
29975 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29976 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
29977 if (!SWIG_IsOK(res2)) {
29978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
29979 }
29980 ecode3 = SWIG_AsVal_int(obj2, &val3);
29981 if (!SWIG_IsOK(ecode3)) {
29982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
29983 }
29984 arg3 = static_cast< int >(val3);
29985 {
29986 PyThreadState* __tstate = wxPyBeginAllowThreads();
29987 (arg1)->AssignImageList(arg2,arg3);
29988 wxPyEndAllowThreads(__tstate);
29989 if (PyErr_Occurred()) SWIG_fail;
29990 }
29991 resultobj = SWIG_Py_Void();
29992 return resultobj;
29993 fail:
29994 return NULL;
29995 }
29996
29997
29998 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29999 PyObject *resultobj = 0;
30000 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30001 bool result;
30002 void *argp1 = 0 ;
30003 int res1 = 0 ;
30004 PyObject *swig_obj[1] ;
30005
30006 if (!args) SWIG_fail;
30007 swig_obj[0] = args;
30008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30009 if (!SWIG_IsOK(res1)) {
30010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30011 }
30012 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30013 {
30014 PyThreadState* __tstate = wxPyBeginAllowThreads();
30015 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30016 wxPyEndAllowThreads(__tstate);
30017 if (PyErr_Occurred()) SWIG_fail;
30018 }
30019 {
30020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30021 }
30022 return resultobj;
30023 fail:
30024 return NULL;
30025 }
30026
30027
30028 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30029 PyObject *resultobj = 0;
30030 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30031 bool result;
30032 void *argp1 = 0 ;
30033 int res1 = 0 ;
30034 PyObject *swig_obj[1] ;
30035
30036 if (!args) SWIG_fail;
30037 swig_obj[0] = args;
30038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30039 if (!SWIG_IsOK(res1)) {
30040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30041 }
30042 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30043 {
30044 PyThreadState* __tstate = wxPyBeginAllowThreads();
30045 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30046 wxPyEndAllowThreads(__tstate);
30047 if (PyErr_Occurred()) SWIG_fail;
30048 }
30049 {
30050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30051 }
30052 return resultobj;
30053 fail:
30054 return NULL;
30055 }
30056
30057
30058 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30059 PyObject *resultobj = 0;
30060 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30061 long arg2 ;
30062 void *argp1 = 0 ;
30063 int res1 = 0 ;
30064 long val2 ;
30065 int ecode2 = 0 ;
30066 PyObject * obj0 = 0 ;
30067 PyObject * obj1 = 0 ;
30068 char * kwnames[] = {
30069 (char *) "self",(char *) "item", NULL
30070 };
30071
30072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30074 if (!SWIG_IsOK(res1)) {
30075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30076 }
30077 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30078 ecode2 = SWIG_AsVal_long(obj1, &val2);
30079 if (!SWIG_IsOK(ecode2)) {
30080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30081 }
30082 arg2 = static_cast< long >(val2);
30083 {
30084 PyThreadState* __tstate = wxPyBeginAllowThreads();
30085 (arg1)->RefreshItem(arg2);
30086 wxPyEndAllowThreads(__tstate);
30087 if (PyErr_Occurred()) SWIG_fail;
30088 }
30089 resultobj = SWIG_Py_Void();
30090 return resultobj;
30091 fail:
30092 return NULL;
30093 }
30094
30095
30096 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30097 PyObject *resultobj = 0;
30098 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30099 long arg2 ;
30100 long arg3 ;
30101 void *argp1 = 0 ;
30102 int res1 = 0 ;
30103 long val2 ;
30104 int ecode2 = 0 ;
30105 long val3 ;
30106 int ecode3 = 0 ;
30107 PyObject * obj0 = 0 ;
30108 PyObject * obj1 = 0 ;
30109 PyObject * obj2 = 0 ;
30110 char * kwnames[] = {
30111 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30112 };
30113
30114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30116 if (!SWIG_IsOK(res1)) {
30117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30118 }
30119 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30120 ecode2 = SWIG_AsVal_long(obj1, &val2);
30121 if (!SWIG_IsOK(ecode2)) {
30122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30123 }
30124 arg2 = static_cast< long >(val2);
30125 ecode3 = SWIG_AsVal_long(obj2, &val3);
30126 if (!SWIG_IsOK(ecode3)) {
30127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30128 }
30129 arg3 = static_cast< long >(val3);
30130 {
30131 PyThreadState* __tstate = wxPyBeginAllowThreads();
30132 (arg1)->RefreshItems(arg2,arg3);
30133 wxPyEndAllowThreads(__tstate);
30134 if (PyErr_Occurred()) SWIG_fail;
30135 }
30136 resultobj = SWIG_Py_Void();
30137 return resultobj;
30138 fail:
30139 return NULL;
30140 }
30141
30142
30143 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30144 PyObject *resultobj = 0;
30145 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30146 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30147 bool result;
30148 void *argp1 = 0 ;
30149 int res1 = 0 ;
30150 int val2 ;
30151 int ecode2 = 0 ;
30152 PyObject * obj0 = 0 ;
30153 PyObject * obj1 = 0 ;
30154 char * kwnames[] = {
30155 (char *) "self",(char *) "flag", NULL
30156 };
30157
30158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30160 if (!SWIG_IsOK(res1)) {
30161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30162 }
30163 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30164 if (obj1) {
30165 ecode2 = SWIG_AsVal_int(obj1, &val2);
30166 if (!SWIG_IsOK(ecode2)) {
30167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30168 }
30169 arg2 = static_cast< int >(val2);
30170 }
30171 {
30172 PyThreadState* __tstate = wxPyBeginAllowThreads();
30173 result = (bool)(arg1)->Arrange(arg2);
30174 wxPyEndAllowThreads(__tstate);
30175 if (PyErr_Occurred()) SWIG_fail;
30176 }
30177 {
30178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30179 }
30180 return resultobj;
30181 fail:
30182 return NULL;
30183 }
30184
30185
30186 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30187 PyObject *resultobj = 0;
30188 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30189 long arg2 ;
30190 bool result;
30191 void *argp1 = 0 ;
30192 int res1 = 0 ;
30193 long val2 ;
30194 int ecode2 = 0 ;
30195 PyObject * obj0 = 0 ;
30196 PyObject * obj1 = 0 ;
30197 char * kwnames[] = {
30198 (char *) "self",(char *) "item", NULL
30199 };
30200
30201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30203 if (!SWIG_IsOK(res1)) {
30204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30205 }
30206 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30207 ecode2 = SWIG_AsVal_long(obj1, &val2);
30208 if (!SWIG_IsOK(ecode2)) {
30209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30210 }
30211 arg2 = static_cast< long >(val2);
30212 {
30213 PyThreadState* __tstate = wxPyBeginAllowThreads();
30214 result = (bool)(arg1)->DeleteItem(arg2);
30215 wxPyEndAllowThreads(__tstate);
30216 if (PyErr_Occurred()) SWIG_fail;
30217 }
30218 {
30219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30220 }
30221 return resultobj;
30222 fail:
30223 return NULL;
30224 }
30225
30226
30227 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30228 PyObject *resultobj = 0;
30229 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30230 bool result;
30231 void *argp1 = 0 ;
30232 int res1 = 0 ;
30233 PyObject *swig_obj[1] ;
30234
30235 if (!args) SWIG_fail;
30236 swig_obj[0] = args;
30237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30238 if (!SWIG_IsOK(res1)) {
30239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30240 }
30241 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30242 {
30243 PyThreadState* __tstate = wxPyBeginAllowThreads();
30244 result = (bool)(arg1)->DeleteAllItems();
30245 wxPyEndAllowThreads(__tstate);
30246 if (PyErr_Occurred()) SWIG_fail;
30247 }
30248 {
30249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30250 }
30251 return resultobj;
30252 fail:
30253 return NULL;
30254 }
30255
30256
30257 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30258 PyObject *resultobj = 0;
30259 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30260 int arg2 ;
30261 bool result;
30262 void *argp1 = 0 ;
30263 int res1 = 0 ;
30264 int val2 ;
30265 int ecode2 = 0 ;
30266 PyObject * obj0 = 0 ;
30267 PyObject * obj1 = 0 ;
30268 char * kwnames[] = {
30269 (char *) "self",(char *) "col", NULL
30270 };
30271
30272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30274 if (!SWIG_IsOK(res1)) {
30275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30276 }
30277 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30278 ecode2 = SWIG_AsVal_int(obj1, &val2);
30279 if (!SWIG_IsOK(ecode2)) {
30280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30281 }
30282 arg2 = static_cast< int >(val2);
30283 {
30284 PyThreadState* __tstate = wxPyBeginAllowThreads();
30285 result = (bool)(arg1)->DeleteColumn(arg2);
30286 wxPyEndAllowThreads(__tstate);
30287 if (PyErr_Occurred()) SWIG_fail;
30288 }
30289 {
30290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30291 }
30292 return resultobj;
30293 fail:
30294 return NULL;
30295 }
30296
30297
30298 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30299 PyObject *resultobj = 0;
30300 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30301 bool result;
30302 void *argp1 = 0 ;
30303 int res1 = 0 ;
30304 PyObject *swig_obj[1] ;
30305
30306 if (!args) SWIG_fail;
30307 swig_obj[0] = args;
30308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30309 if (!SWIG_IsOK(res1)) {
30310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30311 }
30312 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30313 {
30314 PyThreadState* __tstate = wxPyBeginAllowThreads();
30315 result = (bool)(arg1)->DeleteAllColumns();
30316 wxPyEndAllowThreads(__tstate);
30317 if (PyErr_Occurred()) SWIG_fail;
30318 }
30319 {
30320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30321 }
30322 return resultobj;
30323 fail:
30324 return NULL;
30325 }
30326
30327
30328 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30329 PyObject *resultobj = 0;
30330 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30331 void *argp1 = 0 ;
30332 int res1 = 0 ;
30333 PyObject *swig_obj[1] ;
30334
30335 if (!args) SWIG_fail;
30336 swig_obj[0] = args;
30337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30338 if (!SWIG_IsOK(res1)) {
30339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30340 }
30341 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30342 {
30343 PyThreadState* __tstate = wxPyBeginAllowThreads();
30344 (arg1)->ClearAll();
30345 wxPyEndAllowThreads(__tstate);
30346 if (PyErr_Occurred()) SWIG_fail;
30347 }
30348 resultobj = SWIG_Py_Void();
30349 return resultobj;
30350 fail:
30351 return NULL;
30352 }
30353
30354
30355 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30356 PyObject *resultobj = 0;
30357 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30358 long arg2 ;
30359 wxTextCtrl *result = 0 ;
30360 void *argp1 = 0 ;
30361 int res1 = 0 ;
30362 long val2 ;
30363 int ecode2 = 0 ;
30364 PyObject * obj0 = 0 ;
30365 PyObject * obj1 = 0 ;
30366 char * kwnames[] = {
30367 (char *) "self",(char *) "item", NULL
30368 };
30369
30370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30372 if (!SWIG_IsOK(res1)) {
30373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30374 }
30375 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30376 ecode2 = SWIG_AsVal_long(obj1, &val2);
30377 if (!SWIG_IsOK(ecode2)) {
30378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30379 }
30380 arg2 = static_cast< long >(val2);
30381 {
30382 PyThreadState* __tstate = wxPyBeginAllowThreads();
30383 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
30384 wxPyEndAllowThreads(__tstate);
30385 if (PyErr_Occurred()) SWIG_fail;
30386 }
30387 {
30388 resultobj = wxPyMake_wxObject(result, 0);
30389 }
30390 return resultobj;
30391 fail:
30392 return NULL;
30393 }
30394
30395
30396 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30397 PyObject *resultobj = 0;
30398 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30399 bool arg2 ;
30400 bool result;
30401 void *argp1 = 0 ;
30402 int res1 = 0 ;
30403 bool val2 ;
30404 int ecode2 = 0 ;
30405 PyObject * obj0 = 0 ;
30406 PyObject * obj1 = 0 ;
30407 char * kwnames[] = {
30408 (char *) "self",(char *) "cancel", NULL
30409 };
30410
30411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30413 if (!SWIG_IsOK(res1)) {
30414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30415 }
30416 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30417 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30418 if (!SWIG_IsOK(ecode2)) {
30419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
30420 }
30421 arg2 = static_cast< bool >(val2);
30422 {
30423 PyThreadState* __tstate = wxPyBeginAllowThreads();
30424 result = (bool)(arg1)->EndEditLabel(arg2);
30425 wxPyEndAllowThreads(__tstate);
30426 if (PyErr_Occurred()) SWIG_fail;
30427 }
30428 {
30429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30430 }
30431 return resultobj;
30432 fail:
30433 return NULL;
30434 }
30435
30436
30437 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30438 PyObject *resultobj = 0;
30439 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30440 long arg2 ;
30441 bool result;
30442 void *argp1 = 0 ;
30443 int res1 = 0 ;
30444 long val2 ;
30445 int ecode2 = 0 ;
30446 PyObject * obj0 = 0 ;
30447 PyObject * obj1 = 0 ;
30448 char * kwnames[] = {
30449 (char *) "self",(char *) "item", NULL
30450 };
30451
30452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30454 if (!SWIG_IsOK(res1)) {
30455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30456 }
30457 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30458 ecode2 = SWIG_AsVal_long(obj1, &val2);
30459 if (!SWIG_IsOK(ecode2)) {
30460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30461 }
30462 arg2 = static_cast< long >(val2);
30463 {
30464 PyThreadState* __tstate = wxPyBeginAllowThreads();
30465 result = (bool)(arg1)->EnsureVisible(arg2);
30466 wxPyEndAllowThreads(__tstate);
30467 if (PyErr_Occurred()) SWIG_fail;
30468 }
30469 {
30470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30471 }
30472 return resultobj;
30473 fail:
30474 return NULL;
30475 }
30476
30477
30478 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30479 PyObject *resultobj = 0;
30480 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30481 long arg2 ;
30482 wxString *arg3 = 0 ;
30483 bool arg4 = (bool) false ;
30484 long result;
30485 void *argp1 = 0 ;
30486 int res1 = 0 ;
30487 long val2 ;
30488 int ecode2 = 0 ;
30489 bool temp3 = false ;
30490 bool val4 ;
30491 int ecode4 = 0 ;
30492 PyObject * obj0 = 0 ;
30493 PyObject * obj1 = 0 ;
30494 PyObject * obj2 = 0 ;
30495 PyObject * obj3 = 0 ;
30496 char * kwnames[] = {
30497 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30498 };
30499
30500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30502 if (!SWIG_IsOK(res1)) {
30503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30504 }
30505 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30506 ecode2 = SWIG_AsVal_long(obj1, &val2);
30507 if (!SWIG_IsOK(ecode2)) {
30508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30509 }
30510 arg2 = static_cast< long >(val2);
30511 {
30512 arg3 = wxString_in_helper(obj2);
30513 if (arg3 == NULL) SWIG_fail;
30514 temp3 = true;
30515 }
30516 if (obj3) {
30517 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30518 if (!SWIG_IsOK(ecode4)) {
30519 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30520 }
30521 arg4 = static_cast< bool >(val4);
30522 }
30523 {
30524 PyThreadState* __tstate = wxPyBeginAllowThreads();
30525 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30526 wxPyEndAllowThreads(__tstate);
30527 if (PyErr_Occurred()) SWIG_fail;
30528 }
30529 resultobj = SWIG_From_long(static_cast< long >(result));
30530 {
30531 if (temp3)
30532 delete arg3;
30533 }
30534 return resultobj;
30535 fail:
30536 {
30537 if (temp3)
30538 delete arg3;
30539 }
30540 return NULL;
30541 }
30542
30543
30544 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30545 PyObject *resultobj = 0;
30546 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30547 long arg2 ;
30548 long arg3 ;
30549 long result;
30550 void *argp1 = 0 ;
30551 int res1 = 0 ;
30552 long val2 ;
30553 int ecode2 = 0 ;
30554 long val3 ;
30555 int ecode3 = 0 ;
30556 PyObject * obj0 = 0 ;
30557 PyObject * obj1 = 0 ;
30558 PyObject * obj2 = 0 ;
30559 char * kwnames[] = {
30560 (char *) "self",(char *) "start",(char *) "data", NULL
30561 };
30562
30563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30565 if (!SWIG_IsOK(res1)) {
30566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30567 }
30568 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30569 ecode2 = SWIG_AsVal_long(obj1, &val2);
30570 if (!SWIG_IsOK(ecode2)) {
30571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30572 }
30573 arg2 = static_cast< long >(val2);
30574 ecode3 = SWIG_AsVal_long(obj2, &val3);
30575 if (!SWIG_IsOK(ecode3)) {
30576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30577 }
30578 arg3 = static_cast< long >(val3);
30579 {
30580 PyThreadState* __tstate = wxPyBeginAllowThreads();
30581 result = (long)(arg1)->FindItem(arg2,arg3);
30582 wxPyEndAllowThreads(__tstate);
30583 if (PyErr_Occurred()) SWIG_fail;
30584 }
30585 resultobj = SWIG_From_long(static_cast< long >(result));
30586 return resultobj;
30587 fail:
30588 return NULL;
30589 }
30590
30591
30592 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30593 PyObject *resultobj = 0;
30594 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30595 long arg2 ;
30596 wxPoint *arg3 = 0 ;
30597 int arg4 ;
30598 long result;
30599 void *argp1 = 0 ;
30600 int res1 = 0 ;
30601 long val2 ;
30602 int ecode2 = 0 ;
30603 wxPoint temp3 ;
30604 int val4 ;
30605 int ecode4 = 0 ;
30606 PyObject * obj0 = 0 ;
30607 PyObject * obj1 = 0 ;
30608 PyObject * obj2 = 0 ;
30609 PyObject * obj3 = 0 ;
30610 char * kwnames[] = {
30611 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30612 };
30613
30614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30616 if (!SWIG_IsOK(res1)) {
30617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30618 }
30619 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30620 ecode2 = SWIG_AsVal_long(obj1, &val2);
30621 if (!SWIG_IsOK(ecode2)) {
30622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30623 }
30624 arg2 = static_cast< long >(val2);
30625 {
30626 arg3 = &temp3;
30627 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30628 }
30629 ecode4 = SWIG_AsVal_int(obj3, &val4);
30630 if (!SWIG_IsOK(ecode4)) {
30631 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30632 }
30633 arg4 = static_cast< int >(val4);
30634 {
30635 PyThreadState* __tstate = wxPyBeginAllowThreads();
30636 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30637 wxPyEndAllowThreads(__tstate);
30638 if (PyErr_Occurred()) SWIG_fail;
30639 }
30640 resultobj = SWIG_From_long(static_cast< long >(result));
30641 return resultobj;
30642 fail:
30643 return NULL;
30644 }
30645
30646
30647 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30648 PyObject *resultobj = 0;
30649 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30650 wxPoint *arg2 = 0 ;
30651 int *arg3 = 0 ;
30652 long result;
30653 void *argp1 = 0 ;
30654 int res1 = 0 ;
30655 wxPoint temp2 ;
30656 int temp3 ;
30657 int res3 = SWIG_TMPOBJ ;
30658 PyObject * obj0 = 0 ;
30659 PyObject * obj1 = 0 ;
30660 char * kwnames[] = {
30661 (char *) "self",(char *) "point", NULL
30662 };
30663
30664 arg3 = &temp3;
30665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30667 if (!SWIG_IsOK(res1)) {
30668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30669 }
30670 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30671 {
30672 arg2 = &temp2;
30673 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30674 }
30675 {
30676 PyThreadState* __tstate = wxPyBeginAllowThreads();
30677 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30678 wxPyEndAllowThreads(__tstate);
30679 if (PyErr_Occurred()) SWIG_fail;
30680 }
30681 resultobj = SWIG_From_long(static_cast< long >(result));
30682 if (SWIG_IsTmpObj(res3)) {
30683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30684 } else {
30685 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30686 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30687 }
30688 return resultobj;
30689 fail:
30690 return NULL;
30691 }
30692
30693
30694 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30695 PyObject *resultobj = 0;
30696 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30697 wxListItem *arg2 = 0 ;
30698 long result;
30699 void *argp1 = 0 ;
30700 int res1 = 0 ;
30701 void *argp2 = 0 ;
30702 int res2 = 0 ;
30703 PyObject * obj0 = 0 ;
30704 PyObject * obj1 = 0 ;
30705 char * kwnames[] = {
30706 (char *) "self",(char *) "info", NULL
30707 };
30708
30709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30711 if (!SWIG_IsOK(res1)) {
30712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30713 }
30714 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30715 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30716 if (!SWIG_IsOK(res2)) {
30717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30718 }
30719 if (!argp2) {
30720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30721 }
30722 arg2 = reinterpret_cast< wxListItem * >(argp2);
30723 {
30724 PyThreadState* __tstate = wxPyBeginAllowThreads();
30725 result = (long)(arg1)->InsertItem(*arg2);
30726 wxPyEndAllowThreads(__tstate);
30727 if (PyErr_Occurred()) SWIG_fail;
30728 }
30729 resultobj = SWIG_From_long(static_cast< long >(result));
30730 return resultobj;
30731 fail:
30732 return NULL;
30733 }
30734
30735
30736 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30737 PyObject *resultobj = 0;
30738 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30739 long arg2 ;
30740 wxString *arg3 = 0 ;
30741 int arg4 = (int) -1 ;
30742 long result;
30743 void *argp1 = 0 ;
30744 int res1 = 0 ;
30745 long val2 ;
30746 int ecode2 = 0 ;
30747 bool temp3 = false ;
30748 int val4 ;
30749 int ecode4 = 0 ;
30750 PyObject * obj0 = 0 ;
30751 PyObject * obj1 = 0 ;
30752 PyObject * obj2 = 0 ;
30753 PyObject * obj3 = 0 ;
30754 char * kwnames[] = {
30755 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30756 };
30757
30758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30760 if (!SWIG_IsOK(res1)) {
30761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30762 }
30763 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30764 ecode2 = SWIG_AsVal_long(obj1, &val2);
30765 if (!SWIG_IsOK(ecode2)) {
30766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30767 }
30768 arg2 = static_cast< long >(val2);
30769 {
30770 arg3 = wxString_in_helper(obj2);
30771 if (arg3 == NULL) SWIG_fail;
30772 temp3 = true;
30773 }
30774 if (obj3) {
30775 ecode4 = SWIG_AsVal_int(obj3, &val4);
30776 if (!SWIG_IsOK(ecode4)) {
30777 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30778 }
30779 arg4 = static_cast< int >(val4);
30780 }
30781 {
30782 PyThreadState* __tstate = wxPyBeginAllowThreads();
30783 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30784 wxPyEndAllowThreads(__tstate);
30785 if (PyErr_Occurred()) SWIG_fail;
30786 }
30787 resultobj = SWIG_From_long(static_cast< long >(result));
30788 {
30789 if (temp3)
30790 delete arg3;
30791 }
30792 return resultobj;
30793 fail:
30794 {
30795 if (temp3)
30796 delete arg3;
30797 }
30798 return NULL;
30799 }
30800
30801
30802 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30803 PyObject *resultobj = 0;
30804 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30805 long arg2 ;
30806 int arg3 ;
30807 long result;
30808 void *argp1 = 0 ;
30809 int res1 = 0 ;
30810 long val2 ;
30811 int ecode2 = 0 ;
30812 int val3 ;
30813 int ecode3 = 0 ;
30814 PyObject * obj0 = 0 ;
30815 PyObject * obj1 = 0 ;
30816 PyObject * obj2 = 0 ;
30817 char * kwnames[] = {
30818 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
30819 };
30820
30821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30823 if (!SWIG_IsOK(res1)) {
30824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30825 }
30826 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30827 ecode2 = SWIG_AsVal_long(obj1, &val2);
30828 if (!SWIG_IsOK(ecode2)) {
30829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
30830 }
30831 arg2 = static_cast< long >(val2);
30832 ecode3 = SWIG_AsVal_int(obj2, &val3);
30833 if (!SWIG_IsOK(ecode3)) {
30834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
30835 }
30836 arg3 = static_cast< int >(val3);
30837 {
30838 PyThreadState* __tstate = wxPyBeginAllowThreads();
30839 result = (long)(arg1)->InsertItem(arg2,arg3);
30840 wxPyEndAllowThreads(__tstate);
30841 if (PyErr_Occurred()) SWIG_fail;
30842 }
30843 resultobj = SWIG_From_long(static_cast< long >(result));
30844 return resultobj;
30845 fail:
30846 return NULL;
30847 }
30848
30849
30850 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30851 PyObject *resultobj = 0;
30852 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30853 long arg2 ;
30854 wxString *arg3 = 0 ;
30855 int arg4 ;
30856 long result;
30857 void *argp1 = 0 ;
30858 int res1 = 0 ;
30859 long val2 ;
30860 int ecode2 = 0 ;
30861 bool temp3 = false ;
30862 int val4 ;
30863 int ecode4 = 0 ;
30864 PyObject * obj0 = 0 ;
30865 PyObject * obj1 = 0 ;
30866 PyObject * obj2 = 0 ;
30867 PyObject * obj3 = 0 ;
30868 char * kwnames[] = {
30869 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30870 };
30871
30872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30874 if (!SWIG_IsOK(res1)) {
30875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30876 }
30877 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30878 ecode2 = SWIG_AsVal_long(obj1, &val2);
30879 if (!SWIG_IsOK(ecode2)) {
30880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
30881 }
30882 arg2 = static_cast< long >(val2);
30883 {
30884 arg3 = wxString_in_helper(obj2);
30885 if (arg3 == NULL) SWIG_fail;
30886 temp3 = true;
30887 }
30888 ecode4 = SWIG_AsVal_int(obj3, &val4);
30889 if (!SWIG_IsOK(ecode4)) {
30890 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
30891 }
30892 arg4 = static_cast< int >(val4);
30893 {
30894 PyThreadState* __tstate = wxPyBeginAllowThreads();
30895 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30896 wxPyEndAllowThreads(__tstate);
30897 if (PyErr_Occurred()) SWIG_fail;
30898 }
30899 resultobj = SWIG_From_long(static_cast< long >(result));
30900 {
30901 if (temp3)
30902 delete arg3;
30903 }
30904 return resultobj;
30905 fail:
30906 {
30907 if (temp3)
30908 delete arg3;
30909 }
30910 return NULL;
30911 }
30912
30913
30914 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30915 PyObject *resultobj = 0;
30916 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30917 long arg2 ;
30918 wxListItem *arg3 = 0 ;
30919 long result;
30920 void *argp1 = 0 ;
30921 int res1 = 0 ;
30922 long val2 ;
30923 int ecode2 = 0 ;
30924 void *argp3 = 0 ;
30925 int res3 = 0 ;
30926 PyObject * obj0 = 0 ;
30927 PyObject * obj1 = 0 ;
30928 PyObject * obj2 = 0 ;
30929 char * kwnames[] = {
30930 (char *) "self",(char *) "col",(char *) "info", NULL
30931 };
30932
30933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30935 if (!SWIG_IsOK(res1)) {
30936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30937 }
30938 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30939 ecode2 = SWIG_AsVal_long(obj1, &val2);
30940 if (!SWIG_IsOK(ecode2)) {
30941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
30942 }
30943 arg2 = static_cast< long >(val2);
30944 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
30945 if (!SWIG_IsOK(res3)) {
30946 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30947 }
30948 if (!argp3) {
30949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30950 }
30951 arg3 = reinterpret_cast< wxListItem * >(argp3);
30952 {
30953 PyThreadState* __tstate = wxPyBeginAllowThreads();
30954 result = (long)(arg1)->InsertColumn(arg2,*arg3);
30955 wxPyEndAllowThreads(__tstate);
30956 if (PyErr_Occurred()) SWIG_fail;
30957 }
30958 resultobj = SWIG_From_long(static_cast< long >(result));
30959 return resultobj;
30960 fail:
30961 return NULL;
30962 }
30963
30964
30965 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30966 PyObject *resultobj = 0;
30967 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30968 long arg2 ;
30969 wxString *arg3 = 0 ;
30970 int arg4 = (int) wxLIST_FORMAT_LEFT ;
30971 int arg5 = (int) -1 ;
30972 long result;
30973 void *argp1 = 0 ;
30974 int res1 = 0 ;
30975 long val2 ;
30976 int ecode2 = 0 ;
30977 bool temp3 = false ;
30978 int val4 ;
30979 int ecode4 = 0 ;
30980 int val5 ;
30981 int ecode5 = 0 ;
30982 PyObject * obj0 = 0 ;
30983 PyObject * obj1 = 0 ;
30984 PyObject * obj2 = 0 ;
30985 PyObject * obj3 = 0 ;
30986 PyObject * obj4 = 0 ;
30987 char * kwnames[] = {
30988 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
30989 };
30990
30991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30993 if (!SWIG_IsOK(res1)) {
30994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30995 }
30996 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30997 ecode2 = SWIG_AsVal_long(obj1, &val2);
30998 if (!SWIG_IsOK(ecode2)) {
30999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31000 }
31001 arg2 = static_cast< long >(val2);
31002 {
31003 arg3 = wxString_in_helper(obj2);
31004 if (arg3 == NULL) SWIG_fail;
31005 temp3 = true;
31006 }
31007 if (obj3) {
31008 ecode4 = SWIG_AsVal_int(obj3, &val4);
31009 if (!SWIG_IsOK(ecode4)) {
31010 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31011 }
31012 arg4 = static_cast< int >(val4);
31013 }
31014 if (obj4) {
31015 ecode5 = SWIG_AsVal_int(obj4, &val5);
31016 if (!SWIG_IsOK(ecode5)) {
31017 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31018 }
31019 arg5 = static_cast< int >(val5);
31020 }
31021 {
31022 PyThreadState* __tstate = wxPyBeginAllowThreads();
31023 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31024 wxPyEndAllowThreads(__tstate);
31025 if (PyErr_Occurred()) SWIG_fail;
31026 }
31027 resultobj = SWIG_From_long(static_cast< long >(result));
31028 {
31029 if (temp3)
31030 delete arg3;
31031 }
31032 return resultobj;
31033 fail:
31034 {
31035 if (temp3)
31036 delete arg3;
31037 }
31038 return NULL;
31039 }
31040
31041
31042 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31043 PyObject *resultobj = 0;
31044 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31045 long arg2 ;
31046 void *argp1 = 0 ;
31047 int res1 = 0 ;
31048 long val2 ;
31049 int ecode2 = 0 ;
31050 PyObject * obj0 = 0 ;
31051 PyObject * obj1 = 0 ;
31052 char * kwnames[] = {
31053 (char *) "self",(char *) "count", NULL
31054 };
31055
31056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31058 if (!SWIG_IsOK(res1)) {
31059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31060 }
31061 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31062 ecode2 = SWIG_AsVal_long(obj1, &val2);
31063 if (!SWIG_IsOK(ecode2)) {
31064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31065 }
31066 arg2 = static_cast< long >(val2);
31067 {
31068 PyThreadState* __tstate = wxPyBeginAllowThreads();
31069 (arg1)->SetItemCount(arg2);
31070 wxPyEndAllowThreads(__tstate);
31071 if (PyErr_Occurred()) SWIG_fail;
31072 }
31073 resultobj = SWIG_Py_Void();
31074 return resultobj;
31075 fail:
31076 return NULL;
31077 }
31078
31079
31080 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31081 PyObject *resultobj = 0;
31082 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31083 int arg2 ;
31084 int arg3 ;
31085 bool result;
31086 void *argp1 = 0 ;
31087 int res1 = 0 ;
31088 int val2 ;
31089 int ecode2 = 0 ;
31090 int val3 ;
31091 int ecode3 = 0 ;
31092 PyObject * obj0 = 0 ;
31093 PyObject * obj1 = 0 ;
31094 PyObject * obj2 = 0 ;
31095 char * kwnames[] = {
31096 (char *) "self",(char *) "dx",(char *) "dy", NULL
31097 };
31098
31099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31101 if (!SWIG_IsOK(res1)) {
31102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31103 }
31104 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31105 ecode2 = SWIG_AsVal_int(obj1, &val2);
31106 if (!SWIG_IsOK(ecode2)) {
31107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31108 }
31109 arg2 = static_cast< int >(val2);
31110 ecode3 = SWIG_AsVal_int(obj2, &val3);
31111 if (!SWIG_IsOK(ecode3)) {
31112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31113 }
31114 arg3 = static_cast< int >(val3);
31115 {
31116 PyThreadState* __tstate = wxPyBeginAllowThreads();
31117 result = (bool)(arg1)->ScrollList(arg2,arg3);
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_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31131 PyObject *resultobj = 0;
31132 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31133 long arg2 ;
31134 wxColour *arg3 = 0 ;
31135 void *argp1 = 0 ;
31136 int res1 = 0 ;
31137 long val2 ;
31138 int ecode2 = 0 ;
31139 wxColour temp3 ;
31140 PyObject * obj0 = 0 ;
31141 PyObject * obj1 = 0 ;
31142 PyObject * obj2 = 0 ;
31143 char * kwnames[] = {
31144 (char *) "self",(char *) "item",(char *) "col", NULL
31145 };
31146
31147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31149 if (!SWIG_IsOK(res1)) {
31150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31151 }
31152 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31153 ecode2 = SWIG_AsVal_long(obj1, &val2);
31154 if (!SWIG_IsOK(ecode2)) {
31155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31156 }
31157 arg2 = static_cast< long >(val2);
31158 {
31159 arg3 = &temp3;
31160 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31161 }
31162 {
31163 PyThreadState* __tstate = wxPyBeginAllowThreads();
31164 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31165 wxPyEndAllowThreads(__tstate);
31166 if (PyErr_Occurred()) SWIG_fail;
31167 }
31168 resultobj = SWIG_Py_Void();
31169 return resultobj;
31170 fail:
31171 return NULL;
31172 }
31173
31174
31175 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31176 PyObject *resultobj = 0;
31177 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31178 long arg2 ;
31179 wxColour result;
31180 void *argp1 = 0 ;
31181 int res1 = 0 ;
31182 long val2 ;
31183 int ecode2 = 0 ;
31184 PyObject * obj0 = 0 ;
31185 PyObject * obj1 = 0 ;
31186 char * kwnames[] = {
31187 (char *) "self",(char *) "item", NULL
31188 };
31189
31190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31192 if (!SWIG_IsOK(res1)) {
31193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31194 }
31195 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31196 ecode2 = SWIG_AsVal_long(obj1, &val2);
31197 if (!SWIG_IsOK(ecode2)) {
31198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31199 }
31200 arg2 = static_cast< long >(val2);
31201 {
31202 PyThreadState* __tstate = wxPyBeginAllowThreads();
31203 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31204 wxPyEndAllowThreads(__tstate);
31205 if (PyErr_Occurred()) SWIG_fail;
31206 }
31207 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31208 return resultobj;
31209 fail:
31210 return NULL;
31211 }
31212
31213
31214 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31215 PyObject *resultobj = 0;
31216 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31217 long arg2 ;
31218 wxColour *arg3 = 0 ;
31219 void *argp1 = 0 ;
31220 int res1 = 0 ;
31221 long val2 ;
31222 int ecode2 = 0 ;
31223 wxColour temp3 ;
31224 PyObject * obj0 = 0 ;
31225 PyObject * obj1 = 0 ;
31226 PyObject * obj2 = 0 ;
31227 char * kwnames[] = {
31228 (char *) "self",(char *) "item",(char *) "col", NULL
31229 };
31230
31231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31233 if (!SWIG_IsOK(res1)) {
31234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31235 }
31236 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31237 ecode2 = SWIG_AsVal_long(obj1, &val2);
31238 if (!SWIG_IsOK(ecode2)) {
31239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31240 }
31241 arg2 = static_cast< long >(val2);
31242 {
31243 arg3 = &temp3;
31244 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31245 }
31246 {
31247 PyThreadState* __tstate = wxPyBeginAllowThreads();
31248 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31249 wxPyEndAllowThreads(__tstate);
31250 if (PyErr_Occurred()) SWIG_fail;
31251 }
31252 resultobj = SWIG_Py_Void();
31253 return resultobj;
31254 fail:
31255 return NULL;
31256 }
31257
31258
31259 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31260 PyObject *resultobj = 0;
31261 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31262 long arg2 ;
31263 wxColour result;
31264 void *argp1 = 0 ;
31265 int res1 = 0 ;
31266 long val2 ;
31267 int ecode2 = 0 ;
31268 PyObject * obj0 = 0 ;
31269 PyObject * obj1 = 0 ;
31270 char * kwnames[] = {
31271 (char *) "self",(char *) "item", NULL
31272 };
31273
31274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31276 if (!SWIG_IsOK(res1)) {
31277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31278 }
31279 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31280 ecode2 = SWIG_AsVal_long(obj1, &val2);
31281 if (!SWIG_IsOK(ecode2)) {
31282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31283 }
31284 arg2 = static_cast< long >(val2);
31285 {
31286 PyThreadState* __tstate = wxPyBeginAllowThreads();
31287 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31288 wxPyEndAllowThreads(__tstate);
31289 if (PyErr_Occurred()) SWIG_fail;
31290 }
31291 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31292 return resultobj;
31293 fail:
31294 return NULL;
31295 }
31296
31297
31298 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31299 PyObject *resultobj = 0;
31300 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31301 long arg2 ;
31302 wxFont *arg3 = 0 ;
31303 void *argp1 = 0 ;
31304 int res1 = 0 ;
31305 long val2 ;
31306 int ecode2 = 0 ;
31307 void *argp3 = 0 ;
31308 int res3 = 0 ;
31309 PyObject * obj0 = 0 ;
31310 PyObject * obj1 = 0 ;
31311 PyObject * obj2 = 0 ;
31312 char * kwnames[] = {
31313 (char *) "self",(char *) "item",(char *) "f", NULL
31314 };
31315
31316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31318 if (!SWIG_IsOK(res1)) {
31319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31320 }
31321 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31322 ecode2 = SWIG_AsVal_long(obj1, &val2);
31323 if (!SWIG_IsOK(ecode2)) {
31324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31325 }
31326 arg2 = static_cast< long >(val2);
31327 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31328 if (!SWIG_IsOK(res3)) {
31329 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31330 }
31331 if (!argp3) {
31332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31333 }
31334 arg3 = reinterpret_cast< wxFont * >(argp3);
31335 {
31336 PyThreadState* __tstate = wxPyBeginAllowThreads();
31337 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31338 wxPyEndAllowThreads(__tstate);
31339 if (PyErr_Occurred()) SWIG_fail;
31340 }
31341 resultobj = SWIG_Py_Void();
31342 return resultobj;
31343 fail:
31344 return NULL;
31345 }
31346
31347
31348 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31349 PyObject *resultobj = 0;
31350 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31351 long arg2 ;
31352 wxFont result;
31353 void *argp1 = 0 ;
31354 int res1 = 0 ;
31355 long val2 ;
31356 int ecode2 = 0 ;
31357 PyObject * obj0 = 0 ;
31358 PyObject * obj1 = 0 ;
31359 char * kwnames[] = {
31360 (char *) "self",(char *) "item", NULL
31361 };
31362
31363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31365 if (!SWIG_IsOK(res1)) {
31366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31367 }
31368 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31369 ecode2 = SWIG_AsVal_long(obj1, &val2);
31370 if (!SWIG_IsOK(ecode2)) {
31371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31372 }
31373 arg2 = static_cast< long >(val2);
31374 {
31375 PyThreadState* __tstate = wxPyBeginAllowThreads();
31376 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31377 wxPyEndAllowThreads(__tstate);
31378 if (PyErr_Occurred()) SWIG_fail;
31379 }
31380 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31381 return resultobj;
31382 fail:
31383 return NULL;
31384 }
31385
31386
31387 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31388 PyObject *resultobj = 0;
31389 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31390 PyObject *arg2 = (PyObject *) 0 ;
31391 bool result;
31392 void *argp1 = 0 ;
31393 int res1 = 0 ;
31394 PyObject * obj0 = 0 ;
31395 PyObject * obj1 = 0 ;
31396 char * kwnames[] = {
31397 (char *) "self",(char *) "func", NULL
31398 };
31399
31400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31402 if (!SWIG_IsOK(res1)) {
31403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31404 }
31405 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31406 arg2 = obj1;
31407 {
31408 PyThreadState* __tstate = wxPyBeginAllowThreads();
31409 result = (bool)wxPyListCtrl_SortItems(arg1,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_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31423 PyObject *resultobj = 0;
31424 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31425 wxWindow *result = 0 ;
31426 void *argp1 = 0 ;
31427 int res1 = 0 ;
31428 PyObject *swig_obj[1] ;
31429
31430 if (!args) SWIG_fail;
31431 swig_obj[0] = args;
31432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31433 if (!SWIG_IsOK(res1)) {
31434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31435 }
31436 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31437 {
31438 PyThreadState* __tstate = wxPyBeginAllowThreads();
31439 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31440 wxPyEndAllowThreads(__tstate);
31441 if (PyErr_Occurred()) SWIG_fail;
31442 }
31443 {
31444 resultobj = wxPyMake_wxObject(result, 0);
31445 }
31446 return resultobj;
31447 fail:
31448 return NULL;
31449 }
31450
31451
31452 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31453 PyObject *resultobj = 0;
31454 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31455 SwigValueWrapper<wxVisualAttributes > result;
31456 int val1 ;
31457 int ecode1 = 0 ;
31458 PyObject * obj0 = 0 ;
31459 char * kwnames[] = {
31460 (char *) "variant", NULL
31461 };
31462
31463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31464 if (obj0) {
31465 ecode1 = SWIG_AsVal_int(obj0, &val1);
31466 if (!SWIG_IsOK(ecode1)) {
31467 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31468 }
31469 arg1 = static_cast< wxWindowVariant >(val1);
31470 }
31471 {
31472 if (!wxPyCheckForApp()) SWIG_fail;
31473 PyThreadState* __tstate = wxPyBeginAllowThreads();
31474 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31475 wxPyEndAllowThreads(__tstate);
31476 if (PyErr_Occurred()) SWIG_fail;
31477 }
31478 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31479 return resultobj;
31480 fail:
31481 return NULL;
31482 }
31483
31484
31485 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31486 PyObject *obj;
31487 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31488 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31489 return SWIG_Py_Void();
31490 }
31491
31492 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31493 return SWIG_Python_InitShadowInstance(args);
31494 }
31495
31496 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31497 PyObject *resultobj = 0;
31498 wxWindow *arg1 = (wxWindow *) 0 ;
31499 int arg2 = (int) -1 ;
31500 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31501 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31502 wxSize const &arg4_defvalue = wxDefaultSize ;
31503 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31504 long arg5 = (long) wxLC_REPORT ;
31505 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31506 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31507 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31508 wxString *arg7 = (wxString *) &arg7_defvalue ;
31509 wxListView *result = 0 ;
31510 void *argp1 = 0 ;
31511 int res1 = 0 ;
31512 int val2 ;
31513 int ecode2 = 0 ;
31514 wxPoint temp3 ;
31515 wxSize temp4 ;
31516 long val5 ;
31517 int ecode5 = 0 ;
31518 void *argp6 = 0 ;
31519 int res6 = 0 ;
31520 bool temp7 = false ;
31521 PyObject * obj0 = 0 ;
31522 PyObject * obj1 = 0 ;
31523 PyObject * obj2 = 0 ;
31524 PyObject * obj3 = 0 ;
31525 PyObject * obj4 = 0 ;
31526 PyObject * obj5 = 0 ;
31527 PyObject * obj6 = 0 ;
31528 char * kwnames[] = {
31529 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31530 };
31531
31532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31534 if (!SWIG_IsOK(res1)) {
31535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31536 }
31537 arg1 = reinterpret_cast< wxWindow * >(argp1);
31538 if (obj1) {
31539 ecode2 = SWIG_AsVal_int(obj1, &val2);
31540 if (!SWIG_IsOK(ecode2)) {
31541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31542 }
31543 arg2 = static_cast< int >(val2);
31544 }
31545 if (obj2) {
31546 {
31547 arg3 = &temp3;
31548 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31549 }
31550 }
31551 if (obj3) {
31552 {
31553 arg4 = &temp4;
31554 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31555 }
31556 }
31557 if (obj4) {
31558 ecode5 = SWIG_AsVal_long(obj4, &val5);
31559 if (!SWIG_IsOK(ecode5)) {
31560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31561 }
31562 arg5 = static_cast< long >(val5);
31563 }
31564 if (obj5) {
31565 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31566 if (!SWIG_IsOK(res6)) {
31567 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31568 }
31569 if (!argp6) {
31570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31571 }
31572 arg6 = reinterpret_cast< wxValidator * >(argp6);
31573 }
31574 if (obj6) {
31575 {
31576 arg7 = wxString_in_helper(obj6);
31577 if (arg7 == NULL) SWIG_fail;
31578 temp7 = true;
31579 }
31580 }
31581 {
31582 if (!wxPyCheckForApp()) SWIG_fail;
31583 PyThreadState* __tstate = wxPyBeginAllowThreads();
31584 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31585 wxPyEndAllowThreads(__tstate);
31586 if (PyErr_Occurred()) SWIG_fail;
31587 }
31588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31589 {
31590 if (temp7)
31591 delete arg7;
31592 }
31593 return resultobj;
31594 fail:
31595 {
31596 if (temp7)
31597 delete arg7;
31598 }
31599 return NULL;
31600 }
31601
31602
31603 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31604 PyObject *resultobj = 0;
31605 wxListView *result = 0 ;
31606
31607 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31608 {
31609 if (!wxPyCheckForApp()) SWIG_fail;
31610 PyThreadState* __tstate = wxPyBeginAllowThreads();
31611 result = (wxListView *)new wxListView();
31612 wxPyEndAllowThreads(__tstate);
31613 if (PyErr_Occurred()) SWIG_fail;
31614 }
31615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31616 return resultobj;
31617 fail:
31618 return NULL;
31619 }
31620
31621
31622 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31623 PyObject *resultobj = 0;
31624 wxListView *arg1 = (wxListView *) 0 ;
31625 wxWindow *arg2 = (wxWindow *) 0 ;
31626 int arg3 = (int) -1 ;
31627 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31628 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31629 wxSize const &arg5_defvalue = wxDefaultSize ;
31630 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31631 long arg6 = (long) wxLC_REPORT ;
31632 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31633 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31634 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31635 wxString *arg8 = (wxString *) &arg8_defvalue ;
31636 bool result;
31637 void *argp1 = 0 ;
31638 int res1 = 0 ;
31639 void *argp2 = 0 ;
31640 int res2 = 0 ;
31641 int val3 ;
31642 int ecode3 = 0 ;
31643 wxPoint temp4 ;
31644 wxSize temp5 ;
31645 long val6 ;
31646 int ecode6 = 0 ;
31647 void *argp7 = 0 ;
31648 int res7 = 0 ;
31649 bool temp8 = false ;
31650 PyObject * obj0 = 0 ;
31651 PyObject * obj1 = 0 ;
31652 PyObject * obj2 = 0 ;
31653 PyObject * obj3 = 0 ;
31654 PyObject * obj4 = 0 ;
31655 PyObject * obj5 = 0 ;
31656 PyObject * obj6 = 0 ;
31657 PyObject * obj7 = 0 ;
31658 char * kwnames[] = {
31659 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31660 };
31661
31662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31664 if (!SWIG_IsOK(res1)) {
31665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31666 }
31667 arg1 = reinterpret_cast< wxListView * >(argp1);
31668 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31669 if (!SWIG_IsOK(res2)) {
31670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31671 }
31672 arg2 = reinterpret_cast< wxWindow * >(argp2);
31673 if (obj2) {
31674 ecode3 = SWIG_AsVal_int(obj2, &val3);
31675 if (!SWIG_IsOK(ecode3)) {
31676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31677 }
31678 arg3 = static_cast< int >(val3);
31679 }
31680 if (obj3) {
31681 {
31682 arg4 = &temp4;
31683 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31684 }
31685 }
31686 if (obj4) {
31687 {
31688 arg5 = &temp5;
31689 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31690 }
31691 }
31692 if (obj5) {
31693 ecode6 = SWIG_AsVal_long(obj5, &val6);
31694 if (!SWIG_IsOK(ecode6)) {
31695 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31696 }
31697 arg6 = static_cast< long >(val6);
31698 }
31699 if (obj6) {
31700 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31701 if (!SWIG_IsOK(res7)) {
31702 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31703 }
31704 if (!argp7) {
31705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31706 }
31707 arg7 = reinterpret_cast< wxValidator * >(argp7);
31708 }
31709 if (obj7) {
31710 {
31711 arg8 = wxString_in_helper(obj7);
31712 if (arg8 == NULL) SWIG_fail;
31713 temp8 = true;
31714 }
31715 }
31716 {
31717 PyThreadState* __tstate = wxPyBeginAllowThreads();
31718 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31719 wxPyEndAllowThreads(__tstate);
31720 if (PyErr_Occurred()) SWIG_fail;
31721 }
31722 {
31723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31724 }
31725 {
31726 if (temp8)
31727 delete arg8;
31728 }
31729 return resultobj;
31730 fail:
31731 {
31732 if (temp8)
31733 delete arg8;
31734 }
31735 return NULL;
31736 }
31737
31738
31739 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31740 PyObject *resultobj = 0;
31741 wxListView *arg1 = (wxListView *) 0 ;
31742 long arg2 ;
31743 bool arg3 = (bool) true ;
31744 void *argp1 = 0 ;
31745 int res1 = 0 ;
31746 long val2 ;
31747 int ecode2 = 0 ;
31748 bool val3 ;
31749 int ecode3 = 0 ;
31750 PyObject * obj0 = 0 ;
31751 PyObject * obj1 = 0 ;
31752 PyObject * obj2 = 0 ;
31753 char * kwnames[] = {
31754 (char *) "self",(char *) "n",(char *) "on", NULL
31755 };
31756
31757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31759 if (!SWIG_IsOK(res1)) {
31760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31761 }
31762 arg1 = reinterpret_cast< wxListView * >(argp1);
31763 ecode2 = SWIG_AsVal_long(obj1, &val2);
31764 if (!SWIG_IsOK(ecode2)) {
31765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31766 }
31767 arg2 = static_cast< long >(val2);
31768 if (obj2) {
31769 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31770 if (!SWIG_IsOK(ecode3)) {
31771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31772 }
31773 arg3 = static_cast< bool >(val3);
31774 }
31775 {
31776 PyThreadState* __tstate = wxPyBeginAllowThreads();
31777 (arg1)->Select(arg2,arg3);
31778 wxPyEndAllowThreads(__tstate);
31779 if (PyErr_Occurred()) SWIG_fail;
31780 }
31781 resultobj = SWIG_Py_Void();
31782 return resultobj;
31783 fail:
31784 return NULL;
31785 }
31786
31787
31788 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31789 PyObject *resultobj = 0;
31790 wxListView *arg1 = (wxListView *) 0 ;
31791 long arg2 ;
31792 void *argp1 = 0 ;
31793 int res1 = 0 ;
31794 long val2 ;
31795 int ecode2 = 0 ;
31796 PyObject * obj0 = 0 ;
31797 PyObject * obj1 = 0 ;
31798 char * kwnames[] = {
31799 (char *) "self",(char *) "index", NULL
31800 };
31801
31802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31804 if (!SWIG_IsOK(res1)) {
31805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31806 }
31807 arg1 = reinterpret_cast< wxListView * >(argp1);
31808 ecode2 = SWIG_AsVal_long(obj1, &val2);
31809 if (!SWIG_IsOK(ecode2)) {
31810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31811 }
31812 arg2 = static_cast< long >(val2);
31813 {
31814 PyThreadState* __tstate = wxPyBeginAllowThreads();
31815 (arg1)->Focus(arg2);
31816 wxPyEndAllowThreads(__tstate);
31817 if (PyErr_Occurred()) SWIG_fail;
31818 }
31819 resultobj = SWIG_Py_Void();
31820 return resultobj;
31821 fail:
31822 return NULL;
31823 }
31824
31825
31826 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31827 PyObject *resultobj = 0;
31828 wxListView *arg1 = (wxListView *) 0 ;
31829 long result;
31830 void *argp1 = 0 ;
31831 int res1 = 0 ;
31832 PyObject *swig_obj[1] ;
31833
31834 if (!args) SWIG_fail;
31835 swig_obj[0] = args;
31836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31837 if (!SWIG_IsOK(res1)) {
31838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
31839 }
31840 arg1 = reinterpret_cast< wxListView * >(argp1);
31841 {
31842 PyThreadState* __tstate = wxPyBeginAllowThreads();
31843 result = (long)((wxListView const *)arg1)->GetFocusedItem();
31844 wxPyEndAllowThreads(__tstate);
31845 if (PyErr_Occurred()) SWIG_fail;
31846 }
31847 resultobj = SWIG_From_long(static_cast< long >(result));
31848 return resultobj;
31849 fail:
31850 return NULL;
31851 }
31852
31853
31854 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31855 PyObject *resultobj = 0;
31856 wxListView *arg1 = (wxListView *) 0 ;
31857 long arg2 ;
31858 long result;
31859 void *argp1 = 0 ;
31860 int res1 = 0 ;
31861 long val2 ;
31862 int ecode2 = 0 ;
31863 PyObject * obj0 = 0 ;
31864 PyObject * obj1 = 0 ;
31865 char * kwnames[] = {
31866 (char *) "self",(char *) "item", NULL
31867 };
31868
31869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31871 if (!SWIG_IsOK(res1)) {
31872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31873 }
31874 arg1 = reinterpret_cast< wxListView * >(argp1);
31875 ecode2 = SWIG_AsVal_long(obj1, &val2);
31876 if (!SWIG_IsOK(ecode2)) {
31877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
31878 }
31879 arg2 = static_cast< long >(val2);
31880 {
31881 PyThreadState* __tstate = wxPyBeginAllowThreads();
31882 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
31883 wxPyEndAllowThreads(__tstate);
31884 if (PyErr_Occurred()) SWIG_fail;
31885 }
31886 resultobj = SWIG_From_long(static_cast< long >(result));
31887 return resultobj;
31888 fail:
31889 return NULL;
31890 }
31891
31892
31893 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31894 PyObject *resultobj = 0;
31895 wxListView *arg1 = (wxListView *) 0 ;
31896 long result;
31897 void *argp1 = 0 ;
31898 int res1 = 0 ;
31899 PyObject *swig_obj[1] ;
31900
31901 if (!args) SWIG_fail;
31902 swig_obj[0] = args;
31903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31904 if (!SWIG_IsOK(res1)) {
31905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31906 }
31907 arg1 = reinterpret_cast< wxListView * >(argp1);
31908 {
31909 PyThreadState* __tstate = wxPyBeginAllowThreads();
31910 result = (long)((wxListView const *)arg1)->GetFirstSelected();
31911 wxPyEndAllowThreads(__tstate);
31912 if (PyErr_Occurred()) SWIG_fail;
31913 }
31914 resultobj = SWIG_From_long(static_cast< long >(result));
31915 return resultobj;
31916 fail:
31917 return NULL;
31918 }
31919
31920
31921 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31922 PyObject *resultobj = 0;
31923 wxListView *arg1 = (wxListView *) 0 ;
31924 long arg2 ;
31925 bool result;
31926 void *argp1 = 0 ;
31927 int res1 = 0 ;
31928 long val2 ;
31929 int ecode2 = 0 ;
31930 PyObject * obj0 = 0 ;
31931 PyObject * obj1 = 0 ;
31932 char * kwnames[] = {
31933 (char *) "self",(char *) "index", NULL
31934 };
31935
31936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31938 if (!SWIG_IsOK(res1)) {
31939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
31940 }
31941 arg1 = reinterpret_cast< wxListView * >(argp1);
31942 ecode2 = SWIG_AsVal_long(obj1, &val2);
31943 if (!SWIG_IsOK(ecode2)) {
31944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
31945 }
31946 arg2 = static_cast< long >(val2);
31947 {
31948 PyThreadState* __tstate = wxPyBeginAllowThreads();
31949 result = (bool)(arg1)->IsSelected(arg2);
31950 wxPyEndAllowThreads(__tstate);
31951 if (PyErr_Occurred()) SWIG_fail;
31952 }
31953 {
31954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31955 }
31956 return resultobj;
31957 fail:
31958 return NULL;
31959 }
31960
31961
31962 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31963 PyObject *resultobj = 0;
31964 wxListView *arg1 = (wxListView *) 0 ;
31965 int arg2 ;
31966 int arg3 ;
31967 void *argp1 = 0 ;
31968 int res1 = 0 ;
31969 int val2 ;
31970 int ecode2 = 0 ;
31971 int val3 ;
31972 int ecode3 = 0 ;
31973 PyObject * obj0 = 0 ;
31974 PyObject * obj1 = 0 ;
31975 PyObject * obj2 = 0 ;
31976 char * kwnames[] = {
31977 (char *) "self",(char *) "col",(char *) "image", NULL
31978 };
31979
31980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31982 if (!SWIG_IsOK(res1)) {
31983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
31984 }
31985 arg1 = reinterpret_cast< wxListView * >(argp1);
31986 ecode2 = SWIG_AsVal_int(obj1, &val2);
31987 if (!SWIG_IsOK(ecode2)) {
31988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
31989 }
31990 arg2 = static_cast< int >(val2);
31991 ecode3 = SWIG_AsVal_int(obj2, &val3);
31992 if (!SWIG_IsOK(ecode3)) {
31993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
31994 }
31995 arg3 = static_cast< int >(val3);
31996 {
31997 PyThreadState* __tstate = wxPyBeginAllowThreads();
31998 (arg1)->SetColumnImage(arg2,arg3);
31999 wxPyEndAllowThreads(__tstate);
32000 if (PyErr_Occurred()) SWIG_fail;
32001 }
32002 resultobj = SWIG_Py_Void();
32003 return resultobj;
32004 fail:
32005 return NULL;
32006 }
32007
32008
32009 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32010 PyObject *resultobj = 0;
32011 wxListView *arg1 = (wxListView *) 0 ;
32012 int arg2 ;
32013 void *argp1 = 0 ;
32014 int res1 = 0 ;
32015 int val2 ;
32016 int ecode2 = 0 ;
32017 PyObject * obj0 = 0 ;
32018 PyObject * obj1 = 0 ;
32019 char * kwnames[] = {
32020 (char *) "self",(char *) "col", NULL
32021 };
32022
32023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32025 if (!SWIG_IsOK(res1)) {
32026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32027 }
32028 arg1 = reinterpret_cast< wxListView * >(argp1);
32029 ecode2 = SWIG_AsVal_int(obj1, &val2);
32030 if (!SWIG_IsOK(ecode2)) {
32031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32032 }
32033 arg2 = static_cast< int >(val2);
32034 {
32035 PyThreadState* __tstate = wxPyBeginAllowThreads();
32036 (arg1)->ClearColumnImage(arg2);
32037 wxPyEndAllowThreads(__tstate);
32038 if (PyErr_Occurred()) SWIG_fail;
32039 }
32040 resultobj = SWIG_Py_Void();
32041 return resultobj;
32042 fail:
32043 return NULL;
32044 }
32045
32046
32047 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32048 PyObject *obj;
32049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32050 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32051 return SWIG_Py_Void();
32052 }
32053
32054 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32055 return SWIG_Python_InitShadowInstance(args);
32056 }
32057
32058 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32059 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32060 return 1;
32061 }
32062
32063
32064 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32065 PyObject *pyobj = 0;
32066
32067 {
32068 #if wxUSE_UNICODE
32069 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32070 #else
32071 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32072 #endif
32073 }
32074 return pyobj;
32075 }
32076
32077
32078 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32079 PyObject *resultobj = 0;
32080 wxTreeItemId *result = 0 ;
32081
32082 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32083 {
32084 PyThreadState* __tstate = wxPyBeginAllowThreads();
32085 result = (wxTreeItemId *)new wxTreeItemId();
32086 wxPyEndAllowThreads(__tstate);
32087 if (PyErr_Occurred()) SWIG_fail;
32088 }
32089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32090 return resultobj;
32091 fail:
32092 return NULL;
32093 }
32094
32095
32096 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32097 PyObject *resultobj = 0;
32098 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32099 void *argp1 = 0 ;
32100 int res1 = 0 ;
32101 PyObject *swig_obj[1] ;
32102
32103 if (!args) SWIG_fail;
32104 swig_obj[0] = args;
32105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32106 if (!SWIG_IsOK(res1)) {
32107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32108 }
32109 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32110 {
32111 PyThreadState* __tstate = wxPyBeginAllowThreads();
32112 delete arg1;
32113
32114 wxPyEndAllowThreads(__tstate);
32115 if (PyErr_Occurred()) SWIG_fail;
32116 }
32117 resultobj = SWIG_Py_Void();
32118 return resultobj;
32119 fail:
32120 return NULL;
32121 }
32122
32123
32124 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32125 PyObject *resultobj = 0;
32126 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32127 bool result;
32128 void *argp1 = 0 ;
32129 int res1 = 0 ;
32130 PyObject *swig_obj[1] ;
32131
32132 if (!args) SWIG_fail;
32133 swig_obj[0] = args;
32134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32135 if (!SWIG_IsOK(res1)) {
32136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32137 }
32138 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32139 {
32140 PyThreadState* __tstate = wxPyBeginAllowThreads();
32141 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32142 wxPyEndAllowThreads(__tstate);
32143 if (PyErr_Occurred()) SWIG_fail;
32144 }
32145 {
32146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32147 }
32148 return resultobj;
32149 fail:
32150 return NULL;
32151 }
32152
32153
32154 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32155 PyObject *resultobj = 0;
32156 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32157 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32158 bool result;
32159 void *argp1 = 0 ;
32160 int res1 = 0 ;
32161 void *argp2 = 0 ;
32162 int res2 = 0 ;
32163 PyObject * obj0 = 0 ;
32164 PyObject * obj1 = 0 ;
32165 char * kwnames[] = {
32166 (char *) "self",(char *) "other", NULL
32167 };
32168
32169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32171 if (!SWIG_IsOK(res1)) {
32172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32173 }
32174 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32175 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32176 if (!SWIG_IsOK(res2)) {
32177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32178 }
32179 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32180 {
32181 PyThreadState* __tstate = wxPyBeginAllowThreads();
32182 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32183 wxPyEndAllowThreads(__tstate);
32184 if (PyErr_Occurred()) SWIG_fail;
32185 }
32186 {
32187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32188 }
32189 return resultobj;
32190 fail:
32191 return NULL;
32192 }
32193
32194
32195 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32196 PyObject *resultobj = 0;
32197 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32198 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32199 bool result;
32200 void *argp1 = 0 ;
32201 int res1 = 0 ;
32202 void *argp2 = 0 ;
32203 int res2 = 0 ;
32204 PyObject * obj0 = 0 ;
32205 PyObject * obj1 = 0 ;
32206 char * kwnames[] = {
32207 (char *) "self",(char *) "other", NULL
32208 };
32209
32210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32212 if (!SWIG_IsOK(res1)) {
32213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32214 }
32215 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32216 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32217 if (!SWIG_IsOK(res2)) {
32218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32219 }
32220 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32221 {
32222 PyThreadState* __tstate = wxPyBeginAllowThreads();
32223 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32224 wxPyEndAllowThreads(__tstate);
32225 if (PyErr_Occurred()) SWIG_fail;
32226 }
32227 {
32228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32229 }
32230 return resultobj;
32231 fail:
32232 return NULL;
32233 }
32234
32235
32236 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32237 PyObject *resultobj = 0;
32238 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32239 void *arg2 = (void *) 0 ;
32240 void *argp1 = 0 ;
32241 int res1 = 0 ;
32242 int res2 ;
32243 PyObject *swig_obj[2] ;
32244
32245 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32247 if (!SWIG_IsOK(res1)) {
32248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32249 }
32250 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32251 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32252 if (!SWIG_IsOK(res2)) {
32253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32254 }
32255 if (arg1) (arg1)->m_pItem = arg2;
32256
32257 resultobj = SWIG_Py_Void();
32258 return resultobj;
32259 fail:
32260 return NULL;
32261 }
32262
32263
32264 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32265 PyObject *resultobj = 0;
32266 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32267 void *result = 0 ;
32268 void *argp1 = 0 ;
32269 int res1 = 0 ;
32270 PyObject *swig_obj[1] ;
32271
32272 if (!args) SWIG_fail;
32273 swig_obj[0] = args;
32274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32275 if (!SWIG_IsOK(res1)) {
32276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32277 }
32278 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32279 result = (void *) ((arg1)->m_pItem);
32280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32281 return resultobj;
32282 fail:
32283 return NULL;
32284 }
32285
32286
32287 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32288 PyObject *obj;
32289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32290 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32291 return SWIG_Py_Void();
32292 }
32293
32294 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32295 return SWIG_Python_InitShadowInstance(args);
32296 }
32297
32298 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32299 PyObject *resultobj = 0;
32300 PyObject *arg1 = (PyObject *) NULL ;
32301 wxPyTreeItemData *result = 0 ;
32302 PyObject * obj0 = 0 ;
32303 char * kwnames[] = {
32304 (char *) "obj", NULL
32305 };
32306
32307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32308 if (obj0) {
32309 arg1 = obj0;
32310 }
32311 {
32312 PyThreadState* __tstate = wxPyBeginAllowThreads();
32313 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32314 wxPyEndAllowThreads(__tstate);
32315 if (PyErr_Occurred()) SWIG_fail;
32316 }
32317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32318 return resultobj;
32319 fail:
32320 return NULL;
32321 }
32322
32323
32324 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32325 PyObject *resultobj = 0;
32326 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32327 void *argp1 = 0 ;
32328 int res1 = 0 ;
32329 PyObject *swig_obj[1] ;
32330
32331 if (!args) SWIG_fail;
32332 swig_obj[0] = args;
32333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32334 if (!SWIG_IsOK(res1)) {
32335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32336 }
32337 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32338 {
32339 PyThreadState* __tstate = wxPyBeginAllowThreads();
32340 delete arg1;
32341
32342 wxPyEndAllowThreads(__tstate);
32343 if (PyErr_Occurred()) SWIG_fail;
32344 }
32345 resultobj = SWIG_Py_Void();
32346 return resultobj;
32347 fail:
32348 return NULL;
32349 }
32350
32351
32352 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32353 PyObject *resultobj = 0;
32354 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32355 PyObject *result = 0 ;
32356 void *argp1 = 0 ;
32357 int res1 = 0 ;
32358 PyObject *swig_obj[1] ;
32359
32360 if (!args) SWIG_fail;
32361 swig_obj[0] = args;
32362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32363 if (!SWIG_IsOK(res1)) {
32364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32365 }
32366 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32367 {
32368 PyThreadState* __tstate = wxPyBeginAllowThreads();
32369 result = (PyObject *)(arg1)->GetData();
32370 wxPyEndAllowThreads(__tstate);
32371 if (PyErr_Occurred()) SWIG_fail;
32372 }
32373 resultobj = result;
32374 return resultobj;
32375 fail:
32376 return NULL;
32377 }
32378
32379
32380 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32381 PyObject *resultobj = 0;
32382 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32383 PyObject *arg2 = (PyObject *) 0 ;
32384 void *argp1 = 0 ;
32385 int res1 = 0 ;
32386 PyObject * obj0 = 0 ;
32387 PyObject * obj1 = 0 ;
32388 char * kwnames[] = {
32389 (char *) "self",(char *) "obj", NULL
32390 };
32391
32392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32394 if (!SWIG_IsOK(res1)) {
32395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32396 }
32397 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32398 arg2 = obj1;
32399 {
32400 PyThreadState* __tstate = wxPyBeginAllowThreads();
32401 (arg1)->SetData(arg2);
32402 wxPyEndAllowThreads(__tstate);
32403 if (PyErr_Occurred()) SWIG_fail;
32404 }
32405 resultobj = SWIG_Py_Void();
32406 return resultobj;
32407 fail:
32408 return NULL;
32409 }
32410
32411
32412 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32413 PyObject *resultobj = 0;
32414 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32415 wxTreeItemId *result = 0 ;
32416 void *argp1 = 0 ;
32417 int res1 = 0 ;
32418 PyObject *swig_obj[1] ;
32419
32420 if (!args) SWIG_fail;
32421 swig_obj[0] = args;
32422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32423 if (!SWIG_IsOK(res1)) {
32424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32425 }
32426 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32427 {
32428 PyThreadState* __tstate = wxPyBeginAllowThreads();
32429 {
32430 wxTreeItemId const &_result_ref = (arg1)->GetId();
32431 result = (wxTreeItemId *) &_result_ref;
32432 }
32433 wxPyEndAllowThreads(__tstate);
32434 if (PyErr_Occurred()) SWIG_fail;
32435 }
32436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32437 return resultobj;
32438 fail:
32439 return NULL;
32440 }
32441
32442
32443 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32444 PyObject *resultobj = 0;
32445 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32446 wxTreeItemId *arg2 = 0 ;
32447 void *argp1 = 0 ;
32448 int res1 = 0 ;
32449 void *argp2 = 0 ;
32450 int res2 = 0 ;
32451 PyObject * obj0 = 0 ;
32452 PyObject * obj1 = 0 ;
32453 char * kwnames[] = {
32454 (char *) "self",(char *) "id", NULL
32455 };
32456
32457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32459 if (!SWIG_IsOK(res1)) {
32460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32461 }
32462 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32464 if (!SWIG_IsOK(res2)) {
32465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32466 }
32467 if (!argp2) {
32468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32469 }
32470 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32471 {
32472 PyThreadState* __tstate = wxPyBeginAllowThreads();
32473 (arg1)->SetId((wxTreeItemId const &)*arg2);
32474 wxPyEndAllowThreads(__tstate);
32475 if (PyErr_Occurred()) SWIG_fail;
32476 }
32477 resultobj = SWIG_Py_Void();
32478 return resultobj;
32479 fail:
32480 return NULL;
32481 }
32482
32483
32484 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32485 PyObject *resultobj = 0;
32486 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32487 void *argp1 = 0 ;
32488 int res1 = 0 ;
32489 PyObject *swig_obj[1] ;
32490
32491 if (!args) SWIG_fail;
32492 swig_obj[0] = args;
32493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32494 if (!SWIG_IsOK(res1)) {
32495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32496 }
32497 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32498 {
32499 PyThreadState* __tstate = wxPyBeginAllowThreads();
32500 wxPyTreeItemData_Destroy(arg1);
32501 wxPyEndAllowThreads(__tstate);
32502 if (PyErr_Occurred()) SWIG_fail;
32503 }
32504 resultobj = SWIG_Py_Void();
32505 return resultobj;
32506 fail:
32507 return NULL;
32508 }
32509
32510
32511 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32512 PyObject *obj;
32513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32514 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32515 return SWIG_Py_Void();
32516 }
32517
32518 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32519 return SWIG_Python_InitShadowInstance(args);
32520 }
32521
32522 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32523 PyObject *resultobj = 0;
32524 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32525 int arg2 = (int) 0 ;
32526 wxTreeEvent *result = 0 ;
32527 int val1 ;
32528 int ecode1 = 0 ;
32529 int val2 ;
32530 int ecode2 = 0 ;
32531 PyObject * obj0 = 0 ;
32532 PyObject * obj1 = 0 ;
32533 char * kwnames[] = {
32534 (char *) "commandType",(char *) "id", NULL
32535 };
32536
32537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32538 if (obj0) {
32539 ecode1 = SWIG_AsVal_int(obj0, &val1);
32540 if (!SWIG_IsOK(ecode1)) {
32541 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32542 }
32543 arg1 = static_cast< wxEventType >(val1);
32544 }
32545 if (obj1) {
32546 ecode2 = SWIG_AsVal_int(obj1, &val2);
32547 if (!SWIG_IsOK(ecode2)) {
32548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32549 }
32550 arg2 = static_cast< int >(val2);
32551 }
32552 {
32553 PyThreadState* __tstate = wxPyBeginAllowThreads();
32554 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32555 wxPyEndAllowThreads(__tstate);
32556 if (PyErr_Occurred()) SWIG_fail;
32557 }
32558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32559 return resultobj;
32560 fail:
32561 return NULL;
32562 }
32563
32564
32565 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32566 PyObject *resultobj = 0;
32567 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32568 wxTreeItemId result;
32569 void *argp1 = 0 ;
32570 int res1 = 0 ;
32571 PyObject *swig_obj[1] ;
32572
32573 if (!args) SWIG_fail;
32574 swig_obj[0] = args;
32575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32576 if (!SWIG_IsOK(res1)) {
32577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32578 }
32579 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32580 {
32581 PyThreadState* __tstate = wxPyBeginAllowThreads();
32582 result = ((wxTreeEvent const *)arg1)->GetItem();
32583 wxPyEndAllowThreads(__tstate);
32584 if (PyErr_Occurred()) SWIG_fail;
32585 }
32586 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32587 return resultobj;
32588 fail:
32589 return NULL;
32590 }
32591
32592
32593 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32594 PyObject *resultobj = 0;
32595 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32596 wxTreeItemId *arg2 = 0 ;
32597 void *argp1 = 0 ;
32598 int res1 = 0 ;
32599 void *argp2 = 0 ;
32600 int res2 = 0 ;
32601 PyObject * obj0 = 0 ;
32602 PyObject * obj1 = 0 ;
32603 char * kwnames[] = {
32604 (char *) "self",(char *) "item", NULL
32605 };
32606
32607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32609 if (!SWIG_IsOK(res1)) {
32610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32611 }
32612 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32614 if (!SWIG_IsOK(res2)) {
32615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32616 }
32617 if (!argp2) {
32618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32619 }
32620 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32621 {
32622 PyThreadState* __tstate = wxPyBeginAllowThreads();
32623 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32624 wxPyEndAllowThreads(__tstate);
32625 if (PyErr_Occurred()) SWIG_fail;
32626 }
32627 resultobj = SWIG_Py_Void();
32628 return resultobj;
32629 fail:
32630 return NULL;
32631 }
32632
32633
32634 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32635 PyObject *resultobj = 0;
32636 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32637 wxTreeItemId result;
32638 void *argp1 = 0 ;
32639 int res1 = 0 ;
32640 PyObject *swig_obj[1] ;
32641
32642 if (!args) SWIG_fail;
32643 swig_obj[0] = args;
32644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32645 if (!SWIG_IsOK(res1)) {
32646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32647 }
32648 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32649 {
32650 PyThreadState* __tstate = wxPyBeginAllowThreads();
32651 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32652 wxPyEndAllowThreads(__tstate);
32653 if (PyErr_Occurred()) SWIG_fail;
32654 }
32655 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32656 return resultobj;
32657 fail:
32658 return NULL;
32659 }
32660
32661
32662 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32663 PyObject *resultobj = 0;
32664 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32665 wxTreeItemId *arg2 = 0 ;
32666 void *argp1 = 0 ;
32667 int res1 = 0 ;
32668 void *argp2 = 0 ;
32669 int res2 = 0 ;
32670 PyObject * obj0 = 0 ;
32671 PyObject * obj1 = 0 ;
32672 char * kwnames[] = {
32673 (char *) "self",(char *) "item", NULL
32674 };
32675
32676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32678 if (!SWIG_IsOK(res1)) {
32679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32680 }
32681 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32682 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32683 if (!SWIG_IsOK(res2)) {
32684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32685 }
32686 if (!argp2) {
32687 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32688 }
32689 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32690 {
32691 PyThreadState* __tstate = wxPyBeginAllowThreads();
32692 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32693 wxPyEndAllowThreads(__tstate);
32694 if (PyErr_Occurred()) SWIG_fail;
32695 }
32696 resultobj = SWIG_Py_Void();
32697 return resultobj;
32698 fail:
32699 return NULL;
32700 }
32701
32702
32703 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32704 PyObject *resultobj = 0;
32705 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32706 wxPoint result;
32707 void *argp1 = 0 ;
32708 int res1 = 0 ;
32709 PyObject *swig_obj[1] ;
32710
32711 if (!args) SWIG_fail;
32712 swig_obj[0] = args;
32713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32714 if (!SWIG_IsOK(res1)) {
32715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32716 }
32717 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32718 {
32719 PyThreadState* __tstate = wxPyBeginAllowThreads();
32720 result = ((wxTreeEvent const *)arg1)->GetPoint();
32721 wxPyEndAllowThreads(__tstate);
32722 if (PyErr_Occurred()) SWIG_fail;
32723 }
32724 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32725 return resultobj;
32726 fail:
32727 return NULL;
32728 }
32729
32730
32731 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32732 PyObject *resultobj = 0;
32733 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32734 wxPoint *arg2 = 0 ;
32735 void *argp1 = 0 ;
32736 int res1 = 0 ;
32737 wxPoint temp2 ;
32738 PyObject * obj0 = 0 ;
32739 PyObject * obj1 = 0 ;
32740 char * kwnames[] = {
32741 (char *) "self",(char *) "pt", NULL
32742 };
32743
32744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32746 if (!SWIG_IsOK(res1)) {
32747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32748 }
32749 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32750 {
32751 arg2 = &temp2;
32752 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32753 }
32754 {
32755 PyThreadState* __tstate = wxPyBeginAllowThreads();
32756 (arg1)->SetPoint((wxPoint const &)*arg2);
32757 wxPyEndAllowThreads(__tstate);
32758 if (PyErr_Occurred()) SWIG_fail;
32759 }
32760 resultobj = SWIG_Py_Void();
32761 return resultobj;
32762 fail:
32763 return NULL;
32764 }
32765
32766
32767 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32768 PyObject *resultobj = 0;
32769 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32770 wxKeyEvent *result = 0 ;
32771 void *argp1 = 0 ;
32772 int res1 = 0 ;
32773 PyObject *swig_obj[1] ;
32774
32775 if (!args) SWIG_fail;
32776 swig_obj[0] = args;
32777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32778 if (!SWIG_IsOK(res1)) {
32779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32780 }
32781 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32782 {
32783 PyThreadState* __tstate = wxPyBeginAllowThreads();
32784 {
32785 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32786 result = (wxKeyEvent *) &_result_ref;
32787 }
32788 wxPyEndAllowThreads(__tstate);
32789 if (PyErr_Occurred()) SWIG_fail;
32790 }
32791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32792 return resultobj;
32793 fail:
32794 return NULL;
32795 }
32796
32797
32798 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32799 PyObject *resultobj = 0;
32800 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32801 int result;
32802 void *argp1 = 0 ;
32803 int res1 = 0 ;
32804 PyObject *swig_obj[1] ;
32805
32806 if (!args) SWIG_fail;
32807 swig_obj[0] = args;
32808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32809 if (!SWIG_IsOK(res1)) {
32810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32811 }
32812 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32813 {
32814 PyThreadState* __tstate = wxPyBeginAllowThreads();
32815 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
32816 wxPyEndAllowThreads(__tstate);
32817 if (PyErr_Occurred()) SWIG_fail;
32818 }
32819 resultobj = SWIG_From_int(static_cast< int >(result));
32820 return resultobj;
32821 fail:
32822 return NULL;
32823 }
32824
32825
32826 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32827 PyObject *resultobj = 0;
32828 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32829 wxKeyEvent *arg2 = 0 ;
32830 void *argp1 = 0 ;
32831 int res1 = 0 ;
32832 void *argp2 = 0 ;
32833 int res2 = 0 ;
32834 PyObject * obj0 = 0 ;
32835 PyObject * obj1 = 0 ;
32836 char * kwnames[] = {
32837 (char *) "self",(char *) "evt", NULL
32838 };
32839
32840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32842 if (!SWIG_IsOK(res1)) {
32843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32844 }
32845 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32846 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
32847 if (!SWIG_IsOK(res2)) {
32848 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32849 }
32850 if (!argp2) {
32851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32852 }
32853 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
32854 {
32855 PyThreadState* __tstate = wxPyBeginAllowThreads();
32856 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
32857 wxPyEndAllowThreads(__tstate);
32858 if (PyErr_Occurred()) SWIG_fail;
32859 }
32860 resultobj = SWIG_Py_Void();
32861 return resultobj;
32862 fail:
32863 return NULL;
32864 }
32865
32866
32867 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32868 PyObject *resultobj = 0;
32869 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32870 wxString *result = 0 ;
32871 void *argp1 = 0 ;
32872 int res1 = 0 ;
32873 PyObject *swig_obj[1] ;
32874
32875 if (!args) SWIG_fail;
32876 swig_obj[0] = args;
32877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32878 if (!SWIG_IsOK(res1)) {
32879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32880 }
32881 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32882 {
32883 PyThreadState* __tstate = wxPyBeginAllowThreads();
32884 {
32885 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
32886 result = (wxString *) &_result_ref;
32887 }
32888 wxPyEndAllowThreads(__tstate);
32889 if (PyErr_Occurred()) SWIG_fail;
32890 }
32891 {
32892 #if wxUSE_UNICODE
32893 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32894 #else
32895 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32896 #endif
32897 }
32898 return resultobj;
32899 fail:
32900 return NULL;
32901 }
32902
32903
32904 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32905 PyObject *resultobj = 0;
32906 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32907 wxString *arg2 = 0 ;
32908 void *argp1 = 0 ;
32909 int res1 = 0 ;
32910 bool temp2 = false ;
32911 PyObject * obj0 = 0 ;
32912 PyObject * obj1 = 0 ;
32913 char * kwnames[] = {
32914 (char *) "self",(char *) "label", NULL
32915 };
32916
32917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
32918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32919 if (!SWIG_IsOK(res1)) {
32920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32921 }
32922 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32923 {
32924 arg2 = wxString_in_helper(obj1);
32925 if (arg2 == NULL) SWIG_fail;
32926 temp2 = true;
32927 }
32928 {
32929 PyThreadState* __tstate = wxPyBeginAllowThreads();
32930 (arg1)->SetLabel((wxString const &)*arg2);
32931 wxPyEndAllowThreads(__tstate);
32932 if (PyErr_Occurred()) SWIG_fail;
32933 }
32934 resultobj = SWIG_Py_Void();
32935 {
32936 if (temp2)
32937 delete arg2;
32938 }
32939 return resultobj;
32940 fail:
32941 {
32942 if (temp2)
32943 delete arg2;
32944 }
32945 return NULL;
32946 }
32947
32948
32949 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32950 PyObject *resultobj = 0;
32951 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32952 bool result;
32953 void *argp1 = 0 ;
32954 int res1 = 0 ;
32955 PyObject *swig_obj[1] ;
32956
32957 if (!args) SWIG_fail;
32958 swig_obj[0] = args;
32959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32960 if (!SWIG_IsOK(res1)) {
32961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32962 }
32963 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32964 {
32965 PyThreadState* __tstate = wxPyBeginAllowThreads();
32966 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
32967 wxPyEndAllowThreads(__tstate);
32968 if (PyErr_Occurred()) SWIG_fail;
32969 }
32970 {
32971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32972 }
32973 return resultobj;
32974 fail:
32975 return NULL;
32976 }
32977
32978
32979 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32980 PyObject *resultobj = 0;
32981 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32982 bool arg2 ;
32983 void *argp1 = 0 ;
32984 int res1 = 0 ;
32985 bool val2 ;
32986 int ecode2 = 0 ;
32987 PyObject * obj0 = 0 ;
32988 PyObject * obj1 = 0 ;
32989 char * kwnames[] = {
32990 (char *) "self",(char *) "editCancelled", NULL
32991 };
32992
32993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
32994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32995 if (!SWIG_IsOK(res1)) {
32996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32997 }
32998 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32999 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33000 if (!SWIG_IsOK(ecode2)) {
33001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33002 }
33003 arg2 = static_cast< bool >(val2);
33004 {
33005 PyThreadState* __tstate = wxPyBeginAllowThreads();
33006 (arg1)->SetEditCanceled(arg2);
33007 wxPyEndAllowThreads(__tstate);
33008 if (PyErr_Occurred()) SWIG_fail;
33009 }
33010 resultobj = SWIG_Py_Void();
33011 return resultobj;
33012 fail:
33013 return NULL;
33014 }
33015
33016
33017 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33018 PyObject *resultobj = 0;
33019 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33020 wxString *arg2 = 0 ;
33021 void *argp1 = 0 ;
33022 int res1 = 0 ;
33023 bool temp2 = false ;
33024 PyObject * obj0 = 0 ;
33025 PyObject * obj1 = 0 ;
33026 char * kwnames[] = {
33027 (char *) "self",(char *) "toolTip", NULL
33028 };
33029
33030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33032 if (!SWIG_IsOK(res1)) {
33033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33034 }
33035 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33036 {
33037 arg2 = wxString_in_helper(obj1);
33038 if (arg2 == NULL) SWIG_fail;
33039 temp2 = true;
33040 }
33041 {
33042 PyThreadState* __tstate = wxPyBeginAllowThreads();
33043 (arg1)->SetToolTip((wxString const &)*arg2);
33044 wxPyEndAllowThreads(__tstate);
33045 if (PyErr_Occurred()) SWIG_fail;
33046 }
33047 resultobj = SWIG_Py_Void();
33048 {
33049 if (temp2)
33050 delete arg2;
33051 }
33052 return resultobj;
33053 fail:
33054 {
33055 if (temp2)
33056 delete arg2;
33057 }
33058 return NULL;
33059 }
33060
33061
33062 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33063 PyObject *resultobj = 0;
33064 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33065 wxString result;
33066 void *argp1 = 0 ;
33067 int res1 = 0 ;
33068 PyObject *swig_obj[1] ;
33069
33070 if (!args) SWIG_fail;
33071 swig_obj[0] = args;
33072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33073 if (!SWIG_IsOK(res1)) {
33074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33075 }
33076 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33077 {
33078 PyThreadState* __tstate = wxPyBeginAllowThreads();
33079 result = (arg1)->GetToolTip();
33080 wxPyEndAllowThreads(__tstate);
33081 if (PyErr_Occurred()) SWIG_fail;
33082 }
33083 {
33084 #if wxUSE_UNICODE
33085 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33086 #else
33087 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33088 #endif
33089 }
33090 return resultobj;
33091 fail:
33092 return NULL;
33093 }
33094
33095
33096 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33097 PyObject *obj;
33098 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33099 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33100 return SWIG_Py_Void();
33101 }
33102
33103 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33104 return SWIG_Python_InitShadowInstance(args);
33105 }
33106
33107 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33108 PyObject *resultobj = 0;
33109 wxWindow *arg1 = (wxWindow *) 0 ;
33110 int arg2 = (int) -1 ;
33111 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33112 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33113 wxSize const &arg4_defvalue = wxDefaultSize ;
33114 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33115 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33116 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33117 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33118 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33119 wxString *arg7 = (wxString *) &arg7_defvalue ;
33120 wxPyTreeCtrl *result = 0 ;
33121 void *argp1 = 0 ;
33122 int res1 = 0 ;
33123 int val2 ;
33124 int ecode2 = 0 ;
33125 wxPoint temp3 ;
33126 wxSize temp4 ;
33127 long val5 ;
33128 int ecode5 = 0 ;
33129 void *argp6 = 0 ;
33130 int res6 = 0 ;
33131 bool temp7 = false ;
33132 PyObject * obj0 = 0 ;
33133 PyObject * obj1 = 0 ;
33134 PyObject * obj2 = 0 ;
33135 PyObject * obj3 = 0 ;
33136 PyObject * obj4 = 0 ;
33137 PyObject * obj5 = 0 ;
33138 PyObject * obj6 = 0 ;
33139 char * kwnames[] = {
33140 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33141 };
33142
33143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33145 if (!SWIG_IsOK(res1)) {
33146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33147 }
33148 arg1 = reinterpret_cast< wxWindow * >(argp1);
33149 if (obj1) {
33150 ecode2 = SWIG_AsVal_int(obj1, &val2);
33151 if (!SWIG_IsOK(ecode2)) {
33152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33153 }
33154 arg2 = static_cast< int >(val2);
33155 }
33156 if (obj2) {
33157 {
33158 arg3 = &temp3;
33159 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33160 }
33161 }
33162 if (obj3) {
33163 {
33164 arg4 = &temp4;
33165 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33166 }
33167 }
33168 if (obj4) {
33169 ecode5 = SWIG_AsVal_long(obj4, &val5);
33170 if (!SWIG_IsOK(ecode5)) {
33171 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33172 }
33173 arg5 = static_cast< long >(val5);
33174 }
33175 if (obj5) {
33176 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33177 if (!SWIG_IsOK(res6)) {
33178 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33179 }
33180 if (!argp6) {
33181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33182 }
33183 arg6 = reinterpret_cast< wxValidator * >(argp6);
33184 }
33185 if (obj6) {
33186 {
33187 arg7 = wxString_in_helper(obj6);
33188 if (arg7 == NULL) SWIG_fail;
33189 temp7 = true;
33190 }
33191 }
33192 {
33193 if (!wxPyCheckForApp()) SWIG_fail;
33194 PyThreadState* __tstate = wxPyBeginAllowThreads();
33195 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33196 wxPyEndAllowThreads(__tstate);
33197 if (PyErr_Occurred()) SWIG_fail;
33198 }
33199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33200 {
33201 if (temp7)
33202 delete arg7;
33203 }
33204 return resultobj;
33205 fail:
33206 {
33207 if (temp7)
33208 delete arg7;
33209 }
33210 return NULL;
33211 }
33212
33213
33214 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33215 PyObject *resultobj = 0;
33216 wxPyTreeCtrl *result = 0 ;
33217
33218 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33219 {
33220 if (!wxPyCheckForApp()) SWIG_fail;
33221 PyThreadState* __tstate = wxPyBeginAllowThreads();
33222 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33223 wxPyEndAllowThreads(__tstate);
33224 if (PyErr_Occurred()) SWIG_fail;
33225 }
33226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33227 return resultobj;
33228 fail:
33229 return NULL;
33230 }
33231
33232
33233 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33234 PyObject *resultobj = 0;
33235 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33236 wxWindow *arg2 = (wxWindow *) 0 ;
33237 int arg3 = (int) -1 ;
33238 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33239 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33240 wxSize const &arg5_defvalue = wxDefaultSize ;
33241 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33242 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33243 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33244 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33245 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33246 wxString *arg8 = (wxString *) &arg8_defvalue ;
33247 bool result;
33248 void *argp1 = 0 ;
33249 int res1 = 0 ;
33250 void *argp2 = 0 ;
33251 int res2 = 0 ;
33252 int val3 ;
33253 int ecode3 = 0 ;
33254 wxPoint temp4 ;
33255 wxSize temp5 ;
33256 long val6 ;
33257 int ecode6 = 0 ;
33258 void *argp7 = 0 ;
33259 int res7 = 0 ;
33260 bool temp8 = false ;
33261 PyObject * obj0 = 0 ;
33262 PyObject * obj1 = 0 ;
33263 PyObject * obj2 = 0 ;
33264 PyObject * obj3 = 0 ;
33265 PyObject * obj4 = 0 ;
33266 PyObject * obj5 = 0 ;
33267 PyObject * obj6 = 0 ;
33268 PyObject * obj7 = 0 ;
33269 char * kwnames[] = {
33270 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33271 };
33272
33273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33275 if (!SWIG_IsOK(res1)) {
33276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33277 }
33278 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33279 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33280 if (!SWIG_IsOK(res2)) {
33281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33282 }
33283 arg2 = reinterpret_cast< wxWindow * >(argp2);
33284 if (obj2) {
33285 ecode3 = SWIG_AsVal_int(obj2, &val3);
33286 if (!SWIG_IsOK(ecode3)) {
33287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33288 }
33289 arg3 = static_cast< int >(val3);
33290 }
33291 if (obj3) {
33292 {
33293 arg4 = &temp4;
33294 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33295 }
33296 }
33297 if (obj4) {
33298 {
33299 arg5 = &temp5;
33300 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33301 }
33302 }
33303 if (obj5) {
33304 ecode6 = SWIG_AsVal_long(obj5, &val6);
33305 if (!SWIG_IsOK(ecode6)) {
33306 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33307 }
33308 arg6 = static_cast< long >(val6);
33309 }
33310 if (obj6) {
33311 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33312 if (!SWIG_IsOK(res7)) {
33313 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33314 }
33315 if (!argp7) {
33316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33317 }
33318 arg7 = reinterpret_cast< wxValidator * >(argp7);
33319 }
33320 if (obj7) {
33321 {
33322 arg8 = wxString_in_helper(obj7);
33323 if (arg8 == NULL) SWIG_fail;
33324 temp8 = true;
33325 }
33326 }
33327 {
33328 PyThreadState* __tstate = wxPyBeginAllowThreads();
33329 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33330 wxPyEndAllowThreads(__tstate);
33331 if (PyErr_Occurred()) SWIG_fail;
33332 }
33333 {
33334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33335 }
33336 {
33337 if (temp8)
33338 delete arg8;
33339 }
33340 return resultobj;
33341 fail:
33342 {
33343 if (temp8)
33344 delete arg8;
33345 }
33346 return NULL;
33347 }
33348
33349
33350 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33351 PyObject *resultobj = 0;
33352 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33353 PyObject *arg2 = (PyObject *) 0 ;
33354 PyObject *arg3 = (PyObject *) 0 ;
33355 void *argp1 = 0 ;
33356 int res1 = 0 ;
33357 PyObject * obj0 = 0 ;
33358 PyObject * obj1 = 0 ;
33359 PyObject * obj2 = 0 ;
33360 char * kwnames[] = {
33361 (char *) "self",(char *) "self",(char *) "_class", NULL
33362 };
33363
33364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33366 if (!SWIG_IsOK(res1)) {
33367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33368 }
33369 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33370 arg2 = obj1;
33371 arg3 = obj2;
33372 {
33373 PyThreadState* __tstate = wxPyBeginAllowThreads();
33374 (arg1)->_setCallbackInfo(arg2,arg3);
33375 wxPyEndAllowThreads(__tstate);
33376 if (PyErr_Occurred()) SWIG_fail;
33377 }
33378 resultobj = SWIG_Py_Void();
33379 return resultobj;
33380 fail:
33381 return NULL;
33382 }
33383
33384
33385 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33386 PyObject *resultobj = 0;
33387 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33388 size_t result;
33389 void *argp1 = 0 ;
33390 int res1 = 0 ;
33391 PyObject *swig_obj[1] ;
33392
33393 if (!args) SWIG_fail;
33394 swig_obj[0] = args;
33395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33396 if (!SWIG_IsOK(res1)) {
33397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33398 }
33399 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33400 {
33401 PyThreadState* __tstate = wxPyBeginAllowThreads();
33402 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
33403 wxPyEndAllowThreads(__tstate);
33404 if (PyErr_Occurred()) SWIG_fail;
33405 }
33406 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33407 return resultobj;
33408 fail:
33409 return NULL;
33410 }
33411
33412
33413 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33414 PyObject *resultobj = 0;
33415 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33416 unsigned int result;
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_wxPyTreeCtrl, 0 | 0 );
33424 if (!SWIG_IsOK(res1)) {
33425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33426 }
33427 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33428 {
33429 PyThreadState* __tstate = wxPyBeginAllowThreads();
33430 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33431 wxPyEndAllowThreads(__tstate);
33432 if (PyErr_Occurred()) SWIG_fail;
33433 }
33434 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33435 return resultobj;
33436 fail:
33437 return NULL;
33438 }
33439
33440
33441 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33442 PyObject *resultobj = 0;
33443 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33444 unsigned int arg2 ;
33445 void *argp1 = 0 ;
33446 int res1 = 0 ;
33447 unsigned int val2 ;
33448 int ecode2 = 0 ;
33449 PyObject * obj0 = 0 ;
33450 PyObject * obj1 = 0 ;
33451 char * kwnames[] = {
33452 (char *) "self",(char *) "indent", NULL
33453 };
33454
33455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33457 if (!SWIG_IsOK(res1)) {
33458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33459 }
33460 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33461 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33462 if (!SWIG_IsOK(ecode2)) {
33463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33464 }
33465 arg2 = static_cast< unsigned int >(val2);
33466 {
33467 PyThreadState* __tstate = wxPyBeginAllowThreads();
33468 (arg1)->SetIndent(arg2);
33469 wxPyEndAllowThreads(__tstate);
33470 if (PyErr_Occurred()) SWIG_fail;
33471 }
33472 resultobj = SWIG_Py_Void();
33473 return resultobj;
33474 fail:
33475 return NULL;
33476 }
33477
33478
33479 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33480 PyObject *resultobj = 0;
33481 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33482 unsigned int result;
33483 void *argp1 = 0 ;
33484 int res1 = 0 ;
33485 PyObject *swig_obj[1] ;
33486
33487 if (!args) SWIG_fail;
33488 swig_obj[0] = args;
33489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33490 if (!SWIG_IsOK(res1)) {
33491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33492 }
33493 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33494 {
33495 PyThreadState* __tstate = wxPyBeginAllowThreads();
33496 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33497 wxPyEndAllowThreads(__tstate);
33498 if (PyErr_Occurred()) SWIG_fail;
33499 }
33500 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33501 return resultobj;
33502 fail:
33503 return NULL;
33504 }
33505
33506
33507 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33508 PyObject *resultobj = 0;
33509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33510 unsigned int arg2 ;
33511 void *argp1 = 0 ;
33512 int res1 = 0 ;
33513 unsigned int val2 ;
33514 int ecode2 = 0 ;
33515 PyObject * obj0 = 0 ;
33516 PyObject * obj1 = 0 ;
33517 char * kwnames[] = {
33518 (char *) "self",(char *) "spacing", NULL
33519 };
33520
33521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33523 if (!SWIG_IsOK(res1)) {
33524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33525 }
33526 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33527 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33528 if (!SWIG_IsOK(ecode2)) {
33529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33530 }
33531 arg2 = static_cast< unsigned int >(val2);
33532 {
33533 PyThreadState* __tstate = wxPyBeginAllowThreads();
33534 (arg1)->SetSpacing(arg2);
33535 wxPyEndAllowThreads(__tstate);
33536 if (PyErr_Occurred()) SWIG_fail;
33537 }
33538 resultobj = SWIG_Py_Void();
33539 return resultobj;
33540 fail:
33541 return NULL;
33542 }
33543
33544
33545 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33546 PyObject *resultobj = 0;
33547 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33548 wxImageList *result = 0 ;
33549 void *argp1 = 0 ;
33550 int res1 = 0 ;
33551 PyObject *swig_obj[1] ;
33552
33553 if (!args) SWIG_fail;
33554 swig_obj[0] = args;
33555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33556 if (!SWIG_IsOK(res1)) {
33557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33558 }
33559 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33560 {
33561 PyThreadState* __tstate = wxPyBeginAllowThreads();
33562 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33563 wxPyEndAllowThreads(__tstate);
33564 if (PyErr_Occurred()) SWIG_fail;
33565 }
33566 {
33567 resultobj = wxPyMake_wxObject(result, (bool)0);
33568 }
33569 return resultobj;
33570 fail:
33571 return NULL;
33572 }
33573
33574
33575 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33576 PyObject *resultobj = 0;
33577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33578 wxImageList *result = 0 ;
33579 void *argp1 = 0 ;
33580 int res1 = 0 ;
33581 PyObject *swig_obj[1] ;
33582
33583 if (!args) SWIG_fail;
33584 swig_obj[0] = args;
33585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33586 if (!SWIG_IsOK(res1)) {
33587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33588 }
33589 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33590 {
33591 PyThreadState* __tstate = wxPyBeginAllowThreads();
33592 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33593 wxPyEndAllowThreads(__tstate);
33594 if (PyErr_Occurred()) SWIG_fail;
33595 }
33596 {
33597 resultobj = wxPyMake_wxObject(result, (bool)0);
33598 }
33599 return resultobj;
33600 fail:
33601 return NULL;
33602 }
33603
33604
33605 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33606 PyObject *resultobj = 0;
33607 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33608 wxImageList *arg2 = (wxImageList *) 0 ;
33609 void *argp1 = 0 ;
33610 int res1 = 0 ;
33611 void *argp2 = 0 ;
33612 int res2 = 0 ;
33613 PyObject * obj0 = 0 ;
33614 PyObject * obj1 = 0 ;
33615 char * kwnames[] = {
33616 (char *) "self",(char *) "imageList", NULL
33617 };
33618
33619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33621 if (!SWIG_IsOK(res1)) {
33622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33623 }
33624 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33625 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33626 if (!SWIG_IsOK(res2)) {
33627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33628 }
33629 arg2 = reinterpret_cast< wxImageList * >(argp2);
33630 {
33631 PyThreadState* __tstate = wxPyBeginAllowThreads();
33632 (arg1)->SetImageList(arg2);
33633 wxPyEndAllowThreads(__tstate);
33634 if (PyErr_Occurred()) SWIG_fail;
33635 }
33636 resultobj = SWIG_Py_Void();
33637 return resultobj;
33638 fail:
33639 return NULL;
33640 }
33641
33642
33643 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33644 PyObject *resultobj = 0;
33645 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33646 wxImageList *arg2 = (wxImageList *) 0 ;
33647 void *argp1 = 0 ;
33648 int res1 = 0 ;
33649 void *argp2 = 0 ;
33650 int res2 = 0 ;
33651 PyObject * obj0 = 0 ;
33652 PyObject * obj1 = 0 ;
33653 char * kwnames[] = {
33654 (char *) "self",(char *) "imageList", NULL
33655 };
33656
33657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33659 if (!SWIG_IsOK(res1)) {
33660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33661 }
33662 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33663 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33664 if (!SWIG_IsOK(res2)) {
33665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33666 }
33667 arg2 = reinterpret_cast< wxImageList * >(argp2);
33668 {
33669 PyThreadState* __tstate = wxPyBeginAllowThreads();
33670 (arg1)->SetStateImageList(arg2);
33671 wxPyEndAllowThreads(__tstate);
33672 if (PyErr_Occurred()) SWIG_fail;
33673 }
33674 resultobj = SWIG_Py_Void();
33675 return resultobj;
33676 fail:
33677 return NULL;
33678 }
33679
33680
33681 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33682 PyObject *resultobj = 0;
33683 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33684 wxImageList *arg2 = (wxImageList *) 0 ;
33685 void *argp1 = 0 ;
33686 int res1 = 0 ;
33687 int res2 = 0 ;
33688 PyObject * obj0 = 0 ;
33689 PyObject * obj1 = 0 ;
33690 char * kwnames[] = {
33691 (char *) "self",(char *) "imageList", NULL
33692 };
33693
33694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33696 if (!SWIG_IsOK(res1)) {
33697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33698 }
33699 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33700 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33701 if (!SWIG_IsOK(res2)) {
33702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33703 }
33704 {
33705 PyThreadState* __tstate = wxPyBeginAllowThreads();
33706 (arg1)->AssignImageList(arg2);
33707 wxPyEndAllowThreads(__tstate);
33708 if (PyErr_Occurred()) SWIG_fail;
33709 }
33710 resultobj = SWIG_Py_Void();
33711 return resultobj;
33712 fail:
33713 return NULL;
33714 }
33715
33716
33717 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33718 PyObject *resultobj = 0;
33719 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33720 wxImageList *arg2 = (wxImageList *) 0 ;
33721 void *argp1 = 0 ;
33722 int res1 = 0 ;
33723 int res2 = 0 ;
33724 PyObject * obj0 = 0 ;
33725 PyObject * obj1 = 0 ;
33726 char * kwnames[] = {
33727 (char *) "self",(char *) "imageList", NULL
33728 };
33729
33730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33732 if (!SWIG_IsOK(res1)) {
33733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33734 }
33735 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33736 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33737 if (!SWIG_IsOK(res2)) {
33738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33739 }
33740 {
33741 PyThreadState* __tstate = wxPyBeginAllowThreads();
33742 (arg1)->AssignStateImageList(arg2);
33743 wxPyEndAllowThreads(__tstate);
33744 if (PyErr_Occurred()) SWIG_fail;
33745 }
33746 resultobj = SWIG_Py_Void();
33747 return resultobj;
33748 fail:
33749 return NULL;
33750 }
33751
33752
33753 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33754 PyObject *resultobj = 0;
33755 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33756 wxTreeItemId *arg2 = 0 ;
33757 wxString result;
33758 void *argp1 = 0 ;
33759 int res1 = 0 ;
33760 void *argp2 = 0 ;
33761 int res2 = 0 ;
33762 PyObject * obj0 = 0 ;
33763 PyObject * obj1 = 0 ;
33764 char * kwnames[] = {
33765 (char *) "self",(char *) "item", NULL
33766 };
33767
33768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33770 if (!SWIG_IsOK(res1)) {
33771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33772 }
33773 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33775 if (!SWIG_IsOK(res2)) {
33776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33777 }
33778 if (!argp2) {
33779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33780 }
33781 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33782 {
33783 PyThreadState* __tstate = wxPyBeginAllowThreads();
33784 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33785 wxPyEndAllowThreads(__tstate);
33786 if (PyErr_Occurred()) SWIG_fail;
33787 }
33788 {
33789 #if wxUSE_UNICODE
33790 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33791 #else
33792 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33793 #endif
33794 }
33795 return resultobj;
33796 fail:
33797 return NULL;
33798 }
33799
33800
33801 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33802 PyObject *resultobj = 0;
33803 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33804 wxTreeItemId *arg2 = 0 ;
33805 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33806 int result;
33807 void *argp1 = 0 ;
33808 int res1 = 0 ;
33809 void *argp2 = 0 ;
33810 int res2 = 0 ;
33811 int val3 ;
33812 int ecode3 = 0 ;
33813 PyObject * obj0 = 0 ;
33814 PyObject * obj1 = 0 ;
33815 PyObject * obj2 = 0 ;
33816 char * kwnames[] = {
33817 (char *) "self",(char *) "item",(char *) "which", NULL
33818 };
33819
33820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33822 if (!SWIG_IsOK(res1)) {
33823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33824 }
33825 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33826 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33827 if (!SWIG_IsOK(res2)) {
33828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33829 }
33830 if (!argp2) {
33831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33832 }
33833 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33834 if (obj2) {
33835 ecode3 = SWIG_AsVal_int(obj2, &val3);
33836 if (!SWIG_IsOK(ecode3)) {
33837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
33838 }
33839 arg3 = static_cast< wxTreeItemIcon >(val3);
33840 }
33841 {
33842 PyThreadState* __tstate = wxPyBeginAllowThreads();
33843 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
33844 wxPyEndAllowThreads(__tstate);
33845 if (PyErr_Occurred()) SWIG_fail;
33846 }
33847 resultobj = SWIG_From_int(static_cast< int >(result));
33848 return resultobj;
33849 fail:
33850 return NULL;
33851 }
33852
33853
33854 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33855 PyObject *resultobj = 0;
33856 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33857 wxTreeItemId *arg2 = 0 ;
33858 wxPyTreeItemData *result = 0 ;
33859 void *argp1 = 0 ;
33860 int res1 = 0 ;
33861 void *argp2 = 0 ;
33862 int res2 = 0 ;
33863 PyObject * obj0 = 0 ;
33864 PyObject * obj1 = 0 ;
33865 char * kwnames[] = {
33866 (char *) "self",(char *) "item", NULL
33867 };
33868
33869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
33870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33871 if (!SWIG_IsOK(res1)) {
33872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33873 }
33874 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33876 if (!SWIG_IsOK(res2)) {
33877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33878 }
33879 if (!argp2) {
33880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33881 }
33882 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33883 {
33884 PyThreadState* __tstate = wxPyBeginAllowThreads();
33885 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
33886 wxPyEndAllowThreads(__tstate);
33887 if (PyErr_Occurred()) SWIG_fail;
33888 }
33889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33890 return resultobj;
33891 fail:
33892 return NULL;
33893 }
33894
33895
33896 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33897 PyObject *resultobj = 0;
33898 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33899 wxTreeItemId *arg2 = 0 ;
33900 PyObject *result = 0 ;
33901 void *argp1 = 0 ;
33902 int res1 = 0 ;
33903 void *argp2 = 0 ;
33904 int res2 = 0 ;
33905 PyObject * obj0 = 0 ;
33906 PyObject * obj1 = 0 ;
33907 char * kwnames[] = {
33908 (char *) "self",(char *) "item", NULL
33909 };
33910
33911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
33912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33913 if (!SWIG_IsOK(res1)) {
33914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33915 }
33916 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33917 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33918 if (!SWIG_IsOK(res2)) {
33919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33920 }
33921 if (!argp2) {
33922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33923 }
33924 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33925 {
33926 PyThreadState* __tstate = wxPyBeginAllowThreads();
33927 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
33928 wxPyEndAllowThreads(__tstate);
33929 if (PyErr_Occurred()) SWIG_fail;
33930 }
33931 resultobj = result;
33932 return resultobj;
33933 fail:
33934 return NULL;
33935 }
33936
33937
33938 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33939 PyObject *resultobj = 0;
33940 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33941 wxTreeItemId *arg2 = 0 ;
33942 wxColour result;
33943 void *argp1 = 0 ;
33944 int res1 = 0 ;
33945 void *argp2 = 0 ;
33946 int res2 = 0 ;
33947 PyObject * obj0 = 0 ;
33948 PyObject * obj1 = 0 ;
33949 char * kwnames[] = {
33950 (char *) "self",(char *) "item", NULL
33951 };
33952
33953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
33954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33955 if (!SWIG_IsOK(res1)) {
33956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33957 }
33958 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33959 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33960 if (!SWIG_IsOK(res2)) {
33961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33962 }
33963 if (!argp2) {
33964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33965 }
33966 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33967 {
33968 PyThreadState* __tstate = wxPyBeginAllowThreads();
33969 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
33970 wxPyEndAllowThreads(__tstate);
33971 if (PyErr_Occurred()) SWIG_fail;
33972 }
33973 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33974 return resultobj;
33975 fail:
33976 return NULL;
33977 }
33978
33979
33980 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33981 PyObject *resultobj = 0;
33982 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33983 wxTreeItemId *arg2 = 0 ;
33984 wxColour result;
33985 void *argp1 = 0 ;
33986 int res1 = 0 ;
33987 void *argp2 = 0 ;
33988 int res2 = 0 ;
33989 PyObject * obj0 = 0 ;
33990 PyObject * obj1 = 0 ;
33991 char * kwnames[] = {
33992 (char *) "self",(char *) "item", NULL
33993 };
33994
33995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
33996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33997 if (!SWIG_IsOK(res1)) {
33998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33999 }
34000 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34001 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34002 if (!SWIG_IsOK(res2)) {
34003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34004 }
34005 if (!argp2) {
34006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34007 }
34008 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34009 {
34010 PyThreadState* __tstate = wxPyBeginAllowThreads();
34011 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34012 wxPyEndAllowThreads(__tstate);
34013 if (PyErr_Occurred()) SWIG_fail;
34014 }
34015 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34016 return resultobj;
34017 fail:
34018 return NULL;
34019 }
34020
34021
34022 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34023 PyObject *resultobj = 0;
34024 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34025 wxTreeItemId *arg2 = 0 ;
34026 wxFont result;
34027 void *argp1 = 0 ;
34028 int res1 = 0 ;
34029 void *argp2 = 0 ;
34030 int res2 = 0 ;
34031 PyObject * obj0 = 0 ;
34032 PyObject * obj1 = 0 ;
34033 char * kwnames[] = {
34034 (char *) "self",(char *) "item", NULL
34035 };
34036
34037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34039 if (!SWIG_IsOK(res1)) {
34040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34041 }
34042 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34043 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34044 if (!SWIG_IsOK(res2)) {
34045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34046 }
34047 if (!argp2) {
34048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34049 }
34050 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34051 {
34052 PyThreadState* __tstate = wxPyBeginAllowThreads();
34053 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34054 wxPyEndAllowThreads(__tstate);
34055 if (PyErr_Occurred()) SWIG_fail;
34056 }
34057 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34058 return resultobj;
34059 fail:
34060 return NULL;
34061 }
34062
34063
34064 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34065 PyObject *resultobj = 0;
34066 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34067 wxTreeItemId *arg2 = 0 ;
34068 wxString *arg3 = 0 ;
34069 void *argp1 = 0 ;
34070 int res1 = 0 ;
34071 void *argp2 = 0 ;
34072 int res2 = 0 ;
34073 bool temp3 = false ;
34074 PyObject * obj0 = 0 ;
34075 PyObject * obj1 = 0 ;
34076 PyObject * obj2 = 0 ;
34077 char * kwnames[] = {
34078 (char *) "self",(char *) "item",(char *) "text", NULL
34079 };
34080
34081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34083 if (!SWIG_IsOK(res1)) {
34084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34085 }
34086 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34088 if (!SWIG_IsOK(res2)) {
34089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34090 }
34091 if (!argp2) {
34092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34093 }
34094 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34095 {
34096 arg3 = wxString_in_helper(obj2);
34097 if (arg3 == NULL) SWIG_fail;
34098 temp3 = true;
34099 }
34100 {
34101 PyThreadState* __tstate = wxPyBeginAllowThreads();
34102 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34103 wxPyEndAllowThreads(__tstate);
34104 if (PyErr_Occurred()) SWIG_fail;
34105 }
34106 resultobj = SWIG_Py_Void();
34107 {
34108 if (temp3)
34109 delete arg3;
34110 }
34111 return resultobj;
34112 fail:
34113 {
34114 if (temp3)
34115 delete arg3;
34116 }
34117 return NULL;
34118 }
34119
34120
34121 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34122 PyObject *resultobj = 0;
34123 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34124 wxTreeItemId *arg2 = 0 ;
34125 int arg3 ;
34126 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34127 void *argp1 = 0 ;
34128 int res1 = 0 ;
34129 void *argp2 = 0 ;
34130 int res2 = 0 ;
34131 int val3 ;
34132 int ecode3 = 0 ;
34133 int val4 ;
34134 int ecode4 = 0 ;
34135 PyObject * obj0 = 0 ;
34136 PyObject * obj1 = 0 ;
34137 PyObject * obj2 = 0 ;
34138 PyObject * obj3 = 0 ;
34139 char * kwnames[] = {
34140 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34141 };
34142
34143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34145 if (!SWIG_IsOK(res1)) {
34146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34147 }
34148 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34150 if (!SWIG_IsOK(res2)) {
34151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34152 }
34153 if (!argp2) {
34154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34155 }
34156 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34157 ecode3 = SWIG_AsVal_int(obj2, &val3);
34158 if (!SWIG_IsOK(ecode3)) {
34159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34160 }
34161 arg3 = static_cast< int >(val3);
34162 if (obj3) {
34163 ecode4 = SWIG_AsVal_int(obj3, &val4);
34164 if (!SWIG_IsOK(ecode4)) {
34165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34166 }
34167 arg4 = static_cast< wxTreeItemIcon >(val4);
34168 }
34169 {
34170 PyThreadState* __tstate = wxPyBeginAllowThreads();
34171 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34172 wxPyEndAllowThreads(__tstate);
34173 if (PyErr_Occurred()) SWIG_fail;
34174 }
34175 resultobj = SWIG_Py_Void();
34176 return resultobj;
34177 fail:
34178 return NULL;
34179 }
34180
34181
34182 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34183 PyObject *resultobj = 0;
34184 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34185 wxTreeItemId *arg2 = 0 ;
34186 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34187 void *argp1 = 0 ;
34188 int res1 = 0 ;
34189 void *argp2 = 0 ;
34190 int res2 = 0 ;
34191 int res3 = 0 ;
34192 PyObject * obj0 = 0 ;
34193 PyObject * obj1 = 0 ;
34194 PyObject * obj2 = 0 ;
34195 char * kwnames[] = {
34196 (char *) "self",(char *) "item",(char *) "data", NULL
34197 };
34198
34199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34201 if (!SWIG_IsOK(res1)) {
34202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34203 }
34204 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34205 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34206 if (!SWIG_IsOK(res2)) {
34207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34208 }
34209 if (!argp2) {
34210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34211 }
34212 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34213 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34214 if (!SWIG_IsOK(res3)) {
34215 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34216 }
34217 {
34218 PyThreadState* __tstate = wxPyBeginAllowThreads();
34219 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34220 wxPyEndAllowThreads(__tstate);
34221 if (PyErr_Occurred()) SWIG_fail;
34222 }
34223 resultobj = SWIG_Py_Void();
34224 return resultobj;
34225 fail:
34226 return NULL;
34227 }
34228
34229
34230 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34231 PyObject *resultobj = 0;
34232 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34233 wxTreeItemId *arg2 = 0 ;
34234 PyObject *arg3 = (PyObject *) 0 ;
34235 void *argp1 = 0 ;
34236 int res1 = 0 ;
34237 void *argp2 = 0 ;
34238 int res2 = 0 ;
34239 PyObject * obj0 = 0 ;
34240 PyObject * obj1 = 0 ;
34241 PyObject * obj2 = 0 ;
34242 char * kwnames[] = {
34243 (char *) "self",(char *) "item",(char *) "obj", NULL
34244 };
34245
34246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34248 if (!SWIG_IsOK(res1)) {
34249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34250 }
34251 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34253 if (!SWIG_IsOK(res2)) {
34254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34255 }
34256 if (!argp2) {
34257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34258 }
34259 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34260 arg3 = obj2;
34261 {
34262 PyThreadState* __tstate = wxPyBeginAllowThreads();
34263 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34264 wxPyEndAllowThreads(__tstate);
34265 if (PyErr_Occurred()) SWIG_fail;
34266 }
34267 resultobj = SWIG_Py_Void();
34268 return resultobj;
34269 fail:
34270 return NULL;
34271 }
34272
34273
34274 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34275 PyObject *resultobj = 0;
34276 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34277 wxTreeItemId *arg2 = 0 ;
34278 bool arg3 = (bool) true ;
34279 void *argp1 = 0 ;
34280 int res1 = 0 ;
34281 void *argp2 = 0 ;
34282 int res2 = 0 ;
34283 bool val3 ;
34284 int ecode3 = 0 ;
34285 PyObject * obj0 = 0 ;
34286 PyObject * obj1 = 0 ;
34287 PyObject * obj2 = 0 ;
34288 char * kwnames[] = {
34289 (char *) "self",(char *) "item",(char *) "has", NULL
34290 };
34291
34292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34294 if (!SWIG_IsOK(res1)) {
34295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34296 }
34297 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34299 if (!SWIG_IsOK(res2)) {
34300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34301 }
34302 if (!argp2) {
34303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34304 }
34305 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34306 if (obj2) {
34307 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34308 if (!SWIG_IsOK(ecode3)) {
34309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34310 }
34311 arg3 = static_cast< bool >(val3);
34312 }
34313 {
34314 PyThreadState* __tstate = wxPyBeginAllowThreads();
34315 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34316 wxPyEndAllowThreads(__tstate);
34317 if (PyErr_Occurred()) SWIG_fail;
34318 }
34319 resultobj = SWIG_Py_Void();
34320 return resultobj;
34321 fail:
34322 return NULL;
34323 }
34324
34325
34326 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34327 PyObject *resultobj = 0;
34328 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34329 wxTreeItemId *arg2 = 0 ;
34330 bool arg3 = (bool) true ;
34331 void *argp1 = 0 ;
34332 int res1 = 0 ;
34333 void *argp2 = 0 ;
34334 int res2 = 0 ;
34335 bool val3 ;
34336 int ecode3 = 0 ;
34337 PyObject * obj0 = 0 ;
34338 PyObject * obj1 = 0 ;
34339 PyObject * obj2 = 0 ;
34340 char * kwnames[] = {
34341 (char *) "self",(char *) "item",(char *) "bold", NULL
34342 };
34343
34344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34346 if (!SWIG_IsOK(res1)) {
34347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34348 }
34349 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34351 if (!SWIG_IsOK(res2)) {
34352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34353 }
34354 if (!argp2) {
34355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34356 }
34357 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34358 if (obj2) {
34359 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34360 if (!SWIG_IsOK(ecode3)) {
34361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34362 }
34363 arg3 = static_cast< bool >(val3);
34364 }
34365 {
34366 PyThreadState* __tstate = wxPyBeginAllowThreads();
34367 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34368 wxPyEndAllowThreads(__tstate);
34369 if (PyErr_Occurred()) SWIG_fail;
34370 }
34371 resultobj = SWIG_Py_Void();
34372 return resultobj;
34373 fail:
34374 return NULL;
34375 }
34376
34377
34378 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34379 PyObject *resultobj = 0;
34380 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34381 wxTreeItemId *arg2 = 0 ;
34382 bool arg3 = (bool) true ;
34383 void *argp1 = 0 ;
34384 int res1 = 0 ;
34385 void *argp2 = 0 ;
34386 int res2 = 0 ;
34387 bool val3 ;
34388 int ecode3 = 0 ;
34389 PyObject * obj0 = 0 ;
34390 PyObject * obj1 = 0 ;
34391 PyObject * obj2 = 0 ;
34392 char * kwnames[] = {
34393 (char *) "self",(char *) "item",(char *) "highlight", NULL
34394 };
34395
34396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34398 if (!SWIG_IsOK(res1)) {
34399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34400 }
34401 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34402 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34403 if (!SWIG_IsOK(res2)) {
34404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34405 }
34406 if (!argp2) {
34407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34408 }
34409 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34410 if (obj2) {
34411 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34412 if (!SWIG_IsOK(ecode3)) {
34413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34414 }
34415 arg3 = static_cast< bool >(val3);
34416 }
34417 {
34418 PyThreadState* __tstate = wxPyBeginAllowThreads();
34419 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34420 wxPyEndAllowThreads(__tstate);
34421 if (PyErr_Occurred()) SWIG_fail;
34422 }
34423 resultobj = SWIG_Py_Void();
34424 return resultobj;
34425 fail:
34426 return NULL;
34427 }
34428
34429
34430 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34431 PyObject *resultobj = 0;
34432 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34433 wxTreeItemId *arg2 = 0 ;
34434 wxColour *arg3 = 0 ;
34435 void *argp1 = 0 ;
34436 int res1 = 0 ;
34437 void *argp2 = 0 ;
34438 int res2 = 0 ;
34439 wxColour temp3 ;
34440 PyObject * obj0 = 0 ;
34441 PyObject * obj1 = 0 ;
34442 PyObject * obj2 = 0 ;
34443 char * kwnames[] = {
34444 (char *) "self",(char *) "item",(char *) "col", NULL
34445 };
34446
34447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34449 if (!SWIG_IsOK(res1)) {
34450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34451 }
34452 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34453 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34454 if (!SWIG_IsOK(res2)) {
34455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34456 }
34457 if (!argp2) {
34458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34459 }
34460 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34461 {
34462 arg3 = &temp3;
34463 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34464 }
34465 {
34466 PyThreadState* __tstate = wxPyBeginAllowThreads();
34467 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34468 wxPyEndAllowThreads(__tstate);
34469 if (PyErr_Occurred()) SWIG_fail;
34470 }
34471 resultobj = SWIG_Py_Void();
34472 return resultobj;
34473 fail:
34474 return NULL;
34475 }
34476
34477
34478 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34479 PyObject *resultobj = 0;
34480 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34481 wxTreeItemId *arg2 = 0 ;
34482 wxColour *arg3 = 0 ;
34483 void *argp1 = 0 ;
34484 int res1 = 0 ;
34485 void *argp2 = 0 ;
34486 int res2 = 0 ;
34487 wxColour temp3 ;
34488 PyObject * obj0 = 0 ;
34489 PyObject * obj1 = 0 ;
34490 PyObject * obj2 = 0 ;
34491 char * kwnames[] = {
34492 (char *) "self",(char *) "item",(char *) "col", NULL
34493 };
34494
34495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34497 if (!SWIG_IsOK(res1)) {
34498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34499 }
34500 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34501 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34502 if (!SWIG_IsOK(res2)) {
34503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34504 }
34505 if (!argp2) {
34506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34507 }
34508 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34509 {
34510 arg3 = &temp3;
34511 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34512 }
34513 {
34514 PyThreadState* __tstate = wxPyBeginAllowThreads();
34515 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34516 wxPyEndAllowThreads(__tstate);
34517 if (PyErr_Occurred()) SWIG_fail;
34518 }
34519 resultobj = SWIG_Py_Void();
34520 return resultobj;
34521 fail:
34522 return NULL;
34523 }
34524
34525
34526 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34527 PyObject *resultobj = 0;
34528 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34529 wxTreeItemId *arg2 = 0 ;
34530 wxFont *arg3 = 0 ;
34531 void *argp1 = 0 ;
34532 int res1 = 0 ;
34533 void *argp2 = 0 ;
34534 int res2 = 0 ;
34535 void *argp3 = 0 ;
34536 int res3 = 0 ;
34537 PyObject * obj0 = 0 ;
34538 PyObject * obj1 = 0 ;
34539 PyObject * obj2 = 0 ;
34540 char * kwnames[] = {
34541 (char *) "self",(char *) "item",(char *) "font", NULL
34542 };
34543
34544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34546 if (!SWIG_IsOK(res1)) {
34547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34548 }
34549 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34550 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34551 if (!SWIG_IsOK(res2)) {
34552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34553 }
34554 if (!argp2) {
34555 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34556 }
34557 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34558 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34559 if (!SWIG_IsOK(res3)) {
34560 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34561 }
34562 if (!argp3) {
34563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34564 }
34565 arg3 = reinterpret_cast< wxFont * >(argp3);
34566 {
34567 PyThreadState* __tstate = wxPyBeginAllowThreads();
34568 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34569 wxPyEndAllowThreads(__tstate);
34570 if (PyErr_Occurred()) SWIG_fail;
34571 }
34572 resultobj = SWIG_Py_Void();
34573 return resultobj;
34574 fail:
34575 return NULL;
34576 }
34577
34578
34579 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34580 PyObject *resultobj = 0;
34581 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34582 wxTreeItemId *arg2 = 0 ;
34583 bool result;
34584 void *argp1 = 0 ;
34585 int res1 = 0 ;
34586 void *argp2 = 0 ;
34587 int res2 = 0 ;
34588 PyObject * obj0 = 0 ;
34589 PyObject * obj1 = 0 ;
34590 char * kwnames[] = {
34591 (char *) "self",(char *) "item", NULL
34592 };
34593
34594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34596 if (!SWIG_IsOK(res1)) {
34597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34598 }
34599 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34601 if (!SWIG_IsOK(res2)) {
34602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34603 }
34604 if (!argp2) {
34605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34606 }
34607 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34608 {
34609 PyThreadState* __tstate = wxPyBeginAllowThreads();
34610 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34611 wxPyEndAllowThreads(__tstate);
34612 if (PyErr_Occurred()) SWIG_fail;
34613 }
34614 {
34615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34616 }
34617 return resultobj;
34618 fail:
34619 return NULL;
34620 }
34621
34622
34623 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34624 PyObject *resultobj = 0;
34625 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34626 wxTreeItemId *arg2 = 0 ;
34627 bool result;
34628 void *argp1 = 0 ;
34629 int res1 = 0 ;
34630 void *argp2 = 0 ;
34631 int res2 = 0 ;
34632 PyObject * obj0 = 0 ;
34633 PyObject * obj1 = 0 ;
34634 char * kwnames[] = {
34635 (char *) "self",(char *) "item", NULL
34636 };
34637
34638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34640 if (!SWIG_IsOK(res1)) {
34641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34642 }
34643 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34644 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34645 if (!SWIG_IsOK(res2)) {
34646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34647 }
34648 if (!argp2) {
34649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34650 }
34651 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34652 {
34653 PyThreadState* __tstate = wxPyBeginAllowThreads();
34654 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34655 wxPyEndAllowThreads(__tstate);
34656 if (PyErr_Occurred()) SWIG_fail;
34657 }
34658 {
34659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34660 }
34661 return resultobj;
34662 fail:
34663 return NULL;
34664 }
34665
34666
34667 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34668 PyObject *resultobj = 0;
34669 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34670 wxTreeItemId *arg2 = 0 ;
34671 bool result;
34672 void *argp1 = 0 ;
34673 int res1 = 0 ;
34674 void *argp2 = 0 ;
34675 int res2 = 0 ;
34676 PyObject * obj0 = 0 ;
34677 PyObject * obj1 = 0 ;
34678 char * kwnames[] = {
34679 (char *) "self",(char *) "item", NULL
34680 };
34681
34682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34684 if (!SWIG_IsOK(res1)) {
34685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34686 }
34687 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34688 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34689 if (!SWIG_IsOK(res2)) {
34690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34691 }
34692 if (!argp2) {
34693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34694 }
34695 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34696 {
34697 PyThreadState* __tstate = wxPyBeginAllowThreads();
34698 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34699 wxPyEndAllowThreads(__tstate);
34700 if (PyErr_Occurred()) SWIG_fail;
34701 }
34702 {
34703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34704 }
34705 return resultobj;
34706 fail:
34707 return NULL;
34708 }
34709
34710
34711 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34712 PyObject *resultobj = 0;
34713 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34714 wxTreeItemId *arg2 = 0 ;
34715 bool result;
34716 void *argp1 = 0 ;
34717 int res1 = 0 ;
34718 void *argp2 = 0 ;
34719 int res2 = 0 ;
34720 PyObject * obj0 = 0 ;
34721 PyObject * obj1 = 0 ;
34722 char * kwnames[] = {
34723 (char *) "self",(char *) "item", NULL
34724 };
34725
34726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34728 if (!SWIG_IsOK(res1)) {
34729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34730 }
34731 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34732 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34733 if (!SWIG_IsOK(res2)) {
34734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34735 }
34736 if (!argp2) {
34737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34738 }
34739 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34740 {
34741 PyThreadState* __tstate = wxPyBeginAllowThreads();
34742 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34743 wxPyEndAllowThreads(__tstate);
34744 if (PyErr_Occurred()) SWIG_fail;
34745 }
34746 {
34747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34748 }
34749 return resultobj;
34750 fail:
34751 return NULL;
34752 }
34753
34754
34755 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34756 PyObject *resultobj = 0;
34757 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34758 wxTreeItemId *arg2 = 0 ;
34759 bool result;
34760 void *argp1 = 0 ;
34761 int res1 = 0 ;
34762 void *argp2 = 0 ;
34763 int res2 = 0 ;
34764 PyObject * obj0 = 0 ;
34765 PyObject * obj1 = 0 ;
34766 char * kwnames[] = {
34767 (char *) "self",(char *) "item", NULL
34768 };
34769
34770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34772 if (!SWIG_IsOK(res1)) {
34773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34774 }
34775 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34776 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34777 if (!SWIG_IsOK(res2)) {
34778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34779 }
34780 if (!argp2) {
34781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34782 }
34783 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34784 {
34785 PyThreadState* __tstate = wxPyBeginAllowThreads();
34786 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34787 wxPyEndAllowThreads(__tstate);
34788 if (PyErr_Occurred()) SWIG_fail;
34789 }
34790 {
34791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34792 }
34793 return resultobj;
34794 fail:
34795 return NULL;
34796 }
34797
34798
34799 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34800 PyObject *resultobj = 0;
34801 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34802 wxTreeItemId *arg2 = 0 ;
34803 bool arg3 = (bool) true ;
34804 size_t result;
34805 void *argp1 = 0 ;
34806 int res1 = 0 ;
34807 void *argp2 = 0 ;
34808 int res2 = 0 ;
34809 bool val3 ;
34810 int ecode3 = 0 ;
34811 PyObject * obj0 = 0 ;
34812 PyObject * obj1 = 0 ;
34813 PyObject * obj2 = 0 ;
34814 char * kwnames[] = {
34815 (char *) "self",(char *) "item",(char *) "recursively", NULL
34816 };
34817
34818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34820 if (!SWIG_IsOK(res1)) {
34821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34822 }
34823 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34824 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34825 if (!SWIG_IsOK(res2)) {
34826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34827 }
34828 if (!argp2) {
34829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34830 }
34831 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34832 if (obj2) {
34833 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34834 if (!SWIG_IsOK(ecode3)) {
34835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
34836 }
34837 arg3 = static_cast< bool >(val3);
34838 }
34839 {
34840 PyThreadState* __tstate = wxPyBeginAllowThreads();
34841 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
34842 wxPyEndAllowThreads(__tstate);
34843 if (PyErr_Occurred()) SWIG_fail;
34844 }
34845 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34846 return resultobj;
34847 fail:
34848 return NULL;
34849 }
34850
34851
34852 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34853 PyObject *resultobj = 0;
34854 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34855 wxTreeItemId result;
34856 void *argp1 = 0 ;
34857 int res1 = 0 ;
34858 PyObject *swig_obj[1] ;
34859
34860 if (!args) SWIG_fail;
34861 swig_obj[0] = args;
34862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34863 if (!SWIG_IsOK(res1)) {
34864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34865 }
34866 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34867 {
34868 PyThreadState* __tstate = wxPyBeginAllowThreads();
34869 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
34870 wxPyEndAllowThreads(__tstate);
34871 if (PyErr_Occurred()) SWIG_fail;
34872 }
34873 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34874 return resultobj;
34875 fail:
34876 return NULL;
34877 }
34878
34879
34880 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34881 PyObject *resultobj = 0;
34882 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34883 wxTreeItemId result;
34884 void *argp1 = 0 ;
34885 int res1 = 0 ;
34886 PyObject *swig_obj[1] ;
34887
34888 if (!args) SWIG_fail;
34889 swig_obj[0] = args;
34890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34891 if (!SWIG_IsOK(res1)) {
34892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34893 }
34894 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34895 {
34896 PyThreadState* __tstate = wxPyBeginAllowThreads();
34897 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
34898 wxPyEndAllowThreads(__tstate);
34899 if (PyErr_Occurred()) SWIG_fail;
34900 }
34901 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34902 return resultobj;
34903 fail:
34904 return NULL;
34905 }
34906
34907
34908 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34909 PyObject *resultobj = 0;
34910 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34911 PyObject *result = 0 ;
34912 void *argp1 = 0 ;
34913 int res1 = 0 ;
34914 PyObject *swig_obj[1] ;
34915
34916 if (!args) SWIG_fail;
34917 swig_obj[0] = args;
34918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34919 if (!SWIG_IsOK(res1)) {
34920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34921 }
34922 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34923 {
34924 PyThreadState* __tstate = wxPyBeginAllowThreads();
34925 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
34926 wxPyEndAllowThreads(__tstate);
34927 if (PyErr_Occurred()) SWIG_fail;
34928 }
34929 resultobj = result;
34930 return resultobj;
34931 fail:
34932 return NULL;
34933 }
34934
34935
34936 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34937 PyObject *resultobj = 0;
34938 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34939 wxTreeItemId *arg2 = 0 ;
34940 wxTreeItemId result;
34941 void *argp1 = 0 ;
34942 int res1 = 0 ;
34943 void *argp2 = 0 ;
34944 int res2 = 0 ;
34945 PyObject * obj0 = 0 ;
34946 PyObject * obj1 = 0 ;
34947 char * kwnames[] = {
34948 (char *) "self",(char *) "item", NULL
34949 };
34950
34951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
34952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34953 if (!SWIG_IsOK(res1)) {
34954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34955 }
34956 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34957 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34958 if (!SWIG_IsOK(res2)) {
34959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34960 }
34961 if (!argp2) {
34962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34963 }
34964 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34965 {
34966 PyThreadState* __tstate = wxPyBeginAllowThreads();
34967 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
34968 wxPyEndAllowThreads(__tstate);
34969 if (PyErr_Occurred()) SWIG_fail;
34970 }
34971 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34972 return resultobj;
34973 fail:
34974 return NULL;
34975 }
34976
34977
34978 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34979 PyObject *resultobj = 0;
34980 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34981 wxTreeItemId *arg2 = 0 ;
34982 PyObject *result = 0 ;
34983 void *argp1 = 0 ;
34984 int res1 = 0 ;
34985 void *argp2 = 0 ;
34986 int res2 = 0 ;
34987 PyObject * obj0 = 0 ;
34988 PyObject * obj1 = 0 ;
34989 char * kwnames[] = {
34990 (char *) "self",(char *) "item", NULL
34991 };
34992
34993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
34994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34995 if (!SWIG_IsOK(res1)) {
34996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34997 }
34998 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35000 if (!SWIG_IsOK(res2)) {
35001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35002 }
35003 if (!argp2) {
35004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35005 }
35006 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35007 {
35008 PyThreadState* __tstate = wxPyBeginAllowThreads();
35009 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35010 wxPyEndAllowThreads(__tstate);
35011 if (PyErr_Occurred()) SWIG_fail;
35012 }
35013 resultobj = result;
35014 return resultobj;
35015 fail:
35016 return NULL;
35017 }
35018
35019
35020 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35021 PyObject *resultobj = 0;
35022 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35023 wxTreeItemId *arg2 = 0 ;
35024 void *arg3 = (void *) 0 ;
35025 PyObject *result = 0 ;
35026 void *argp1 = 0 ;
35027 int res1 = 0 ;
35028 void *argp2 = 0 ;
35029 int res2 = 0 ;
35030 int res3 ;
35031 PyObject * obj0 = 0 ;
35032 PyObject * obj1 = 0 ;
35033 PyObject * obj2 = 0 ;
35034 char * kwnames[] = {
35035 (char *) "self",(char *) "item",(char *) "cookie", NULL
35036 };
35037
35038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35040 if (!SWIG_IsOK(res1)) {
35041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35042 }
35043 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35044 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35045 if (!SWIG_IsOK(res2)) {
35046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35047 }
35048 if (!argp2) {
35049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35050 }
35051 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35052 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35053 if (!SWIG_IsOK(res3)) {
35054 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35055 }
35056 {
35057 PyThreadState* __tstate = wxPyBeginAllowThreads();
35058 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35059 wxPyEndAllowThreads(__tstate);
35060 if (PyErr_Occurred()) SWIG_fail;
35061 }
35062 resultobj = result;
35063 return resultobj;
35064 fail:
35065 return NULL;
35066 }
35067
35068
35069 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35070 PyObject *resultobj = 0;
35071 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35072 wxTreeItemId *arg2 = 0 ;
35073 wxTreeItemId result;
35074 void *argp1 = 0 ;
35075 int res1 = 0 ;
35076 void *argp2 = 0 ;
35077 int res2 = 0 ;
35078 PyObject * obj0 = 0 ;
35079 PyObject * obj1 = 0 ;
35080 char * kwnames[] = {
35081 (char *) "self",(char *) "item", NULL
35082 };
35083
35084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35086 if (!SWIG_IsOK(res1)) {
35087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35088 }
35089 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35090 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35091 if (!SWIG_IsOK(res2)) {
35092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35093 }
35094 if (!argp2) {
35095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35096 }
35097 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35098 {
35099 PyThreadState* __tstate = wxPyBeginAllowThreads();
35100 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35101 wxPyEndAllowThreads(__tstate);
35102 if (PyErr_Occurred()) SWIG_fail;
35103 }
35104 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35105 return resultobj;
35106 fail:
35107 return NULL;
35108 }
35109
35110
35111 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35112 PyObject *resultobj = 0;
35113 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35114 wxTreeItemId *arg2 = 0 ;
35115 wxTreeItemId result;
35116 void *argp1 = 0 ;
35117 int res1 = 0 ;
35118 void *argp2 = 0 ;
35119 int res2 = 0 ;
35120 PyObject * obj0 = 0 ;
35121 PyObject * obj1 = 0 ;
35122 char * kwnames[] = {
35123 (char *) "self",(char *) "item", NULL
35124 };
35125
35126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35128 if (!SWIG_IsOK(res1)) {
35129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35130 }
35131 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35132 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35133 if (!SWIG_IsOK(res2)) {
35134 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35135 }
35136 if (!argp2) {
35137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35138 }
35139 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35140 {
35141 PyThreadState* __tstate = wxPyBeginAllowThreads();
35142 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35143 wxPyEndAllowThreads(__tstate);
35144 if (PyErr_Occurred()) SWIG_fail;
35145 }
35146 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35147 return resultobj;
35148 fail:
35149 return NULL;
35150 }
35151
35152
35153 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35154 PyObject *resultobj = 0;
35155 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35156 wxTreeItemId *arg2 = 0 ;
35157 wxTreeItemId result;
35158 void *argp1 = 0 ;
35159 int res1 = 0 ;
35160 void *argp2 = 0 ;
35161 int res2 = 0 ;
35162 PyObject * obj0 = 0 ;
35163 PyObject * obj1 = 0 ;
35164 char * kwnames[] = {
35165 (char *) "self",(char *) "item", NULL
35166 };
35167
35168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35170 if (!SWIG_IsOK(res1)) {
35171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35172 }
35173 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35174 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35175 if (!SWIG_IsOK(res2)) {
35176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35177 }
35178 if (!argp2) {
35179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35180 }
35181 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35182 {
35183 PyThreadState* __tstate = wxPyBeginAllowThreads();
35184 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35185 wxPyEndAllowThreads(__tstate);
35186 if (PyErr_Occurred()) SWIG_fail;
35187 }
35188 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35189 return resultobj;
35190 fail:
35191 return NULL;
35192 }
35193
35194
35195 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35196 PyObject *resultobj = 0;
35197 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35198 wxTreeItemId result;
35199 void *argp1 = 0 ;
35200 int res1 = 0 ;
35201 PyObject *swig_obj[1] ;
35202
35203 if (!args) SWIG_fail;
35204 swig_obj[0] = args;
35205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35206 if (!SWIG_IsOK(res1)) {
35207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35208 }
35209 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35210 {
35211 PyThreadState* __tstate = wxPyBeginAllowThreads();
35212 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35213 wxPyEndAllowThreads(__tstate);
35214 if (PyErr_Occurred()) SWIG_fail;
35215 }
35216 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35217 return resultobj;
35218 fail:
35219 return NULL;
35220 }
35221
35222
35223 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35224 PyObject *resultobj = 0;
35225 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35226 wxTreeItemId *arg2 = 0 ;
35227 wxTreeItemId result;
35228 void *argp1 = 0 ;
35229 int res1 = 0 ;
35230 void *argp2 = 0 ;
35231 int res2 = 0 ;
35232 PyObject * obj0 = 0 ;
35233 PyObject * obj1 = 0 ;
35234 char * kwnames[] = {
35235 (char *) "self",(char *) "item", NULL
35236 };
35237
35238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35240 if (!SWIG_IsOK(res1)) {
35241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35242 }
35243 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35244 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35245 if (!SWIG_IsOK(res2)) {
35246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35247 }
35248 if (!argp2) {
35249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35250 }
35251 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35252 {
35253 PyThreadState* __tstate = wxPyBeginAllowThreads();
35254 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35255 wxPyEndAllowThreads(__tstate);
35256 if (PyErr_Occurred()) SWIG_fail;
35257 }
35258 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35259 return resultobj;
35260 fail:
35261 return NULL;
35262 }
35263
35264
35265 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35266 PyObject *resultobj = 0;
35267 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35268 wxTreeItemId *arg2 = 0 ;
35269 wxTreeItemId result;
35270 void *argp1 = 0 ;
35271 int res1 = 0 ;
35272 void *argp2 = 0 ;
35273 int res2 = 0 ;
35274 PyObject * obj0 = 0 ;
35275 PyObject * obj1 = 0 ;
35276 char * kwnames[] = {
35277 (char *) "self",(char *) "item", NULL
35278 };
35279
35280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35282 if (!SWIG_IsOK(res1)) {
35283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35284 }
35285 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35286 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35287 if (!SWIG_IsOK(res2)) {
35288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35289 }
35290 if (!argp2) {
35291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35292 }
35293 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35294 {
35295 PyThreadState* __tstate = wxPyBeginAllowThreads();
35296 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35297 wxPyEndAllowThreads(__tstate);
35298 if (PyErr_Occurred()) SWIG_fail;
35299 }
35300 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35301 return resultobj;
35302 fail:
35303 return NULL;
35304 }
35305
35306
35307 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35308 PyObject *resultobj = 0;
35309 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35310 wxString *arg2 = 0 ;
35311 int arg3 = (int) -1 ;
35312 int arg4 = (int) -1 ;
35313 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35314 wxTreeItemId result;
35315 void *argp1 = 0 ;
35316 int res1 = 0 ;
35317 bool temp2 = false ;
35318 int val3 ;
35319 int ecode3 = 0 ;
35320 int val4 ;
35321 int ecode4 = 0 ;
35322 int res5 = 0 ;
35323 PyObject * obj0 = 0 ;
35324 PyObject * obj1 = 0 ;
35325 PyObject * obj2 = 0 ;
35326 PyObject * obj3 = 0 ;
35327 PyObject * obj4 = 0 ;
35328 char * kwnames[] = {
35329 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35330 };
35331
35332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35334 if (!SWIG_IsOK(res1)) {
35335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35336 }
35337 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35338 {
35339 arg2 = wxString_in_helper(obj1);
35340 if (arg2 == NULL) SWIG_fail;
35341 temp2 = true;
35342 }
35343 if (obj2) {
35344 ecode3 = SWIG_AsVal_int(obj2, &val3);
35345 if (!SWIG_IsOK(ecode3)) {
35346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35347 }
35348 arg3 = static_cast< int >(val3);
35349 }
35350 if (obj3) {
35351 ecode4 = SWIG_AsVal_int(obj3, &val4);
35352 if (!SWIG_IsOK(ecode4)) {
35353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35354 }
35355 arg4 = static_cast< int >(val4);
35356 }
35357 if (obj4) {
35358 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35359 if (!SWIG_IsOK(res5)) {
35360 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35361 }
35362 }
35363 {
35364 PyThreadState* __tstate = wxPyBeginAllowThreads();
35365 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35366 wxPyEndAllowThreads(__tstate);
35367 if (PyErr_Occurred()) SWIG_fail;
35368 }
35369 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35370 {
35371 if (temp2)
35372 delete arg2;
35373 }
35374 return resultobj;
35375 fail:
35376 {
35377 if (temp2)
35378 delete arg2;
35379 }
35380 return NULL;
35381 }
35382
35383
35384 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35385 PyObject *resultobj = 0;
35386 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35387 wxTreeItemId *arg2 = 0 ;
35388 wxString *arg3 = 0 ;
35389 int arg4 = (int) -1 ;
35390 int arg5 = (int) -1 ;
35391 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35392 wxTreeItemId result;
35393 void *argp1 = 0 ;
35394 int res1 = 0 ;
35395 void *argp2 = 0 ;
35396 int res2 = 0 ;
35397 bool temp3 = false ;
35398 int val4 ;
35399 int ecode4 = 0 ;
35400 int val5 ;
35401 int ecode5 = 0 ;
35402 int res6 = 0 ;
35403 PyObject * obj0 = 0 ;
35404 PyObject * obj1 = 0 ;
35405 PyObject * obj2 = 0 ;
35406 PyObject * obj3 = 0 ;
35407 PyObject * obj4 = 0 ;
35408 PyObject * obj5 = 0 ;
35409 char * kwnames[] = {
35410 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35411 };
35412
35413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35415 if (!SWIG_IsOK(res1)) {
35416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35417 }
35418 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35420 if (!SWIG_IsOK(res2)) {
35421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35422 }
35423 if (!argp2) {
35424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35425 }
35426 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35427 {
35428 arg3 = wxString_in_helper(obj2);
35429 if (arg3 == NULL) SWIG_fail;
35430 temp3 = true;
35431 }
35432 if (obj3) {
35433 ecode4 = SWIG_AsVal_int(obj3, &val4);
35434 if (!SWIG_IsOK(ecode4)) {
35435 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35436 }
35437 arg4 = static_cast< int >(val4);
35438 }
35439 if (obj4) {
35440 ecode5 = SWIG_AsVal_int(obj4, &val5);
35441 if (!SWIG_IsOK(ecode5)) {
35442 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35443 }
35444 arg5 = static_cast< int >(val5);
35445 }
35446 if (obj5) {
35447 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35448 if (!SWIG_IsOK(res6)) {
35449 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35450 }
35451 }
35452 {
35453 PyThreadState* __tstate = wxPyBeginAllowThreads();
35454 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35455 wxPyEndAllowThreads(__tstate);
35456 if (PyErr_Occurred()) SWIG_fail;
35457 }
35458 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35459 {
35460 if (temp3)
35461 delete arg3;
35462 }
35463 return resultobj;
35464 fail:
35465 {
35466 if (temp3)
35467 delete arg3;
35468 }
35469 return NULL;
35470 }
35471
35472
35473 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35474 PyObject *resultobj = 0;
35475 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35476 wxTreeItemId *arg2 = 0 ;
35477 wxTreeItemId *arg3 = 0 ;
35478 wxString *arg4 = 0 ;
35479 int arg5 = (int) -1 ;
35480 int arg6 = (int) -1 ;
35481 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35482 wxTreeItemId result;
35483 void *argp1 = 0 ;
35484 int res1 = 0 ;
35485 void *argp2 = 0 ;
35486 int res2 = 0 ;
35487 void *argp3 = 0 ;
35488 int res3 = 0 ;
35489 bool temp4 = false ;
35490 int val5 ;
35491 int ecode5 = 0 ;
35492 int val6 ;
35493 int ecode6 = 0 ;
35494 int res7 = 0 ;
35495 PyObject * obj0 = 0 ;
35496 PyObject * obj1 = 0 ;
35497 PyObject * obj2 = 0 ;
35498 PyObject * obj3 = 0 ;
35499 PyObject * obj4 = 0 ;
35500 PyObject * obj5 = 0 ;
35501 PyObject * obj6 = 0 ;
35502 char * kwnames[] = {
35503 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35504 };
35505
35506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35508 if (!SWIG_IsOK(res1)) {
35509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35510 }
35511 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35512 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35513 if (!SWIG_IsOK(res2)) {
35514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35515 }
35516 if (!argp2) {
35517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35518 }
35519 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35520 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35521 if (!SWIG_IsOK(res3)) {
35522 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35523 }
35524 if (!argp3) {
35525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35526 }
35527 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35528 {
35529 arg4 = wxString_in_helper(obj3);
35530 if (arg4 == NULL) SWIG_fail;
35531 temp4 = true;
35532 }
35533 if (obj4) {
35534 ecode5 = SWIG_AsVal_int(obj4, &val5);
35535 if (!SWIG_IsOK(ecode5)) {
35536 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35537 }
35538 arg5 = static_cast< int >(val5);
35539 }
35540 if (obj5) {
35541 ecode6 = SWIG_AsVal_int(obj5, &val6);
35542 if (!SWIG_IsOK(ecode6)) {
35543 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35544 }
35545 arg6 = static_cast< int >(val6);
35546 }
35547 if (obj6) {
35548 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35549 if (!SWIG_IsOK(res7)) {
35550 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35551 }
35552 }
35553 {
35554 PyThreadState* __tstate = wxPyBeginAllowThreads();
35555 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35556 wxPyEndAllowThreads(__tstate);
35557 if (PyErr_Occurred()) SWIG_fail;
35558 }
35559 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35560 {
35561 if (temp4)
35562 delete arg4;
35563 }
35564 return resultobj;
35565 fail:
35566 {
35567 if (temp4)
35568 delete arg4;
35569 }
35570 return NULL;
35571 }
35572
35573
35574 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35575 PyObject *resultobj = 0;
35576 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35577 wxTreeItemId *arg2 = 0 ;
35578 size_t arg3 ;
35579 wxString *arg4 = 0 ;
35580 int arg5 = (int) -1 ;
35581 int arg6 = (int) -1 ;
35582 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35583 wxTreeItemId result;
35584 void *argp1 = 0 ;
35585 int res1 = 0 ;
35586 void *argp2 = 0 ;
35587 int res2 = 0 ;
35588 size_t val3 ;
35589 int ecode3 = 0 ;
35590 bool temp4 = false ;
35591 int val5 ;
35592 int ecode5 = 0 ;
35593 int val6 ;
35594 int ecode6 = 0 ;
35595 int res7 = 0 ;
35596 PyObject * obj0 = 0 ;
35597 PyObject * obj1 = 0 ;
35598 PyObject * obj2 = 0 ;
35599 PyObject * obj3 = 0 ;
35600 PyObject * obj4 = 0 ;
35601 PyObject * obj5 = 0 ;
35602 PyObject * obj6 = 0 ;
35603 char * kwnames[] = {
35604 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35605 };
35606
35607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35609 if (!SWIG_IsOK(res1)) {
35610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35611 }
35612 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35614 if (!SWIG_IsOK(res2)) {
35615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35616 }
35617 if (!argp2) {
35618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35619 }
35620 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35621 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35622 if (!SWIG_IsOK(ecode3)) {
35623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35624 }
35625 arg3 = static_cast< size_t >(val3);
35626 {
35627 arg4 = wxString_in_helper(obj3);
35628 if (arg4 == NULL) SWIG_fail;
35629 temp4 = true;
35630 }
35631 if (obj4) {
35632 ecode5 = SWIG_AsVal_int(obj4, &val5);
35633 if (!SWIG_IsOK(ecode5)) {
35634 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35635 }
35636 arg5 = static_cast< int >(val5);
35637 }
35638 if (obj5) {
35639 ecode6 = SWIG_AsVal_int(obj5, &val6);
35640 if (!SWIG_IsOK(ecode6)) {
35641 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35642 }
35643 arg6 = static_cast< int >(val6);
35644 }
35645 if (obj6) {
35646 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35647 if (!SWIG_IsOK(res7)) {
35648 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35649 }
35650 }
35651 {
35652 PyThreadState* __tstate = wxPyBeginAllowThreads();
35653 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35654 wxPyEndAllowThreads(__tstate);
35655 if (PyErr_Occurred()) SWIG_fail;
35656 }
35657 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35658 {
35659 if (temp4)
35660 delete arg4;
35661 }
35662 return resultobj;
35663 fail:
35664 {
35665 if (temp4)
35666 delete arg4;
35667 }
35668 return NULL;
35669 }
35670
35671
35672 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35673 PyObject *resultobj = 0;
35674 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35675 wxTreeItemId *arg2 = 0 ;
35676 wxString *arg3 = 0 ;
35677 int arg4 = (int) -1 ;
35678 int arg5 = (int) -1 ;
35679 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35680 wxTreeItemId result;
35681 void *argp1 = 0 ;
35682 int res1 = 0 ;
35683 void *argp2 = 0 ;
35684 int res2 = 0 ;
35685 bool temp3 = false ;
35686 int val4 ;
35687 int ecode4 = 0 ;
35688 int val5 ;
35689 int ecode5 = 0 ;
35690 int res6 = 0 ;
35691 PyObject * obj0 = 0 ;
35692 PyObject * obj1 = 0 ;
35693 PyObject * obj2 = 0 ;
35694 PyObject * obj3 = 0 ;
35695 PyObject * obj4 = 0 ;
35696 PyObject * obj5 = 0 ;
35697 char * kwnames[] = {
35698 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35699 };
35700
35701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35703 if (!SWIG_IsOK(res1)) {
35704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35705 }
35706 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35708 if (!SWIG_IsOK(res2)) {
35709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35710 }
35711 if (!argp2) {
35712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35713 }
35714 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35715 {
35716 arg3 = wxString_in_helper(obj2);
35717 if (arg3 == NULL) SWIG_fail;
35718 temp3 = true;
35719 }
35720 if (obj3) {
35721 ecode4 = SWIG_AsVal_int(obj3, &val4);
35722 if (!SWIG_IsOK(ecode4)) {
35723 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35724 }
35725 arg4 = static_cast< int >(val4);
35726 }
35727 if (obj4) {
35728 ecode5 = SWIG_AsVal_int(obj4, &val5);
35729 if (!SWIG_IsOK(ecode5)) {
35730 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35731 }
35732 arg5 = static_cast< int >(val5);
35733 }
35734 if (obj5) {
35735 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35736 if (!SWIG_IsOK(res6)) {
35737 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35738 }
35739 }
35740 {
35741 PyThreadState* __tstate = wxPyBeginAllowThreads();
35742 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35743 wxPyEndAllowThreads(__tstate);
35744 if (PyErr_Occurred()) SWIG_fail;
35745 }
35746 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35747 {
35748 if (temp3)
35749 delete arg3;
35750 }
35751 return resultobj;
35752 fail:
35753 {
35754 if (temp3)
35755 delete arg3;
35756 }
35757 return NULL;
35758 }
35759
35760
35761 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35762 PyObject *resultobj = 0;
35763 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35764 wxTreeItemId *arg2 = 0 ;
35765 void *argp1 = 0 ;
35766 int res1 = 0 ;
35767 void *argp2 = 0 ;
35768 int res2 = 0 ;
35769 PyObject * obj0 = 0 ;
35770 PyObject * obj1 = 0 ;
35771 char * kwnames[] = {
35772 (char *) "self",(char *) "item", NULL
35773 };
35774
35775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35777 if (!SWIG_IsOK(res1)) {
35778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35779 }
35780 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35781 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35782 if (!SWIG_IsOK(res2)) {
35783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35784 }
35785 if (!argp2) {
35786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35787 }
35788 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35789 {
35790 PyThreadState* __tstate = wxPyBeginAllowThreads();
35791 (arg1)->Delete((wxTreeItemId const &)*arg2);
35792 wxPyEndAllowThreads(__tstate);
35793 if (PyErr_Occurred()) SWIG_fail;
35794 }
35795 resultobj = SWIG_Py_Void();
35796 return resultobj;
35797 fail:
35798 return NULL;
35799 }
35800
35801
35802 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35803 PyObject *resultobj = 0;
35804 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35805 wxTreeItemId *arg2 = 0 ;
35806 void *argp1 = 0 ;
35807 int res1 = 0 ;
35808 void *argp2 = 0 ;
35809 int res2 = 0 ;
35810 PyObject * obj0 = 0 ;
35811 PyObject * obj1 = 0 ;
35812 char * kwnames[] = {
35813 (char *) "self",(char *) "item", NULL
35814 };
35815
35816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35818 if (!SWIG_IsOK(res1)) {
35819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35820 }
35821 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35822 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35823 if (!SWIG_IsOK(res2)) {
35824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35825 }
35826 if (!argp2) {
35827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35828 }
35829 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35830 {
35831 PyThreadState* __tstate = wxPyBeginAllowThreads();
35832 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
35833 wxPyEndAllowThreads(__tstate);
35834 if (PyErr_Occurred()) SWIG_fail;
35835 }
35836 resultobj = SWIG_Py_Void();
35837 return resultobj;
35838 fail:
35839 return NULL;
35840 }
35841
35842
35843 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35844 PyObject *resultobj = 0;
35845 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35846 void *argp1 = 0 ;
35847 int res1 = 0 ;
35848 PyObject *swig_obj[1] ;
35849
35850 if (!args) SWIG_fail;
35851 swig_obj[0] = args;
35852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35853 if (!SWIG_IsOK(res1)) {
35854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35855 }
35856 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35857 {
35858 PyThreadState* __tstate = wxPyBeginAllowThreads();
35859 (arg1)->DeleteAllItems();
35860 wxPyEndAllowThreads(__tstate);
35861 if (PyErr_Occurred()) SWIG_fail;
35862 }
35863 resultobj = SWIG_Py_Void();
35864 return resultobj;
35865 fail:
35866 return NULL;
35867 }
35868
35869
35870 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35871 PyObject *resultobj = 0;
35872 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35873 wxTreeItemId *arg2 = 0 ;
35874 void *argp1 = 0 ;
35875 int res1 = 0 ;
35876 void *argp2 = 0 ;
35877 int res2 = 0 ;
35878 PyObject * obj0 = 0 ;
35879 PyObject * obj1 = 0 ;
35880 char * kwnames[] = {
35881 (char *) "self",(char *) "item", NULL
35882 };
35883
35884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
35885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35886 if (!SWIG_IsOK(res1)) {
35887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35888 }
35889 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35891 if (!SWIG_IsOK(res2)) {
35892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35893 }
35894 if (!argp2) {
35895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35896 }
35897 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35898 {
35899 PyThreadState* __tstate = wxPyBeginAllowThreads();
35900 (arg1)->Expand((wxTreeItemId const &)*arg2);
35901 wxPyEndAllowThreads(__tstate);
35902 if (PyErr_Occurred()) SWIG_fail;
35903 }
35904 resultobj = SWIG_Py_Void();
35905 return resultobj;
35906 fail:
35907 return NULL;
35908 }
35909
35910
35911 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35912 PyObject *resultobj = 0;
35913 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35914 wxTreeItemId *arg2 = 0 ;
35915 void *argp1 = 0 ;
35916 int res1 = 0 ;
35917 void *argp2 = 0 ;
35918 int res2 = 0 ;
35919 PyObject * obj0 = 0 ;
35920 PyObject * obj1 = 0 ;
35921 char * kwnames[] = {
35922 (char *) "self",(char *) "item", NULL
35923 };
35924
35925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
35926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35927 if (!SWIG_IsOK(res1)) {
35928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35929 }
35930 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35931 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35932 if (!SWIG_IsOK(res2)) {
35933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35934 }
35935 if (!argp2) {
35936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35937 }
35938 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35939 {
35940 PyThreadState* __tstate = wxPyBeginAllowThreads();
35941 (arg1)->Collapse((wxTreeItemId const &)*arg2);
35942 wxPyEndAllowThreads(__tstate);
35943 if (PyErr_Occurred()) SWIG_fail;
35944 }
35945 resultobj = SWIG_Py_Void();
35946 return resultobj;
35947 fail:
35948 return NULL;
35949 }
35950
35951
35952 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35953 PyObject *resultobj = 0;
35954 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35955 wxTreeItemId *arg2 = 0 ;
35956 void *argp1 = 0 ;
35957 int res1 = 0 ;
35958 void *argp2 = 0 ;
35959 int res2 = 0 ;
35960 PyObject * obj0 = 0 ;
35961 PyObject * obj1 = 0 ;
35962 char * kwnames[] = {
35963 (char *) "self",(char *) "item", NULL
35964 };
35965
35966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
35967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35968 if (!SWIG_IsOK(res1)) {
35969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35970 }
35971 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35972 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35973 if (!SWIG_IsOK(res2)) {
35974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35975 }
35976 if (!argp2) {
35977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35978 }
35979 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35980 {
35981 PyThreadState* __tstate = wxPyBeginAllowThreads();
35982 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
35983 wxPyEndAllowThreads(__tstate);
35984 if (PyErr_Occurred()) SWIG_fail;
35985 }
35986 resultobj = SWIG_Py_Void();
35987 return resultobj;
35988 fail:
35989 return NULL;
35990 }
35991
35992
35993 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35994 PyObject *resultobj = 0;
35995 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35996 wxTreeItemId *arg2 = 0 ;
35997 void *argp1 = 0 ;
35998 int res1 = 0 ;
35999 void *argp2 = 0 ;
36000 int res2 = 0 ;
36001 PyObject * obj0 = 0 ;
36002 PyObject * obj1 = 0 ;
36003 char * kwnames[] = {
36004 (char *) "self",(char *) "item", NULL
36005 };
36006
36007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36009 if (!SWIG_IsOK(res1)) {
36010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36011 }
36012 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36014 if (!SWIG_IsOK(res2)) {
36015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36016 }
36017 if (!argp2) {
36018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36019 }
36020 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36021 {
36022 PyThreadState* __tstate = wxPyBeginAllowThreads();
36023 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36024 wxPyEndAllowThreads(__tstate);
36025 if (PyErr_Occurred()) SWIG_fail;
36026 }
36027 resultobj = SWIG_Py_Void();
36028 return resultobj;
36029 fail:
36030 return NULL;
36031 }
36032
36033
36034 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36035 PyObject *resultobj = 0;
36036 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36037 void *argp1 = 0 ;
36038 int res1 = 0 ;
36039 PyObject *swig_obj[1] ;
36040
36041 if (!args) SWIG_fail;
36042 swig_obj[0] = args;
36043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36044 if (!SWIG_IsOK(res1)) {
36045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36046 }
36047 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36048 {
36049 PyThreadState* __tstate = wxPyBeginAllowThreads();
36050 (arg1)->Unselect();
36051 wxPyEndAllowThreads(__tstate);
36052 if (PyErr_Occurred()) SWIG_fail;
36053 }
36054 resultobj = SWIG_Py_Void();
36055 return resultobj;
36056 fail:
36057 return NULL;
36058 }
36059
36060
36061 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36062 PyObject *resultobj = 0;
36063 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36064 wxTreeItemId *arg2 = 0 ;
36065 void *argp1 = 0 ;
36066 int res1 = 0 ;
36067 void *argp2 = 0 ;
36068 int res2 = 0 ;
36069 PyObject * obj0 = 0 ;
36070 PyObject * obj1 = 0 ;
36071 char * kwnames[] = {
36072 (char *) "self",(char *) "item", NULL
36073 };
36074
36075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36077 if (!SWIG_IsOK(res1)) {
36078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36079 }
36080 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36081 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36082 if (!SWIG_IsOK(res2)) {
36083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36084 }
36085 if (!argp2) {
36086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36087 }
36088 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36089 {
36090 PyThreadState* __tstate = wxPyBeginAllowThreads();
36091 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36092 wxPyEndAllowThreads(__tstate);
36093 if (PyErr_Occurred()) SWIG_fail;
36094 }
36095 resultobj = SWIG_Py_Void();
36096 return resultobj;
36097 fail:
36098 return NULL;
36099 }
36100
36101
36102 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36103 PyObject *resultobj = 0;
36104 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36105 void *argp1 = 0 ;
36106 int res1 = 0 ;
36107 PyObject *swig_obj[1] ;
36108
36109 if (!args) SWIG_fail;
36110 swig_obj[0] = args;
36111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36112 if (!SWIG_IsOK(res1)) {
36113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36114 }
36115 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36116 {
36117 PyThreadState* __tstate = wxPyBeginAllowThreads();
36118 (arg1)->UnselectAll();
36119 wxPyEndAllowThreads(__tstate);
36120 if (PyErr_Occurred()) SWIG_fail;
36121 }
36122 resultobj = SWIG_Py_Void();
36123 return resultobj;
36124 fail:
36125 return NULL;
36126 }
36127
36128
36129 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36130 PyObject *resultobj = 0;
36131 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36132 wxTreeItemId *arg2 = 0 ;
36133 bool arg3 = (bool) true ;
36134 void *argp1 = 0 ;
36135 int res1 = 0 ;
36136 void *argp2 = 0 ;
36137 int res2 = 0 ;
36138 bool val3 ;
36139 int ecode3 = 0 ;
36140 PyObject * obj0 = 0 ;
36141 PyObject * obj1 = 0 ;
36142 PyObject * obj2 = 0 ;
36143 char * kwnames[] = {
36144 (char *) "self",(char *) "item",(char *) "select", NULL
36145 };
36146
36147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36149 if (!SWIG_IsOK(res1)) {
36150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36151 }
36152 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36153 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36154 if (!SWIG_IsOK(res2)) {
36155 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36156 }
36157 if (!argp2) {
36158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36159 }
36160 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36161 if (obj2) {
36162 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36163 if (!SWIG_IsOK(ecode3)) {
36164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36165 }
36166 arg3 = static_cast< bool >(val3);
36167 }
36168 {
36169 PyThreadState* __tstate = wxPyBeginAllowThreads();
36170 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36171 wxPyEndAllowThreads(__tstate);
36172 if (PyErr_Occurred()) SWIG_fail;
36173 }
36174 resultobj = SWIG_Py_Void();
36175 return resultobj;
36176 fail:
36177 return NULL;
36178 }
36179
36180
36181 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36182 PyObject *resultobj = 0;
36183 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36184 wxTreeItemId *arg2 = 0 ;
36185 void *argp1 = 0 ;
36186 int res1 = 0 ;
36187 void *argp2 = 0 ;
36188 int res2 = 0 ;
36189 PyObject * obj0 = 0 ;
36190 PyObject * obj1 = 0 ;
36191 char * kwnames[] = {
36192 (char *) "self",(char *) "item", NULL
36193 };
36194
36195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36197 if (!SWIG_IsOK(res1)) {
36198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36199 }
36200 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36202 if (!SWIG_IsOK(res2)) {
36203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36204 }
36205 if (!argp2) {
36206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36207 }
36208 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36209 {
36210 PyThreadState* __tstate = wxPyBeginAllowThreads();
36211 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36212 wxPyEndAllowThreads(__tstate);
36213 if (PyErr_Occurred()) SWIG_fail;
36214 }
36215 resultobj = SWIG_Py_Void();
36216 return resultobj;
36217 fail:
36218 return NULL;
36219 }
36220
36221
36222 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36223 PyObject *resultobj = 0;
36224 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36225 wxTreeItemId *arg2 = 0 ;
36226 void *argp1 = 0 ;
36227 int res1 = 0 ;
36228 void *argp2 = 0 ;
36229 int res2 = 0 ;
36230 PyObject * obj0 = 0 ;
36231 PyObject * obj1 = 0 ;
36232 char * kwnames[] = {
36233 (char *) "self",(char *) "item", NULL
36234 };
36235
36236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36238 if (!SWIG_IsOK(res1)) {
36239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36240 }
36241 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36242 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36243 if (!SWIG_IsOK(res2)) {
36244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36245 }
36246 if (!argp2) {
36247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36248 }
36249 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36250 {
36251 PyThreadState* __tstate = wxPyBeginAllowThreads();
36252 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36253 wxPyEndAllowThreads(__tstate);
36254 if (PyErr_Occurred()) SWIG_fail;
36255 }
36256 resultobj = SWIG_Py_Void();
36257 return resultobj;
36258 fail:
36259 return NULL;
36260 }
36261
36262
36263 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36264 PyObject *resultobj = 0;
36265 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36266 wxTreeItemId *arg2 = 0 ;
36267 void *argp1 = 0 ;
36268 int res1 = 0 ;
36269 void *argp2 = 0 ;
36270 int res2 = 0 ;
36271 PyObject * obj0 = 0 ;
36272 PyObject * obj1 = 0 ;
36273 char * kwnames[] = {
36274 (char *) "self",(char *) "item", NULL
36275 };
36276
36277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36279 if (!SWIG_IsOK(res1)) {
36280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36281 }
36282 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36284 if (!SWIG_IsOK(res2)) {
36285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36286 }
36287 if (!argp2) {
36288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36289 }
36290 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36291 {
36292 PyThreadState* __tstate = wxPyBeginAllowThreads();
36293 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36294 wxPyEndAllowThreads(__tstate);
36295 if (PyErr_Occurred()) SWIG_fail;
36296 }
36297 resultobj = SWIG_Py_Void();
36298 return resultobj;
36299 fail:
36300 return NULL;
36301 }
36302
36303
36304 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36305 PyObject *resultobj = 0;
36306 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36307 wxTreeItemId *arg2 = 0 ;
36308 void *argp1 = 0 ;
36309 int res1 = 0 ;
36310 void *argp2 = 0 ;
36311 int res2 = 0 ;
36312 PyObject * obj0 = 0 ;
36313 PyObject * obj1 = 0 ;
36314 char * kwnames[] = {
36315 (char *) "self",(char *) "item", NULL
36316 };
36317
36318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36320 if (!SWIG_IsOK(res1)) {
36321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36322 }
36323 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36325 if (!SWIG_IsOK(res2)) {
36326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36327 }
36328 if (!argp2) {
36329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36330 }
36331 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36332 {
36333 PyThreadState* __tstate = wxPyBeginAllowThreads();
36334 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36335 wxPyEndAllowThreads(__tstate);
36336 if (PyErr_Occurred()) SWIG_fail;
36337 }
36338 resultobj = SWIG_Py_Void();
36339 return resultobj;
36340 fail:
36341 return NULL;
36342 }
36343
36344
36345 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36346 PyObject *resultobj = 0;
36347 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36348 wxTextCtrl *result = 0 ;
36349 void *argp1 = 0 ;
36350 int res1 = 0 ;
36351 PyObject *swig_obj[1] ;
36352
36353 if (!args) SWIG_fail;
36354 swig_obj[0] = args;
36355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36356 if (!SWIG_IsOK(res1)) {
36357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36358 }
36359 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36360 {
36361 PyThreadState* __tstate = wxPyBeginAllowThreads();
36362 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36363 wxPyEndAllowThreads(__tstate);
36364 if (PyErr_Occurred()) SWIG_fail;
36365 }
36366 {
36367 resultobj = wxPyMake_wxObject(result, 0);
36368 }
36369 return resultobj;
36370 fail:
36371 return NULL;
36372 }
36373
36374
36375 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36376 PyObject *resultobj = 0;
36377 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36378 wxTreeItemId *arg2 = 0 ;
36379 bool arg3 = (bool) false ;
36380 void *argp1 = 0 ;
36381 int res1 = 0 ;
36382 void *argp2 = 0 ;
36383 int res2 = 0 ;
36384 bool val3 ;
36385 int ecode3 = 0 ;
36386 PyObject * obj0 = 0 ;
36387 PyObject * obj1 = 0 ;
36388 PyObject * obj2 = 0 ;
36389 char * kwnames[] = {
36390 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
36391 };
36392
36393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36395 if (!SWIG_IsOK(res1)) {
36396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36397 }
36398 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36399 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36400 if (!SWIG_IsOK(res2)) {
36401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36402 }
36403 if (!argp2) {
36404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36405 }
36406 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36407 if (obj2) {
36408 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36409 if (!SWIG_IsOK(ecode3)) {
36410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
36411 }
36412 arg3 = static_cast< bool >(val3);
36413 }
36414 {
36415 PyThreadState* __tstate = wxPyBeginAllowThreads();
36416 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
36417 wxPyEndAllowThreads(__tstate);
36418 if (PyErr_Occurred()) SWIG_fail;
36419 }
36420 resultobj = SWIG_Py_Void();
36421 return resultobj;
36422 fail:
36423 return NULL;
36424 }
36425
36426
36427 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36428 PyObject *resultobj = 0;
36429 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36430 wxTreeItemId *arg2 = 0 ;
36431 void *argp1 = 0 ;
36432 int res1 = 0 ;
36433 void *argp2 = 0 ;
36434 int res2 = 0 ;
36435 PyObject * obj0 = 0 ;
36436 PyObject * obj1 = 0 ;
36437 char * kwnames[] = {
36438 (char *) "self",(char *) "item", NULL
36439 };
36440
36441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36443 if (!SWIG_IsOK(res1)) {
36444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36445 }
36446 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36447 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36448 if (!SWIG_IsOK(res2)) {
36449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36450 }
36451 if (!argp2) {
36452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36453 }
36454 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36455 {
36456 PyThreadState* __tstate = wxPyBeginAllowThreads();
36457 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36458 wxPyEndAllowThreads(__tstate);
36459 if (PyErr_Occurred()) SWIG_fail;
36460 }
36461 resultobj = SWIG_Py_Void();
36462 return resultobj;
36463 fail:
36464 return NULL;
36465 }
36466
36467
36468 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36469 PyObject *resultobj = 0;
36470 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36471 wxPoint *arg2 = 0 ;
36472 int *arg3 = 0 ;
36473 wxTreeItemId result;
36474 void *argp1 = 0 ;
36475 int res1 = 0 ;
36476 wxPoint temp2 ;
36477 int temp3 ;
36478 int res3 = SWIG_TMPOBJ ;
36479 PyObject * obj0 = 0 ;
36480 PyObject * obj1 = 0 ;
36481 char * kwnames[] = {
36482 (char *) "self",(char *) "point", NULL
36483 };
36484
36485 arg3 = &temp3;
36486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36488 if (!SWIG_IsOK(res1)) {
36489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36490 }
36491 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36492 {
36493 arg2 = &temp2;
36494 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36495 }
36496 {
36497 PyThreadState* __tstate = wxPyBeginAllowThreads();
36498 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36499 wxPyEndAllowThreads(__tstate);
36500 if (PyErr_Occurred()) SWIG_fail;
36501 }
36502 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36503 if (SWIG_IsTmpObj(res3)) {
36504 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36505 } else {
36506 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36507 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36508 }
36509 return resultobj;
36510 fail:
36511 return NULL;
36512 }
36513
36514
36515 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36516 PyObject *resultobj = 0;
36517 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36518 wxTreeItemId *arg2 = 0 ;
36519 bool arg3 = (bool) false ;
36520 PyObject *result = 0 ;
36521 void *argp1 = 0 ;
36522 int res1 = 0 ;
36523 void *argp2 = 0 ;
36524 int res2 = 0 ;
36525 bool val3 ;
36526 int ecode3 = 0 ;
36527 PyObject * obj0 = 0 ;
36528 PyObject * obj1 = 0 ;
36529 PyObject * obj2 = 0 ;
36530 char * kwnames[] = {
36531 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36532 };
36533
36534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36536 if (!SWIG_IsOK(res1)) {
36537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36538 }
36539 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36540 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36541 if (!SWIG_IsOK(res2)) {
36542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36543 }
36544 if (!argp2) {
36545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36546 }
36547 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36548 if (obj2) {
36549 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36550 if (!SWIG_IsOK(ecode3)) {
36551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36552 }
36553 arg3 = static_cast< bool >(val3);
36554 }
36555 {
36556 PyThreadState* __tstate = wxPyBeginAllowThreads();
36557 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36558 wxPyEndAllowThreads(__tstate);
36559 if (PyErr_Occurred()) SWIG_fail;
36560 }
36561 resultobj = result;
36562 return resultobj;
36563 fail:
36564 return NULL;
36565 }
36566
36567
36568 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36569 PyObject *resultobj = 0;
36570 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36571 wxTreeItemId *arg2 = 0 ;
36572 int arg3 ;
36573 void *argp1 = 0 ;
36574 int res1 = 0 ;
36575 void *argp2 = 0 ;
36576 int res2 = 0 ;
36577 int val3 ;
36578 int ecode3 = 0 ;
36579 PyObject * obj0 = 0 ;
36580 PyObject * obj1 = 0 ;
36581 PyObject * obj2 = 0 ;
36582 char * kwnames[] = {
36583 (char *) "self",(char *) "node",(char *) "state", NULL
36584 };
36585
36586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36588 if (!SWIG_IsOK(res1)) {
36589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36590 }
36591 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36593 if (!SWIG_IsOK(res2)) {
36594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36595 }
36596 if (!argp2) {
36597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36598 }
36599 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36600 ecode3 = SWIG_AsVal_int(obj2, &val3);
36601 if (!SWIG_IsOK(ecode3)) {
36602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
36603 }
36604 arg3 = static_cast< int >(val3);
36605 {
36606 PyThreadState* __tstate = wxPyBeginAllowThreads();
36607 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
36608 wxPyEndAllowThreads(__tstate);
36609 if (PyErr_Occurred()) SWIG_fail;
36610 }
36611 resultobj = SWIG_Py_Void();
36612 return resultobj;
36613 fail:
36614 return NULL;
36615 }
36616
36617
36618 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36619 PyObject *resultobj = 0;
36620 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36621 wxTreeItemId *arg2 = 0 ;
36622 int result;
36623 void *argp1 = 0 ;
36624 int res1 = 0 ;
36625 void *argp2 = 0 ;
36626 int res2 = 0 ;
36627 PyObject * obj0 = 0 ;
36628 PyObject * obj1 = 0 ;
36629 char * kwnames[] = {
36630 (char *) "self",(char *) "node", NULL
36631 };
36632
36633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
36634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36635 if (!SWIG_IsOK(res1)) {
36636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36637 }
36638 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36640 if (!SWIG_IsOK(res2)) {
36641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36642 }
36643 if (!argp2) {
36644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36645 }
36646 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36647 {
36648 PyThreadState* __tstate = wxPyBeginAllowThreads();
36649 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
36650 wxPyEndAllowThreads(__tstate);
36651 if (PyErr_Occurred()) SWIG_fail;
36652 }
36653 resultobj = SWIG_From_int(static_cast< int >(result));
36654 return resultobj;
36655 fail:
36656 return NULL;
36657 }
36658
36659
36660 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36661 PyObject *resultobj = 0;
36662 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36663 SwigValueWrapper<wxVisualAttributes > result;
36664 int val1 ;
36665 int ecode1 = 0 ;
36666 PyObject * obj0 = 0 ;
36667 char * kwnames[] = {
36668 (char *) "variant", NULL
36669 };
36670
36671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36672 if (obj0) {
36673 ecode1 = SWIG_AsVal_int(obj0, &val1);
36674 if (!SWIG_IsOK(ecode1)) {
36675 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36676 }
36677 arg1 = static_cast< wxWindowVariant >(val1);
36678 }
36679 {
36680 if (!wxPyCheckForApp()) SWIG_fail;
36681 PyThreadState* __tstate = wxPyBeginAllowThreads();
36682 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36683 wxPyEndAllowThreads(__tstate);
36684 if (PyErr_Occurred()) SWIG_fail;
36685 }
36686 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36687 return resultobj;
36688 fail:
36689 return NULL;
36690 }
36691
36692
36693 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36694 PyObject *obj;
36695 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36696 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36697 return SWIG_Py_Void();
36698 }
36699
36700 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36701 return SWIG_Python_InitShadowInstance(args);
36702 }
36703
36704 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36705 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36706 return 1;
36707 }
36708
36709
36710 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36711 PyObject *pyobj = 0;
36712
36713 {
36714 #if wxUSE_UNICODE
36715 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36716 #else
36717 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36718 #endif
36719 }
36720 return pyobj;
36721 }
36722
36723
36724 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36725 PyObject *resultobj = 0;
36726 wxWindow *arg1 = (wxWindow *) 0 ;
36727 int arg2 = (int) (int)-1 ;
36728 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36729 wxString *arg3 = (wxString *) &arg3_defvalue ;
36730 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36731 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36732 wxSize const &arg5_defvalue = wxDefaultSize ;
36733 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36734 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36735 wxString const &arg7_defvalue = wxPyEmptyString ;
36736 wxString *arg7 = (wxString *) &arg7_defvalue ;
36737 int arg8 = (int) 0 ;
36738 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36739 wxString *arg9 = (wxString *) &arg9_defvalue ;
36740 wxGenericDirCtrl *result = 0 ;
36741 void *argp1 = 0 ;
36742 int res1 = 0 ;
36743 int val2 ;
36744 int ecode2 = 0 ;
36745 bool temp3 = false ;
36746 wxPoint temp4 ;
36747 wxSize temp5 ;
36748 long val6 ;
36749 int ecode6 = 0 ;
36750 bool temp7 = false ;
36751 int val8 ;
36752 int ecode8 = 0 ;
36753 bool temp9 = false ;
36754 PyObject * obj0 = 0 ;
36755 PyObject * obj1 = 0 ;
36756 PyObject * obj2 = 0 ;
36757 PyObject * obj3 = 0 ;
36758 PyObject * obj4 = 0 ;
36759 PyObject * obj5 = 0 ;
36760 PyObject * obj6 = 0 ;
36761 PyObject * obj7 = 0 ;
36762 PyObject * obj8 = 0 ;
36763 char * kwnames[] = {
36764 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36765 };
36766
36767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36769 if (!SWIG_IsOK(res1)) {
36770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36771 }
36772 arg1 = reinterpret_cast< wxWindow * >(argp1);
36773 if (obj1) {
36774 ecode2 = SWIG_AsVal_int(obj1, &val2);
36775 if (!SWIG_IsOK(ecode2)) {
36776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36777 }
36778 arg2 = static_cast< int >(val2);
36779 }
36780 if (obj2) {
36781 {
36782 arg3 = wxString_in_helper(obj2);
36783 if (arg3 == NULL) SWIG_fail;
36784 temp3 = true;
36785 }
36786 }
36787 if (obj3) {
36788 {
36789 arg4 = &temp4;
36790 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36791 }
36792 }
36793 if (obj4) {
36794 {
36795 arg5 = &temp5;
36796 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36797 }
36798 }
36799 if (obj5) {
36800 ecode6 = SWIG_AsVal_long(obj5, &val6);
36801 if (!SWIG_IsOK(ecode6)) {
36802 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36803 }
36804 arg6 = static_cast< long >(val6);
36805 }
36806 if (obj6) {
36807 {
36808 arg7 = wxString_in_helper(obj6);
36809 if (arg7 == NULL) SWIG_fail;
36810 temp7 = true;
36811 }
36812 }
36813 if (obj7) {
36814 ecode8 = SWIG_AsVal_int(obj7, &val8);
36815 if (!SWIG_IsOK(ecode8)) {
36816 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36817 }
36818 arg8 = static_cast< int >(val8);
36819 }
36820 if (obj8) {
36821 {
36822 arg9 = wxString_in_helper(obj8);
36823 if (arg9 == NULL) SWIG_fail;
36824 temp9 = true;
36825 }
36826 }
36827 {
36828 if (!wxPyCheckForApp()) SWIG_fail;
36829 PyThreadState* __tstate = wxPyBeginAllowThreads();
36830 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36831 wxPyEndAllowThreads(__tstate);
36832 if (PyErr_Occurred()) SWIG_fail;
36833 }
36834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36835 {
36836 if (temp3)
36837 delete arg3;
36838 }
36839 {
36840 if (temp7)
36841 delete arg7;
36842 }
36843 {
36844 if (temp9)
36845 delete arg9;
36846 }
36847 return resultobj;
36848 fail:
36849 {
36850 if (temp3)
36851 delete arg3;
36852 }
36853 {
36854 if (temp7)
36855 delete arg7;
36856 }
36857 {
36858 if (temp9)
36859 delete arg9;
36860 }
36861 return NULL;
36862 }
36863
36864
36865 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36866 PyObject *resultobj = 0;
36867 wxGenericDirCtrl *result = 0 ;
36868
36869 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36870 {
36871 if (!wxPyCheckForApp()) SWIG_fail;
36872 PyThreadState* __tstate = wxPyBeginAllowThreads();
36873 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36874 wxPyEndAllowThreads(__tstate);
36875 if (PyErr_Occurred()) SWIG_fail;
36876 }
36877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36878 return resultobj;
36879 fail:
36880 return NULL;
36881 }
36882
36883
36884 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36885 PyObject *resultobj = 0;
36886 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36887 wxWindow *arg2 = (wxWindow *) 0 ;
36888 int arg3 = (int) (int)-1 ;
36889 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
36890 wxString *arg4 = (wxString *) &arg4_defvalue ;
36891 wxPoint const &arg5_defvalue = wxDefaultPosition ;
36892 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
36893 wxSize const &arg6_defvalue = wxDefaultSize ;
36894 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
36895 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36896 wxString const &arg8_defvalue = wxPyEmptyString ;
36897 wxString *arg8 = (wxString *) &arg8_defvalue ;
36898 int arg9 = (int) 0 ;
36899 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
36900 wxString *arg10 = (wxString *) &arg10_defvalue ;
36901 bool result;
36902 void *argp1 = 0 ;
36903 int res1 = 0 ;
36904 void *argp2 = 0 ;
36905 int res2 = 0 ;
36906 int val3 ;
36907 int ecode3 = 0 ;
36908 bool temp4 = false ;
36909 wxPoint temp5 ;
36910 wxSize temp6 ;
36911 long val7 ;
36912 int ecode7 = 0 ;
36913 bool temp8 = false ;
36914 int val9 ;
36915 int ecode9 = 0 ;
36916 bool temp10 = false ;
36917 PyObject * obj0 = 0 ;
36918 PyObject * obj1 = 0 ;
36919 PyObject * obj2 = 0 ;
36920 PyObject * obj3 = 0 ;
36921 PyObject * obj4 = 0 ;
36922 PyObject * obj5 = 0 ;
36923 PyObject * obj6 = 0 ;
36924 PyObject * obj7 = 0 ;
36925 PyObject * obj8 = 0 ;
36926 PyObject * obj9 = 0 ;
36927 char * kwnames[] = {
36928 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36929 };
36930
36931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
36932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36933 if (!SWIG_IsOK(res1)) {
36934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36935 }
36936 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36937 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36938 if (!SWIG_IsOK(res2)) {
36939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
36940 }
36941 arg2 = reinterpret_cast< wxWindow * >(argp2);
36942 if (obj2) {
36943 ecode3 = SWIG_AsVal_int(obj2, &val3);
36944 if (!SWIG_IsOK(ecode3)) {
36945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
36946 }
36947 arg3 = static_cast< int >(val3);
36948 }
36949 if (obj3) {
36950 {
36951 arg4 = wxString_in_helper(obj3);
36952 if (arg4 == NULL) SWIG_fail;
36953 temp4 = true;
36954 }
36955 }
36956 if (obj4) {
36957 {
36958 arg5 = &temp5;
36959 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36960 }
36961 }
36962 if (obj5) {
36963 {
36964 arg6 = &temp6;
36965 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36966 }
36967 }
36968 if (obj6) {
36969 ecode7 = SWIG_AsVal_long(obj6, &val7);
36970 if (!SWIG_IsOK(ecode7)) {
36971 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
36972 }
36973 arg7 = static_cast< long >(val7);
36974 }
36975 if (obj7) {
36976 {
36977 arg8 = wxString_in_helper(obj7);
36978 if (arg8 == NULL) SWIG_fail;
36979 temp8 = true;
36980 }
36981 }
36982 if (obj8) {
36983 ecode9 = SWIG_AsVal_int(obj8, &val9);
36984 if (!SWIG_IsOK(ecode9)) {
36985 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
36986 }
36987 arg9 = static_cast< int >(val9);
36988 }
36989 if (obj9) {
36990 {
36991 arg10 = wxString_in_helper(obj9);
36992 if (arg10 == NULL) SWIG_fail;
36993 temp10 = true;
36994 }
36995 }
36996 {
36997 PyThreadState* __tstate = wxPyBeginAllowThreads();
36998 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
36999 wxPyEndAllowThreads(__tstate);
37000 if (PyErr_Occurred()) SWIG_fail;
37001 }
37002 {
37003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37004 }
37005 {
37006 if (temp4)
37007 delete arg4;
37008 }
37009 {
37010 if (temp8)
37011 delete arg8;
37012 }
37013 {
37014 if (temp10)
37015 delete arg10;
37016 }
37017 return resultobj;
37018 fail:
37019 {
37020 if (temp4)
37021 delete arg4;
37022 }
37023 {
37024 if (temp8)
37025 delete arg8;
37026 }
37027 {
37028 if (temp10)
37029 delete arg10;
37030 }
37031 return NULL;
37032 }
37033
37034
37035 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37036 PyObject *resultobj = 0;
37037 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37038 wxString *arg2 = 0 ;
37039 bool result;
37040 void *argp1 = 0 ;
37041 int res1 = 0 ;
37042 bool temp2 = false ;
37043 PyObject * obj0 = 0 ;
37044 PyObject * obj1 = 0 ;
37045 char * kwnames[] = {
37046 (char *) "self",(char *) "path", NULL
37047 };
37048
37049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37051 if (!SWIG_IsOK(res1)) {
37052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37053 }
37054 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37055 {
37056 arg2 = wxString_in_helper(obj1);
37057 if (arg2 == NULL) SWIG_fail;
37058 temp2 = true;
37059 }
37060 {
37061 PyThreadState* __tstate = wxPyBeginAllowThreads();
37062 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37063 wxPyEndAllowThreads(__tstate);
37064 if (PyErr_Occurred()) SWIG_fail;
37065 }
37066 {
37067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37068 }
37069 {
37070 if (temp2)
37071 delete arg2;
37072 }
37073 return resultobj;
37074 fail:
37075 {
37076 if (temp2)
37077 delete arg2;
37078 }
37079 return NULL;
37080 }
37081
37082
37083 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37084 PyObject *resultobj = 0;
37085 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37086 wxString result;
37087 void *argp1 = 0 ;
37088 int res1 = 0 ;
37089 PyObject *swig_obj[1] ;
37090
37091 if (!args) SWIG_fail;
37092 swig_obj[0] = args;
37093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37094 if (!SWIG_IsOK(res1)) {
37095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37096 }
37097 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37098 {
37099 PyThreadState* __tstate = wxPyBeginAllowThreads();
37100 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37101 wxPyEndAllowThreads(__tstate);
37102 if (PyErr_Occurred()) SWIG_fail;
37103 }
37104 {
37105 #if wxUSE_UNICODE
37106 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37107 #else
37108 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37109 #endif
37110 }
37111 return resultobj;
37112 fail:
37113 return NULL;
37114 }
37115
37116
37117 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37118 PyObject *resultobj = 0;
37119 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37120 wxString *arg2 = 0 ;
37121 void *argp1 = 0 ;
37122 int res1 = 0 ;
37123 bool temp2 = false ;
37124 PyObject * obj0 = 0 ;
37125 PyObject * obj1 = 0 ;
37126 char * kwnames[] = {
37127 (char *) "self",(char *) "path", NULL
37128 };
37129
37130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37132 if (!SWIG_IsOK(res1)) {
37133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37134 }
37135 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37136 {
37137 arg2 = wxString_in_helper(obj1);
37138 if (arg2 == NULL) SWIG_fail;
37139 temp2 = true;
37140 }
37141 {
37142 PyThreadState* __tstate = wxPyBeginAllowThreads();
37143 (arg1)->SetDefaultPath((wxString const &)*arg2);
37144 wxPyEndAllowThreads(__tstate);
37145 if (PyErr_Occurred()) SWIG_fail;
37146 }
37147 resultobj = SWIG_Py_Void();
37148 {
37149 if (temp2)
37150 delete arg2;
37151 }
37152 return resultobj;
37153 fail:
37154 {
37155 if (temp2)
37156 delete arg2;
37157 }
37158 return NULL;
37159 }
37160
37161
37162 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37163 PyObject *resultobj = 0;
37164 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37165 wxString result;
37166 void *argp1 = 0 ;
37167 int res1 = 0 ;
37168 PyObject *swig_obj[1] ;
37169
37170 if (!args) SWIG_fail;
37171 swig_obj[0] = args;
37172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37173 if (!SWIG_IsOK(res1)) {
37174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37175 }
37176 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37177 {
37178 PyThreadState* __tstate = wxPyBeginAllowThreads();
37179 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37180 wxPyEndAllowThreads(__tstate);
37181 if (PyErr_Occurred()) SWIG_fail;
37182 }
37183 {
37184 #if wxUSE_UNICODE
37185 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37186 #else
37187 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37188 #endif
37189 }
37190 return resultobj;
37191 fail:
37192 return NULL;
37193 }
37194
37195
37196 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37197 PyObject *resultobj = 0;
37198 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37199 wxString result;
37200 void *argp1 = 0 ;
37201 int res1 = 0 ;
37202 PyObject *swig_obj[1] ;
37203
37204 if (!args) SWIG_fail;
37205 swig_obj[0] = args;
37206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37207 if (!SWIG_IsOK(res1)) {
37208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37209 }
37210 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37211 {
37212 PyThreadState* __tstate = wxPyBeginAllowThreads();
37213 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37214 wxPyEndAllowThreads(__tstate);
37215 if (PyErr_Occurred()) SWIG_fail;
37216 }
37217 {
37218 #if wxUSE_UNICODE
37219 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37220 #else
37221 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37222 #endif
37223 }
37224 return resultobj;
37225 fail:
37226 return NULL;
37227 }
37228
37229
37230 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37231 PyObject *resultobj = 0;
37232 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37233 wxString *arg2 = 0 ;
37234 void *argp1 = 0 ;
37235 int res1 = 0 ;
37236 bool temp2 = false ;
37237 PyObject * obj0 = 0 ;
37238 PyObject * obj1 = 0 ;
37239 char * kwnames[] = {
37240 (char *) "self",(char *) "path", NULL
37241 };
37242
37243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37245 if (!SWIG_IsOK(res1)) {
37246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37247 }
37248 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37249 {
37250 arg2 = wxString_in_helper(obj1);
37251 if (arg2 == NULL) SWIG_fail;
37252 temp2 = true;
37253 }
37254 {
37255 PyThreadState* __tstate = wxPyBeginAllowThreads();
37256 (arg1)->SetPath((wxString const &)*arg2);
37257 wxPyEndAllowThreads(__tstate);
37258 if (PyErr_Occurred()) SWIG_fail;
37259 }
37260 resultobj = SWIG_Py_Void();
37261 {
37262 if (temp2)
37263 delete arg2;
37264 }
37265 return resultobj;
37266 fail:
37267 {
37268 if (temp2)
37269 delete arg2;
37270 }
37271 return NULL;
37272 }
37273
37274
37275 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37276 PyObject *resultobj = 0;
37277 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37278 bool arg2 ;
37279 void *argp1 = 0 ;
37280 int res1 = 0 ;
37281 bool val2 ;
37282 int ecode2 = 0 ;
37283 PyObject * obj0 = 0 ;
37284 PyObject * obj1 = 0 ;
37285 char * kwnames[] = {
37286 (char *) "self",(char *) "show", NULL
37287 };
37288
37289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37291 if (!SWIG_IsOK(res1)) {
37292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37293 }
37294 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37295 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37296 if (!SWIG_IsOK(ecode2)) {
37297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37298 }
37299 arg2 = static_cast< bool >(val2);
37300 {
37301 PyThreadState* __tstate = wxPyBeginAllowThreads();
37302 (arg1)->ShowHidden(arg2);
37303 wxPyEndAllowThreads(__tstate);
37304 if (PyErr_Occurred()) SWIG_fail;
37305 }
37306 resultobj = SWIG_Py_Void();
37307 return resultobj;
37308 fail:
37309 return NULL;
37310 }
37311
37312
37313 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37314 PyObject *resultobj = 0;
37315 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37316 bool result;
37317 void *argp1 = 0 ;
37318 int res1 = 0 ;
37319 PyObject *swig_obj[1] ;
37320
37321 if (!args) SWIG_fail;
37322 swig_obj[0] = args;
37323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37324 if (!SWIG_IsOK(res1)) {
37325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37326 }
37327 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37328 {
37329 PyThreadState* __tstate = wxPyBeginAllowThreads();
37330 result = (bool)(arg1)->GetShowHidden();
37331 wxPyEndAllowThreads(__tstate);
37332 if (PyErr_Occurred()) SWIG_fail;
37333 }
37334 {
37335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37336 }
37337 return resultobj;
37338 fail:
37339 return NULL;
37340 }
37341
37342
37343 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37344 PyObject *resultobj = 0;
37345 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37346 wxString result;
37347 void *argp1 = 0 ;
37348 int res1 = 0 ;
37349 PyObject *swig_obj[1] ;
37350
37351 if (!args) SWIG_fail;
37352 swig_obj[0] = args;
37353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37354 if (!SWIG_IsOK(res1)) {
37355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37356 }
37357 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37358 {
37359 PyThreadState* __tstate = wxPyBeginAllowThreads();
37360 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37361 wxPyEndAllowThreads(__tstate);
37362 if (PyErr_Occurred()) SWIG_fail;
37363 }
37364 {
37365 #if wxUSE_UNICODE
37366 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37367 #else
37368 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37369 #endif
37370 }
37371 return resultobj;
37372 fail:
37373 return NULL;
37374 }
37375
37376
37377 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37378 PyObject *resultobj = 0;
37379 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37380 wxString *arg2 = 0 ;
37381 void *argp1 = 0 ;
37382 int res1 = 0 ;
37383 bool temp2 = false ;
37384 PyObject * obj0 = 0 ;
37385 PyObject * obj1 = 0 ;
37386 char * kwnames[] = {
37387 (char *) "self",(char *) "filter", NULL
37388 };
37389
37390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37392 if (!SWIG_IsOK(res1)) {
37393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37394 }
37395 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37396 {
37397 arg2 = wxString_in_helper(obj1);
37398 if (arg2 == NULL) SWIG_fail;
37399 temp2 = true;
37400 }
37401 {
37402 PyThreadState* __tstate = wxPyBeginAllowThreads();
37403 (arg1)->SetFilter((wxString const &)*arg2);
37404 wxPyEndAllowThreads(__tstate);
37405 if (PyErr_Occurred()) SWIG_fail;
37406 }
37407 resultobj = SWIG_Py_Void();
37408 {
37409 if (temp2)
37410 delete arg2;
37411 }
37412 return resultobj;
37413 fail:
37414 {
37415 if (temp2)
37416 delete arg2;
37417 }
37418 return NULL;
37419 }
37420
37421
37422 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37423 PyObject *resultobj = 0;
37424 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37425 int result;
37426 void *argp1 = 0 ;
37427 int res1 = 0 ;
37428 PyObject *swig_obj[1] ;
37429
37430 if (!args) SWIG_fail;
37431 swig_obj[0] = args;
37432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37433 if (!SWIG_IsOK(res1)) {
37434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37435 }
37436 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37437 {
37438 PyThreadState* __tstate = wxPyBeginAllowThreads();
37439 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37440 wxPyEndAllowThreads(__tstate);
37441 if (PyErr_Occurred()) SWIG_fail;
37442 }
37443 resultobj = SWIG_From_int(static_cast< int >(result));
37444 return resultobj;
37445 fail:
37446 return NULL;
37447 }
37448
37449
37450 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37451 PyObject *resultobj = 0;
37452 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37453 int arg2 ;
37454 void *argp1 = 0 ;
37455 int res1 = 0 ;
37456 int val2 ;
37457 int ecode2 = 0 ;
37458 PyObject * obj0 = 0 ;
37459 PyObject * obj1 = 0 ;
37460 char * kwnames[] = {
37461 (char *) "self",(char *) "n", NULL
37462 };
37463
37464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37466 if (!SWIG_IsOK(res1)) {
37467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37468 }
37469 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37470 ecode2 = SWIG_AsVal_int(obj1, &val2);
37471 if (!SWIG_IsOK(ecode2)) {
37472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37473 }
37474 arg2 = static_cast< int >(val2);
37475 {
37476 PyThreadState* __tstate = wxPyBeginAllowThreads();
37477 (arg1)->SetFilterIndex(arg2);
37478 wxPyEndAllowThreads(__tstate);
37479 if (PyErr_Occurred()) SWIG_fail;
37480 }
37481 resultobj = SWIG_Py_Void();
37482 return resultobj;
37483 fail:
37484 return NULL;
37485 }
37486
37487
37488 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37489 PyObject *resultobj = 0;
37490 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37491 wxTreeItemId result;
37492 void *argp1 = 0 ;
37493 int res1 = 0 ;
37494 PyObject *swig_obj[1] ;
37495
37496 if (!args) SWIG_fail;
37497 swig_obj[0] = args;
37498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37499 if (!SWIG_IsOK(res1)) {
37500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37501 }
37502 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37503 {
37504 PyThreadState* __tstate = wxPyBeginAllowThreads();
37505 result = (arg1)->GetRootId();
37506 wxPyEndAllowThreads(__tstate);
37507 if (PyErr_Occurred()) SWIG_fail;
37508 }
37509 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37510 return resultobj;
37511 fail:
37512 return NULL;
37513 }
37514
37515
37516 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37517 PyObject *resultobj = 0;
37518 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37519 wxPyTreeCtrl *result = 0 ;
37520 void *argp1 = 0 ;
37521 int res1 = 0 ;
37522 PyObject *swig_obj[1] ;
37523
37524 if (!args) SWIG_fail;
37525 swig_obj[0] = args;
37526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37527 if (!SWIG_IsOK(res1)) {
37528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37529 }
37530 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37531 {
37532 PyThreadState* __tstate = wxPyBeginAllowThreads();
37533 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37534 wxPyEndAllowThreads(__tstate);
37535 if (PyErr_Occurred()) SWIG_fail;
37536 }
37537 {
37538 resultobj = wxPyMake_wxObject(result, 0);
37539 }
37540 return resultobj;
37541 fail:
37542 return NULL;
37543 }
37544
37545
37546 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37547 PyObject *resultobj = 0;
37548 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37549 wxDirFilterListCtrl *result = 0 ;
37550 void *argp1 = 0 ;
37551 int res1 = 0 ;
37552 PyObject *swig_obj[1] ;
37553
37554 if (!args) SWIG_fail;
37555 swig_obj[0] = args;
37556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37557 if (!SWIG_IsOK(res1)) {
37558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37559 }
37560 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37561 {
37562 PyThreadState* __tstate = wxPyBeginAllowThreads();
37563 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37564 wxPyEndAllowThreads(__tstate);
37565 if (PyErr_Occurred()) SWIG_fail;
37566 }
37567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37568 return resultobj;
37569 fail:
37570 return NULL;
37571 }
37572
37573
37574 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37575 PyObject *resultobj = 0;
37576 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37577 wxTreeItemId arg2 ;
37578 wxString *arg3 = 0 ;
37579 bool *arg4 = 0 ;
37580 wxTreeItemId result;
37581 void *argp1 = 0 ;
37582 int res1 = 0 ;
37583 void *argp2 ;
37584 int res2 = 0 ;
37585 bool temp3 = false ;
37586 bool temp4 ;
37587 int res4 = SWIG_TMPOBJ ;
37588 PyObject * obj0 = 0 ;
37589 PyObject * obj1 = 0 ;
37590 PyObject * obj2 = 0 ;
37591 char * kwnames[] = {
37592 (char *) "self",(char *) "parentId",(char *) "path", NULL
37593 };
37594
37595 arg4 = &temp4;
37596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37598 if (!SWIG_IsOK(res1)) {
37599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37600 }
37601 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37602 {
37603 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37604 if (!SWIG_IsOK(res2)) {
37605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37606 }
37607 if (!argp2) {
37608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37609 } else {
37610 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37611 arg2 = *temp;
37612 if (SWIG_IsNewObj(res2)) delete temp;
37613 }
37614 }
37615 {
37616 arg3 = wxString_in_helper(obj2);
37617 if (arg3 == NULL) SWIG_fail;
37618 temp3 = true;
37619 }
37620 {
37621 PyThreadState* __tstate = wxPyBeginAllowThreads();
37622 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37623 wxPyEndAllowThreads(__tstate);
37624 if (PyErr_Occurred()) SWIG_fail;
37625 }
37626 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37627 if (SWIG_IsTmpObj(res4)) {
37628 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37629 } else {
37630 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37631 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37632 }
37633 {
37634 if (temp3)
37635 delete arg3;
37636 }
37637 return resultobj;
37638 fail:
37639 {
37640 if (temp3)
37641 delete arg3;
37642 }
37643 return NULL;
37644 }
37645
37646
37647 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37648 PyObject *resultobj = 0;
37649 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37650 void *argp1 = 0 ;
37651 int res1 = 0 ;
37652 PyObject *swig_obj[1] ;
37653
37654 if (!args) SWIG_fail;
37655 swig_obj[0] = args;
37656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37657 if (!SWIG_IsOK(res1)) {
37658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37659 }
37660 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37661 {
37662 PyThreadState* __tstate = wxPyBeginAllowThreads();
37663 (arg1)->DoResize();
37664 wxPyEndAllowThreads(__tstate);
37665 if (PyErr_Occurred()) SWIG_fail;
37666 }
37667 resultobj = SWIG_Py_Void();
37668 return resultobj;
37669 fail:
37670 return NULL;
37671 }
37672
37673
37674 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37675 PyObject *resultobj = 0;
37676 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37677 void *argp1 = 0 ;
37678 int res1 = 0 ;
37679 PyObject *swig_obj[1] ;
37680
37681 if (!args) SWIG_fail;
37682 swig_obj[0] = args;
37683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37684 if (!SWIG_IsOK(res1)) {
37685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37686 }
37687 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37688 {
37689 PyThreadState* __tstate = wxPyBeginAllowThreads();
37690 (arg1)->ReCreateTree();
37691 wxPyEndAllowThreads(__tstate);
37692 if (PyErr_Occurred()) SWIG_fail;
37693 }
37694 resultobj = SWIG_Py_Void();
37695 return resultobj;
37696 fail:
37697 return NULL;
37698 }
37699
37700
37701 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37702 PyObject *obj;
37703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37704 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37705 return SWIG_Py_Void();
37706 }
37707
37708 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37709 return SWIG_Python_InitShadowInstance(args);
37710 }
37711
37712 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37713 PyObject *resultobj = 0;
37714 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37715 int arg2 = (int) (int)-1 ;
37716 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37717 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37718 wxSize const &arg4_defvalue = wxDefaultSize ;
37719 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37720 long arg5 = (long) 0 ;
37721 wxDirFilterListCtrl *result = 0 ;
37722 void *argp1 = 0 ;
37723 int res1 = 0 ;
37724 int val2 ;
37725 int ecode2 = 0 ;
37726 wxPoint temp3 ;
37727 wxSize temp4 ;
37728 long val5 ;
37729 int ecode5 = 0 ;
37730 PyObject * obj0 = 0 ;
37731 PyObject * obj1 = 0 ;
37732 PyObject * obj2 = 0 ;
37733 PyObject * obj3 = 0 ;
37734 PyObject * obj4 = 0 ;
37735 char * kwnames[] = {
37736 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37737 };
37738
37739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37741 if (!SWIG_IsOK(res1)) {
37742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37743 }
37744 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37745 if (obj1) {
37746 ecode2 = SWIG_AsVal_int(obj1, &val2);
37747 if (!SWIG_IsOK(ecode2)) {
37748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37749 }
37750 arg2 = static_cast< int >(val2);
37751 }
37752 if (obj2) {
37753 {
37754 arg3 = &temp3;
37755 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37756 }
37757 }
37758 if (obj3) {
37759 {
37760 arg4 = &temp4;
37761 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37762 }
37763 }
37764 if (obj4) {
37765 ecode5 = SWIG_AsVal_long(obj4, &val5);
37766 if (!SWIG_IsOK(ecode5)) {
37767 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37768 }
37769 arg5 = static_cast< long >(val5);
37770 }
37771 {
37772 if (!wxPyCheckForApp()) SWIG_fail;
37773 PyThreadState* __tstate = wxPyBeginAllowThreads();
37774 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37775 wxPyEndAllowThreads(__tstate);
37776 if (PyErr_Occurred()) SWIG_fail;
37777 }
37778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37779 return resultobj;
37780 fail:
37781 return NULL;
37782 }
37783
37784
37785 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37786 PyObject *resultobj = 0;
37787 wxDirFilterListCtrl *result = 0 ;
37788
37789 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37790 {
37791 if (!wxPyCheckForApp()) SWIG_fail;
37792 PyThreadState* __tstate = wxPyBeginAllowThreads();
37793 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37794 wxPyEndAllowThreads(__tstate);
37795 if (PyErr_Occurred()) SWIG_fail;
37796 }
37797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37798 return resultobj;
37799 fail:
37800 return NULL;
37801 }
37802
37803
37804 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37805 PyObject *resultobj = 0;
37806 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37807 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37808 int arg3 = (int) (int)-1 ;
37809 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37810 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37811 wxSize const &arg5_defvalue = wxDefaultSize ;
37812 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37813 long arg6 = (long) 0 ;
37814 bool result;
37815 void *argp1 = 0 ;
37816 int res1 = 0 ;
37817 void *argp2 = 0 ;
37818 int res2 = 0 ;
37819 int val3 ;
37820 int ecode3 = 0 ;
37821 wxPoint temp4 ;
37822 wxSize temp5 ;
37823 long val6 ;
37824 int ecode6 = 0 ;
37825 PyObject * obj0 = 0 ;
37826 PyObject * obj1 = 0 ;
37827 PyObject * obj2 = 0 ;
37828 PyObject * obj3 = 0 ;
37829 PyObject * obj4 = 0 ;
37830 PyObject * obj5 = 0 ;
37831 char * kwnames[] = {
37832 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37833 };
37834
37835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37837 if (!SWIG_IsOK(res1)) {
37838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37839 }
37840 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37841 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37842 if (!SWIG_IsOK(res2)) {
37843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
37844 }
37845 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
37846 if (obj2) {
37847 ecode3 = SWIG_AsVal_int(obj2, &val3);
37848 if (!SWIG_IsOK(ecode3)) {
37849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37850 }
37851 arg3 = static_cast< int >(val3);
37852 }
37853 if (obj3) {
37854 {
37855 arg4 = &temp4;
37856 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37857 }
37858 }
37859 if (obj4) {
37860 {
37861 arg5 = &temp5;
37862 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37863 }
37864 }
37865 if (obj5) {
37866 ecode6 = SWIG_AsVal_long(obj5, &val6);
37867 if (!SWIG_IsOK(ecode6)) {
37868 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
37869 }
37870 arg6 = static_cast< long >(val6);
37871 }
37872 {
37873 PyThreadState* __tstate = wxPyBeginAllowThreads();
37874 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
37875 wxPyEndAllowThreads(__tstate);
37876 if (PyErr_Occurred()) SWIG_fail;
37877 }
37878 {
37879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37880 }
37881 return resultobj;
37882 fail:
37883 return NULL;
37884 }
37885
37886
37887 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37888 PyObject *resultobj = 0;
37889 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37890 wxString *arg2 = 0 ;
37891 int arg3 ;
37892 void *argp1 = 0 ;
37893 int res1 = 0 ;
37894 bool temp2 = false ;
37895 int val3 ;
37896 int ecode3 = 0 ;
37897 PyObject * obj0 = 0 ;
37898 PyObject * obj1 = 0 ;
37899 PyObject * obj2 = 0 ;
37900 char * kwnames[] = {
37901 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
37902 };
37903
37904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37906 if (!SWIG_IsOK(res1)) {
37907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37908 }
37909 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37910 {
37911 arg2 = wxString_in_helper(obj1);
37912 if (arg2 == NULL) SWIG_fail;
37913 temp2 = true;
37914 }
37915 ecode3 = SWIG_AsVal_int(obj2, &val3);
37916 if (!SWIG_IsOK(ecode3)) {
37917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
37918 }
37919 arg3 = static_cast< int >(val3);
37920 {
37921 PyThreadState* __tstate = wxPyBeginAllowThreads();
37922 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
37923 wxPyEndAllowThreads(__tstate);
37924 if (PyErr_Occurred()) SWIG_fail;
37925 }
37926 resultobj = SWIG_Py_Void();
37927 {
37928 if (temp2)
37929 delete arg2;
37930 }
37931 return resultobj;
37932 fail:
37933 {
37934 if (temp2)
37935 delete arg2;
37936 }
37937 return NULL;
37938 }
37939
37940
37941 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37942 PyObject *obj;
37943 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37944 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
37945 return SWIG_Py_Void();
37946 }
37947
37948 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37949 return SWIG_Python_InitShadowInstance(args);
37950 }
37951
37952 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37953 PyObject *resultobj = 0;
37954 wxWindow *arg1 = (wxWindow *) 0 ;
37955 int arg2 = (int) (int)-1 ;
37956 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37957 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37958 wxSize const &arg4_defvalue = wxDefaultSize ;
37959 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37960 long arg5 = (long) 0 ;
37961 wxValidator const &arg6_defvalue = wxDefaultValidator ;
37962 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
37963 wxString const &arg7_defvalue = wxPyControlNameStr ;
37964 wxString *arg7 = (wxString *) &arg7_defvalue ;
37965 wxPyControl *result = 0 ;
37966 void *argp1 = 0 ;
37967 int res1 = 0 ;
37968 int val2 ;
37969 int ecode2 = 0 ;
37970 wxPoint temp3 ;
37971 wxSize temp4 ;
37972 long val5 ;
37973 int ecode5 = 0 ;
37974 void *argp6 = 0 ;
37975 int res6 = 0 ;
37976 bool temp7 = false ;
37977 PyObject * obj0 = 0 ;
37978 PyObject * obj1 = 0 ;
37979 PyObject * obj2 = 0 ;
37980 PyObject * obj3 = 0 ;
37981 PyObject * obj4 = 0 ;
37982 PyObject * obj5 = 0 ;
37983 PyObject * obj6 = 0 ;
37984 char * kwnames[] = {
37985 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
37986 };
37987
37988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37990 if (!SWIG_IsOK(res1)) {
37991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
37992 }
37993 arg1 = reinterpret_cast< wxWindow * >(argp1);
37994 if (obj1) {
37995 ecode2 = SWIG_AsVal_int(obj1, &val2);
37996 if (!SWIG_IsOK(ecode2)) {
37997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
37998 }
37999 arg2 = static_cast< int >(val2);
38000 }
38001 if (obj2) {
38002 {
38003 arg3 = &temp3;
38004 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38005 }
38006 }
38007 if (obj3) {
38008 {
38009 arg4 = &temp4;
38010 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38011 }
38012 }
38013 if (obj4) {
38014 ecode5 = SWIG_AsVal_long(obj4, &val5);
38015 if (!SWIG_IsOK(ecode5)) {
38016 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38017 }
38018 arg5 = static_cast< long >(val5);
38019 }
38020 if (obj5) {
38021 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38022 if (!SWIG_IsOK(res6)) {
38023 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38024 }
38025 if (!argp6) {
38026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38027 }
38028 arg6 = reinterpret_cast< wxValidator * >(argp6);
38029 }
38030 if (obj6) {
38031 {
38032 arg7 = wxString_in_helper(obj6);
38033 if (arg7 == NULL) SWIG_fail;
38034 temp7 = true;
38035 }
38036 }
38037 {
38038 if (!wxPyCheckForApp()) SWIG_fail;
38039 PyThreadState* __tstate = wxPyBeginAllowThreads();
38040 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38041 wxPyEndAllowThreads(__tstate);
38042 if (PyErr_Occurred()) SWIG_fail;
38043 }
38044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38045 {
38046 if (temp7)
38047 delete arg7;
38048 }
38049 return resultobj;
38050 fail:
38051 {
38052 if (temp7)
38053 delete arg7;
38054 }
38055 return NULL;
38056 }
38057
38058
38059 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38060 PyObject *resultobj = 0;
38061 wxPyControl *result = 0 ;
38062
38063 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38064 {
38065 if (!wxPyCheckForApp()) SWIG_fail;
38066 PyThreadState* __tstate = wxPyBeginAllowThreads();
38067 result = (wxPyControl *)new wxPyControl();
38068 wxPyEndAllowThreads(__tstate);
38069 if (PyErr_Occurred()) SWIG_fail;
38070 }
38071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38072 return resultobj;
38073 fail:
38074 return NULL;
38075 }
38076
38077
38078 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38079 PyObject *resultobj = 0;
38080 wxPyControl *arg1 = (wxPyControl *) 0 ;
38081 PyObject *arg2 = (PyObject *) 0 ;
38082 PyObject *arg3 = (PyObject *) 0 ;
38083 void *argp1 = 0 ;
38084 int res1 = 0 ;
38085 PyObject * obj0 = 0 ;
38086 PyObject * obj1 = 0 ;
38087 PyObject * obj2 = 0 ;
38088 char * kwnames[] = {
38089 (char *) "self",(char *) "self",(char *) "_class", NULL
38090 };
38091
38092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38094 if (!SWIG_IsOK(res1)) {
38095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38096 }
38097 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38098 arg2 = obj1;
38099 arg3 = obj2;
38100 {
38101 PyThreadState* __tstate = wxPyBeginAllowThreads();
38102 (arg1)->_setCallbackInfo(arg2,arg3);
38103 wxPyEndAllowThreads(__tstate);
38104 if (PyErr_Occurred()) SWIG_fail;
38105 }
38106 resultobj = SWIG_Py_Void();
38107 return resultobj;
38108 fail:
38109 return NULL;
38110 }
38111
38112
38113 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38114 PyObject *resultobj = 0;
38115 wxPyControl *arg1 = (wxPyControl *) 0 ;
38116 wxSize *arg2 = 0 ;
38117 void *argp1 = 0 ;
38118 int res1 = 0 ;
38119 wxSize temp2 ;
38120 PyObject * obj0 = 0 ;
38121 PyObject * obj1 = 0 ;
38122 char * kwnames[] = {
38123 (char *) "self",(char *) "size", NULL
38124 };
38125
38126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38128 if (!SWIG_IsOK(res1)) {
38129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38130 }
38131 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38132 {
38133 arg2 = &temp2;
38134 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38135 }
38136 {
38137 PyThreadState* __tstate = wxPyBeginAllowThreads();
38138 (arg1)->SetBestSize((wxSize const &)*arg2);
38139 wxPyEndAllowThreads(__tstate);
38140 if (PyErr_Occurred()) SWIG_fail;
38141 }
38142 resultobj = SWIG_Py_Void();
38143 return resultobj;
38144 fail:
38145 return NULL;
38146 }
38147
38148
38149 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38150 PyObject *resultobj = 0;
38151 wxPyControl *arg1 = (wxPyControl *) 0 ;
38152 wxDC *arg2 = (wxDC *) 0 ;
38153 bool result;
38154 void *argp1 = 0 ;
38155 int res1 = 0 ;
38156 void *argp2 = 0 ;
38157 int res2 = 0 ;
38158 PyObject * obj0 = 0 ;
38159 PyObject * obj1 = 0 ;
38160 char * kwnames[] = {
38161 (char *) "self",(char *) "dc", NULL
38162 };
38163
38164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38166 if (!SWIG_IsOK(res1)) {
38167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38168 }
38169 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38170 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38171 if (!SWIG_IsOK(res2)) {
38172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38173 }
38174 arg2 = reinterpret_cast< wxDC * >(argp2);
38175 {
38176 PyThreadState* __tstate = wxPyBeginAllowThreads();
38177 result = (bool)(arg1)->DoEraseBackground(arg2);
38178 wxPyEndAllowThreads(__tstate);
38179 if (PyErr_Occurred()) SWIG_fail;
38180 }
38181 {
38182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38183 }
38184 return resultobj;
38185 fail:
38186 return NULL;
38187 }
38188
38189
38190 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38191 PyObject *resultobj = 0;
38192 wxPyControl *arg1 = (wxPyControl *) 0 ;
38193 int arg2 ;
38194 int arg3 ;
38195 int arg4 ;
38196 int arg5 ;
38197 void *argp1 = 0 ;
38198 int res1 = 0 ;
38199 int val2 ;
38200 int ecode2 = 0 ;
38201 int val3 ;
38202 int ecode3 = 0 ;
38203 int val4 ;
38204 int ecode4 = 0 ;
38205 int val5 ;
38206 int ecode5 = 0 ;
38207 PyObject * obj0 = 0 ;
38208 PyObject * obj1 = 0 ;
38209 PyObject * obj2 = 0 ;
38210 PyObject * obj3 = 0 ;
38211 PyObject * obj4 = 0 ;
38212 char * kwnames[] = {
38213 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38214 };
38215
38216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38218 if (!SWIG_IsOK(res1)) {
38219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38220 }
38221 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38222 ecode2 = SWIG_AsVal_int(obj1, &val2);
38223 if (!SWIG_IsOK(ecode2)) {
38224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38225 }
38226 arg2 = static_cast< int >(val2);
38227 ecode3 = SWIG_AsVal_int(obj2, &val3);
38228 if (!SWIG_IsOK(ecode3)) {
38229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38230 }
38231 arg3 = static_cast< int >(val3);
38232 ecode4 = SWIG_AsVal_int(obj3, &val4);
38233 if (!SWIG_IsOK(ecode4)) {
38234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38235 }
38236 arg4 = static_cast< int >(val4);
38237 ecode5 = SWIG_AsVal_int(obj4, &val5);
38238 if (!SWIG_IsOK(ecode5)) {
38239 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38240 }
38241 arg5 = static_cast< int >(val5);
38242 {
38243 PyThreadState* __tstate = wxPyBeginAllowThreads();
38244 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38245 wxPyEndAllowThreads(__tstate);
38246 if (PyErr_Occurred()) SWIG_fail;
38247 }
38248 resultobj = SWIG_Py_Void();
38249 return resultobj;
38250 fail:
38251 return NULL;
38252 }
38253
38254
38255 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38256 PyObject *resultobj = 0;
38257 wxPyControl *arg1 = (wxPyControl *) 0 ;
38258 int arg2 ;
38259 int arg3 ;
38260 int arg4 ;
38261 int arg5 ;
38262 int arg6 = (int) wxSIZE_AUTO ;
38263 void *argp1 = 0 ;
38264 int res1 = 0 ;
38265 int val2 ;
38266 int ecode2 = 0 ;
38267 int val3 ;
38268 int ecode3 = 0 ;
38269 int val4 ;
38270 int ecode4 = 0 ;
38271 int val5 ;
38272 int ecode5 = 0 ;
38273 int val6 ;
38274 int ecode6 = 0 ;
38275 PyObject * obj0 = 0 ;
38276 PyObject * obj1 = 0 ;
38277 PyObject * obj2 = 0 ;
38278 PyObject * obj3 = 0 ;
38279 PyObject * obj4 = 0 ;
38280 PyObject * obj5 = 0 ;
38281 char * kwnames[] = {
38282 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38283 };
38284
38285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38287 if (!SWIG_IsOK(res1)) {
38288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38289 }
38290 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38291 ecode2 = SWIG_AsVal_int(obj1, &val2);
38292 if (!SWIG_IsOK(ecode2)) {
38293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38294 }
38295 arg2 = static_cast< int >(val2);
38296 ecode3 = SWIG_AsVal_int(obj2, &val3);
38297 if (!SWIG_IsOK(ecode3)) {
38298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38299 }
38300 arg3 = static_cast< int >(val3);
38301 ecode4 = SWIG_AsVal_int(obj3, &val4);
38302 if (!SWIG_IsOK(ecode4)) {
38303 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38304 }
38305 arg4 = static_cast< int >(val4);
38306 ecode5 = SWIG_AsVal_int(obj4, &val5);
38307 if (!SWIG_IsOK(ecode5)) {
38308 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38309 }
38310 arg5 = static_cast< int >(val5);
38311 if (obj5) {
38312 ecode6 = SWIG_AsVal_int(obj5, &val6);
38313 if (!SWIG_IsOK(ecode6)) {
38314 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38315 }
38316 arg6 = static_cast< int >(val6);
38317 }
38318 {
38319 PyThreadState* __tstate = wxPyBeginAllowThreads();
38320 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38321 wxPyEndAllowThreads(__tstate);
38322 if (PyErr_Occurred()) SWIG_fail;
38323 }
38324 resultobj = SWIG_Py_Void();
38325 return resultobj;
38326 fail:
38327 return NULL;
38328 }
38329
38330
38331 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38332 PyObject *resultobj = 0;
38333 wxPyControl *arg1 = (wxPyControl *) 0 ;
38334 int arg2 ;
38335 int arg3 ;
38336 void *argp1 = 0 ;
38337 int res1 = 0 ;
38338 int val2 ;
38339 int ecode2 = 0 ;
38340 int val3 ;
38341 int ecode3 = 0 ;
38342 PyObject * obj0 = 0 ;
38343 PyObject * obj1 = 0 ;
38344 PyObject * obj2 = 0 ;
38345 char * kwnames[] = {
38346 (char *) "self",(char *) "width",(char *) "height", NULL
38347 };
38348
38349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38351 if (!SWIG_IsOK(res1)) {
38352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38353 }
38354 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38355 ecode2 = SWIG_AsVal_int(obj1, &val2);
38356 if (!SWIG_IsOK(ecode2)) {
38357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38358 }
38359 arg2 = static_cast< int >(val2);
38360 ecode3 = SWIG_AsVal_int(obj2, &val3);
38361 if (!SWIG_IsOK(ecode3)) {
38362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38363 }
38364 arg3 = static_cast< int >(val3);
38365 {
38366 PyThreadState* __tstate = wxPyBeginAllowThreads();
38367 (arg1)->DoSetClientSize(arg2,arg3);
38368 wxPyEndAllowThreads(__tstate);
38369 if (PyErr_Occurred()) SWIG_fail;
38370 }
38371 resultobj = SWIG_Py_Void();
38372 return resultobj;
38373 fail:
38374 return NULL;
38375 }
38376
38377
38378 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38379 PyObject *resultobj = 0;
38380 wxPyControl *arg1 = (wxPyControl *) 0 ;
38381 int arg2 ;
38382 int arg3 ;
38383 void *argp1 = 0 ;
38384 int res1 = 0 ;
38385 int val2 ;
38386 int ecode2 = 0 ;
38387 int val3 ;
38388 int ecode3 = 0 ;
38389 PyObject * obj0 = 0 ;
38390 PyObject * obj1 = 0 ;
38391 PyObject * obj2 = 0 ;
38392 char * kwnames[] = {
38393 (char *) "self",(char *) "x",(char *) "y", NULL
38394 };
38395
38396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38398 if (!SWIG_IsOK(res1)) {
38399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38400 }
38401 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38402 ecode2 = SWIG_AsVal_int(obj1, &val2);
38403 if (!SWIG_IsOK(ecode2)) {
38404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38405 }
38406 arg2 = static_cast< int >(val2);
38407 ecode3 = SWIG_AsVal_int(obj2, &val3);
38408 if (!SWIG_IsOK(ecode3)) {
38409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38410 }
38411 arg3 = static_cast< int >(val3);
38412 {
38413 PyThreadState* __tstate = wxPyBeginAllowThreads();
38414 (arg1)->DoSetVirtualSize(arg2,arg3);
38415 wxPyEndAllowThreads(__tstate);
38416 if (PyErr_Occurred()) SWIG_fail;
38417 }
38418 resultobj = SWIG_Py_Void();
38419 return resultobj;
38420 fail:
38421 return NULL;
38422 }
38423
38424
38425 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38426 PyObject *resultobj = 0;
38427 wxPyControl *arg1 = (wxPyControl *) 0 ;
38428 int *arg2 = (int *) 0 ;
38429 int *arg3 = (int *) 0 ;
38430 void *argp1 = 0 ;
38431 int res1 = 0 ;
38432 int temp2 ;
38433 int res2 = SWIG_TMPOBJ ;
38434 int temp3 ;
38435 int res3 = SWIG_TMPOBJ ;
38436 PyObject *swig_obj[1] ;
38437
38438 arg2 = &temp2;
38439 arg3 = &temp3;
38440 if (!args) SWIG_fail;
38441 swig_obj[0] = args;
38442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38443 if (!SWIG_IsOK(res1)) {
38444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38445 }
38446 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38447 {
38448 PyThreadState* __tstate = wxPyBeginAllowThreads();
38449 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38450 wxPyEndAllowThreads(__tstate);
38451 if (PyErr_Occurred()) SWIG_fail;
38452 }
38453 resultobj = SWIG_Py_Void();
38454 if (SWIG_IsTmpObj(res2)) {
38455 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38456 } else {
38457 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38458 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38459 }
38460 if (SWIG_IsTmpObj(res3)) {
38461 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38462 } else {
38463 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38464 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38465 }
38466 return resultobj;
38467 fail:
38468 return NULL;
38469 }
38470
38471
38472 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38473 PyObject *resultobj = 0;
38474 wxPyControl *arg1 = (wxPyControl *) 0 ;
38475 int *arg2 = (int *) 0 ;
38476 int *arg3 = (int *) 0 ;
38477 void *argp1 = 0 ;
38478 int res1 = 0 ;
38479 int temp2 ;
38480 int res2 = SWIG_TMPOBJ ;
38481 int temp3 ;
38482 int res3 = SWIG_TMPOBJ ;
38483 PyObject *swig_obj[1] ;
38484
38485 arg2 = &temp2;
38486 arg3 = &temp3;
38487 if (!args) SWIG_fail;
38488 swig_obj[0] = args;
38489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38490 if (!SWIG_IsOK(res1)) {
38491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38492 }
38493 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38494 {
38495 PyThreadState* __tstate = wxPyBeginAllowThreads();
38496 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38497 wxPyEndAllowThreads(__tstate);
38498 if (PyErr_Occurred()) SWIG_fail;
38499 }
38500 resultobj = SWIG_Py_Void();
38501 if (SWIG_IsTmpObj(res2)) {
38502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38503 } else {
38504 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38506 }
38507 if (SWIG_IsTmpObj(res3)) {
38508 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38509 } else {
38510 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38512 }
38513 return resultobj;
38514 fail:
38515 return NULL;
38516 }
38517
38518
38519 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38520 PyObject *resultobj = 0;
38521 wxPyControl *arg1 = (wxPyControl *) 0 ;
38522 int *arg2 = (int *) 0 ;
38523 int *arg3 = (int *) 0 ;
38524 void *argp1 = 0 ;
38525 int res1 = 0 ;
38526 int temp2 ;
38527 int res2 = SWIG_TMPOBJ ;
38528 int temp3 ;
38529 int res3 = SWIG_TMPOBJ ;
38530 PyObject *swig_obj[1] ;
38531
38532 arg2 = &temp2;
38533 arg3 = &temp3;
38534 if (!args) SWIG_fail;
38535 swig_obj[0] = args;
38536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38537 if (!SWIG_IsOK(res1)) {
38538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38539 }
38540 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38541 {
38542 PyThreadState* __tstate = wxPyBeginAllowThreads();
38543 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38544 wxPyEndAllowThreads(__tstate);
38545 if (PyErr_Occurred()) SWIG_fail;
38546 }
38547 resultobj = SWIG_Py_Void();
38548 if (SWIG_IsTmpObj(res2)) {
38549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38550 } else {
38551 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38552 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38553 }
38554 if (SWIG_IsTmpObj(res3)) {
38555 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38556 } else {
38557 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38558 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38559 }
38560 return resultobj;
38561 fail:
38562 return NULL;
38563 }
38564
38565
38566 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38567 PyObject *resultobj = 0;
38568 wxPyControl *arg1 = (wxPyControl *) 0 ;
38569 wxSize result;
38570 void *argp1 = 0 ;
38571 int res1 = 0 ;
38572 PyObject *swig_obj[1] ;
38573
38574 if (!args) SWIG_fail;
38575 swig_obj[0] = args;
38576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38577 if (!SWIG_IsOK(res1)) {
38578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38579 }
38580 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38581 {
38582 PyThreadState* __tstate = wxPyBeginAllowThreads();
38583 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38584 wxPyEndAllowThreads(__tstate);
38585 if (PyErr_Occurred()) SWIG_fail;
38586 }
38587 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38588 return resultobj;
38589 fail:
38590 return NULL;
38591 }
38592
38593
38594 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38595 PyObject *resultobj = 0;
38596 wxPyControl *arg1 = (wxPyControl *) 0 ;
38597 wxSize result;
38598 void *argp1 = 0 ;
38599 int res1 = 0 ;
38600 PyObject *swig_obj[1] ;
38601
38602 if (!args) SWIG_fail;
38603 swig_obj[0] = args;
38604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38605 if (!SWIG_IsOK(res1)) {
38606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38607 }
38608 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38609 {
38610 PyThreadState* __tstate = wxPyBeginAllowThreads();
38611 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38612 wxPyEndAllowThreads(__tstate);
38613 if (PyErr_Occurred()) SWIG_fail;
38614 }
38615 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38616 return resultobj;
38617 fail:
38618 return NULL;
38619 }
38620
38621
38622 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38623 PyObject *resultobj = 0;
38624 wxPyControl *arg1 = (wxPyControl *) 0 ;
38625 SwigValueWrapper<wxVisualAttributes > result;
38626 void *argp1 = 0 ;
38627 int res1 = 0 ;
38628 PyObject *swig_obj[1] ;
38629
38630 if (!args) SWIG_fail;
38631 swig_obj[0] = args;
38632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38633 if (!SWIG_IsOK(res1)) {
38634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38635 }
38636 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38637 {
38638 PyThreadState* __tstate = wxPyBeginAllowThreads();
38639 result = (arg1)->GetDefaultAttributes();
38640 wxPyEndAllowThreads(__tstate);
38641 if (PyErr_Occurred()) SWIG_fail;
38642 }
38643 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38644 return resultobj;
38645 fail:
38646 return NULL;
38647 }
38648
38649
38650 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38651 PyObject *resultobj = 0;
38652 wxPyControl *arg1 = (wxPyControl *) 0 ;
38653 void *argp1 = 0 ;
38654 int res1 = 0 ;
38655 PyObject *swig_obj[1] ;
38656
38657 if (!args) SWIG_fail;
38658 swig_obj[0] = args;
38659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38660 if (!SWIG_IsOK(res1)) {
38661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38662 }
38663 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38664 {
38665 PyThreadState* __tstate = wxPyBeginAllowThreads();
38666 (arg1)->OnInternalIdle();
38667 wxPyEndAllowThreads(__tstate);
38668 if (PyErr_Occurred()) SWIG_fail;
38669 }
38670 resultobj = SWIG_Py_Void();
38671 return resultobj;
38672 fail:
38673 return NULL;
38674 }
38675
38676
38677 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38678 PyObject *obj;
38679 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38680 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38681 return SWIG_Py_Void();
38682 }
38683
38684 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38685 return SWIG_Python_InitShadowInstance(args);
38686 }
38687
38688 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38689 PyObject *resultobj = 0;
38690 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38691 int arg2 = (int) 0 ;
38692 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38693 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38694 wxHelpEvent *result = 0 ;
38695 int val1 ;
38696 int ecode1 = 0 ;
38697 int val2 ;
38698 int ecode2 = 0 ;
38699 wxPoint temp3 ;
38700 PyObject * obj0 = 0 ;
38701 PyObject * obj1 = 0 ;
38702 PyObject * obj2 = 0 ;
38703 char * kwnames[] = {
38704 (char *) "type",(char *) "winid",(char *) "pt", NULL
38705 };
38706
38707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38708 if (obj0) {
38709 ecode1 = SWIG_AsVal_int(obj0, &val1);
38710 if (!SWIG_IsOK(ecode1)) {
38711 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38712 }
38713 arg1 = static_cast< wxEventType >(val1);
38714 }
38715 if (obj1) {
38716 ecode2 = SWIG_AsVal_int(obj1, &val2);
38717 if (!SWIG_IsOK(ecode2)) {
38718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38719 }
38720 arg2 = static_cast< int >(val2);
38721 }
38722 if (obj2) {
38723 {
38724 arg3 = &temp3;
38725 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38726 }
38727 }
38728 {
38729 PyThreadState* __tstate = wxPyBeginAllowThreads();
38730 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
38731 wxPyEndAllowThreads(__tstate);
38732 if (PyErr_Occurred()) SWIG_fail;
38733 }
38734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38735 return resultobj;
38736 fail:
38737 return NULL;
38738 }
38739
38740
38741 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38742 PyObject *resultobj = 0;
38743 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38744 wxPoint result;
38745 void *argp1 = 0 ;
38746 int res1 = 0 ;
38747 PyObject *swig_obj[1] ;
38748
38749 if (!args) SWIG_fail;
38750 swig_obj[0] = args;
38751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38752 if (!SWIG_IsOK(res1)) {
38753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38754 }
38755 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38756 {
38757 PyThreadState* __tstate = wxPyBeginAllowThreads();
38758 result = ((wxHelpEvent const *)arg1)->GetPosition();
38759 wxPyEndAllowThreads(__tstate);
38760 if (PyErr_Occurred()) SWIG_fail;
38761 }
38762 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38763 return resultobj;
38764 fail:
38765 return NULL;
38766 }
38767
38768
38769 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38770 PyObject *resultobj = 0;
38771 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38772 wxPoint *arg2 = 0 ;
38773 void *argp1 = 0 ;
38774 int res1 = 0 ;
38775 wxPoint temp2 ;
38776 PyObject * obj0 = 0 ;
38777 PyObject * obj1 = 0 ;
38778 char * kwnames[] = {
38779 (char *) "self",(char *) "pos", NULL
38780 };
38781
38782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38784 if (!SWIG_IsOK(res1)) {
38785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38786 }
38787 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38788 {
38789 arg2 = &temp2;
38790 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38791 }
38792 {
38793 PyThreadState* __tstate = wxPyBeginAllowThreads();
38794 (arg1)->SetPosition((wxPoint const &)*arg2);
38795 wxPyEndAllowThreads(__tstate);
38796 if (PyErr_Occurred()) SWIG_fail;
38797 }
38798 resultobj = SWIG_Py_Void();
38799 return resultobj;
38800 fail:
38801 return NULL;
38802 }
38803
38804
38805 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38806 PyObject *resultobj = 0;
38807 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38808 wxString *result = 0 ;
38809 void *argp1 = 0 ;
38810 int res1 = 0 ;
38811 PyObject *swig_obj[1] ;
38812
38813 if (!args) SWIG_fail;
38814 swig_obj[0] = args;
38815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38816 if (!SWIG_IsOK(res1)) {
38817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38818 }
38819 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38820 {
38821 PyThreadState* __tstate = wxPyBeginAllowThreads();
38822 {
38823 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38824 result = (wxString *) &_result_ref;
38825 }
38826 wxPyEndAllowThreads(__tstate);
38827 if (PyErr_Occurred()) SWIG_fail;
38828 }
38829 {
38830 #if wxUSE_UNICODE
38831 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38832 #else
38833 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38834 #endif
38835 }
38836 return resultobj;
38837 fail:
38838 return NULL;
38839 }
38840
38841
38842 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38843 PyObject *resultobj = 0;
38844 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38845 wxString *arg2 = 0 ;
38846 void *argp1 = 0 ;
38847 int res1 = 0 ;
38848 bool temp2 = false ;
38849 PyObject * obj0 = 0 ;
38850 PyObject * obj1 = 0 ;
38851 char * kwnames[] = {
38852 (char *) "self",(char *) "link", NULL
38853 };
38854
38855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
38856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38857 if (!SWIG_IsOK(res1)) {
38858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38859 }
38860 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38861 {
38862 arg2 = wxString_in_helper(obj1);
38863 if (arg2 == NULL) SWIG_fail;
38864 temp2 = true;
38865 }
38866 {
38867 PyThreadState* __tstate = wxPyBeginAllowThreads();
38868 (arg1)->SetLink((wxString const &)*arg2);
38869 wxPyEndAllowThreads(__tstate);
38870 if (PyErr_Occurred()) SWIG_fail;
38871 }
38872 resultobj = SWIG_Py_Void();
38873 {
38874 if (temp2)
38875 delete arg2;
38876 }
38877 return resultobj;
38878 fail:
38879 {
38880 if (temp2)
38881 delete arg2;
38882 }
38883 return NULL;
38884 }
38885
38886
38887 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38888 PyObject *resultobj = 0;
38889 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38890 wxString *result = 0 ;
38891 void *argp1 = 0 ;
38892 int res1 = 0 ;
38893 PyObject *swig_obj[1] ;
38894
38895 if (!args) SWIG_fail;
38896 swig_obj[0] = args;
38897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38898 if (!SWIG_IsOK(res1)) {
38899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38900 }
38901 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38902 {
38903 PyThreadState* __tstate = wxPyBeginAllowThreads();
38904 {
38905 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
38906 result = (wxString *) &_result_ref;
38907 }
38908 wxPyEndAllowThreads(__tstate);
38909 if (PyErr_Occurred()) SWIG_fail;
38910 }
38911 {
38912 #if wxUSE_UNICODE
38913 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38914 #else
38915 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38916 #endif
38917 }
38918 return resultobj;
38919 fail:
38920 return NULL;
38921 }
38922
38923
38924 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38925 PyObject *resultobj = 0;
38926 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38927 wxString *arg2 = 0 ;
38928 void *argp1 = 0 ;
38929 int res1 = 0 ;
38930 bool temp2 = false ;
38931 PyObject * obj0 = 0 ;
38932 PyObject * obj1 = 0 ;
38933 char * kwnames[] = {
38934 (char *) "self",(char *) "target", NULL
38935 };
38936
38937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
38938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38939 if (!SWIG_IsOK(res1)) {
38940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38941 }
38942 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38943 {
38944 arg2 = wxString_in_helper(obj1);
38945 if (arg2 == NULL) SWIG_fail;
38946 temp2 = true;
38947 }
38948 {
38949 PyThreadState* __tstate = wxPyBeginAllowThreads();
38950 (arg1)->SetTarget((wxString const &)*arg2);
38951 wxPyEndAllowThreads(__tstate);
38952 if (PyErr_Occurred()) SWIG_fail;
38953 }
38954 resultobj = SWIG_Py_Void();
38955 {
38956 if (temp2)
38957 delete arg2;
38958 }
38959 return resultobj;
38960 fail:
38961 {
38962 if (temp2)
38963 delete arg2;
38964 }
38965 return NULL;
38966 }
38967
38968
38969 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38970 PyObject *obj;
38971 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38972 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
38973 return SWIG_Py_Void();
38974 }
38975
38976 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38977 return SWIG_Python_InitShadowInstance(args);
38978 }
38979
38980 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38981 PyObject *resultobj = 0;
38982 wxWindow *arg1 = (wxWindow *) NULL ;
38983 bool arg2 = (bool) true ;
38984 wxContextHelp *result = 0 ;
38985 void *argp1 = 0 ;
38986 int res1 = 0 ;
38987 bool val2 ;
38988 int ecode2 = 0 ;
38989 PyObject * obj0 = 0 ;
38990 PyObject * obj1 = 0 ;
38991 char * kwnames[] = {
38992 (char *) "window",(char *) "doNow", NULL
38993 };
38994
38995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38996 if (obj0) {
38997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38998 if (!SWIG_IsOK(res1)) {
38999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39000 }
39001 arg1 = reinterpret_cast< wxWindow * >(argp1);
39002 }
39003 if (obj1) {
39004 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39005 if (!SWIG_IsOK(ecode2)) {
39006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39007 }
39008 arg2 = static_cast< bool >(val2);
39009 }
39010 {
39011 if (!wxPyCheckForApp()) SWIG_fail;
39012 PyThreadState* __tstate = wxPyBeginAllowThreads();
39013 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39014 wxPyEndAllowThreads(__tstate);
39015 if (PyErr_Occurred()) SWIG_fail;
39016 }
39017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39018 return resultobj;
39019 fail:
39020 return NULL;
39021 }
39022
39023
39024 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39025 PyObject *resultobj = 0;
39026 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39027 void *argp1 = 0 ;
39028 int res1 = 0 ;
39029 PyObject *swig_obj[1] ;
39030
39031 if (!args) SWIG_fail;
39032 swig_obj[0] = args;
39033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39034 if (!SWIG_IsOK(res1)) {
39035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39036 }
39037 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39038 {
39039 PyThreadState* __tstate = wxPyBeginAllowThreads();
39040 delete arg1;
39041
39042 wxPyEndAllowThreads(__tstate);
39043 if (PyErr_Occurred()) SWIG_fail;
39044 }
39045 resultobj = SWIG_Py_Void();
39046 return resultobj;
39047 fail:
39048 return NULL;
39049 }
39050
39051
39052 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39053 PyObject *resultobj = 0;
39054 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39055 wxWindow *arg2 = (wxWindow *) NULL ;
39056 bool result;
39057 void *argp1 = 0 ;
39058 int res1 = 0 ;
39059 void *argp2 = 0 ;
39060 int res2 = 0 ;
39061 PyObject * obj0 = 0 ;
39062 PyObject * obj1 = 0 ;
39063 char * kwnames[] = {
39064 (char *) "self",(char *) "window", NULL
39065 };
39066
39067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39069 if (!SWIG_IsOK(res1)) {
39070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39071 }
39072 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39073 if (obj1) {
39074 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39075 if (!SWIG_IsOK(res2)) {
39076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39077 }
39078 arg2 = reinterpret_cast< wxWindow * >(argp2);
39079 }
39080 {
39081 PyThreadState* __tstate = wxPyBeginAllowThreads();
39082 result = (bool)(arg1)->BeginContextHelp(arg2);
39083 wxPyEndAllowThreads(__tstate);
39084 if (PyErr_Occurred()) SWIG_fail;
39085 }
39086 {
39087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39088 }
39089 return resultobj;
39090 fail:
39091 return NULL;
39092 }
39093
39094
39095 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39096 PyObject *resultobj = 0;
39097 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39098 bool result;
39099 void *argp1 = 0 ;
39100 int res1 = 0 ;
39101 PyObject *swig_obj[1] ;
39102
39103 if (!args) SWIG_fail;
39104 swig_obj[0] = args;
39105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39106 if (!SWIG_IsOK(res1)) {
39107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39108 }
39109 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39110 {
39111 PyThreadState* __tstate = wxPyBeginAllowThreads();
39112 result = (bool)(arg1)->EndContextHelp();
39113 wxPyEndAllowThreads(__tstate);
39114 if (PyErr_Occurred()) SWIG_fail;
39115 }
39116 {
39117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39118 }
39119 return resultobj;
39120 fail:
39121 return NULL;
39122 }
39123
39124
39125 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39126 PyObject *obj;
39127 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39128 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39129 return SWIG_Py_Void();
39130 }
39131
39132 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39133 return SWIG_Python_InitShadowInstance(args);
39134 }
39135
39136 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39137 PyObject *resultobj = 0;
39138 wxWindow *arg1 = (wxWindow *) 0 ;
39139 int arg2 = (int) wxID_CONTEXT_HELP ;
39140 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39141 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39142 wxSize const &arg4_defvalue = wxDefaultSize ;
39143 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39144 long arg5 = (long) wxBU_AUTODRAW ;
39145 wxContextHelpButton *result = 0 ;
39146 void *argp1 = 0 ;
39147 int res1 = 0 ;
39148 int val2 ;
39149 int ecode2 = 0 ;
39150 wxPoint temp3 ;
39151 wxSize temp4 ;
39152 long val5 ;
39153 int ecode5 = 0 ;
39154 PyObject * obj0 = 0 ;
39155 PyObject * obj1 = 0 ;
39156 PyObject * obj2 = 0 ;
39157 PyObject * obj3 = 0 ;
39158 PyObject * obj4 = 0 ;
39159 char * kwnames[] = {
39160 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39161 };
39162
39163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39165 if (!SWIG_IsOK(res1)) {
39166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39167 }
39168 arg1 = reinterpret_cast< wxWindow * >(argp1);
39169 if (obj1) {
39170 ecode2 = SWIG_AsVal_int(obj1, &val2);
39171 if (!SWIG_IsOK(ecode2)) {
39172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39173 }
39174 arg2 = static_cast< int >(val2);
39175 }
39176 if (obj2) {
39177 {
39178 arg3 = &temp3;
39179 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39180 }
39181 }
39182 if (obj3) {
39183 {
39184 arg4 = &temp4;
39185 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39186 }
39187 }
39188 if (obj4) {
39189 ecode5 = SWIG_AsVal_long(obj4, &val5);
39190 if (!SWIG_IsOK(ecode5)) {
39191 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39192 }
39193 arg5 = static_cast< long >(val5);
39194 }
39195 {
39196 if (!wxPyCheckForApp()) SWIG_fail;
39197 PyThreadState* __tstate = wxPyBeginAllowThreads();
39198 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39199 wxPyEndAllowThreads(__tstate);
39200 if (PyErr_Occurred()) SWIG_fail;
39201 }
39202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39203 return resultobj;
39204 fail:
39205 return NULL;
39206 }
39207
39208
39209 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39210 PyObject *obj;
39211 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39212 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39213 return SWIG_Py_Void();
39214 }
39215
39216 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39217 return SWIG_Python_InitShadowInstance(args);
39218 }
39219
39220 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39221 PyObject *resultobj = 0;
39222 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39223 void *argp1 = 0 ;
39224 int res1 = 0 ;
39225 PyObject *swig_obj[1] ;
39226
39227 if (!args) SWIG_fail;
39228 swig_obj[0] = args;
39229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39230 if (!SWIG_IsOK(res1)) {
39231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39232 }
39233 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39234 {
39235 PyThreadState* __tstate = wxPyBeginAllowThreads();
39236 delete arg1;
39237
39238 wxPyEndAllowThreads(__tstate);
39239 if (PyErr_Occurred()) SWIG_fail;
39240 }
39241 resultobj = SWIG_Py_Void();
39242 return resultobj;
39243 fail:
39244 return NULL;
39245 }
39246
39247
39248 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39249 PyObject *resultobj = 0;
39250 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39251 wxHelpProvider *result = 0 ;
39252 int res1 = 0 ;
39253 PyObject * obj0 = 0 ;
39254 char * kwnames[] = {
39255 (char *) "helpProvider", NULL
39256 };
39257
39258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39259 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39260 if (!SWIG_IsOK(res1)) {
39261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39262 }
39263 {
39264 PyThreadState* __tstate = wxPyBeginAllowThreads();
39265 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39266 wxPyEndAllowThreads(__tstate);
39267 if (PyErr_Occurred()) SWIG_fail;
39268 }
39269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39270 return resultobj;
39271 fail:
39272 return NULL;
39273 }
39274
39275
39276 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39277 PyObject *resultobj = 0;
39278 wxHelpProvider *result = 0 ;
39279
39280 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39281 {
39282 PyThreadState* __tstate = wxPyBeginAllowThreads();
39283 result = (wxHelpProvider *)wxHelpProvider::Get();
39284 wxPyEndAllowThreads(__tstate);
39285 if (PyErr_Occurred()) SWIG_fail;
39286 }
39287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39288 return resultobj;
39289 fail:
39290 return NULL;
39291 }
39292
39293
39294 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39295 PyObject *resultobj = 0;
39296 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39297 wxWindow *arg2 = (wxWindow *) 0 ;
39298 wxString result;
39299 void *argp1 = 0 ;
39300 int res1 = 0 ;
39301 void *argp2 = 0 ;
39302 int res2 = 0 ;
39303 PyObject * obj0 = 0 ;
39304 PyObject * obj1 = 0 ;
39305 char * kwnames[] = {
39306 (char *) "self",(char *) "window", NULL
39307 };
39308
39309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39311 if (!SWIG_IsOK(res1)) {
39312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39313 }
39314 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39315 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39316 if (!SWIG_IsOK(res2)) {
39317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39318 }
39319 arg2 = reinterpret_cast< wxWindow * >(argp2);
39320 {
39321 PyThreadState* __tstate = wxPyBeginAllowThreads();
39322 result = (arg1)->GetHelp((wxWindow const *)arg2);
39323 wxPyEndAllowThreads(__tstate);
39324 if (PyErr_Occurred()) SWIG_fail;
39325 }
39326 {
39327 #if wxUSE_UNICODE
39328 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39329 #else
39330 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39331 #endif
39332 }
39333 return resultobj;
39334 fail:
39335 return NULL;
39336 }
39337
39338
39339 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39340 PyObject *resultobj = 0;
39341 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39342 wxWindow *arg2 = (wxWindow *) 0 ;
39343 bool result;
39344 void *argp1 = 0 ;
39345 int res1 = 0 ;
39346 void *argp2 = 0 ;
39347 int res2 = 0 ;
39348 PyObject * obj0 = 0 ;
39349 PyObject * obj1 = 0 ;
39350 char * kwnames[] = {
39351 (char *) "self",(char *) "window", NULL
39352 };
39353
39354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39356 if (!SWIG_IsOK(res1)) {
39357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39358 }
39359 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39360 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39361 if (!SWIG_IsOK(res2)) {
39362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39363 }
39364 arg2 = reinterpret_cast< wxWindow * >(argp2);
39365 {
39366 PyThreadState* __tstate = wxPyBeginAllowThreads();
39367 result = (bool)(arg1)->ShowHelp(arg2);
39368 wxPyEndAllowThreads(__tstate);
39369 if (PyErr_Occurred()) SWIG_fail;
39370 }
39371 {
39372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39373 }
39374 return resultobj;
39375 fail:
39376 return NULL;
39377 }
39378
39379
39380 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39381 PyObject *resultobj = 0;
39382 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39383 wxWindow *arg2 = (wxWindow *) 0 ;
39384 wxString *arg3 = 0 ;
39385 void *argp1 = 0 ;
39386 int res1 = 0 ;
39387 void *argp2 = 0 ;
39388 int res2 = 0 ;
39389 bool temp3 = false ;
39390 PyObject * obj0 = 0 ;
39391 PyObject * obj1 = 0 ;
39392 PyObject * obj2 = 0 ;
39393 char * kwnames[] = {
39394 (char *) "self",(char *) "window",(char *) "text", NULL
39395 };
39396
39397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39399 if (!SWIG_IsOK(res1)) {
39400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39401 }
39402 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39403 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39404 if (!SWIG_IsOK(res2)) {
39405 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39406 }
39407 arg2 = reinterpret_cast< wxWindow * >(argp2);
39408 {
39409 arg3 = wxString_in_helper(obj2);
39410 if (arg3 == NULL) SWIG_fail;
39411 temp3 = true;
39412 }
39413 {
39414 PyThreadState* __tstate = wxPyBeginAllowThreads();
39415 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39416 wxPyEndAllowThreads(__tstate);
39417 if (PyErr_Occurred()) SWIG_fail;
39418 }
39419 resultobj = SWIG_Py_Void();
39420 {
39421 if (temp3)
39422 delete arg3;
39423 }
39424 return resultobj;
39425 fail:
39426 {
39427 if (temp3)
39428 delete arg3;
39429 }
39430 return NULL;
39431 }
39432
39433
39434 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39435 PyObject *resultobj = 0;
39436 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39437 int arg2 ;
39438 wxString *arg3 = 0 ;
39439 void *argp1 = 0 ;
39440 int res1 = 0 ;
39441 int val2 ;
39442 int ecode2 = 0 ;
39443 bool temp3 = false ;
39444 PyObject * obj0 = 0 ;
39445 PyObject * obj1 = 0 ;
39446 PyObject * obj2 = 0 ;
39447 char * kwnames[] = {
39448 (char *) "self",(char *) "id",(char *) "text", NULL
39449 };
39450
39451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39453 if (!SWIG_IsOK(res1)) {
39454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39455 }
39456 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39457 ecode2 = SWIG_AsVal_int(obj1, &val2);
39458 if (!SWIG_IsOK(ecode2)) {
39459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39460 }
39461 arg2 = static_cast< int >(val2);
39462 {
39463 arg3 = wxString_in_helper(obj2);
39464 if (arg3 == NULL) SWIG_fail;
39465 temp3 = true;
39466 }
39467 {
39468 PyThreadState* __tstate = wxPyBeginAllowThreads();
39469 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39470 wxPyEndAllowThreads(__tstate);
39471 if (PyErr_Occurred()) SWIG_fail;
39472 }
39473 resultobj = SWIG_Py_Void();
39474 {
39475 if (temp3)
39476 delete arg3;
39477 }
39478 return resultobj;
39479 fail:
39480 {
39481 if (temp3)
39482 delete arg3;
39483 }
39484 return NULL;
39485 }
39486
39487
39488 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39489 PyObject *resultobj = 0;
39490 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39491 wxWindow *arg2 = (wxWindow *) 0 ;
39492 void *argp1 = 0 ;
39493 int res1 = 0 ;
39494 void *argp2 = 0 ;
39495 int res2 = 0 ;
39496 PyObject * obj0 = 0 ;
39497 PyObject * obj1 = 0 ;
39498 char * kwnames[] = {
39499 (char *) "self",(char *) "window", NULL
39500 };
39501
39502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39504 if (!SWIG_IsOK(res1)) {
39505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39506 }
39507 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39508 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39509 if (!SWIG_IsOK(res2)) {
39510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39511 }
39512 arg2 = reinterpret_cast< wxWindow * >(argp2);
39513 {
39514 PyThreadState* __tstate = wxPyBeginAllowThreads();
39515 (arg1)->RemoveHelp(arg2);
39516 wxPyEndAllowThreads(__tstate);
39517 if (PyErr_Occurred()) SWIG_fail;
39518 }
39519 resultobj = SWIG_Py_Void();
39520 return resultobj;
39521 fail:
39522 return NULL;
39523 }
39524
39525
39526 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39527 PyObject *resultobj = 0;
39528 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39529 void *argp1 = 0 ;
39530 int res1 = 0 ;
39531 PyObject *swig_obj[1] ;
39532
39533 if (!args) SWIG_fail;
39534 swig_obj[0] = args;
39535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39536 if (!SWIG_IsOK(res1)) {
39537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39538 }
39539 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39540 {
39541 PyThreadState* __tstate = wxPyBeginAllowThreads();
39542 wxHelpProvider_Destroy(arg1);
39543 wxPyEndAllowThreads(__tstate);
39544 if (PyErr_Occurred()) SWIG_fail;
39545 }
39546 resultobj = SWIG_Py_Void();
39547 return resultobj;
39548 fail:
39549 return NULL;
39550 }
39551
39552
39553 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39554 PyObject *obj;
39555 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39556 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39557 return SWIG_Py_Void();
39558 }
39559
39560 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39561 PyObject *resultobj = 0;
39562 wxSimpleHelpProvider *result = 0 ;
39563
39564 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39565 {
39566 PyThreadState* __tstate = wxPyBeginAllowThreads();
39567 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39568 wxPyEndAllowThreads(__tstate);
39569 if (PyErr_Occurred()) SWIG_fail;
39570 }
39571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39572 return resultobj;
39573 fail:
39574 return NULL;
39575 }
39576
39577
39578 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39579 PyObject *obj;
39580 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39581 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39582 return SWIG_Py_Void();
39583 }
39584
39585 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39586 return SWIG_Python_InitShadowInstance(args);
39587 }
39588
39589 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39590 PyObject *resultobj = 0;
39591 wxBitmap *arg1 = 0 ;
39592 wxCursor const &arg2_defvalue = wxNullCursor ;
39593 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39594 wxGenericDragImage *result = 0 ;
39595 void *argp1 = 0 ;
39596 int res1 = 0 ;
39597 void *argp2 = 0 ;
39598 int res2 = 0 ;
39599 PyObject * obj0 = 0 ;
39600 PyObject * obj1 = 0 ;
39601 char * kwnames[] = {
39602 (char *) "image",(char *) "cursor", NULL
39603 };
39604
39605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39606 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39607 if (!SWIG_IsOK(res1)) {
39608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39609 }
39610 if (!argp1) {
39611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39612 }
39613 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39614 if (obj1) {
39615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39616 if (!SWIG_IsOK(res2)) {
39617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39618 }
39619 if (!argp2) {
39620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39621 }
39622 arg2 = reinterpret_cast< wxCursor * >(argp2);
39623 }
39624 {
39625 if (!wxPyCheckForApp()) SWIG_fail;
39626 PyThreadState* __tstate = wxPyBeginAllowThreads();
39627 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39628 wxPyEndAllowThreads(__tstate);
39629 if (PyErr_Occurred()) SWIG_fail;
39630 }
39631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39632 return resultobj;
39633 fail:
39634 return NULL;
39635 }
39636
39637
39638 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39639 PyObject *resultobj = 0;
39640 wxIcon *arg1 = 0 ;
39641 wxCursor const &arg2_defvalue = wxNullCursor ;
39642 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39643 wxGenericDragImage *result = 0 ;
39644 void *argp1 = 0 ;
39645 int res1 = 0 ;
39646 void *argp2 = 0 ;
39647 int res2 = 0 ;
39648 PyObject * obj0 = 0 ;
39649 PyObject * obj1 = 0 ;
39650 char * kwnames[] = {
39651 (char *) "image",(char *) "cursor", NULL
39652 };
39653
39654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39655 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39656 if (!SWIG_IsOK(res1)) {
39657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39658 }
39659 if (!argp1) {
39660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39661 }
39662 arg1 = reinterpret_cast< wxIcon * >(argp1);
39663 if (obj1) {
39664 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39665 if (!SWIG_IsOK(res2)) {
39666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39667 }
39668 if (!argp2) {
39669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39670 }
39671 arg2 = reinterpret_cast< wxCursor * >(argp2);
39672 }
39673 {
39674 if (!wxPyCheckForApp()) SWIG_fail;
39675 PyThreadState* __tstate = wxPyBeginAllowThreads();
39676 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39677 wxPyEndAllowThreads(__tstate);
39678 if (PyErr_Occurred()) SWIG_fail;
39679 }
39680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39681 return resultobj;
39682 fail:
39683 return NULL;
39684 }
39685
39686
39687 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39688 PyObject *resultobj = 0;
39689 wxString *arg1 = 0 ;
39690 wxCursor const &arg2_defvalue = wxNullCursor ;
39691 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39692 wxGenericDragImage *result = 0 ;
39693 bool temp1 = false ;
39694 void *argp2 = 0 ;
39695 int res2 = 0 ;
39696 PyObject * obj0 = 0 ;
39697 PyObject * obj1 = 0 ;
39698 char * kwnames[] = {
39699 (char *) "str",(char *) "cursor", NULL
39700 };
39701
39702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39703 {
39704 arg1 = wxString_in_helper(obj0);
39705 if (arg1 == NULL) SWIG_fail;
39706 temp1 = true;
39707 }
39708 if (obj1) {
39709 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39710 if (!SWIG_IsOK(res2)) {
39711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39712 }
39713 if (!argp2) {
39714 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39715 }
39716 arg2 = reinterpret_cast< wxCursor * >(argp2);
39717 }
39718 {
39719 if (!wxPyCheckForApp()) SWIG_fail;
39720 PyThreadState* __tstate = wxPyBeginAllowThreads();
39721 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39722 wxPyEndAllowThreads(__tstate);
39723 if (PyErr_Occurred()) SWIG_fail;
39724 }
39725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39726 {
39727 if (temp1)
39728 delete arg1;
39729 }
39730 return resultobj;
39731 fail:
39732 {
39733 if (temp1)
39734 delete arg1;
39735 }
39736 return NULL;
39737 }
39738
39739
39740 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39741 PyObject *resultobj = 0;
39742 wxPyTreeCtrl *arg1 = 0 ;
39743 wxTreeItemId *arg2 = 0 ;
39744 wxGenericDragImage *result = 0 ;
39745 void *argp1 = 0 ;
39746 int res1 = 0 ;
39747 void *argp2 = 0 ;
39748 int res2 = 0 ;
39749 PyObject * obj0 = 0 ;
39750 PyObject * obj1 = 0 ;
39751 char * kwnames[] = {
39752 (char *) "treeCtrl",(char *) "id", NULL
39753 };
39754
39755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39756 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39757 if (!SWIG_IsOK(res1)) {
39758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39759 }
39760 if (!argp1) {
39761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39762 }
39763 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39764 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39765 if (!SWIG_IsOK(res2)) {
39766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39767 }
39768 if (!argp2) {
39769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39770 }
39771 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
39772 {
39773 if (!wxPyCheckForApp()) SWIG_fail;
39774 PyThreadState* __tstate = wxPyBeginAllowThreads();
39775 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
39776 wxPyEndAllowThreads(__tstate);
39777 if (PyErr_Occurred()) SWIG_fail;
39778 }
39779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39780 return resultobj;
39781 fail:
39782 return NULL;
39783 }
39784
39785
39786 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39787 PyObject *resultobj = 0;
39788 wxPyListCtrl *arg1 = 0 ;
39789 long arg2 ;
39790 wxGenericDragImage *result = 0 ;
39791 void *argp1 = 0 ;
39792 int res1 = 0 ;
39793 long val2 ;
39794 int ecode2 = 0 ;
39795 PyObject * obj0 = 0 ;
39796 PyObject * obj1 = 0 ;
39797 char * kwnames[] = {
39798 (char *) "listCtrl",(char *) "id", NULL
39799 };
39800
39801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
39802 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
39803 if (!SWIG_IsOK(res1)) {
39804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39805 }
39806 if (!argp1) {
39807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39808 }
39809 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
39810 ecode2 = SWIG_AsVal_long(obj1, &val2);
39811 if (!SWIG_IsOK(ecode2)) {
39812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
39813 }
39814 arg2 = static_cast< long >(val2);
39815 {
39816 if (!wxPyCheckForApp()) SWIG_fail;
39817 PyThreadState* __tstate = wxPyBeginAllowThreads();
39818 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
39819 wxPyEndAllowThreads(__tstate);
39820 if (PyErr_Occurred()) SWIG_fail;
39821 }
39822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39823 return resultobj;
39824 fail:
39825 return NULL;
39826 }
39827
39828
39829 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39830 PyObject *resultobj = 0;
39831 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39832 void *argp1 = 0 ;
39833 int res1 = 0 ;
39834 PyObject *swig_obj[1] ;
39835
39836 if (!args) SWIG_fail;
39837 swig_obj[0] = args;
39838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
39839 if (!SWIG_IsOK(res1)) {
39840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39841 }
39842 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39843 {
39844 PyThreadState* __tstate = wxPyBeginAllowThreads();
39845 delete arg1;
39846
39847 wxPyEndAllowThreads(__tstate);
39848 if (PyErr_Occurred()) SWIG_fail;
39849 }
39850 resultobj = SWIG_Py_Void();
39851 return resultobj;
39852 fail:
39853 return NULL;
39854 }
39855
39856
39857 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39858 PyObject *resultobj = 0;
39859 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39860 wxBitmap *arg2 = (wxBitmap *) 0 ;
39861 void *argp1 = 0 ;
39862 int res1 = 0 ;
39863 void *argp2 = 0 ;
39864 int res2 = 0 ;
39865 PyObject * obj0 = 0 ;
39866 PyObject * obj1 = 0 ;
39867 char * kwnames[] = {
39868 (char *) "self",(char *) "bitmap", NULL
39869 };
39870
39871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
39872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39873 if (!SWIG_IsOK(res1)) {
39874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39875 }
39876 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39877 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
39878 if (!SWIG_IsOK(res2)) {
39879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
39880 }
39881 arg2 = reinterpret_cast< wxBitmap * >(argp2);
39882 {
39883 PyThreadState* __tstate = wxPyBeginAllowThreads();
39884 (arg1)->SetBackingBitmap(arg2);
39885 wxPyEndAllowThreads(__tstate);
39886 if (PyErr_Occurred()) SWIG_fail;
39887 }
39888 resultobj = SWIG_Py_Void();
39889 return resultobj;
39890 fail:
39891 return NULL;
39892 }
39893
39894
39895 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39896 PyObject *resultobj = 0;
39897 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39898 wxPoint *arg2 = 0 ;
39899 wxWindow *arg3 = (wxWindow *) 0 ;
39900 bool arg4 = (bool) false ;
39901 wxRect *arg5 = (wxRect *) NULL ;
39902 bool result;
39903 void *argp1 = 0 ;
39904 int res1 = 0 ;
39905 wxPoint temp2 ;
39906 void *argp3 = 0 ;
39907 int res3 = 0 ;
39908 bool val4 ;
39909 int ecode4 = 0 ;
39910 void *argp5 = 0 ;
39911 int res5 = 0 ;
39912 PyObject * obj0 = 0 ;
39913 PyObject * obj1 = 0 ;
39914 PyObject * obj2 = 0 ;
39915 PyObject * obj3 = 0 ;
39916 PyObject * obj4 = 0 ;
39917 char * kwnames[] = {
39918 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
39919 };
39920
39921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39923 if (!SWIG_IsOK(res1)) {
39924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39925 }
39926 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39927 {
39928 arg2 = &temp2;
39929 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39930 }
39931 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39932 if (!SWIG_IsOK(res3)) {
39933 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
39934 }
39935 arg3 = reinterpret_cast< wxWindow * >(argp3);
39936 if (obj3) {
39937 ecode4 = SWIG_AsVal_bool(obj3, &val4);
39938 if (!SWIG_IsOK(ecode4)) {
39939 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
39940 }
39941 arg4 = static_cast< bool >(val4);
39942 }
39943 if (obj4) {
39944 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
39945 if (!SWIG_IsOK(res5)) {
39946 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
39947 }
39948 arg5 = reinterpret_cast< wxRect * >(argp5);
39949 }
39950 {
39951 PyThreadState* __tstate = wxPyBeginAllowThreads();
39952 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
39953 wxPyEndAllowThreads(__tstate);
39954 if (PyErr_Occurred()) SWIG_fail;
39955 }
39956 {
39957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39958 }
39959 return resultobj;
39960 fail:
39961 return NULL;
39962 }
39963
39964
39965 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39966 PyObject *resultobj = 0;
39967 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39968 wxPoint *arg2 = 0 ;
39969 wxWindow *arg3 = (wxWindow *) 0 ;
39970 wxWindow *arg4 = (wxWindow *) 0 ;
39971 bool result;
39972 void *argp1 = 0 ;
39973 int res1 = 0 ;
39974 wxPoint temp2 ;
39975 void *argp3 = 0 ;
39976 int res3 = 0 ;
39977 void *argp4 = 0 ;
39978 int res4 = 0 ;
39979 PyObject * obj0 = 0 ;
39980 PyObject * obj1 = 0 ;
39981 PyObject * obj2 = 0 ;
39982 PyObject * obj3 = 0 ;
39983 char * kwnames[] = {
39984 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
39985 };
39986
39987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39989 if (!SWIG_IsOK(res1)) {
39990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39991 }
39992 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39993 {
39994 arg2 = &temp2;
39995 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39996 }
39997 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39998 if (!SWIG_IsOK(res3)) {
39999 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40000 }
40001 arg3 = reinterpret_cast< wxWindow * >(argp3);
40002 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40003 if (!SWIG_IsOK(res4)) {
40004 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40005 }
40006 arg4 = reinterpret_cast< wxWindow * >(argp4);
40007 {
40008 PyThreadState* __tstate = wxPyBeginAllowThreads();
40009 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40010 wxPyEndAllowThreads(__tstate);
40011 if (PyErr_Occurred()) SWIG_fail;
40012 }
40013 {
40014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40015 }
40016 return resultobj;
40017 fail:
40018 return NULL;
40019 }
40020
40021
40022 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40023 PyObject *resultobj = 0;
40024 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40025 bool result;
40026 void *argp1 = 0 ;
40027 int res1 = 0 ;
40028 PyObject *swig_obj[1] ;
40029
40030 if (!args) SWIG_fail;
40031 swig_obj[0] = args;
40032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40033 if (!SWIG_IsOK(res1)) {
40034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40035 }
40036 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40037 {
40038 PyThreadState* __tstate = wxPyBeginAllowThreads();
40039 result = (bool)(arg1)->EndDrag();
40040 wxPyEndAllowThreads(__tstate);
40041 if (PyErr_Occurred()) SWIG_fail;
40042 }
40043 {
40044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40045 }
40046 return resultobj;
40047 fail:
40048 return NULL;
40049 }
40050
40051
40052 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40053 PyObject *resultobj = 0;
40054 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40055 wxPoint *arg2 = 0 ;
40056 bool result;
40057 void *argp1 = 0 ;
40058 int res1 = 0 ;
40059 wxPoint temp2 ;
40060 PyObject * obj0 = 0 ;
40061 PyObject * obj1 = 0 ;
40062 char * kwnames[] = {
40063 (char *) "self",(char *) "pt", NULL
40064 };
40065
40066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40068 if (!SWIG_IsOK(res1)) {
40069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40070 }
40071 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40072 {
40073 arg2 = &temp2;
40074 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40075 }
40076 {
40077 PyThreadState* __tstate = wxPyBeginAllowThreads();
40078 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40079 wxPyEndAllowThreads(__tstate);
40080 if (PyErr_Occurred()) SWIG_fail;
40081 }
40082 {
40083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40084 }
40085 return resultobj;
40086 fail:
40087 return NULL;
40088 }
40089
40090
40091 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40092 PyObject *resultobj = 0;
40093 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40094 bool result;
40095 void *argp1 = 0 ;
40096 int res1 = 0 ;
40097 PyObject *swig_obj[1] ;
40098
40099 if (!args) SWIG_fail;
40100 swig_obj[0] = args;
40101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40102 if (!SWIG_IsOK(res1)) {
40103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40104 }
40105 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40106 {
40107 PyThreadState* __tstate = wxPyBeginAllowThreads();
40108 result = (bool)(arg1)->Show();
40109 wxPyEndAllowThreads(__tstate);
40110 if (PyErr_Occurred()) SWIG_fail;
40111 }
40112 {
40113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40114 }
40115 return resultobj;
40116 fail:
40117 return NULL;
40118 }
40119
40120
40121 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40122 PyObject *resultobj = 0;
40123 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40124 bool result;
40125 void *argp1 = 0 ;
40126 int res1 = 0 ;
40127 PyObject *swig_obj[1] ;
40128
40129 if (!args) SWIG_fail;
40130 swig_obj[0] = args;
40131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40132 if (!SWIG_IsOK(res1)) {
40133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40134 }
40135 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40136 {
40137 PyThreadState* __tstate = wxPyBeginAllowThreads();
40138 result = (bool)(arg1)->Hide();
40139 wxPyEndAllowThreads(__tstate);
40140 if (PyErr_Occurred()) SWIG_fail;
40141 }
40142 {
40143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40144 }
40145 return resultobj;
40146 fail:
40147 return NULL;
40148 }
40149
40150
40151 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40152 PyObject *resultobj = 0;
40153 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40154 wxPoint *arg2 = 0 ;
40155 wxRect result;
40156 void *argp1 = 0 ;
40157 int res1 = 0 ;
40158 wxPoint temp2 ;
40159 PyObject * obj0 = 0 ;
40160 PyObject * obj1 = 0 ;
40161 char * kwnames[] = {
40162 (char *) "self",(char *) "pos", NULL
40163 };
40164
40165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40167 if (!SWIG_IsOK(res1)) {
40168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40169 }
40170 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40171 {
40172 arg2 = &temp2;
40173 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40174 }
40175 {
40176 PyThreadState* __tstate = wxPyBeginAllowThreads();
40177 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40178 wxPyEndAllowThreads(__tstate);
40179 if (PyErr_Occurred()) SWIG_fail;
40180 }
40181 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40182 return resultobj;
40183 fail:
40184 return NULL;
40185 }
40186
40187
40188 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40189 PyObject *resultobj = 0;
40190 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40191 wxDC *arg2 = 0 ;
40192 wxPoint *arg3 = 0 ;
40193 bool result;
40194 void *argp1 = 0 ;
40195 int res1 = 0 ;
40196 void *argp2 = 0 ;
40197 int res2 = 0 ;
40198 wxPoint temp3 ;
40199 PyObject * obj0 = 0 ;
40200 PyObject * obj1 = 0 ;
40201 PyObject * obj2 = 0 ;
40202 char * kwnames[] = {
40203 (char *) "self",(char *) "dc",(char *) "pos", NULL
40204 };
40205
40206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40208 if (!SWIG_IsOK(res1)) {
40209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40210 }
40211 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40212 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40213 if (!SWIG_IsOK(res2)) {
40214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40215 }
40216 if (!argp2) {
40217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40218 }
40219 arg2 = reinterpret_cast< wxDC * >(argp2);
40220 {
40221 arg3 = &temp3;
40222 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40223 }
40224 {
40225 PyThreadState* __tstate = wxPyBeginAllowThreads();
40226 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40227 wxPyEndAllowThreads(__tstate);
40228 if (PyErr_Occurred()) SWIG_fail;
40229 }
40230 {
40231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40232 }
40233 return resultobj;
40234 fail:
40235 return NULL;
40236 }
40237
40238
40239 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40240 PyObject *resultobj = 0;
40241 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40242 wxDC *arg2 = 0 ;
40243 wxMemoryDC *arg3 = 0 ;
40244 wxRect *arg4 = 0 ;
40245 wxRect *arg5 = 0 ;
40246 bool result;
40247 void *argp1 = 0 ;
40248 int res1 = 0 ;
40249 void *argp2 = 0 ;
40250 int res2 = 0 ;
40251 void *argp3 = 0 ;
40252 int res3 = 0 ;
40253 wxRect temp4 ;
40254 wxRect temp5 ;
40255 PyObject * obj0 = 0 ;
40256 PyObject * obj1 = 0 ;
40257 PyObject * obj2 = 0 ;
40258 PyObject * obj3 = 0 ;
40259 PyObject * obj4 = 0 ;
40260 char * kwnames[] = {
40261 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40262 };
40263
40264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40266 if (!SWIG_IsOK(res1)) {
40267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40268 }
40269 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40271 if (!SWIG_IsOK(res2)) {
40272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40273 }
40274 if (!argp2) {
40275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40276 }
40277 arg2 = reinterpret_cast< wxDC * >(argp2);
40278 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40279 if (!SWIG_IsOK(res3)) {
40280 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40281 }
40282 if (!argp3) {
40283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40284 }
40285 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40286 {
40287 arg4 = &temp4;
40288 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40289 }
40290 {
40291 arg5 = &temp5;
40292 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40293 }
40294 {
40295 PyThreadState* __tstate = wxPyBeginAllowThreads();
40296 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40297 wxPyEndAllowThreads(__tstate);
40298 if (PyErr_Occurred()) SWIG_fail;
40299 }
40300 {
40301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40302 }
40303 return resultobj;
40304 fail:
40305 return NULL;
40306 }
40307
40308
40309 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40310 PyObject *resultobj = 0;
40311 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40312 wxPoint *arg2 = 0 ;
40313 wxPoint *arg3 = 0 ;
40314 bool arg4 ;
40315 bool arg5 ;
40316 bool result;
40317 void *argp1 = 0 ;
40318 int res1 = 0 ;
40319 wxPoint temp2 ;
40320 wxPoint temp3 ;
40321 bool val4 ;
40322 int ecode4 = 0 ;
40323 bool val5 ;
40324 int ecode5 = 0 ;
40325 PyObject * obj0 = 0 ;
40326 PyObject * obj1 = 0 ;
40327 PyObject * obj2 = 0 ;
40328 PyObject * obj3 = 0 ;
40329 PyObject * obj4 = 0 ;
40330 char * kwnames[] = {
40331 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40332 };
40333
40334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40336 if (!SWIG_IsOK(res1)) {
40337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40338 }
40339 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40340 {
40341 arg2 = &temp2;
40342 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40343 }
40344 {
40345 arg3 = &temp3;
40346 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40347 }
40348 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40349 if (!SWIG_IsOK(ecode4)) {
40350 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40351 }
40352 arg4 = static_cast< bool >(val4);
40353 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40354 if (!SWIG_IsOK(ecode5)) {
40355 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40356 }
40357 arg5 = static_cast< bool >(val5);
40358 {
40359 PyThreadState* __tstate = wxPyBeginAllowThreads();
40360 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40361 wxPyEndAllowThreads(__tstate);
40362 if (PyErr_Occurred()) SWIG_fail;
40363 }
40364 {
40365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40366 }
40367 return resultobj;
40368 fail:
40369 return NULL;
40370 }
40371
40372
40373 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40374 PyObject *obj;
40375 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40376 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40377 return SWIG_Py_Void();
40378 }
40379
40380 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40381 return SWIG_Python_InitShadowInstance(args);
40382 }
40383
40384 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40385 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40386 return 1;
40387 }
40388
40389
40390 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40391 PyObject *pyobj = 0;
40392
40393 {
40394 #if wxUSE_UNICODE
40395 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40396 #else
40397 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40398 #endif
40399 }
40400 return pyobj;
40401 }
40402
40403
40404 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40405 PyObject *resultobj = 0;
40406 wxWindow *arg1 = (wxWindow *) 0 ;
40407 int arg2 = (int) -1 ;
40408 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40409 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40410 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40411 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40412 wxSize const &arg5_defvalue = wxDefaultSize ;
40413 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40414 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40415 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40416 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40417 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40418 wxString *arg8 = (wxString *) &arg8_defvalue ;
40419 wxDatePickerCtrl *result = 0 ;
40420 void *argp1 = 0 ;
40421 int res1 = 0 ;
40422 int val2 ;
40423 int ecode2 = 0 ;
40424 void *argp3 = 0 ;
40425 int res3 = 0 ;
40426 wxPoint temp4 ;
40427 wxSize temp5 ;
40428 long val6 ;
40429 int ecode6 = 0 ;
40430 void *argp7 = 0 ;
40431 int res7 = 0 ;
40432 bool temp8 = false ;
40433 PyObject * obj0 = 0 ;
40434 PyObject * obj1 = 0 ;
40435 PyObject * obj2 = 0 ;
40436 PyObject * obj3 = 0 ;
40437 PyObject * obj4 = 0 ;
40438 PyObject * obj5 = 0 ;
40439 PyObject * obj6 = 0 ;
40440 PyObject * obj7 = 0 ;
40441 char * kwnames[] = {
40442 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40443 };
40444
40445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40447 if (!SWIG_IsOK(res1)) {
40448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40449 }
40450 arg1 = reinterpret_cast< wxWindow * >(argp1);
40451 if (obj1) {
40452 ecode2 = SWIG_AsVal_int(obj1, &val2);
40453 if (!SWIG_IsOK(ecode2)) {
40454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40455 }
40456 arg2 = static_cast< int >(val2);
40457 }
40458 if (obj2) {
40459 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40460 if (!SWIG_IsOK(res3)) {
40461 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40462 }
40463 if (!argp3) {
40464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40465 }
40466 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40467 }
40468 if (obj3) {
40469 {
40470 arg4 = &temp4;
40471 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
40472 }
40473 }
40474 if (obj4) {
40475 {
40476 arg5 = &temp5;
40477 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
40478 }
40479 }
40480 if (obj5) {
40481 ecode6 = SWIG_AsVal_long(obj5, &val6);
40482 if (!SWIG_IsOK(ecode6)) {
40483 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40484 }
40485 arg6 = static_cast< long >(val6);
40486 }
40487 if (obj6) {
40488 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40489 if (!SWIG_IsOK(res7)) {
40490 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40491 }
40492 if (!argp7) {
40493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40494 }
40495 arg7 = reinterpret_cast< wxValidator * >(argp7);
40496 }
40497 if (obj7) {
40498 {
40499 arg8 = wxString_in_helper(obj7);
40500 if (arg8 == NULL) SWIG_fail;
40501 temp8 = true;
40502 }
40503 }
40504 {
40505 if (!wxPyCheckForApp()) SWIG_fail;
40506 PyThreadState* __tstate = wxPyBeginAllowThreads();
40507 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40508 wxPyEndAllowThreads(__tstate);
40509 if (PyErr_Occurred()) SWIG_fail;
40510 }
40511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40512 {
40513 if (temp8)
40514 delete arg8;
40515 }
40516 return resultobj;
40517 fail:
40518 {
40519 if (temp8)
40520 delete arg8;
40521 }
40522 return NULL;
40523 }
40524
40525
40526 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40527 PyObject *resultobj = 0;
40528 wxDatePickerCtrl *result = 0 ;
40529
40530 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40531 {
40532 if (!wxPyCheckForApp()) SWIG_fail;
40533 PyThreadState* __tstate = wxPyBeginAllowThreads();
40534 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40535 wxPyEndAllowThreads(__tstate);
40536 if (PyErr_Occurred()) SWIG_fail;
40537 }
40538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40539 return resultobj;
40540 fail:
40541 return NULL;
40542 }
40543
40544
40545 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40546 PyObject *resultobj = 0;
40547 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40548 wxWindow *arg2 = (wxWindow *) 0 ;
40549 int arg3 = (int) -1 ;
40550 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40551 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40552 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40553 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40554 wxSize const &arg6_defvalue = wxDefaultSize ;
40555 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40556 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40557 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40558 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40559 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40560 wxString *arg9 = (wxString *) &arg9_defvalue ;
40561 bool result;
40562 void *argp1 = 0 ;
40563 int res1 = 0 ;
40564 void *argp2 = 0 ;
40565 int res2 = 0 ;
40566 int val3 ;
40567 int ecode3 = 0 ;
40568 void *argp4 = 0 ;
40569 int res4 = 0 ;
40570 wxPoint temp5 ;
40571 wxSize temp6 ;
40572 long val7 ;
40573 int ecode7 = 0 ;
40574 void *argp8 = 0 ;
40575 int res8 = 0 ;
40576 bool temp9 = false ;
40577 PyObject * obj0 = 0 ;
40578 PyObject * obj1 = 0 ;
40579 PyObject * obj2 = 0 ;
40580 PyObject * obj3 = 0 ;
40581 PyObject * obj4 = 0 ;
40582 PyObject * obj5 = 0 ;
40583 PyObject * obj6 = 0 ;
40584 PyObject * obj7 = 0 ;
40585 PyObject * obj8 = 0 ;
40586 char * kwnames[] = {
40587 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40588 };
40589
40590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40592 if (!SWIG_IsOK(res1)) {
40593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40594 }
40595 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40596 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40597 if (!SWIG_IsOK(res2)) {
40598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40599 }
40600 arg2 = reinterpret_cast< wxWindow * >(argp2);
40601 if (obj2) {
40602 ecode3 = SWIG_AsVal_int(obj2, &val3);
40603 if (!SWIG_IsOK(ecode3)) {
40604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40605 }
40606 arg3 = static_cast< int >(val3);
40607 }
40608 if (obj3) {
40609 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40610 if (!SWIG_IsOK(res4)) {
40611 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40612 }
40613 if (!argp4) {
40614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40615 }
40616 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40617 }
40618 if (obj4) {
40619 {
40620 arg5 = &temp5;
40621 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
40622 }
40623 }
40624 if (obj5) {
40625 {
40626 arg6 = &temp6;
40627 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40628 }
40629 }
40630 if (obj6) {
40631 ecode7 = SWIG_AsVal_long(obj6, &val7);
40632 if (!SWIG_IsOK(ecode7)) {
40633 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40634 }
40635 arg7 = static_cast< long >(val7);
40636 }
40637 if (obj7) {
40638 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40639 if (!SWIG_IsOK(res8)) {
40640 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40641 }
40642 if (!argp8) {
40643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40644 }
40645 arg8 = reinterpret_cast< wxValidator * >(argp8);
40646 }
40647 if (obj8) {
40648 {
40649 arg9 = wxString_in_helper(obj8);
40650 if (arg9 == NULL) SWIG_fail;
40651 temp9 = true;
40652 }
40653 }
40654 {
40655 PyThreadState* __tstate = wxPyBeginAllowThreads();
40656 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40657 wxPyEndAllowThreads(__tstate);
40658 if (PyErr_Occurred()) SWIG_fail;
40659 }
40660 {
40661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40662 }
40663 {
40664 if (temp9)
40665 delete arg9;
40666 }
40667 return resultobj;
40668 fail:
40669 {
40670 if (temp9)
40671 delete arg9;
40672 }
40673 return NULL;
40674 }
40675
40676
40677 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40678 PyObject *resultobj = 0;
40679 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40680 wxDateTime *arg2 = 0 ;
40681 void *argp1 = 0 ;
40682 int res1 = 0 ;
40683 void *argp2 = 0 ;
40684 int res2 = 0 ;
40685 PyObject * obj0 = 0 ;
40686 PyObject * obj1 = 0 ;
40687 char * kwnames[] = {
40688 (char *) "self",(char *) "dt", NULL
40689 };
40690
40691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40693 if (!SWIG_IsOK(res1)) {
40694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40695 }
40696 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40697 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40698 if (!SWIG_IsOK(res2)) {
40699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40700 }
40701 if (!argp2) {
40702 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40703 }
40704 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40705 {
40706 PyThreadState* __tstate = wxPyBeginAllowThreads();
40707 (arg1)->SetValue((wxDateTime const &)*arg2);
40708 wxPyEndAllowThreads(__tstate);
40709 if (PyErr_Occurred()) SWIG_fail;
40710 }
40711 resultobj = SWIG_Py_Void();
40712 return resultobj;
40713 fail:
40714 return NULL;
40715 }
40716
40717
40718 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40719 PyObject *resultobj = 0;
40720 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40721 wxDateTime result;
40722 void *argp1 = 0 ;
40723 int res1 = 0 ;
40724 PyObject *swig_obj[1] ;
40725
40726 if (!args) SWIG_fail;
40727 swig_obj[0] = args;
40728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40729 if (!SWIG_IsOK(res1)) {
40730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40731 }
40732 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40733 {
40734 PyThreadState* __tstate = wxPyBeginAllowThreads();
40735 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40736 wxPyEndAllowThreads(__tstate);
40737 if (PyErr_Occurred()) SWIG_fail;
40738 }
40739 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40740 return resultobj;
40741 fail:
40742 return NULL;
40743 }
40744
40745
40746 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40747 PyObject *resultobj = 0;
40748 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40749 wxDateTime *arg2 = 0 ;
40750 wxDateTime *arg3 = 0 ;
40751 void *argp1 = 0 ;
40752 int res1 = 0 ;
40753 void *argp2 = 0 ;
40754 int res2 = 0 ;
40755 void *argp3 = 0 ;
40756 int res3 = 0 ;
40757 PyObject * obj0 = 0 ;
40758 PyObject * obj1 = 0 ;
40759 PyObject * obj2 = 0 ;
40760 char * kwnames[] = {
40761 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40762 };
40763
40764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40766 if (!SWIG_IsOK(res1)) {
40767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40768 }
40769 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40770 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40771 if (!SWIG_IsOK(res2)) {
40772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40773 }
40774 if (!argp2) {
40775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40776 }
40777 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40778 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40779 if (!SWIG_IsOK(res3)) {
40780 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40781 }
40782 if (!argp3) {
40783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40784 }
40785 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40786 {
40787 PyThreadState* __tstate = wxPyBeginAllowThreads();
40788 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
40789 wxPyEndAllowThreads(__tstate);
40790 if (PyErr_Occurred()) SWIG_fail;
40791 }
40792 resultobj = SWIG_Py_Void();
40793 return resultobj;
40794 fail:
40795 return NULL;
40796 }
40797
40798
40799 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40800 PyObject *resultobj = 0;
40801 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40802 wxDateTime result;
40803 void *argp1 = 0 ;
40804 int res1 = 0 ;
40805 PyObject *swig_obj[1] ;
40806
40807 if (!args) SWIG_fail;
40808 swig_obj[0] = args;
40809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40810 if (!SWIG_IsOK(res1)) {
40811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40812 }
40813 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40814 {
40815 PyThreadState* __tstate = wxPyBeginAllowThreads();
40816 result = wxDatePickerCtrl_GetLowerLimit(arg1);
40817 wxPyEndAllowThreads(__tstate);
40818 if (PyErr_Occurred()) SWIG_fail;
40819 }
40820 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40821 return resultobj;
40822 fail:
40823 return NULL;
40824 }
40825
40826
40827 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40828 PyObject *resultobj = 0;
40829 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40830 wxDateTime result;
40831 void *argp1 = 0 ;
40832 int res1 = 0 ;
40833 PyObject *swig_obj[1] ;
40834
40835 if (!args) SWIG_fail;
40836 swig_obj[0] = args;
40837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40838 if (!SWIG_IsOK(res1)) {
40839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40840 }
40841 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40842 {
40843 PyThreadState* __tstate = wxPyBeginAllowThreads();
40844 result = wxDatePickerCtrl_GetUpperLimit(arg1);
40845 wxPyEndAllowThreads(__tstate);
40846 if (PyErr_Occurred()) SWIG_fail;
40847 }
40848 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40849 return resultobj;
40850 fail:
40851 return NULL;
40852 }
40853
40854
40855 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40856 PyObject *obj;
40857 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40858 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
40859 return SWIG_Py_Void();
40860 }
40861
40862 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40863 return SWIG_Python_InitShadowInstance(args);
40864 }
40865
40866 static PyMethodDef SwigMethods[] = {
40867 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
40868 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
40869 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40870 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
40871 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
40872 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40873 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
40874 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
40875 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
40876 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
40877 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40878 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
40879 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
40880 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
40881 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
40882 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
40883 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
40884 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
40885 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40886 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40887 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
40888 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
40889 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
40890 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
40891 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
40892 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
40893 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40894 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
40895 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40896 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
40897 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
40898 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40899 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
40900 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
40901 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
40902 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
40903 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40904 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
40905 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
40906 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
40907 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
40908 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40909 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
40910 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40911 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
40912 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
40913 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
40914 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
40915 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40916 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
40917 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40918 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
40919 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
40920 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
40921 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40922 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
40923 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
40924 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40925 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
40926 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
40927 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
40928 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40929 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
40930 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40931 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
40932 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40933 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
40934 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
40935 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
40936 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
40937 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
40938 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
40939 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
40940 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
40941 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
40942 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40943 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
40944 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
40945 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
40946 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
40947 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40948 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40949 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
40950 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40951 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
40952 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
40953 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
40954 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
40955 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
40956 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
40957 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40958 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
40959 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
40960 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
40961 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
40962 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40963 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40964 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
40965 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
40966 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
40967 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
40968 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40969 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
40970 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
40971 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40972 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
40973 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
40974 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
40975 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
40976 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40977 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
40978 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40979 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
40980 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
40981 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40982 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
40983 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40984 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
40985 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40986 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40987 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40988 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
40989 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
40990 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40991 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
40992 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40993 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
40994 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
40995 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40996 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40997 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40998 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
40999 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
41000 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
41001 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41002 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
41003 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
41004 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
41005 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41006 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41007 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
41008 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41009 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41010 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41011 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41012 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41013 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
41014 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
41015 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41016 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
41017 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41018 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
41019 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
41020 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
41021 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
41022 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
41023 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41024 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
41025 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
41026 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41027 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41028 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41029 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
41030 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
41031 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41032 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41033 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
41034 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
41035 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
41036 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
41037 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
41038 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
41039 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
41040 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
41041 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
41042 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
41043 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
41044 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
41045 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
41046 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
41047 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
41048 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
41049 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
41050 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
41051 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
41052 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
41053 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
41054 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
41055 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41056 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
41057 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41058 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
41059 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41060 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41061 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
41062 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
41063 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
41064 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
41065 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
41066 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
41067 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
41068 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
41069 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
41070 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
41071 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41072 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41073 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
41074 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
41075 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
41076 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
41077 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
41078 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
41079 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
41080 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
41081 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41082 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41083 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41084 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
41085 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41086 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
41087 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41088 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41089 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
41090 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
41091 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
41092 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
41093 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
41094 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
41095 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
41096 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
41097 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
41098 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
41099 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
41100 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41101 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
41102 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
41103 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
41104 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41105 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
41106 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41107 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
41108 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
41109 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
41110 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41111 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41112 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
41113 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
41114 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41115 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
41116 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
41117 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
41118 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
41119 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
41120 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
41121 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
41122 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41123 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
41124 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
41125 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
41126 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
41127 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
41128 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41129 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41130 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
41131 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
41132 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
41133 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
41134 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41135 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
41136 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
41137 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
41138 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41139 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41140 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41141 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41142 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
41143 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41144 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
41145 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
41146 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41147 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
41148 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41149 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
41150 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41151 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
41152 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41153 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
41154 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
41155 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41156 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41157 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
41158 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
41159 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41160 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
41161 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41162 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
41163 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
41164 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
41165 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
41166 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41167 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41168 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
41169 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
41170 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41171 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
41172 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
41173 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41174 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41175 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
41176 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
41177 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41178 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
41179 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
41180 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
41181 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41182 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41183 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
41184 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
41185 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
41186 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
41187 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41188 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
41189 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41190 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41191 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
41192 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
41193 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
41194 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
41195 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41196 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
41197 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41198 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41199 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
41200 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
41201 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41202 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41203 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
41204 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41205 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
41206 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
41207 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
41208 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
41209 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
41210 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
41211 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
41212 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
41213 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
41214 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
41215 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
41216 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41217 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41218 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
41219 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
41220 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
41221 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
41222 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41223 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41224 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
41225 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41226 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
41227 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
41228 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
41229 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
41230 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
41231 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
41232 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41233 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41234 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41235 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41236 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
41237 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41238 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41239 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41240 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
41241 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
41242 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
41243 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
41244 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
41245 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
41246 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
41247 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
41248 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
41249 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
41250 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
41251 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41252 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41253 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41254 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
41255 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41256 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
41257 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41258 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
41259 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41260 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
41261 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
41262 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
41263 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
41264 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41265 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
41266 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
41267 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
41268 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41269 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
41270 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41271 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
41272 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
41273 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41274 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
41275 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
41276 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
41277 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
41278 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41279 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
41280 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
41281 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
41282 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41283 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
41284 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
41285 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
41286 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
41287 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41288 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
41289 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
41290 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
41291 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41292 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
41293 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
41294 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
41295 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
41296 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41297 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41298 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41299 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41300 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
41301 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
41302 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
41303 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
41304 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
41305 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
41306 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41307 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
41308 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
41309 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
41310 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
41311 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41312 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
41313 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
41314 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
41315 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
41316 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41317 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
41318 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
41319 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
41320 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
41321 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
41322 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
41323 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
41324 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
41325 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
41326 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
41327 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
41328 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
41329 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
41330 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
41331 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
41332 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
41333 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
41334 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
41335 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
41336 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
41337 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
41338 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41339 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41340 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41341 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41342 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41343 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41344 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
41345 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
41346 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
41347 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41348 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
41349 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
41350 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
41351 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41352 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41353 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
41354 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
41355 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
41356 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
41357 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
41358 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
41359 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
41360 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
41361 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
41362 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
41363 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
41364 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
41365 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41366 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41367 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41368 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
41369 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
41370 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41371 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41372 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41373 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41374 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41375 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
41376 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41377 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
41378 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
41379 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
41380 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
41381 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
41382 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
41383 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
41384 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
41385 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
41386 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
41387 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
41388 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
41389 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
41390 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41391 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
41392 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
41393 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
41394 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
41395 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
41396 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
41397 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41398 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41399 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41400 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
41401 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
41402 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41403 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
41404 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41405 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41406 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41407 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
41408 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
41409 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
41410 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
41411 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
41412 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
41413 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
41414 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
41415 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
41416 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
41417 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
41418 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
41419 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
41420 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
41421 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
41422 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41423 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41424 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41425 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
41426 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
41427 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
41428 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41429 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41430 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
41431 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41432 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41433 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41434 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
41435 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
41436 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
41437 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
41438 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
41439 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
41440 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
41441 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
41442 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
41443 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
41444 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
41445 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
41446 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
41447 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
41448 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
41449 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
41450 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
41451 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
41452 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
41453 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
41454 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
41455 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
41456 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
41457 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
41458 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
41459 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
41460 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
41461 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
41462 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
41463 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
41464 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
41465 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
41466 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
41467 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
41468 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
41469 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
41470 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41471 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
41472 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
41473 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
41474 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
41475 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
41476 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
41477 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
41478 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
41479 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
41480 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
41481 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
41482 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
41483 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
41484 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
41485 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
41486 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
41487 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
41488 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
41489 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
41490 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
41491 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
41492 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
41493 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
41494 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
41495 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41496 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
41497 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
41498 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41499 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
41500 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41501 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41502 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41503 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41504 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41505 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41506 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
41507 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
41508 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
41509 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41510 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41511 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41512 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41513 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41514 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41515 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41516 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41517 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41518 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41519 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41520 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41521 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
41522 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41523 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
41524 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
41525 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
41526 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
41527 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
41528 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41529 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
41530 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41531 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41532 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41533 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41534 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41535 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
41536 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
41537 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
41538 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
41539 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
41540 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
41541 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
41542 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41543 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
41544 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
41545 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41546 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41547 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41548 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
41549 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41550 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
41551 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41552 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41553 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41554 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
41555 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41556 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
41557 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41558 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
41559 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
41560 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41561 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41562 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41563 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41564 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41565 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41566 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
41567 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
41568 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41569 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
41570 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
41571 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
41572 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
41573 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41574 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41575 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
41576 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
41577 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41578 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
41579 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41580 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41581 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41582 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
41583 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
41584 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
41585 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
41586 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
41587 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
41588 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
41589 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
41590 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
41591 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
41592 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
41593 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41594 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
41595 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
41596 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41597 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
41598 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41599 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
41600 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
41601 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
41602 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41603 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
41604 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41605 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
41606 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
41607 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
41608 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41609 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
41610 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
41611 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41612 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
41613 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41614 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
41615 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41616 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41617 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
41618 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
41619 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
41620 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41621 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
41622 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41623 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41624 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
41625 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
41626 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41627 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
41628 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41629 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
41630 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
41631 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41632 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41633 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41634 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41635 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41636 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41637 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41638 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41639 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41640 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41641 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41642 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41643 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41644 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41645 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41646 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41647 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
41648 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
41649 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41650 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41651 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41652 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41653 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41654 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41655 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41656 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
41657 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
41658 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
41659 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
41660 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
41661 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
41662 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
41663 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
41664 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
41665 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41666 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41667 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
41668 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41669 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41670 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
41671 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
41672 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41673 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
41674 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
41675 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
41676 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41677 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
41678 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
41679 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
41680 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
41681 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
41682 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
41683 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41684 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
41685 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41686 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41687 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41688 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
41689 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41690 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
41691 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41692 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41693 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41694 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
41695 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41696 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
41697 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41698 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
41699 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
41700 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41701 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
41702 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41703 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
41704 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
41705 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
41706 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
41707 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
41708 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
41709 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
41710 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
41711 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
41712 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
41713 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
41714 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
41715 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
41716 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
41717 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
41718 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
41719 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
41720 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
41721 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
41722 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
41723 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41724 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
41725 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41726 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
41727 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
41728 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
41729 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
41730 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
41731 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41732 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41733 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
41734 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41735 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
41736 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
41737 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
41738 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
41739 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
41740 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
41741 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
41742 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
41743 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
41744 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
41745 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
41746 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
41747 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41748 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
41749 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41750 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
41751 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
41752 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
41753 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
41754 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
41755 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
41756 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41757 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
41758 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41759 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
41760 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
41761 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
41762 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
41763 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
41764 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
41765 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
41766 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41767 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
41768 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41769 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41770 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41771 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
41772 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41773 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
41774 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
41775 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
41776 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
41777 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
41778 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
41779 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41780 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
41781 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
41782 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
41783 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
41784 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41785 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
41786 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
41787 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
41788 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
41789 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
41790 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
41791 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
41792 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41793 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41794 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41795 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
41796 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
41797 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41798 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
41799 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41800 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41801 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
41802 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41803 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
41804 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
41805 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
41806 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
41807 { NULL, NULL, 0, NULL }
41808 };
41809
41810
41811 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41812
41813 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41814 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41815 }
41816 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41817 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41818 }
41819 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41820 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41821 }
41822 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41823 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41824 }
41825 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41826 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41827 }
41828 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
41829 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41830 }
41831 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
41832 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
41833 }
41834 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41835 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41836 }
41837 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41838 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41839 }
41840 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41841 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41842 }
41843 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
41844 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
41845 }
41846 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41847 return (void *)((wxEvent *) ((wxPyEvent *) x));
41848 }
41849 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41850 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41851 }
41852 static void *_p_wxListEventTo_p_wxEvent(void *x) {
41853 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
41854 }
41855 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
41856 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41857 }
41858 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
41859 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41860 }
41861 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
41862 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41863 }
41864 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
41865 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41866 }
41867 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
41868 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41869 }
41870 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
41871 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
41872 }
41873 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41874 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41875 }
41876 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41877 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41878 }
41879 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41880 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41881 }
41882 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41883 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41884 }
41885 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41886 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41887 }
41888 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41889 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41890 }
41891 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41892 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41893 }
41894 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41895 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41896 }
41897 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
41898 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
41899 }
41900 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41901 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41902 }
41903 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41904 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41905 }
41906 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41907 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41908 }
41909 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41910 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41911 }
41912 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41913 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41914 }
41915 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41916 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41917 }
41918 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41919 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41920 }
41921 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41922 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41923 }
41924 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41925 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41926 }
41927 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41928 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41929 }
41930 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41931 return (void *)((wxEvent *) ((wxShowEvent *) x));
41932 }
41933 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41934 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41935 }
41936 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41937 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41938 }
41939 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41940 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41941 }
41942 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41943 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41944 }
41945 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41946 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41947 }
41948 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
41949 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
41950 }
41951 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
41952 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
41953 }
41954 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
41955 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
41956 }
41957 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
41958 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41959 }
41960 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
41961 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
41962 }
41963 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
41964 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
41965 }
41966 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
41967 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
41968 }
41969 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
41970 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41971 }
41972 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
41973 return (void *)((wxPyListCtrl *) ((wxListView *) x));
41974 }
41975 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
41976 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
41977 }
41978 static void *_p_wxToolBarTo_p_wxControl(void *x) {
41979 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
41980 }
41981 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
41982 return (void *)((wxControl *) ((wxToggleButton *) x));
41983 }
41984 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
41985 return (void *)((wxControl *) ((wxRadioButton *) x));
41986 }
41987 static void *_p_wxToolbookTo_p_wxControl(void *x) {
41988 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
41989 }
41990 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
41991 return (void *)((wxControl *) ((wxToolBarBase *) x));
41992 }
41993 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
41994 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41995 }
41996 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
41997 return (void *)((wxControl *) ((wxPyListCtrl *) x));
41998 }
41999 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
42000 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42001 }
42002 static void *_p_wxPyControlTo_p_wxControl(void *x) {
42003 return (void *)((wxControl *) ((wxPyControl *) x));
42004 }
42005 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
42006 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
42007 }
42008 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
42009 return (void *)((wxControl *) ((wxScrollBar *) x));
42010 }
42011 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
42012 return (void *)((wxControl *) ((wxControlWithItems *) x));
42013 }
42014 static void *_p_wxGaugeTo_p_wxControl(void *x) {
42015 return (void *)((wxControl *) ((wxGauge *) x));
42016 }
42017 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
42018 return (void *)((wxControl *) ((wxStaticLine *) x));
42019 }
42020 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
42021 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
42022 }
42023 static void *_p_wxListbookTo_p_wxControl(void *x) {
42024 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
42025 }
42026 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
42027 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
42028 }
42029 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
42030 return (void *)((wxControl *) ((wxCheckBox *) x));
42031 }
42032 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
42033 return (void *)((wxControl *) ((wxRadioBox *) x));
42034 }
42035 static void *_p_wxChoiceTo_p_wxControl(void *x) {
42036 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
42037 }
42038 static void *_p_wxListBoxTo_p_wxControl(void *x) {
42039 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
42040 }
42041 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
42042 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42043 }
42044 static void *_p_wxListViewTo_p_wxControl(void *x) {
42045 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
42046 }
42047 static void *_p_wxNotebookTo_p_wxControl(void *x) {
42048 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
42049 }
42050 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
42051 return (void *)((wxControl *) ((wxStaticBitmap *) x));
42052 }
42053 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
42054 return (void *)((wxControl *) ((wxSpinCtrl *) x));
42055 }
42056 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
42057 return (void *)((wxControl *) ((wxStaticText *) x));
42058 }
42059 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
42060 return (void *)((wxControl *) ((wxStaticBox *) x));
42061 }
42062 static void *_p_wxSliderTo_p_wxControl(void *x) {
42063 return (void *)((wxControl *) ((wxSlider *) x));
42064 }
42065 static void *_p_wxTreebookTo_p_wxControl(void *x) {
42066 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
42067 }
42068 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
42069 return (void *)((wxControl *) ((wxSpinButton *) x));
42070 }
42071 static void *_p_wxButtonTo_p_wxControl(void *x) {
42072 return (void *)((wxControl *) ((wxButton *) x));
42073 }
42074 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
42075 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
42076 }
42077 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
42078 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42079 }
42080 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
42081 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
42082 }
42083 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
42084 return (void *)((wxControl *) ((wxTextCtrl *) x));
42085 }
42086 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
42087 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
42088 }
42089 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
42090 return (void *)((wxChoice *) ((wxComboBox *) x));
42091 }
42092 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
42093 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
42094 }
42095 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
42096 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42097 }
42098 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
42099 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
42100 }
42101 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
42102 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
42103 }
42104 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
42105 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
42106 }
42107 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
42108 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42109 }
42110 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
42111 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42112 }
42113 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
42114 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42115 }
42116 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
42117 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42118 }
42119 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
42120 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42121 }
42122 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
42123 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
42124 }
42125 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
42126 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
42127 }
42128 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
42129 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
42130 }
42131 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
42132 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
42133 }
42134 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
42135 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
42136 }
42137 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
42138 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
42139 }
42140 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
42141 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42142 }
42143 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
42144 return (void *)((wxEvtHandler *) ((wxValidator *) x));
42145 }
42146 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
42147 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
42148 }
42149 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
42150 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42151 }
42152 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
42153 return (void *)((wxEvtHandler *) ((wxMenu *) x));
42154 }
42155 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
42156 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
42157 }
42158 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
42159 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
42160 }
42161 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
42162 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42163 }
42164 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
42165 return (void *)((wxEvtHandler *) ((wxWindow *) x));
42166 }
42167 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
42168 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
42169 }
42170 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
42171 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42172 }
42173 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
42174 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42175 }
42176 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
42177 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42178 }
42179 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
42180 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42181 }
42182 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
42183 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
42184 }
42185 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
42186 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
42187 }
42188 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
42189 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42190 }
42191 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
42192 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
42193 }
42194 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
42195 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42196 }
42197 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
42198 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
42199 }
42200 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
42201 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
42202 }
42203 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
42204 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42205 }
42206 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
42207 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42208 }
42209 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
42210 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42211 }
42212 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
42213 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
42214 }
42215 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
42216 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
42217 }
42218 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
42219 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42220 }
42221 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
42222 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42223 }
42224 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
42225 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42226 }
42227 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
42228 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42229 }
42230 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
42231 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42232 }
42233 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
42234 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42235 }
42236 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
42237 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42238 }
42239 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
42240 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
42241 }
42242 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
42243 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
42244 }
42245 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
42246 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
42247 }
42248 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
42249 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42250 }
42251 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
42252 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
42253 }
42254 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
42255 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
42256 }
42257 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
42258 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42259 }
42260 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
42261 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42262 }
42263 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
42264 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42265 }
42266 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
42267 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42268 }
42269 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
42270 return (void *)((wxListBox *) ((wxCheckListBox *) x));
42271 }
42272 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
42273 return (void *)((wxButton *) ((wxBitmapButton *) x));
42274 }
42275 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
42276 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
42277 }
42278 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
42279 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
42280 }
42281 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
42282 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
42283 }
42284 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42285 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42286 }
42287 static void *_p_wxToolbookTo_p_wxObject(void *x) {
42288 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42289 }
42290 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42291 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42292 }
42293 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42294 return (void *)((wxObject *) ((wxSizerItem *) x));
42295 }
42296 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42297 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42298 }
42299 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42300 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42301 }
42302 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
42303 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
42304 }
42305 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42306 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42307 }
42308 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42309 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42310 }
42311 static void *_p_wxSizerTo_p_wxObject(void *x) {
42312 return (void *)((wxObject *) ((wxSizer *) x));
42313 }
42314 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42315 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42316 }
42317 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
42318 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
42319 }
42320 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
42321 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42322 }
42323 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42324 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42325 }
42326 static void *_p_wxEventTo_p_wxObject(void *x) {
42327 return (void *)((wxObject *) ((wxEvent *) x));
42328 }
42329 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42330 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42331 }
42332 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42333 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42334 }
42335 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42336 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42337 }
42338 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
42339 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42340 }
42341 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
42342 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42343 }
42344 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
42345 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42346 }
42347 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42348 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42349 }
42350 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42351 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42352 }
42353 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42354 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42355 }
42356 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42357 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42358 }
42359 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42360 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42361 }
42362 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42363 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42364 }
42365 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
42366 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
42367 }
42368 static void *_p_wxControlTo_p_wxObject(void *x) {
42369 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42370 }
42371 static void *_p_wxPyControlTo_p_wxObject(void *x) {
42372 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
42373 }
42374 static void *_p_wxGaugeTo_p_wxObject(void *x) {
42375 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
42376 }
42377 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
42378 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
42379 }
42380 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
42381 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
42382 }
42383 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
42384 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42385 }
42386 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42387 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42388 }
42389 static void *_p_wxChoiceTo_p_wxObject(void *x) {
42390 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42391 }
42392 static void *_p_wxFSFileTo_p_wxObject(void *x) {
42393 return (void *)((wxObject *) ((wxFSFile *) x));
42394 }
42395 static void *_p_wxPySizerTo_p_wxObject(void *x) {
42396 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42397 }
42398 static void *_p_wxTreebookTo_p_wxObject(void *x) {
42399 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42400 }
42401 static void *_p_wxListViewTo_p_wxObject(void *x) {
42402 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42403 }
42404 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
42405 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42406 }
42407 static void *_p_wxNotebookTo_p_wxObject(void *x) {
42408 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42409 }
42410 static void *_p_wxPyEventTo_p_wxObject(void *x) {
42411 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42412 }
42413 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42414 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42415 }
42416 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
42417 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42418 }
42419 static void *_p_wxListbookTo_p_wxObject(void *x) {
42420 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42421 }
42422 static void *_p_wxShowEventTo_p_wxObject(void *x) {
42423 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42424 }
42425 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
42426 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42427 }
42428 static void *_p_wxSliderTo_p_wxObject(void *x) {
42429 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
42430 }
42431 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42432 return (void *)((wxObject *) ((wxMenuItem *) x));
42433 }
42434 static void *_p_wxDateEventTo_p_wxObject(void *x) {
42435 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
42436 }
42437 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42438 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42439 }
42440 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42441 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42442 }
42443 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42444 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42445 }
42446 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42447 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42448 }
42449 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42450 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42451 }
42452 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42453 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42454 }
42455 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42456 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42457 }
42458 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42459 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42460 }
42461 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
42462 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
42463 }
42464 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
42465 return (void *)((wxObject *) ((wxContextHelp *) x));
42466 }
42467 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
42468 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42469 }
42470 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42471 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42472 }
42473 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42474 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42475 }
42476 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42477 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42478 }
42479 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42480 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42481 }
42482 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42483 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42484 }
42485 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42486 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42487 }
42488 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42489 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42490 }
42491 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42492 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42493 }
42494 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42495 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42496 }
42497 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
42498 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
42499 }
42500 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42501 return (void *)((wxObject *) ((wxImageHandler *) x));
42502 }
42503 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42504 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42505 }
42506 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42507 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42508 }
42509 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42510 return (void *)((wxObject *) ((wxEvtHandler *) x));
42511 }
42512 static void *_p_wxListEventTo_p_wxObject(void *x) {
42513 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42514 }
42515 static void *_p_wxListBoxTo_p_wxObject(void *x) {
42516 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42517 }
42518 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
42519 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42520 }
42521 static void *_p_wxButtonTo_p_wxObject(void *x) {
42522 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
42523 }
42524 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
42525 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42526 }
42527 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
42528 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
42529 }
42530 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
42531 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42532 }
42533 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
42534 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
42535 }
42536 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42537 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42538 }
42539 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
42540 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
42541 }
42542 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
42543 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
42544 }
42545 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
42546 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42547 }
42548 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
42549 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
42550 }
42551 static void *_p_wxListItemTo_p_wxObject(void *x) {
42552 return (void *)((wxObject *) ((wxListItem *) x));
42553 }
42554 static void *_p_wxImageTo_p_wxObject(void *x) {
42555 return (void *)((wxObject *) ((wxImage *) x));
42556 }
42557 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42558 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42559 }
42560 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
42561 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42562 }
42563 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
42564 return (void *)((wxObject *) ((wxGenericDragImage *) x));
42565 }
42566 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
42567 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42568 }
42569 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
42570 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42571 }
42572 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
42573 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42574 }
42575 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
42576 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42577 }
42578 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
42579 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42580 }
42581 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
42582 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42583 }
42584 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42585 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42586 }
42587 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42588 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42589 }
42590 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42591 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42592 }
42593 static void *_p_wxWindowTo_p_wxObject(void *x) {
42594 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42595 }
42596 static void *_p_wxMenuTo_p_wxObject(void *x) {
42597 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42598 }
42599 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42600 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42601 }
42602 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42603 return (void *)((wxObject *) ((wxFileSystem *) x));
42604 }
42605 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42606 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42607 }
42608 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42609 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42610 }
42611 static void *_p_wxPyAppTo_p_wxObject(void *x) {
42612 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42613 }
42614 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42615 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42616 }
42617 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42618 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42619 }
42620 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42621 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42622 }
42623 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
42624 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42625 }
42626 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
42627 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42628 }
42629 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42630 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42631 }
42632 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42633 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42634 }
42635 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
42636 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
42637 }
42638 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42639 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42640 }
42641 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42642 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42643 }
42644 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42645 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42646 }
42647 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
42648 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42649 }
42650 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42651 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42652 }
42653 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
42654 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
42655 }
42656 static void *_p_wxToolBarTo_p_wxObject(void *x) {
42657 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42658 }
42659 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42660 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42661 }
42662 static void *_p_wxValidatorTo_p_wxObject(void *x) {
42663 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42664 }
42665 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42666 return (void *)((wxWindow *) ((wxMenuBar *) x));
42667 }
42668 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
42669 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
42670 }
42671 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
42672 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42673 }
42674 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
42675 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
42676 }
42677 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
42678 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
42679 }
42680 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
42681 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42682 }
42683 static void *_p_wxControlTo_p_wxWindow(void *x) {
42684 return (void *)((wxWindow *) ((wxControl *) x));
42685 }
42686 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
42687 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
42688 }
42689 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
42690 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
42691 }
42692 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
42693 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42694 }
42695 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
42696 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42697 }
42698 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
42699 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
42700 }
42701 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
42702 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
42703 }
42704 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
42705 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
42706 }
42707 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42708 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42709 }
42710 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
42711 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
42712 }
42713 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
42714 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
42715 }
42716 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
42717 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42718 }
42719 static void *_p_wxListbookTo_p_wxWindow(void *x) {
42720 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42721 }
42722 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
42723 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
42724 }
42725 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
42726 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
42727 }
42728 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
42729 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
42730 }
42731 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
42732 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42733 }
42734 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
42735 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42736 }
42737 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
42738 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42739 }
42740 static void *_p_wxListViewTo_p_wxWindow(void *x) {
42741 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42742 }
42743 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
42744 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42745 }
42746 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
42747 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
42748 }
42749 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
42750 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
42751 }
42752 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
42753 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
42754 }
42755 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
42756 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
42757 }
42758 static void *_p_wxSliderTo_p_wxWindow(void *x) {
42759 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
42760 }
42761 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
42762 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42763 }
42764 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
42765 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
42766 }
42767 static void *_p_wxButtonTo_p_wxWindow(void *x) {
42768 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
42769 }
42770 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
42771 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
42772 }
42773 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
42774 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42775 }
42776 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
42777 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
42778 }
42779 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
42780 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
42781 }
42782 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42783 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42784 }
42785 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42786 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42787 }
42788 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42789 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42790 }
42791 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42792 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42793 }
42794 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42795 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42796 }
42797 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42798 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42799 }
42800 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
42801 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
42802 }
42803 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42804 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42805 }
42806 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42807 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42808 }
42809 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42810 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42811 }
42812 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42813 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42814 }
42815 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
42816 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42817 }
42818 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
42819 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42820 }
42821 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
42822 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42823 }
42824 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
42825 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42826 }
42827 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
42828 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42829 }
42830 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
42831 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
42832 }
42833 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42834 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42835 }
42836 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
42837 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
42838 }
42839 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
42840 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42841 }
42842 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
42843 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
42844 }
42845 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
42846 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
42847 }
42848 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
42849 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
42850 }
42851 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42852 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42853 }
42854 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42855 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42856 }
42857 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
42858 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
42859 }
42860 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
42861 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
42862 }
42863 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
42864 return (void *)((wxControlWithItems *) ((wxChoice *) x));
42865 }
42866 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
42867 return (void *)((wxControlWithItems *) ((wxListBox *) x));
42868 }
42869 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
42870 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
42871 }
42872 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42873 return (void *)((wxValidator *) ((wxPyValidator *) x));
42874 }
42875 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
42876 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
42877 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};
42878 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
42879 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
42880 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
42881 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
42882 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
42883 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
42884 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
42885 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
42886 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
42887 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
42888 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
42889 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
42890 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
42891 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
42892 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
42893 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
42894 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
42895 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
42896 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
42897 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
42898 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
42899 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
42900 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
42901 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
42902 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
42903 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
42904 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
42905 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
42906 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
42907 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
42908 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
42909 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
42910 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
42911 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
42912 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
42913 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
42914 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
42915 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
42916 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
42917 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
42918 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
42919 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
42920 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
42921 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
42922 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
42923 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
42924 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
42925 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
42926 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
42927 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
42928 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
42929 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
42930 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
42931 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
42932 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
42933 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
42934 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
42935 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
42936 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
42937 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
42938 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
42939 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
42940 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
42941 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
42942 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
42943 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
42944 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
42945 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
42946 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
42947 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
42948 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
42949 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
42950 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
42951 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
42952 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
42953 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
42954 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
42955 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
42956 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
42957 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
42958 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
42959 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
42960 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
42961 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
42962 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
42963 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
42964 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
42965 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
42966 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
42967 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
42968 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
42969 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
42970 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
42971 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
42972 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
42973 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
42974 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
42975 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
42976 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
42977 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
42978 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
42979 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
42980 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
42981 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
42982 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
42983 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
42984 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
42985 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
42986 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
42987 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
42988 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
42989 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
42990 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
42991 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
42992 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
42993 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
42994 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
42995 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
42996 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
42997 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
42998 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
42999 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
43000 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
43001 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
43002 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
43003 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
43004 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
43005 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
43006 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
43007 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
43008 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
43009 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
43010 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
43011 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
43012 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
43013 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
43014 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
43015 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
43016 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
43017 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
43018 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
43019 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
43020 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
43021 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
43022 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
43023 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
43024 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
43025 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
43026 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
43027 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
43028 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
43029 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
43030 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
43031 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
43032 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
43033 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
43034 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
43035 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
43036 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
43037 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
43038
43039 static swig_type_info *swig_type_initial[] = {
43040 &_swigt__p_bool,
43041 &_swigt__p_char,
43042 &_swigt__p_form_ops_t,
43043 &_swigt__p_int,
43044 &_swigt__p_long,
43045 &_swigt__p_unsigned_char,
43046 &_swigt__p_unsigned_int,
43047 &_swigt__p_unsigned_long,
43048 &_swigt__p_void,
43049 &_swigt__p_wxANIHandler,
43050 &_swigt__p_wxAcceleratorTable,
43051 &_swigt__p_wxActivateEvent,
43052 &_swigt__p_wxArrayInt,
43053 &_swigt__p_wxArrayString,
43054 &_swigt__p_wxBMPHandler,
43055 &_swigt__p_wxBitmap,
43056 &_swigt__p_wxBitmapButton,
43057 &_swigt__p_wxBookCtrlBase,
43058 &_swigt__p_wxBookCtrlBaseEvent,
43059 &_swigt__p_wxBoxSizer,
43060 &_swigt__p_wxButton,
43061 &_swigt__p_wxCURHandler,
43062 &_swigt__p_wxCheckBox,
43063 &_swigt__p_wxCheckListBox,
43064 &_swigt__p_wxChildFocusEvent,
43065 &_swigt__p_wxChoice,
43066 &_swigt__p_wxChoicebook,
43067 &_swigt__p_wxChoicebookEvent,
43068 &_swigt__p_wxCloseEvent,
43069 &_swigt__p_wxColour,
43070 &_swigt__p_wxComboBox,
43071 &_swigt__p_wxCommandEvent,
43072 &_swigt__p_wxContextHelp,
43073 &_swigt__p_wxContextHelpButton,
43074 &_swigt__p_wxContextMenuEvent,
43075 &_swigt__p_wxControl,
43076 &_swigt__p_wxControlWithItems,
43077 &_swigt__p_wxCursor,
43078 &_swigt__p_wxDC,
43079 &_swigt__p_wxDateEvent,
43080 &_swigt__p_wxDatePickerCtrl,
43081 &_swigt__p_wxDateTime,
43082 &_swigt__p_wxDirFilterListCtrl,
43083 &_swigt__p_wxDisplayChangedEvent,
43084 &_swigt__p_wxDropFilesEvent,
43085 &_swigt__p_wxDuplexMode,
43086 &_swigt__p_wxEraseEvent,
43087 &_swigt__p_wxEvent,
43088 &_swigt__p_wxEvtHandler,
43089 &_swigt__p_wxFSFile,
43090 &_swigt__p_wxFileSystem,
43091 &_swigt__p_wxFlexGridSizer,
43092 &_swigt__p_wxFocusEvent,
43093 &_swigt__p_wxFont,
43094 &_swigt__p_wxGBSizerItem,
43095 &_swigt__p_wxGIFHandler,
43096 &_swigt__p_wxGauge,
43097 &_swigt__p_wxGenericDirCtrl,
43098 &_swigt__p_wxGenericDragImage,
43099 &_swigt__p_wxGridBagSizer,
43100 &_swigt__p_wxGridSizer,
43101 &_swigt__p_wxHelpEvent,
43102 &_swigt__p_wxHelpProvider,
43103 &_swigt__p_wxICOHandler,
43104 &_swigt__p_wxIcon,
43105 &_swigt__p_wxIconizeEvent,
43106 &_swigt__p_wxIdleEvent,
43107 &_swigt__p_wxImage,
43108 &_swigt__p_wxImageHandler,
43109 &_swigt__p_wxImageList,
43110 &_swigt__p_wxIndividualLayoutConstraint,
43111 &_swigt__p_wxInitDialogEvent,
43112 &_swigt__p_wxItemContainer,
43113 &_swigt__p_wxJPEGHandler,
43114 &_swigt__p_wxKeyEvent,
43115 &_swigt__p_wxLayoutConstraints,
43116 &_swigt__p_wxListBox,
43117 &_swigt__p_wxListEvent,
43118 &_swigt__p_wxListItem,
43119 &_swigt__p_wxListItemAttr,
43120 &_swigt__p_wxListView,
43121 &_swigt__p_wxListbook,
43122 &_swigt__p_wxListbookEvent,
43123 &_swigt__p_wxMaximizeEvent,
43124 &_swigt__p_wxMemoryDC,
43125 &_swigt__p_wxMenu,
43126 &_swigt__p_wxMenuBar,
43127 &_swigt__p_wxMenuEvent,
43128 &_swigt__p_wxMenuItem,
43129 &_swigt__p_wxMouseCaptureChangedEvent,
43130 &_swigt__p_wxMouseEvent,
43131 &_swigt__p_wxMoveEvent,
43132 &_swigt__p_wxNavigationKeyEvent,
43133 &_swigt__p_wxNcPaintEvent,
43134 &_swigt__p_wxNotebook,
43135 &_swigt__p_wxNotebookEvent,
43136 &_swigt__p_wxNotifyEvent,
43137 &_swigt__p_wxObject,
43138 &_swigt__p_wxPCXHandler,
43139 &_swigt__p_wxPNGHandler,
43140 &_swigt__p_wxPNMHandler,
43141 &_swigt__p_wxPaintEvent,
43142 &_swigt__p_wxPaletteChangedEvent,
43143 &_swigt__p_wxPaperSize,
43144 &_swigt__p_wxPoint,
43145 &_swigt__p_wxPyApp,
43146 &_swigt__p_wxPyCommandEvent,
43147 &_swigt__p_wxPyControl,
43148 &_swigt__p_wxPyEvent,
43149 &_swigt__p_wxPyImageHandler,
43150 &_swigt__p_wxPyListCtrl,
43151 &_swigt__p_wxPySizer,
43152 &_swigt__p_wxPyTreeCtrl,
43153 &_swigt__p_wxPyTreeItemData,
43154 &_swigt__p_wxPyValidator,
43155 &_swigt__p_wxQueryNewPaletteEvent,
43156 &_swigt__p_wxRadioBox,
43157 &_swigt__p_wxRadioButton,
43158 &_swigt__p_wxRect,
43159 &_swigt__p_wxScrollBar,
43160 &_swigt__p_wxScrollEvent,
43161 &_swigt__p_wxScrollWinEvent,
43162 &_swigt__p_wxSetCursorEvent,
43163 &_swigt__p_wxShowEvent,
43164 &_swigt__p_wxSimpleHelpProvider,
43165 &_swigt__p_wxSize,
43166 &_swigt__p_wxSizeEvent,
43167 &_swigt__p_wxSizer,
43168 &_swigt__p_wxSizerItem,
43169 &_swigt__p_wxSlider,
43170 &_swigt__p_wxSpinButton,
43171 &_swigt__p_wxSpinCtrl,
43172 &_swigt__p_wxSpinEvent,
43173 &_swigt__p_wxStaticBitmap,
43174 &_swigt__p_wxStaticBox,
43175 &_swigt__p_wxStaticBoxSizer,
43176 &_swigt__p_wxStaticLine,
43177 &_swigt__p_wxStaticText,
43178 &_swigt__p_wxStdDialogButtonSizer,
43179 &_swigt__p_wxString,
43180 &_swigt__p_wxSysColourChangedEvent,
43181 &_swigt__p_wxTIFFHandler,
43182 &_swigt__p_wxTextAttr,
43183 &_swigt__p_wxTextCtrl,
43184 &_swigt__p_wxTextUrlEvent,
43185 &_swigt__p_wxToggleButton,
43186 &_swigt__p_wxToolBar,
43187 &_swigt__p_wxToolBarBase,
43188 &_swigt__p_wxToolBarToolBase,
43189 &_swigt__p_wxToolbook,
43190 &_swigt__p_wxToolbookEvent,
43191 &_swigt__p_wxTreeCtrl,
43192 &_swigt__p_wxTreeEvent,
43193 &_swigt__p_wxTreeItemId,
43194 &_swigt__p_wxTreebook,
43195 &_swigt__p_wxTreebookEvent,
43196 &_swigt__p_wxUpdateUIEvent,
43197 &_swigt__p_wxValidator,
43198 &_swigt__p_wxVisualAttributes,
43199 &_swigt__p_wxWindow,
43200 &_swigt__p_wxWindowCreateEvent,
43201 &_swigt__p_wxWindowDestroyEvent,
43202 &_swigt__p_wxXPMHandler,
43203 };
43204
43205 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
43206 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
43207 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
43208 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
43209 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
43210 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
43211 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
43212 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
43213 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
43214 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
43215 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
43216 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
43217 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}};
43218 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}};
43219 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}};
43220 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}};
43221 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
43222 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
43223 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}};
43224 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
43225 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43226 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
43227 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
43228 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
43229 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
43230 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
43231 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43232 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43233 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
43234 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
43235 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
43236 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_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_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_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_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}};
43237 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
43238 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
43239 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_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_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_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_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}};
43240 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}};
43241 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
43242 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
43243 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
43244 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
43245 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
43246 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
43247 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43248 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
43249 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
43250 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
43251 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
43252 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
43253 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
43254 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
43255 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43256 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43257 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
43258 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43259 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
43260 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43261 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43262 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43263 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43264 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43265 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43266 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
43267 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43268 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
43269 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43270 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
43271 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_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_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_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 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_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_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_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}};
43272 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
43273 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
43274 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
43275 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
43276 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_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_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_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_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_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_wxSpinButton, _p_wxSpinButtonTo_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}};
43277 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
43278 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
43279 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
43280 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
43281 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
43282 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}};
43283 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
43284 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
43285 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}};
43286 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43287 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}};
43288 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
43289 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
43290 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
43291 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
43292 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
43293 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43294 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
43295 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
43296 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
43297 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43298 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}};
43299 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
43300 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43301 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43302 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
43303 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43304 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43305 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
43306 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
43307 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43308 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43309 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
43310 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
43311 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
43312 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43313 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43314 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
43315 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
43316 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
43317 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
43318 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
43319 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
43320 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
43321 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
43322 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
43323 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
43324 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
43325 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
43326 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
43327 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
43328 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
43329 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_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_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_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_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_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_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_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_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_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_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_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}};
43330 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
43331 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
43332 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
43333 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}};
43334 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43335 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
43336 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
43337 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
43338 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
43339 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
43340 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
43341 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
43342 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
43343 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
43344 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
43345 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
43346 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
43347 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
43348 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
43349 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
43350 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
43351 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
43352 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
43353 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
43354 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
43355 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
43356 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}};
43357 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
43358 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
43359 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43360 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43361 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
43362 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
43363 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
43364 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43365 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}};
43366 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
43367 static swig_cast_info _swigc__p_wxWindow[] = { {&_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_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_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_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_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_wxSpinButton, _p_wxSpinButtonTo_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}};
43368
43369 static swig_cast_info *swig_cast_initial[] = {
43370 _swigc__p_bool,
43371 _swigc__p_char,
43372 _swigc__p_form_ops_t,
43373 _swigc__p_int,
43374 _swigc__p_long,
43375 _swigc__p_unsigned_char,
43376 _swigc__p_unsigned_int,
43377 _swigc__p_unsigned_long,
43378 _swigc__p_void,
43379 _swigc__p_wxANIHandler,
43380 _swigc__p_wxAcceleratorTable,
43381 _swigc__p_wxActivateEvent,
43382 _swigc__p_wxArrayInt,
43383 _swigc__p_wxArrayString,
43384 _swigc__p_wxBMPHandler,
43385 _swigc__p_wxBitmap,
43386 _swigc__p_wxBitmapButton,
43387 _swigc__p_wxBookCtrlBase,
43388 _swigc__p_wxBookCtrlBaseEvent,
43389 _swigc__p_wxBoxSizer,
43390 _swigc__p_wxButton,
43391 _swigc__p_wxCURHandler,
43392 _swigc__p_wxCheckBox,
43393 _swigc__p_wxCheckListBox,
43394 _swigc__p_wxChildFocusEvent,
43395 _swigc__p_wxChoice,
43396 _swigc__p_wxChoicebook,
43397 _swigc__p_wxChoicebookEvent,
43398 _swigc__p_wxCloseEvent,
43399 _swigc__p_wxColour,
43400 _swigc__p_wxComboBox,
43401 _swigc__p_wxCommandEvent,
43402 _swigc__p_wxContextHelp,
43403 _swigc__p_wxContextHelpButton,
43404 _swigc__p_wxContextMenuEvent,
43405 _swigc__p_wxControl,
43406 _swigc__p_wxControlWithItems,
43407 _swigc__p_wxCursor,
43408 _swigc__p_wxDC,
43409 _swigc__p_wxDateEvent,
43410 _swigc__p_wxDatePickerCtrl,
43411 _swigc__p_wxDateTime,
43412 _swigc__p_wxDirFilterListCtrl,
43413 _swigc__p_wxDisplayChangedEvent,
43414 _swigc__p_wxDropFilesEvent,
43415 _swigc__p_wxDuplexMode,
43416 _swigc__p_wxEraseEvent,
43417 _swigc__p_wxEvent,
43418 _swigc__p_wxEvtHandler,
43419 _swigc__p_wxFSFile,
43420 _swigc__p_wxFileSystem,
43421 _swigc__p_wxFlexGridSizer,
43422 _swigc__p_wxFocusEvent,
43423 _swigc__p_wxFont,
43424 _swigc__p_wxGBSizerItem,
43425 _swigc__p_wxGIFHandler,
43426 _swigc__p_wxGauge,
43427 _swigc__p_wxGenericDirCtrl,
43428 _swigc__p_wxGenericDragImage,
43429 _swigc__p_wxGridBagSizer,
43430 _swigc__p_wxGridSizer,
43431 _swigc__p_wxHelpEvent,
43432 _swigc__p_wxHelpProvider,
43433 _swigc__p_wxICOHandler,
43434 _swigc__p_wxIcon,
43435 _swigc__p_wxIconizeEvent,
43436 _swigc__p_wxIdleEvent,
43437 _swigc__p_wxImage,
43438 _swigc__p_wxImageHandler,
43439 _swigc__p_wxImageList,
43440 _swigc__p_wxIndividualLayoutConstraint,
43441 _swigc__p_wxInitDialogEvent,
43442 _swigc__p_wxItemContainer,
43443 _swigc__p_wxJPEGHandler,
43444 _swigc__p_wxKeyEvent,
43445 _swigc__p_wxLayoutConstraints,
43446 _swigc__p_wxListBox,
43447 _swigc__p_wxListEvent,
43448 _swigc__p_wxListItem,
43449 _swigc__p_wxListItemAttr,
43450 _swigc__p_wxListView,
43451 _swigc__p_wxListbook,
43452 _swigc__p_wxListbookEvent,
43453 _swigc__p_wxMaximizeEvent,
43454 _swigc__p_wxMemoryDC,
43455 _swigc__p_wxMenu,
43456 _swigc__p_wxMenuBar,
43457 _swigc__p_wxMenuEvent,
43458 _swigc__p_wxMenuItem,
43459 _swigc__p_wxMouseCaptureChangedEvent,
43460 _swigc__p_wxMouseEvent,
43461 _swigc__p_wxMoveEvent,
43462 _swigc__p_wxNavigationKeyEvent,
43463 _swigc__p_wxNcPaintEvent,
43464 _swigc__p_wxNotebook,
43465 _swigc__p_wxNotebookEvent,
43466 _swigc__p_wxNotifyEvent,
43467 _swigc__p_wxObject,
43468 _swigc__p_wxPCXHandler,
43469 _swigc__p_wxPNGHandler,
43470 _swigc__p_wxPNMHandler,
43471 _swigc__p_wxPaintEvent,
43472 _swigc__p_wxPaletteChangedEvent,
43473 _swigc__p_wxPaperSize,
43474 _swigc__p_wxPoint,
43475 _swigc__p_wxPyApp,
43476 _swigc__p_wxPyCommandEvent,
43477 _swigc__p_wxPyControl,
43478 _swigc__p_wxPyEvent,
43479 _swigc__p_wxPyImageHandler,
43480 _swigc__p_wxPyListCtrl,
43481 _swigc__p_wxPySizer,
43482 _swigc__p_wxPyTreeCtrl,
43483 _swigc__p_wxPyTreeItemData,
43484 _swigc__p_wxPyValidator,
43485 _swigc__p_wxQueryNewPaletteEvent,
43486 _swigc__p_wxRadioBox,
43487 _swigc__p_wxRadioButton,
43488 _swigc__p_wxRect,
43489 _swigc__p_wxScrollBar,
43490 _swigc__p_wxScrollEvent,
43491 _swigc__p_wxScrollWinEvent,
43492 _swigc__p_wxSetCursorEvent,
43493 _swigc__p_wxShowEvent,
43494 _swigc__p_wxSimpleHelpProvider,
43495 _swigc__p_wxSize,
43496 _swigc__p_wxSizeEvent,
43497 _swigc__p_wxSizer,
43498 _swigc__p_wxSizerItem,
43499 _swigc__p_wxSlider,
43500 _swigc__p_wxSpinButton,
43501 _swigc__p_wxSpinCtrl,
43502 _swigc__p_wxSpinEvent,
43503 _swigc__p_wxStaticBitmap,
43504 _swigc__p_wxStaticBox,
43505 _swigc__p_wxStaticBoxSizer,
43506 _swigc__p_wxStaticLine,
43507 _swigc__p_wxStaticText,
43508 _swigc__p_wxStdDialogButtonSizer,
43509 _swigc__p_wxString,
43510 _swigc__p_wxSysColourChangedEvent,
43511 _swigc__p_wxTIFFHandler,
43512 _swigc__p_wxTextAttr,
43513 _swigc__p_wxTextCtrl,
43514 _swigc__p_wxTextUrlEvent,
43515 _swigc__p_wxToggleButton,
43516 _swigc__p_wxToolBar,
43517 _swigc__p_wxToolBarBase,
43518 _swigc__p_wxToolBarToolBase,
43519 _swigc__p_wxToolbook,
43520 _swigc__p_wxToolbookEvent,
43521 _swigc__p_wxTreeCtrl,
43522 _swigc__p_wxTreeEvent,
43523 _swigc__p_wxTreeItemId,
43524 _swigc__p_wxTreebook,
43525 _swigc__p_wxTreebookEvent,
43526 _swigc__p_wxUpdateUIEvent,
43527 _swigc__p_wxValidator,
43528 _swigc__p_wxVisualAttributes,
43529 _swigc__p_wxWindow,
43530 _swigc__p_wxWindowCreateEvent,
43531 _swigc__p_wxWindowDestroyEvent,
43532 _swigc__p_wxXPMHandler,
43533 };
43534
43535
43536 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
43537
43538 static swig_const_info swig_const_table[] = {
43539 {0, 0, 0, 0.0, 0, 0}};
43540
43541 #ifdef __cplusplus
43542 }
43543 #endif
43544 /* -----------------------------------------------------------------------------
43545 * Type initialization:
43546 * This problem is tough by the requirement that no dynamic
43547 * memory is used. Also, since swig_type_info structures store pointers to
43548 * swig_cast_info structures and swig_cast_info structures store pointers back
43549 * to swig_type_info structures, we need some lookup code at initialization.
43550 * The idea is that swig generates all the structures that are needed.
43551 * The runtime then collects these partially filled structures.
43552 * The SWIG_InitializeModule function takes these initial arrays out of
43553 * swig_module, and does all the lookup, filling in the swig_module.types
43554 * array with the correct data and linking the correct swig_cast_info
43555 * structures together.
43556 *
43557 * The generated swig_type_info structures are assigned staticly to an initial
43558 * array. We just loop though that array, and handle each type individually.
43559 * First we lookup if this type has been already loaded, and if so, use the
43560 * loaded structure instead of the generated one. Then we have to fill in the
43561 * cast linked list. The cast data is initially stored in something like a
43562 * two-dimensional array. Each row corresponds to a type (there are the same
43563 * number of rows as there are in the swig_type_initial array). Each entry in
43564 * a column is one of the swig_cast_info structures for that type.
43565 * The cast_initial array is actually an array of arrays, because each row has
43566 * a variable number of columns. So to actually build the cast linked list,
43567 * we find the array of casts associated with the type, and loop through it
43568 * adding the casts to the list. The one last trick we need to do is making
43569 * sure the type pointer in the swig_cast_info struct is correct.
43570 *
43571 * First off, we lookup the cast->type name to see if it is already loaded.
43572 * There are three cases to handle:
43573 * 1) If the cast->type has already been loaded AND the type we are adding
43574 * casting info to has not been loaded (it is in this module), THEN we
43575 * replace the cast->type pointer with the type pointer that has already
43576 * been loaded.
43577 * 2) If BOTH types (the one we are adding casting info to, and the
43578 * cast->type) are loaded, THEN the cast info has already been loaded by
43579 * the previous module so we just ignore it.
43580 * 3) Finally, if cast->type has not already been loaded, then we add that
43581 * swig_cast_info to the linked list (because the cast->type) pointer will
43582 * be correct.
43583 * ----------------------------------------------------------------------------- */
43584
43585 #ifdef __cplusplus
43586 extern "C" {
43587 #if 0
43588 } /* c-mode */
43589 #endif
43590 #endif
43591
43592 #if 0
43593 #define SWIGRUNTIME_DEBUG
43594 #endif
43595
43596 SWIGRUNTIME void
43597 SWIG_InitializeModule(void *clientdata) {
43598 size_t i;
43599 swig_module_info *module_head;
43600 static int init_run = 0;
43601
43602 clientdata = clientdata;
43603
43604 if (init_run) return;
43605 init_run = 1;
43606
43607 /* Initialize the swig_module */
43608 swig_module.type_initial = swig_type_initial;
43609 swig_module.cast_initial = swig_cast_initial;
43610
43611 /* Try and load any already created modules */
43612 module_head = SWIG_GetModule(clientdata);
43613 if (module_head) {
43614 swig_module.next = module_head->next;
43615 module_head->next = &swig_module;
43616 } else {
43617 /* This is the first module loaded */
43618 swig_module.next = &swig_module;
43619 SWIG_SetModule(clientdata, &swig_module);
43620 }
43621
43622 /* Now work on filling in swig_module.types */
43623 #ifdef SWIGRUNTIME_DEBUG
43624 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
43625 #endif
43626 for (i = 0; i < swig_module.size; ++i) {
43627 swig_type_info *type = 0;
43628 swig_type_info *ret;
43629 swig_cast_info *cast;
43630
43631 #ifdef SWIGRUNTIME_DEBUG
43632 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43633 #endif
43634
43635 /* if there is another module already loaded */
43636 if (swig_module.next != &swig_module) {
43637 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
43638 }
43639 if (type) {
43640 /* Overwrite clientdata field */
43641 #ifdef SWIGRUNTIME_DEBUG
43642 printf("SWIG_InitializeModule: found type %s\n", type->name);
43643 #endif
43644 if (swig_module.type_initial[i]->clientdata) {
43645 type->clientdata = swig_module.type_initial[i]->clientdata;
43646 #ifdef SWIGRUNTIME_DEBUG
43647 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
43648 #endif
43649 }
43650 } else {
43651 type = swig_module.type_initial[i];
43652 }
43653
43654 /* Insert casting types */
43655 cast = swig_module.cast_initial[i];
43656 while (cast->type) {
43657 /* Don't need to add information already in the list */
43658 ret = 0;
43659 #ifdef SWIGRUNTIME_DEBUG
43660 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
43661 #endif
43662 if (swig_module.next != &swig_module) {
43663 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
43664 #ifdef SWIGRUNTIME_DEBUG
43665 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
43666 #endif
43667 }
43668 if (ret) {
43669 if (type == swig_module.type_initial[i]) {
43670 #ifdef SWIGRUNTIME_DEBUG
43671 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
43672 #endif
43673 cast->type = ret;
43674 ret = 0;
43675 } else {
43676 /* Check for casting already in the list */
43677 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
43678 #ifdef SWIGRUNTIME_DEBUG
43679 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
43680 #endif
43681 if (!ocast) ret = 0;
43682 }
43683 }
43684
43685 if (!ret) {
43686 #ifdef SWIGRUNTIME_DEBUG
43687 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
43688 #endif
43689 if (type->cast) {
43690 type->cast->prev = cast;
43691 cast->next = type->cast;
43692 }
43693 type->cast = cast;
43694 }
43695 cast++;
43696 }
43697 /* Set entry in modules->types array equal to the type */
43698 swig_module.types[i] = type;
43699 }
43700 swig_module.types[i] = 0;
43701
43702 #ifdef SWIGRUNTIME_DEBUG
43703 printf("**** SWIG_InitializeModule: Cast List ******\n");
43704 for (i = 0; i < swig_module.size; ++i) {
43705 int j = 0;
43706 swig_cast_info *cast = swig_module.cast_initial[i];
43707 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43708 while (cast->type) {
43709 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
43710 cast++;
43711 ++j;
43712 }
43713 printf("---- Total casts: %d\n",j);
43714 }
43715 printf("**** SWIG_InitializeModule: Cast List ******\n");
43716 #endif
43717 }
43718
43719 /* This function will propagate the clientdata field of type to
43720 * any new swig_type_info structures that have been added into the list
43721 * of equivalent types. It is like calling
43722 * SWIG_TypeClientData(type, clientdata) a second time.
43723 */
43724 SWIGRUNTIME void
43725 SWIG_PropagateClientData(void) {
43726 size_t i;
43727 swig_cast_info *equiv;
43728 static int init_run = 0;
43729
43730 if (init_run) return;
43731 init_run = 1;
43732
43733 for (i = 0; i < swig_module.size; i++) {
43734 if (swig_module.types[i]->clientdata) {
43735 equiv = swig_module.types[i]->cast;
43736 while (equiv) {
43737 if (!equiv->converter) {
43738 if (equiv->type && !equiv->type->clientdata)
43739 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
43740 }
43741 equiv = equiv->next;
43742 }
43743 }
43744 }
43745 }
43746
43747 #ifdef __cplusplus
43748 #if 0
43749 {
43750 /* c-mode */
43751 #endif
43752 }
43753 #endif
43754
43755
43756
43757 #ifdef __cplusplus
43758 extern "C" {
43759 #endif
43760
43761 /* Python-specific SWIG API */
43762 #define SWIG_newvarlink() SWIG_Python_newvarlink()
43763 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
43764 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
43765
43766 /* -----------------------------------------------------------------------------
43767 * global variable support code.
43768 * ----------------------------------------------------------------------------- */
43769
43770 typedef struct swig_globalvar {
43771 char *name; /* Name of global variable */
43772 PyObject *(*get_attr)(void); /* Return the current value */
43773 int (*set_attr)(PyObject *); /* Set the value */
43774 struct swig_globalvar *next;
43775 } swig_globalvar;
43776
43777 typedef struct swig_varlinkobject {
43778 PyObject_HEAD
43779 swig_globalvar *vars;
43780 } swig_varlinkobject;
43781
43782 SWIGINTERN PyObject *
43783 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
43784 return PyString_FromString("<Swig global variables>");
43785 }
43786
43787 SWIGINTERN PyObject *
43788 swig_varlink_str(swig_varlinkobject *v) {
43789 PyObject *str = PyString_FromString("(");
43790 swig_globalvar *var;
43791 for (var = v->vars; var; var=var->next) {
43792 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
43793 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
43794 }
43795 PyString_ConcatAndDel(&str,PyString_FromString(")"));
43796 return str;
43797 }
43798
43799 SWIGINTERN int
43800 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
43801 PyObject *str = swig_varlink_str(v);
43802 fprintf(fp,"Swig global variables ");
43803 fprintf(fp,"%s\n", PyString_AsString(str));
43804 Py_DECREF(str);
43805 return 0;
43806 }
43807
43808 SWIGINTERN void
43809 swig_varlink_dealloc(swig_varlinkobject *v) {
43810 swig_globalvar *var = v->vars;
43811 while (var) {
43812 swig_globalvar *n = var->next;
43813 free(var->name);
43814 free(var);
43815 var = n;
43816 }
43817 }
43818
43819 SWIGINTERN PyObject *
43820 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
43821 PyObject *res = NULL;
43822 swig_globalvar *var = v->vars;
43823 while (var) {
43824 if (strcmp(var->name,n) == 0) {
43825 res = (*var->get_attr)();
43826 break;
43827 }
43828 var = var->next;
43829 }
43830 if (res == NULL && !PyErr_Occurred()) {
43831 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
43832 }
43833 return res;
43834 }
43835
43836 SWIGINTERN int
43837 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
43838 int res = 1;
43839 swig_globalvar *var = v->vars;
43840 while (var) {
43841 if (strcmp(var->name,n) == 0) {
43842 res = (*var->set_attr)(p);
43843 break;
43844 }
43845 var = var->next;
43846 }
43847 if (res == 1 && !PyErr_Occurred()) {
43848 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
43849 }
43850 return res;
43851 }
43852
43853 SWIGINTERN PyTypeObject*
43854 swig_varlink_type(void) {
43855 static char varlink__doc__[] = "Swig var link object";
43856 static PyTypeObject varlink_type;
43857 static int type_init = 0;
43858 if (!type_init) {
43859 const PyTypeObject tmp
43860 = {
43861 PyObject_HEAD_INIT(NULL)
43862 0, /* Number of items in variable part (ob_size) */
43863 (char *)"swigvarlink", /* Type name (tp_name) */
43864 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
43865 0, /* Itemsize (tp_itemsize) */
43866 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
43867 (printfunc) swig_varlink_print, /* Print (tp_print) */
43868 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
43869 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
43870 0, /* tp_compare */
43871 (reprfunc) swig_varlink_repr, /* tp_repr */
43872 0, /* tp_as_number */
43873 0, /* tp_as_sequence */
43874 0, /* tp_as_mapping */
43875 0, /* tp_hash */
43876 0, /* tp_call */
43877 (reprfunc)swig_varlink_str, /* tp_str */
43878 0, /* tp_getattro */
43879 0, /* tp_setattro */
43880 0, /* tp_as_buffer */
43881 0, /* tp_flags */
43882 varlink__doc__, /* tp_doc */
43883 0, /* tp_traverse */
43884 0, /* tp_clear */
43885 0, /* tp_richcompare */
43886 0, /* tp_weaklistoffset */
43887 #if PY_VERSION_HEX >= 0x02020000
43888 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
43889 #endif
43890 #if PY_VERSION_HEX >= 0x02030000
43891 0, /* tp_del */
43892 #endif
43893 #ifdef COUNT_ALLOCS
43894 0,0,0,0 /* tp_alloc -> tp_next */
43895 #endif
43896 };
43897 varlink_type = tmp;
43898 varlink_type.ob_type = &PyType_Type;
43899 type_init = 1;
43900 }
43901 return &varlink_type;
43902 }
43903
43904 /* Create a variable linking object for use later */
43905 SWIGINTERN PyObject *
43906 SWIG_Python_newvarlink(void) {
43907 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
43908 if (result) {
43909 result->vars = 0;
43910 }
43911 return ((PyObject*) result);
43912 }
43913
43914 SWIGINTERN void
43915 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
43916 swig_varlinkobject *v = (swig_varlinkobject *) p;
43917 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
43918 if (gv) {
43919 size_t size = strlen(name)+1;
43920 gv->name = (char *)malloc(size);
43921 if (gv->name) {
43922 strncpy(gv->name,name,size);
43923 gv->get_attr = get_attr;
43924 gv->set_attr = set_attr;
43925 gv->next = v->vars;
43926 }
43927 }
43928 v->vars = gv;
43929 }
43930
43931 SWIGINTERN PyObject *
43932 SWIG_globals() {
43933 static PyObject *_SWIG_globals = 0;
43934 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
43935 return _SWIG_globals;
43936 }
43937
43938 /* -----------------------------------------------------------------------------
43939 * constants/methods manipulation
43940 * ----------------------------------------------------------------------------- */
43941
43942 /* Install Constants */
43943 SWIGINTERN void
43944 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
43945 PyObject *obj = 0;
43946 size_t i;
43947 for (i = 0; constants[i].type; ++i) {
43948 switch(constants[i].type) {
43949 case SWIG_PY_POINTER:
43950 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
43951 break;
43952 case SWIG_PY_BINARY:
43953 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
43954 break;
43955 default:
43956 obj = 0;
43957 break;
43958 }
43959 if (obj) {
43960 PyDict_SetItemString(d, constants[i].name, obj);
43961 Py_DECREF(obj);
43962 }
43963 }
43964 }
43965
43966 /* -----------------------------------------------------------------------------*/
43967 /* Fix SwigMethods to carry the callback ptrs when needed */
43968 /* -----------------------------------------------------------------------------*/
43969
43970 SWIGINTERN void
43971 SWIG_Python_FixMethods(PyMethodDef *methods,
43972 swig_const_info *const_table,
43973 swig_type_info **types,
43974 swig_type_info **types_initial) {
43975 size_t i;
43976 for (i = 0; methods[i].ml_name; ++i) {
43977 char *c = methods[i].ml_doc;
43978 if (c && (c = strstr(c, "swig_ptr: "))) {
43979 int j;
43980 swig_const_info *ci = 0;
43981 char *name = c + 10;
43982 for (j = 0; const_table[j].type; ++j) {
43983 if (strncmp(const_table[j].name, name,
43984 strlen(const_table[j].name)) == 0) {
43985 ci = &(const_table[j]);
43986 break;
43987 }
43988 }
43989 if (ci) {
43990 size_t shift = (ci->ptype) - types;
43991 swig_type_info *ty = types_initial[shift];
43992 size_t ldoc = (c - methods[i].ml_doc);
43993 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
43994 char *ndoc = (char*)malloc(ldoc + lptr + 10);
43995 if (ndoc) {
43996 char *buff = ndoc;
43997 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
43998 if (ptr) {
43999 strncpy(buff, methods[i].ml_doc, ldoc);
44000 buff += ldoc;
44001 strncpy(buff, "swig_ptr: ", 10);
44002 buff += 10;
44003 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
44004 methods[i].ml_doc = ndoc;
44005 }
44006 }
44007 }
44008 }
44009 }
44010 }
44011
44012 #ifdef __cplusplus
44013 }
44014 #endif
44015
44016 /* -----------------------------------------------------------------------------*
44017 * Partial Init method
44018 * -----------------------------------------------------------------------------*/
44019
44020 #ifdef __cplusplus
44021 extern "C"
44022 #endif
44023 SWIGEXPORT void SWIG_init(void) {
44024 PyObject *m, *d;
44025
44026 /* Fix SwigMethods to carry the callback ptrs when needed */
44027 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
44028
44029 m = Py_InitModule((char *) SWIG_name, SwigMethods);
44030 d = PyModule_GetDict(m);
44031
44032 SWIG_InitializeModule(0);
44033 SWIG_InstallConstants(d,swig_const_table);
44034
44035
44036 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
44037 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
44038 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
44039 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
44040 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
44041 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
44042 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
44043 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
44044 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
44045 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
44046 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
44047 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
44048 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
44049 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
44050 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
44051 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
44052 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
44053 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
44054 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
44055 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
44056 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
44057 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
44058 SWIG_Python_SetConstant(d, "GA_PROGRESSBAR",SWIG_From_int(static_cast< int >(wxGA_PROGRESSBAR)));
44059 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
44060 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
44061 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
44062 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
44063 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
44064 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
44065 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
44066 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
44067 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
44068 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
44069 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
44070 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
44071 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
44072 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
44073 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
44074 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
44075 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
44076 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
44077 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
44078 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
44079 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
44080 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
44081 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
44082 SWIG_Python_SetConstant(d, "TE_LINEWRAP",SWIG_From_int(static_cast< int >(wxTE_LINEWRAP)));
44083 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
44084 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
44085 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
44086 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
44087 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
44088 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
44089 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
44090 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
44091 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
44092 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
44093 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
44094 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
44095 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
44096 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
44097 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
44098 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
44099 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
44100 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
44101 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
44102 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
44103 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
44104 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
44105 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
44106 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
44107 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
44108 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
44109 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
44110 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
44111 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
44112 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
44113 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
44114 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
44115 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
44116 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
44117 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
44118 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
44119 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
44120 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
44121 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
44122 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
44123 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
44124 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
44125 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
44126 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
44127 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
44128 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
44129 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
44130 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
44131 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
44132 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
44133 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
44134 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
44135 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
44136 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
44137 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
44138 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
44139 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
44140 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
44141 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
44142 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
44143 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
44144 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
44145 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
44146 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
44147 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
44148 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
44149 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
44150 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
44151 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
44152 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
44153 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
44154 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
44155 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
44156 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
44157 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
44158 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
44159 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
44160 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
44161 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
44162 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
44163 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
44164 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
44165 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
44166 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
44167 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
44168 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
44169 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
44170 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
44171 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
44172 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
44173 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
44174 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
44175 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
44176 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
44177 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
44178 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
44179 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
44180 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
44181 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
44182 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
44183 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
44184 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
44185 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
44186 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
44187 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
44188 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
44189 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
44190 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
44191 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
44192 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
44193 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
44194 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
44195 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
44196 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
44197 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
44198 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
44199 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
44200 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
44201 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
44202 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
44203 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
44204 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
44205 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
44206 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
44207 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
44208 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
44209 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
44210 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
44211 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
44212 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
44213 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
44214 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
44215 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
44216 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
44217 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
44218 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
44219 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
44220 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
44221 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
44222 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
44223 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
44224 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
44225 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
44226 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
44227 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
44228 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
44229 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
44230 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
44231 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
44232 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
44233 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
44234 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
44235 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
44236 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
44237 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
44238 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
44239 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
44240 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
44241 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
44242 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
44243 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
44244 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
44245 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
44246 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
44247 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
44248 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
44249 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
44250 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
44251 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
44252 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
44253 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
44254 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
44255 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
44256 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
44257 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
44258 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
44259 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
44260 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
44261 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
44262 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
44263 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
44264 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
44265 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
44266 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
44267 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
44268 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
44269 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
44270 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
44271 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
44272 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
44273 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
44274 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
44275 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
44276 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
44277 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
44278 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
44279 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
44280 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
44281 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
44282 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
44283 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
44284
44285 // Map renamed classes back to their common name for OOR
44286 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
44287
44288 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
44289 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
44290 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
44291 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
44292 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
44293 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
44294 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
44295 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
44296 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
44297 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
44298 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
44299 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
44300 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
44301 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
44302 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
44303 SWIG_Python_SetConstant(d, "TR_MAC_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_MAC_BUTTONS)));
44304 SWIG_Python_SetConstant(d, "TR_AQUA_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_AQUA_BUTTONS)));
44305 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
44306 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
44307 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
44308 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
44309 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
44310 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
44311 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
44312 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
44313 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
44314 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
44315 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
44316 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
44317 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
44318 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
44319 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
44320 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
44321 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
44322 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
44323 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
44324 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
44325 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
44326 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
44327 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
44328 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
44329 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
44330 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
44331 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
44332 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
44333 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
44334 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
44335 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
44336 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
44337 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
44338 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
44339 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
44340 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
44341 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
44342 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
44343 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
44344 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
44345
44346 // Map renamed classes back to their common name for OOR
44347 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
44348 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
44349
44350 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
44351 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
44352 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
44353 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
44354 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
44355 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
44356 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
44357 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
44358 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
44359 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
44360
44361 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
44362
44363 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
44364 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
44365 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
44366 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
44367 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
44368 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
44369 }
44370